@progress/kendo-angular-dateinputs 5.3.1-dev.202201070925 → 6.0.0-dev.202201181611
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-dateinputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/calendar/calendar.component.js +1 -1
- package/dist/es/calendar/header.component.js +1 -1
- package/dist/es/calendar/multiview-calendar.component.js +1 -1
- package/dist/es/calendar/services/dom.service.js +1 -1
- package/dist/es/calendar/view.component.js +1 -1
- package/dist/es/common/models/fillmode.js +4 -0
- package/dist/es/common/models/rounded.js +4 -0
- package/dist/es/common/models/size.js +4 -0
- package/dist/es/dateinput/dateinput.component.js +143 -18
- package/dist/es/datepicker/datepicker.component.js +127 -13
- package/dist/es/daterange/date-range-input.js +1 -1
- package/dist/es/datetimepicker/datetimepicker.component.js +147 -11
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/services/dom.service.js +12 -8
- package/dist/es/timepicker/timelist.component.js +3 -2
- package/dist/es/timepicker/timepicker.component.js +130 -13
- package/dist/es/timepicker/timeselector.component.js +2 -2
- package/dist/es/util.js +37 -0
- package/dist/es2015/calendar/calendar.component.js +1 -1
- package/dist/es2015/calendar/header.component.js +4 -4
- package/dist/es2015/calendar/multiview-calendar.component.js +1 -1
- package/dist/es2015/calendar/services/dom.service.js +1 -1
- package/dist/es2015/calendar/view.component.js +1 -1
- package/dist/es2015/common/models/fillmode.d.ts +14 -0
- package/dist/es2015/common/models/fillmode.js +4 -0
- package/dist/es2015/common/models/rounded.d.ts +15 -0
- package/dist/es2015/common/models/rounded.js +4 -0
- package/dist/es2015/common/models/size.d.ts +14 -0
- package/dist/es2015/common/models/size.js +4 -0
- package/dist/es2015/dateinput/dateinput.component.d.ts +49 -8
- package/dist/es2015/dateinput/dateinput.component.js +183 -68
- package/dist/es2015/datepicker/datepicker.component.d.ts +47 -5
- package/dist/es2015/datepicker/datepicker.component.js +152 -49
- package/dist/es2015/daterange/date-range-input.js +1 -1
- package/dist/es2015/datetimepicker/datetimepicker.component.d.ts +56 -6
- package/dist/es2015/datetimepicker/datetimepicker.component.js +186 -63
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/timepicker/services/dom.service.d.ts +1 -0
- package/dist/es2015/timepicker/services/dom.service.js +12 -8
- package/dist/es2015/timepicker/timelist.component.js +3 -2
- package/dist/es2015/timepicker/timepicker.component.d.ts +50 -5
- package/dist/es2015/timepicker/timepicker.component.js +174 -69
- package/dist/es2015/timepicker/timeselector.component.js +7 -5
- package/dist/es2015/util.d.ts +18 -0
- package/dist/es2015/util.js +37 -0
- package/dist/fesm2015/index.js +756 -267
- package/dist/fesm5/index.js +600 -67
- package/dist/npm/calendar/calendar.component.js +1 -1
- package/dist/npm/calendar/header.component.js +1 -1
- package/dist/npm/calendar/multiview-calendar.component.js +1 -1
- package/dist/npm/calendar/services/dom.service.js +1 -1
- package/dist/npm/calendar/view.component.js +1 -1
- package/dist/npm/common/models/fillmode.js +6 -0
- package/dist/npm/common/models/rounded.js +6 -0
- package/dist/npm/common/models/size.js +6 -0
- package/dist/npm/dateinput/dateinput.component.js +142 -17
- package/dist/npm/datepicker/datepicker.component.js +126 -12
- package/dist/npm/daterange/date-range-input.js +1 -1
- package/dist/npm/datetimepicker/datetimepicker.component.js +146 -10
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/services/dom.service.js +15 -10
- package/dist/npm/timepicker/timelist.component.js +3 -2
- package/dist/npm/timepicker/timepicker.component.js +129 -12
- package/dist/npm/timepicker/timeselector.component.js +2 -2
- package/dist/npm/util.js +37 -0
- package/dist/systemjs/kendo-angular-dateinputs.js +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
System.register("@progress/kendo-angular-dateinputs",["tslib","@angular/core","@angular/common","@progress/kendo-angular-intl","@progress/kendo-angular-common","@progress/kendo-angular-popup","@progress/kendo-common","@progress/kendo-date-math","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n","@angular/forms","rxjs/operators"],function(o){var r,s,l,c,d,p,u,h,m,g,v,f,y;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){v=t(e)},function(e){f=t(e)},function(e){y=t(e)}],execute:function(){function i(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,a;a={},i.m=n=[function(e,t){e.exports=s},function(e,t){e.exports=r},function(e,t){e.exports=h},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function n(e){return null!=e}function i(n){return function(e,t){e=o.cloneDate(e);return e[n](t),e}}var o=t(2),a=t(8),s=t(13),l=t(7);r.setTime=function(e,t){e=o.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e};function c(e,t,n){return{candidateValue:r.setTime(a.MIDNIGHT_DATE,e),maxValue:o.addDays(r.setTime(a.MIDNIGHT_DATE,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:r.setTime(a.MIDNIGHT_DATE,t)}}r.setYears=i("setFullYear"),r.setHours=i("setHours"),r.setMinutes=i("setMinutes"),r.setSeconds=i("setSeconds"),r.setMilliseconds=i("setMilliseconds"),r.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i},r.isInRange=function(e,t,n){return!e||!(t&&e<t||n&&n<e)},r.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;e=c(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue;return n<=t&&t<=e},r.isValidRange=function(e,t){return!n(e)||!n(t)||e<=t},r.dateInRange=function(e,t,n){return e&&(t&&e<t?o.cloneDate(t):n&&n<e?o.cloneDate(n):e)},r.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=c(e,t,n),a=i.candidateValue,o=i.minValue,i=i.maxValue;return a<o?r.setTime(e,t):i<a?r.setTime(e,n):e},r.getNow=function(){return new Date},r.getToday=function(){return o.getDate(new Date)},r.noop=function(e){},r.isWindowAvailable=function(){return"undefined"!=typeof window},r.stringifyClassObject=function(n){return Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},r.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},r.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),n=n.substring(0,i),s=[];if(r===n&&0<i)return s.push([t[i-1],n[i-1]]),s;if(0===r.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){var l="";1===n.length&&s.push([t[0],n[0]]);for(var c=n.length;c<r.length;c++)t[c]!==l&&"_"!==t[c]&&(l=t[c],s.push([l,""]));return s}if(0!==n.indexOf(r)&&"_"!==t[i-1])return" "===n[n.length-1]||n[n.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],n[i-1]]];for(var d=t[0],c=Math.max(0,r.length-1);c<t.length;c++)if("_"!==t[c]){d=t[c];break}return[[d,n[i-1]]]},r.domContainerFactory=function(a){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(a);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}},r.hasChange=function(e,t){return void 0!==e[t]},r.hasExistingValue=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},r.last=function(e){return(e=void 0===e?[]:e)&&e[e.length-1]},r.isInSelectionRange=function(e,t){var n=t||s.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return!(!t||!n)&&t<e&&e<n},r.either=function(e,t){return e||t},r.clampRange=function(e){return{start:e,end:e}},r.isEqualRange=function(e,t){var n=e||s.EMPTY_SELECTIONRANGE,i=n.start,e=n.end,n=t||s.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return o.isEqual(i,t)&&o.isEqual(e,n)},r.areDatesEqual=function(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return o.isEqual(e,n[t])})},r.sortDates=function(e){return e.filter(function(e){return l.isPresent(e)}).sort(function(e,t){return e.getTime()-t.getTime()})},r.mergeDateAndTime=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},r.lastMillisecondOfDate=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},r.disabledDatesInRange=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=o.addDays(a,1);return i},r.cropTwoDigitYear=function(e){return!l.isPresent(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))},r.msPaddingFromFormat=function(e){return Array(e.match(/S+(\1)/)[0].length).join("0")},r.millisecondDigitsInFormat=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0},r.millisecondStepFor=function(e){return Math.pow(10,3-e)},r.isTabExitingCalendar=function(e,t,n){return!!l.isPresent(t)&&("infinite"===e||"classic"===e&&n&&t.classList.contains("k-calendar")||!n&&t.classList.contains("k-next-view"))}},function(e,t){e.exports=v},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.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)&&0<e.length&&e.every(function(e){return"number"==typeof e})},t.isDateArray=function(e){return Array.isArray(e)&&0<e.length&&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=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.CalendarViewEnum||(t.CalendarViewEnum={}))[t.month=0]="month",t[t.year=1]="year",t[t.decade=2]="decade",t[t.century=3]="century"},function(e,t){e.exports=l},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(56),r=n(55),s=n(54),l=n(53),c=n(10),d=((n={})[c.CalendarViewEnum.month]=s.MonthViewService,n[c.CalendarViewEnum.year]=l.YearViewService,n[c.CalendarViewEnum.decade]=r.DecadeViewService,n[c.CalendarViewEnum.century]=o.CenturyViewService,n),i=(p.prototype.configure=function(e,t){this.bottom=e,this.top=t},p.prototype.service=function(e){e=d[e];return e?this.injector.get(e):null},p.prototype.moveDown=function(e){this.move(e,-1)},p.prototype.moveUp=function(e){this.move(e,1)},p.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},p.prototype.canMoveDown=function(e){return this.bottom<e},p.prototype.canMoveUp=function(e){return e<this.top},p.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},p.prototype.move=function(e,t){t=this.clamp(void 0!==(t=c.CalendarViewEnum[c.CalendarViewEnum[e+t]])?t:e);t!==e&&this.viewChanged.emit({view:t})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.Injector])],p));function p(e){this.injector=e,this.viewChanged=new a.EventEmitter,this.bottom=c.CalendarViewEnum.month,this.top=c.CalendarViewEnum.century}t.BusViewService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.PickerService=function(){this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.sameDateSelected=new i.EventEmitter,this.dateCompletenessChange=new i.EventEmitter}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Action||(t.Action={}))[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView",t[t.LowerView=8]="LowerView",t[t.UpperView=9]="UpperView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(44),r=n(11),s=n(5),l=n(74),c=n(72),n=n(6),n=i.__decorate([a.NgModule({declarations:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],exports:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],imports:[r.CommonModule,s.IntlModule,n.EventsModule]})],d);function d(){}t.DateInputModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e&&e.isActive||!1}var i=n(1),o=n(0),r=n(9),s=n(13),l=n(2),o=(Object.defineProperty(c.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),c.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},c.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},c.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},c.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},c.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=a(e),n=a(this.startInput$.value),i=a(this.endInput$.value);return t||n||i||e&&e.hasActiveContent()||!1},c.prototype.registerStartInput=function(e){this.startInput$.next(e)},c.prototype.registerEndInput=function(e){this.endInput$.next(e)},c.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},c.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},c.prototype.setFocusedDate=function(e){l.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},c.prototype.setRange=function(e){void 0===e&&(e=s.EMPTY_SELECTIONRANGE),this.range$.next(e)},i.__decorate([o.Injectable()],c));function c(){this.activeRangeEnd$=new r.BehaviorSubject(null),this.focusedDate$=new r.BehaviorSubject(null),this.endInput$=new r.BehaviorSubject(null),this.startInput$=new r.BehaviorSubject(null),this.dateRangePopup$=new r.BehaviorSubject(null),this.range$=new r.BehaviorSubject(s.EMPTY_SELECTIONRANGE)}t.DateRangeService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(0);t.TOUCH_ENABLED=new n.InjectionToken("dateinputs-touch-enabled")},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});function a(){return!1}var i=n(1),o=n(0),r=n(2),s=n(9),l=n(7),i=(c.prototype.initialize=function(t){var n,i;"function"==typeof t?this.isDateDisabled=function(e){return t(r.getDate(e))}:l.isNumberArray(t)?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):l.isDateArray(t)?(i=new Set(t.map(function(e){return r.getDate(e).getTime()})),this.isDateDisabled=function(e){return i.has(r.getDate(e).getTime())}):(this.isDateDisabled=a,this.notifyInvalidInput(t)),this.notifyServiceChange()},c.prototype.notifyInvalidInput=function(e){if(l.isPresent(e)&&o.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},c.prototype.notifyServiceChange=function(){this.changes.next()},i.__decorate([o.Injectable()],c));function c(){this.changes=new s.Subject,this.isDateDisabled=a}t.DisabledDatesService=i},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:1641547209,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){e.exports=g},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=i},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function c(e,t){return new Array(e).fill("1").map(t)}function i(e,a,o){var r,s=e.cells,l=e.rows;return function(){return m.isDocumentAvailable?(r||(n=l,i=void 0===s?1:s,e=T([w([D([C("1","k-calendar-th")],"k-calendar-tr")].concat(c(n,function(){return D(c(i,function(e){return b('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),t=a,n=o,r=f([f('\n <span class="k-button k-flat k-title k-calendar-title">March 2017</span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <span class="k-today k-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack"),n?T([k([D([C("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,S([e,e])],t,{left:"-10000px",position:"absolute"})),r):null;var e,t,n,i}}function a(e){return e.querySelector(".k-scrollable")}function o(e){return a(e).classList.add("k-scrollable-horizontal"),e}function r(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function s(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function l(e){return e.querySelector("tbody")}var d,p=n(1),u=n(0),h=n(10),m=n(6),g=n(3),v=n(7),f=g.domContainerFactory("div"),y=g.domContainerFactory("ul"),_=g.domContainerFactory("li"),b=g.domContainerFactory("td"),C=g.domContainerFactory("th"),D=g.domContainerFactory("tr"),w=g.domContainerFactory("tbody"),k=g.domContainerFactory("thead"),T=g.domContainerFactory("table"),S=function(e){return f(e,"k-flex k-content k-calendar-content k-scrollable")},E=function(){return m.isDocumentAvailable?d=d||f([S([y([_("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},I=i({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),M=i({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),O=i({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),u=(V.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},V.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(I(),function(e){var t=l(e);n.calendarHeight=r(e),n.monthViewHeight=r(t),n.headerHeight=r(t.children[0]),n.scrollableContentHeight=r(a(e))}),this.batch(o(I()),function(e){var t=l(e);n.calendarWidth=s(e),n.monthViewWidth=s(t),n.scrollableContentWidth=s(a(e))}),this.batch(M(),function(e){n.yearViewHeight=r(l(e)),n.scrollableYearContentHeight=r(a(e))}),this.batch(o(M()),function(e){n.yearViewWidth=s(l(e))}),this.batch(O(),function(e){n.decadeViewHeight=r(l(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(o(O()),function(e){n.decadeViewWidth=s(l(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(E(),function(e){n.navigationItemHeight=r(e.querySelector("li"))}))},V.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},V.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},V.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case h.CalendarViewEnum.month:return this["month"+n];case h.CalendarViewEnum.year:return this["year"+n];case h.CalendarViewEnum.decade:return this["decade"+n];case h.CalendarViewEnum.century:return this["century"+n];default:return 1}},V.prototype.batch=function(e,t){if(v.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)}}},p.__decorate([u.Injectable()],V));function V(){}t.CalendarDOMService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValidator=function(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minValidator=function(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarHeaderTitleTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.HeaderTitleTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarWeekNumberCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.WeekNumberCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarCenturyCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.CenturyCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarDecadeCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.DecadeCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarYearCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.YearCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarMonthCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.MonthCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.CellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),c=n(0),a=n(24),o=n(4),r=n(2),d=n(6),s=n(97),l=n(96),p=n(14),u=n(51),h=n(95),m=n(21),g=n(36),v=n(35),f=n(34),y=n(33),_=n(32),b=n(31),C=n(30),D=n(16),w=n(10),k=n(29),T=n(28),S=n(114),E=n(8),I=n(3),M=n(9),O=n(7),n=n(15),V="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.RANGE_CALENDAR_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return R})},t.RANGE_CALENDAR_RANGE_VALIDATORS={multi:!0,provide:a.NG_VALIDATORS,useExisting:c.forwardRef(function(){return R})};var R=(Object.defineProperty(x.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||I.getToday()},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(E.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(E.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(e){return O.isPresent(e)}).map(function(e){return r.cloneDate(e)}):r.cloneDate(e);var t=[].concat(e).filter(function(e){return O.isPresent(e)}).map(function(e){return r.cloneDate(e)});I.areDatesEqual(t,this.selectedDates)||(e=I.last(t),this.rangePivot=r.cloneDate(e),this.focusedDate=r.cloneDate(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"activeViewEnum",{get:function(){var e=w.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"bottomViewEnum",{get:function(){return w.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"topViewEnum",{get:function(){return w.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),x.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)},x.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},x.prototype.handleMouseEnter=function(){this.isHovered=!0},x.prototype.handleMouseLeave=function(){this.isHovered=!1},x.prototype.handleMousedown=function(e){e.preventDefault()},x.prototype.handleClick=function(){this.isActive||this.focus()},x.prototype.keydown=function(e){var t;this.isHeaderActive||(e.keyCode===d.Keys.Enter&&(O.isPresent(this.pickerService)&&e.preventDefault(),this.performSelection(this.focusedDate,e)),t=I.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),r.isEqual(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)))},x.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=w.CalendarViewEnum[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},x.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),I.hasExistingValue(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=I.dateInRange(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?k.minValidator(this.min):I.noop,this.maxValidateFn=this.rangeValidation?T.maxValidator(this.max):I.noop,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?S.disabledDatesRangeValidator(this.disabledDatesService.isDateDisabled):I.noop,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},x.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},x.prototype.ngAfterViewInit=function(){this.updateButtonState()},x.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},x.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},x.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},x.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;e=!n&&I.areDatesEqual(i,this.selectedDates);this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return r.cloneDate(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},x.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)},x.prototype.setActiveDate=function(e){this.activeDate=r.cloneDate(e),this.cdr.detectChanges()},x.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},x.prototype.registerOnChange=function(e){this.onControlChange=e},x.prototype.registerOnTouched=function(e){this.onControlTouched=e},x.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},x.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},x.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},x.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case w.CalendarViewEnum.month:return this.monthCellTemplate||this.cellTemplate;case w.CalendarViewEnum.year:return this.yearCellTemplate;case w.CalendarViewEnum.decade:return this.decadeCellTemplate;case w.CalendarViewEnum.century:return this.centuryCellTemplate;default:return null}},x.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},x.prototype.emitNavigate=function(e){var t=w.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},x.prototype.emitCellEvent=function(e,t){d.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},x.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},x.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:I.last(e)})})},x.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},x.prototype.verifyChanges=function(){if(c.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},x.prototype.verifyValue=function(e){if(c.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.")}},x.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()})},x.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?r.cloneDate(I.last(e)):e.map(function(e){return r.cloneDate(e)})},x.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"id",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],x.prototype,"focusedDate",null),i.__decorate([c.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],x.prototype,"min",null),i.__decorate([c.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],x.prototype,"max",null),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"rangeValidation",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"disabledDatesRangeValidation",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"selection",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],x.prototype,"value",null),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"disabled",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Number)],x.prototype,"tabindex",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],x.prototype,"tabIndex",null),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"isActive",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],x.prototype,"disabledDates",null),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"activeView",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"bottomView",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"topView",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"showViewHeader",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"animateNavigation",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"weekNumber",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"activeRangeEnd",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],x.prototype,"selectionRange",null),i.__decorate([c.Input(),i.__metadata("design:type",Number)],x.prototype,"views",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"activeViewChange",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"navigate",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"cellEnter",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"cellLeave",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"valueChange",void 0),i.__decorate([c.Output("blur"),i.__metadata("design:type",c.EventEmitter)],x.prototype,"blurEvent",void 0),i.__decorate([c.ContentChild(g.CellTemplateDirective,{static:!0}),i.__metadata("design:type",g.CellTemplateDirective)],x.prototype,"cellTemplate",void 0),i.__decorate([c.Input("cellTemplate"),i.__metadata("design:type",g.CellTemplateDirective),i.__metadata("design:paramtypes",[g.CellTemplateDirective])],x.prototype,"cellTemplateRef",null),i.__decorate([c.ContentChild(v.MonthCellTemplateDirective,{static:!0}),i.__metadata("design:type",v.MonthCellTemplateDirective)],x.prototype,"monthCellTemplate",void 0),i.__decorate([c.Input("monthCellTemplate"),i.__metadata("design:type",v.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[v.MonthCellTemplateDirective])],x.prototype,"monthCellTemplateRef",null),i.__decorate([c.ContentChild(f.YearCellTemplateDirective,{static:!0}),i.__metadata("design:type",f.YearCellTemplateDirective)],x.prototype,"yearCellTemplate",void 0),i.__decorate([c.Input("yearCellTemplate"),i.__metadata("design:type",f.YearCellTemplateDirective),i.__metadata("design:paramtypes",[f.YearCellTemplateDirective])],x.prototype,"yearCellTemplateRef",null),i.__decorate([c.ContentChild(y.DecadeCellTemplateDirective,{static:!0}),i.__metadata("design:type",y.DecadeCellTemplateDirective)],x.prototype,"decadeCellTemplate",void 0),i.__decorate([c.Input("decadeCellTemplate"),i.__metadata("design:type",y.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[y.DecadeCellTemplateDirective])],x.prototype,"decadeCellTemplateRef",null),i.__decorate([c.ContentChild(_.CenturyCellTemplateDirective,{static:!0}),i.__metadata("design:type",_.CenturyCellTemplateDirective)],x.prototype,"centuryCellTemplate",void 0),i.__decorate([c.Input("centuryCellTemplate"),i.__metadata("design:type",_.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[_.CenturyCellTemplateDirective])],x.prototype,"centuryCellTemplateRef",null),i.__decorate([c.ContentChild(b.WeekNumberCellTemplateDirective,{static:!0}),i.__metadata("design:type",b.WeekNumberCellTemplateDirective)],x.prototype,"weekNumberTemplate",void 0),i.__decorate([c.Input("weekNumberTemplate"),i.__metadata("design:type",b.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[b.WeekNumberCellTemplateDirective])],x.prototype,"weekNumberTemplateRef",null),i.__decorate([c.ContentChild(C.HeaderTitleTemplateDirective,{static:!0}),i.__metadata("design:type",C.HeaderTitleTemplateDirective)],x.prototype,"headerTitleTemplate",void 0),i.__decorate([c.Input("headerTitleTemplate"),i.__metadata("design:type",C.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[C.HeaderTitleTemplateDirective])],x.prototype,"headerTitleTemplateRef",null),i.__decorate([c.ViewChild(l.HeaderComponent,{static:!1,read:c.ElementRef}),i.__metadata("design:type",c.ElementRef)],x.prototype,"headerElement",void 0),i.__decorate([c.ViewChild(s.HorizontalViewListComponent,{static:!1}),i.__metadata("design:type",s.HorizontalViewListComponent)],x.prototype,"viewList",void 0),i.__decorate([c.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],x.prototype,"widgetId",null),i.__decorate([c.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],x.prototype,"calendarTabIndex",null),i.__decorate([c.HostBinding("attr.aria-disabled"),c.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],x.prototype,"ariaDisabled",null),i.__decorate([c.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],x.prototype,"ariaActivedescendant",null),i.__decorate([c.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],x.prototype,"handleFocusout",null),i.__decorate([c.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleFocus",null),i.__decorate([c.HostListener("mouseenter"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleMouseEnter",null),i.__decorate([c.HostListener("mouseleave"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleMouseLeave",null),i.__decorate([c.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],x.prototype,"handleMousedown",null),i.__decorate([c.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleClick",null),i.__decorate([c.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],x.prototype,"keydown",null),i.__decorate([c.Component({changeDetection:c.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[p.BusViewService,t.RANGE_CALENDAR_VALUE_ACCESSOR,t.RANGE_CALENDAR_RANGE_VALIDATORS,o.LocalizationService,m.DisabledDatesService,{provide:o.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},u.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,c.Optional()),i.__metadata("design:paramtypes",[p.BusViewService,c.ElementRef,u.NavigationService,c.Renderer2,c.ChangeDetectorRef,c.NgZone,m.DisabledDatesService,h.SelectionService,n.PickerService])],x));function x(e,t,n,i,a,o,r,s,l){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=a,this.zone=o,this.disabledDatesService=r,this.selectionService=s,this.pickerService=l,this.id=d.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=w.CalendarViewEnum[w.CalendarViewEnum.month],this.bottomView=w.CalendarViewEnum[w.CalendarViewEnum.month],this.topView=w.CalendarViewEnum[w.CalendarViewEnum.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new c.EventEmitter,this.navigate=new c.EventEmitter,this.cellEnter=new c.EventEmitter,this.cellLeave=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.blurEvent=new c.EventEmitter,this.cellUID=d.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=D.Action.PrevView,this.nextView=D.Action.NextView,this.selectedDates=[],this._min=new Date(E.MIN_DATE),this._max=new Date(E.MAX_DATE),this._focusedDate=I.getToday(),this.resolvedPromise=Promise.resolve(),this.onControlChange=I.noop,this.onControlTouched=I.noop,this.onValidatorChange=I.noop,this.minValidateFn=I.noop,this.maxValidateFn=I.noop,this.disabledDatesRangeValidateFn=I.noop,this.subscriptions=new M.Subscription,this.setClasses(t.nativeElement)}t.MultiViewCalendarComponent=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"accept",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"acceptLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancelLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"now",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nowLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"toggle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.TimePickerMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(36),r=n(35),s=n(34),l=n(33),c=n(32),d=n(31),p=n(30),n=n(50),n=i.__decorate([a.NgModule({declarations:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,p.HeaderTitleTemplateDirective,n.NavigationItemTemplateDirective],exports:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,p.HeaderTitleTemplateDirective,n.NavigationItemTemplateDirective]})],u);function u(){}t.TemplatesModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(5),s=n(12),l=n(6),c=n(82),d=n(39),p=n(97),u=n(37),h=n(81),m=n(106),g=n(51),v=n(56),f=n(55),y=n(54),_=n(53),n=n(52),n=i.__decorate([a.NgModule({declarations:[p.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,m.MultiViewCalendarCustomMessagesComponent,u.MultiViewCalendarComponent],exports:[p.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,m.MultiViewCalendarCustomMessagesComponent,u.MultiViewCalendarComponent,c.CalendarCommonModule,d.TemplatesModule],imports:[o.CommonModule,c.CalendarCommonModule,r.IntlModule,d.TemplatesModule,s.PopupModule,l.EventsModule],providers:[g.NavigationService,v.CenturyViewService,f.DecadeViewService,y.MonthViewService,_.YearViewService,n.WeekNamesService]})],b);function b(){}t.MultiViewCalendarModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(5),s=n(82),l=n(40),c=n(39),d=n(98),p=n(94),u=n(93),h=n(27),m=n(56),g=n(55),v=n(54),f=n(53),y=n(52),_=n(79),b=n(77),C=n(76),n=n(6),y=i.__decorate([a.NgModule({declarations:[d.CalendarComponent,p.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,u.ViewListComponent],exports:[d.CalendarComponent,p.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,u.ViewListComponent,s.CalendarCommonModule,c.TemplatesModule],imports:[o.CommonModule,s.CalendarCommonModule,l.MultiViewCalendarModule,r.IntlModule,c.TemplatesModule,C.VirtualizationModule,n.EventsModule,n.ResizeSensorModule],providers:[h.CalendarDOMService,m.CenturyViewService,g.DecadeViewService,v.MonthViewService,f.YearViewService,y.WeekNamesService]})],D);function D(){}t.CalendarModule=y},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(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});function b(e){return e.replace(/^0*/,"")}var i,a=n(1),l=n(0),o=n(29),r=n(28),s=n(43),c=n(24),d=n(4),p=n(5),u=n(23),h=n(22),C=n(2),m=n(6),g=n(110),D=n(3),v=n(15),f=n(20),y=n(7),_=/year|month|<day>/,w=/hour|minute|second|millisecond/,k=/d|M|H|h|m|s/,T=function(){this.symbols=""},S=(I.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},I.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},I.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return C.cloneDate(this.value)},I.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},I.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}},I.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},I.prototype.modifyPart=function(e,t){var n=C.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=C.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},I.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 p=l.length-3,u=null,h=this.matchMonth(t),m=this.matchDayPeriod(t,e),g="0"===t,v=(this.leadingZero||{})[e]||0;for(g?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero(),d=Math.max(0,p);d<=l.length;d++){var f=n?t:l.substring(d)+t;"S"===e&&n&&(f=D.msPaddingFromFormat(o)+f);var y=parseInt(f,10);if((u=this.intl.parseDate(s+f+c,this.format))||isNaN(y)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(_=y-1)&&_<12&&((u=C.cloneDate(this.value)).setMonth(_),u.getMonth()!==_&&(u=C.lastDayOfMonth(C.addMonths(u,-1)))),"y"===e&&(u=C.createDate(parseInt(f,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&&u.getDate()!==this.value.getDate()&&(u=C.lastDayOfMonth(C.addMonths(u,-1))))),u){var y=this.partPattern(a.partMap,e).pattern,_=this.intl.parseDate(""+s+this.peek(f,y)+c,this.format),y=this.patternLength(y)||y.length,y=v+(b(f)||t).length>=y,y=null===_||y;return this.shouldNormalizeCentury()&&(u=this.normalizeCentury(u)),this.value=u,this.setExisting(e,!0),{value:this.value,switchToNext:y}}}return h&&(u=this.intl.parseDate(s+h+c,this.format))?(this.value=u,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(u=this.intl.parseDate(s+m+c,this.format))?(this.value=u,{value:this.value,switchToNext:!0}):(g&&this.setExisting(e,!1),{value:null,switchToNext:!1})},I.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},I.prototype.setLeadingZero=function(e){this.leadingZero=e},I.prototype.normalizeCentury=function(e){if(!y.isPresent(e))return e;var t=D.cropTwoDigitYear(e),n=this.getNormalizedCenturyBase(t);return D.setYears(e,n+t)},I.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},I.prototype.isAbbrMonth=function(e,t){t=this.partPattern(e,t);return"month"===t.type&&t.names},I.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},I.prototype.peek=function(e,t){e=b(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},I.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},I.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},I.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},I.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},I.prototype.patternLength=function(e){return"y"===e[0]?4:k.test(e)?2:0},I.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<r;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;t=new T;return t.symbols=i.join(""),t.partMap=a,t},I.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];0<=o&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},I.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},I.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},I),v=(i=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&&!D.isInRange(e,this.min,this.max)||(this._value=C.cloneDate(e),this.valueUpdate.emit(C.cloneDate(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrap&&!y.isPresent(this.pickerService)&&(t=this.wrap.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),E.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},E.prototype.containsElement=function(e){var t=this;return Boolean(f.closest(e,function(e){return e===t.element.nativeElement}))},E.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?o.minValidator(this.min):D.noop,this.maxValidator=this.rangeValidation?r.maxValidator(this.max):D.noop,this.incompleteValidator=this.incompleteDateValidation?s.incompleteDateValidator():D.noop,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&C.isEqual(this.value,this.kendoDate.getDateObject());!e.format&&t&&!e.placeholder||(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},E.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},E.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},E.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},E.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(c.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},E.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},E.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=C.cloneDate(e),this.updateElementValue(this.isActive)},E.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=C.cloneDate(e),this.notify())},E.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(C.cloneDate(e.value)),e.valueChange.emit(C.cloneDate(e.value))})},E.prototype.registerOnChange=function(e){this.onControlChange=e},E.prototype.registerOnTouched=function(e){this.onControlTouched=e},E.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},E.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},E.prototype.handleButtonClick=function(e){this.arrowDirection=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;"S"!==n||this.steps.millisecond||(t=D.millisecondDigitsInFormat(this.inputFormat),i=D.millisecondStepFor(t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},E.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;0<=a&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return a<i&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0)},E.prototype.selectDateSegment=function(e){for(var t=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t&&(t=i));t<0&&(t=0),this.caret(0,0),this.caret(t,n)},E.prototype.handleClick=function(){var e,t;this.hasMousedown=!1,this.isActive&&(e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=y.isPresent(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!e&&t?0:this.caret()[0],this.selectNearestSegment(t))},E.prototype.handleDragAndDrop=function(e){e.preventDefault()},E.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},E.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,m.hasObservers(this.onFocus)?this.ngZone.run(function(){t.emitFocus(e)}):this.emitFocus(e)},E.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),m.hasObservers(this.onBlur)||y.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,e=new S(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},E.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){return e[t.pattern[0]]=t.type,e},{})},E.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),a=!this.isActive&&y.isPresent(this.placeholder)&&!this.kendoDate.hasValue(),n=this.inputElement;this.currentFormat=i[1],this.currentValue=a?"":i[0],this.renderer.setProperty(n,"value",this.currentValue),n.placeholder!==this.placeholder&&this.renderer.setProperty(n,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},E.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(m.isDocumentAvailable()&&document.activeElement!==a&&a.focus(),a.setSelectionRange(e,t)),i=[a.selectionStart,a.selectionEnd])}catch(e){i=[]}return i}},E.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},E.prototype.verifyRange=function(){if(l.isDevMode()&&!D.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(l.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=D.dateInRange(e,this.min,this.max);this.autoCorrect&&!C.isEqual(e,t)&&(this.kendoDate=this.getKendoDate(t))},E.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){var n=e.date,e=e.time;return{date:n||_.test(t.type),time:e||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,t=+(e=y.isPresent(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},E.prototype.bindEvents=function(){var e=this.element.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))},E.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},E.prototype.handlePaste=function(){this.paste=!0},E.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==m.Keys.Tab)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=D.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(D.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&&(y.isPresent(this.ngControl)&&!y.isPresent(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):y.isPresent(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},a.__decorate([l.Input(),a.__metadata("design:type",String)],E.prototype,"focusableId",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"disabled",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"readonly",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String)],E.prototype,"title",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Number)],E.prototype,"tabindex",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String)],E.prototype,"role",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"ariaReadOnly",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],E.prototype,"tabIndex",null),a.__decorate([l.Input(),a.__metadata("design:type",Object)],E.prototype,"format",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Object)],E.prototype,"formatPlaceholder",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String)],E.prototype,"placeholder",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Object)],E.prototype,"steps",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Date)],E.prototype,"max",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Date)],E.prototype,"min",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"rangeValidation",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"autoCorrect",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"incompleteDateValidation",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Number)],E.prototype,"twoDigitYearMax",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],E.prototype,"value",null),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"spinners",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"isPopupOpen",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],E.prototype,"hasPopup",void 0),a.__decorate([l.Output(),a.__metadata("design:type",l.EventEmitter)],E.prototype,"valueChange",void 0),a.__decorate([l.Output(),a.__metadata("design:type",l.EventEmitter)],E.prototype,"valueUpdate",void 0),a.__decorate([l.Output("focus"),a.__metadata("design:type",l.EventEmitter)],E.prototype,"onFocus",void 0),a.__decorate([l.Output("blur"),a.__metadata("design:type",l.EventEmitter)],E.prototype,"onBlur",void 0),a.__decorate([l.ViewChild("dateInput",{static:!0}),a.__metadata("design:type",l.ElementRef)],E.prototype,"dateInput",void 0),a.__decorate([l.ViewChild("wrap",{static:!1}),a.__metadata("design:type",l.ElementRef)],E.prototype,"wrap",void 0),a.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-dateinput"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],E.prototype,"wrapperClass",null),a.__decorate([l.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],E.prototype,"disabledClass",null),i=a.__decorate([l.Component({changeDetection:l.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:c.NG_VALIDATORS,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:d.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:l.forwardRef(function(){return i})},d.LocalizationService],selector:"kendo-dateinput",template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <span class="k-dateinput-wrap" #wrap>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-select" (mousedown)="$event.preventDefault()">\n <span\n class="k-link k-link-increase"\n [class.k-state-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n class="k-link k-link-decrease"\n (click)="handleButtonClick(-1)"\n [class.k-state-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),a.__param(7,l.Optional()),a.__metadata("design:paramtypes",[l.ChangeDetectorRef,p.IntlService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,d.LocalizationService,v.PickerService])],E));function E(e,t,n,i,a,o,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=a,this.injector=o,this.localization=r,this.pickerService=s,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new l.EventEmitter,this.valueUpdate=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.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=D.noop,this.maxValidator=D.noop,this.incompleteValidator=D.noop,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=D.noop,this.onControlTouched=D.noop,this.onValidatorChange=D.noop,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}function I(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=C.getDate(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},u.validatePackage(h.packageMetadata),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=C.cloneDate(i);else{this.value=C.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}t.DateInputComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),a=n(0),r=n(113),s=n(112),l=n(6),c=n(9),d=n(26);function p(e){return new s.ScrollerService(e)}t.SCROLLER_FACTORY_TOKEN=new a.InjectionToken("dateinputs-scroll-service-factory"),t.DEFAULT_SCROLLER_FACTORY=p,(n=o=t.ScrollDirection||(t.ScrollDirection={}))[n.Backward=0]="Backward",n[n.Forward=1]="Forward";var u=((n={})[o.Forward]=function(t){return function(e){return e+t}},n[o.Backward]=function(t){return function(e){return e-t}},n),h=((n={})[o.Forward]=function(t){return function(e){return Math.min(e,t)}},n[o.Backward]=function(t){return function(e){return Math.max(e,t)}},n),m=((n={})[o.Forward]=function(t){return function(e){return e<t}},n[o.Backward]=function(t){return function(e){return t<e}},n),i=(Object.defineProperty(g.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},g.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},g.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(d.map(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},g.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},g.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},g.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},g.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},g.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},g.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},g.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},g.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},g.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},g.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},g.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n,i,a,o=this.rowHeightService.offset(e),r=this.getContainerScrollDirection(o),e=this.scrollRange(o,r),s=e.start,o=e.end;s!==o&&(e=this.scrollStep(s,o),n=u[r](e),i=h[r](o),a=m[r](n(o)),this.zone.runOutsideAngular(function(){t.animationSubscription=c.combineLatest(c.of(s),c.interval(0,c.animationFrameScheduler)).pipe(d.map(function(e){return e[0]}),d.scan(n),d.takeWhile(a),d.map(i)).subscribe(function(e){return t.scrollTo(e)})}))},g.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i=this.containerMaxScroll(),a=t===o.Backward?1:-1,t=(t=this.maxScrollDifference,Math.min(Math.abs(e-n),t)),e=Math.min(e,i);return{start:Math.min(Math.max(e+a*t,0),i),end:e}},g.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},g.prototype.scroll$=function(){return l.isDocumentAvailable()?c.fromEvent(this.container.nativeElement,"scroll"):c.EMPTY},g.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof s.PageAction?t.pageChange:t.scrollChange).emit(e)})},g.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new r.RowHeightService(this.total,e,0)},g.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},g.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},g.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?o.Backward:o.Forward},i.__decorate([a.Input(),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"itemHeight",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"itemWidth",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"topOffset",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"bottomOffset",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"maxScrollDifference",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"scrollOffsetSize",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"scrollDuration",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"skip",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"take",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"total",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],g.prototype,"activeIndexChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],g.prototype,"pageChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],g.prototype,"scrollChange",void 0),i.__decorate([a.HostBinding("class.k-flex"),a.HostBinding("class.k-content"),a.HostBinding("class.k-calendar-content"),a.HostBinding("class.k-scrollable"),i.__metadata("design:type",Boolean)],g.prototype,"wrapperClasses",void 0),i.__decorate([a.HostBinding("class.k-scrollable-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"horizontalClass",null),i.__decorate([a.Component({providers:[{provide:t.SCROLLER_FACTORY_TOKEN,useValue:p}],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 '}),i.__param(0,a.Inject(t.SCROLLER_FACTORY_TOKEN)),i.__metadata("design:paramtypes",[Object,a.ElementRef,a.Renderer2,a.NgZone])],g));function g(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.scrollChange=new a.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new c.Subject,this.scroller=e(this.dispatcher)}t.VirtualizationComponent=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"),n=r.domContainerFactory("ul"),r=r.domContainerFactory("li"),l=o.isDocumentAvailable()?s([s([s([n([r("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,a=(c.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},c.prototype.calculateHeights=function(e){var t;o.isDocumentAvailable()&&(e=(t=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(l),this.timeListHeight=e.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=e.querySelector("li").getBoundingClientRect().height,t.removeChild(e))},c.prototype.isActive=function(e){return!(!o.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},i.__decorate([a.Injectable()],c));function c(){}t.TimePickerDOMService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(5),s=n(12),l=n(66),c=n(90),d=n(104),p=n(76),u=n(46),h=n(65),m=n(64),g=n(63),v=n(62),f=n(61),y=n(17),_=n(60),b=n(102),C=n(59),D=n(101),w=n(48),k=n(19),n=n(6),d=[_.TimePickerLocalizedMessagesDirective,l.TimeListComponent,b.TimePickerCustomMessagesComponent,c.TimePickerComponent,C.TimeSelectorLocalizedMessagesDirective,D.TimeSelectorCustomMessagesComponent,d.TimeSelectorComponent],n=[y.DateInputModule,r.IntlModule,s.PopupModule,p.VirtualizationModule,n.EventsModule],w=[u.TimePickerDOMService,h.HoursService,m.MinutesService,g.SecondsService,v.MillisecondsService,f.DayPeriodService,{provide:k.TOUCH_ENABLED,useValue:w.touchEnabled}],w=i.__decorate([a.NgModule({declarations:[d],exports:[d],imports:[o.CommonModule].concat(n),providers:w})],T);function T(){}t.TimePickerModule=w},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(4),r=n(12),s=n(87),l=n(18),c=n(37),d=n(25),p=n(6),u=n(9),h=n(26),m=n(3),g=n(7),l=(Object.defineProperty(v.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new d.PreventableEvent,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!0,configurable:!0}),v.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},v.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),m.isWindowAvailable()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=u.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},v.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()},v.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=u.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()})})}))},v.prototype.focus=function(){this.calendar&&this.calendar.focus()},v.prototype.hasActiveContent=function(){return!(!p.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},v.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},v.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},v.prototype.handleWindowBlur=function(){var e=this;this.show&&(p.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},v.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},v.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===p.Keys.Escape||n&&e===p.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},v.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=u.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=u.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},v.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];g.isPresent(this.popupSubscriptions)||(this.popupSubscriptions=new u.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(v.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),v.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return u.fromEvent(t,"keydown").subscribe(n.handleKeydown.bind(n))}),u.fromEvent(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},v.prototype.destroyPopup=function(){g.isPresent(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),g.isPresent(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!1}),i.__metadata("design:type",o.ViewContainerRef)],v.prototype,"container",void 0),i.__decorate([o.ViewChild("defaultTemplate",{static:!1}),i.__metadata("design:type",o.TemplateRef)],v.prototype,"defaultTemplate",void 0),i.__decorate([o.ContentChild(s.DateRangePopupTemplateDirective,{static:!1}),i.__metadata("design:type",s.DateRangePopupTemplateDirective)],v.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",o.QueryList)],v.prototype,"viewCalendar",void 0),i.__decorate([o.ContentChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",o.QueryList)],v.prototype,"contentCalendar",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ElementRef)],v.prototype,"anchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"appendTo",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"margin",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],v.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],v.prototype,"close",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],v.prototype,"onBlur",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],v.prototype,"onFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],v.prototype,"cancel",void 0),i.__decorate([o.Component({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),i.__param(4,o.Optional()),i.__param(4,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[r.PopupService,l.DateRangeService,o.ChangeDetectorRef,o.NgZone,Boolean])],v));function v(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popupUID=p.guid(),this.calendarSubscriptions=new u.Subscription,this.popupSubscriptions=new u.Subscription,this.resolvedPromise=Promise.resolve()}t.DateRangePopupComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarNavigationItemTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.NavigationItemTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(16),n=n(14),r={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},n=(s.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return r[e]},s.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},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.BusViewService])],s));function s(e){this.bus=e}t.NavigationService=n},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),o=(s.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},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],s));function s(e){this.intl=e}t.WeekNamesService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),y=n(2),r=n(16),_=n(13),b=n(3),s=n(7),C=[[]],l=((n={})[r.Action.Left]=function(e){return y.addMonths(e,-1)},n[r.Action.Up]=function(e){return y.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},n[r.Action.Right]=function(e){return y.addMonths(e,1)},n[r.Action.Down]=function(e){return y.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},n[r.Action.PrevView]=function(e){return y.addYears(e,-1)},n[r.Action.NextView]=function(e){return y.addYears(e,1)},n[r.Action.FirstInView]=function(e){return y.firstMonthOfYear(e)},n[r.Action.LastInView]=function(e){return y.lastMonthOfYear(e)},n),o=(c.prototype.addToDate=function(e,t){return y.addYears(e,t)},c.prototype.datesList=function(t,e){return b.range(0,e).map(function(e){return y.addYears(t,e)})},c.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,d=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?_.EMPTY_SELECTIONRANGE:t,e=e.viewDate;if(!e)return C;var h=this.abbrMonthNames(),m=y.firstMonthOfYear(e),g=y.lastMonthOfYear(e),v=m.getFullYear(),n=b.range(0,4),f=b.getToday();return b.range(0,3).map(function(e){var a=y.addMonths(m,4*e);return n.map(function(e){var t=o.normalize(y.addMonths(a,e),d,c),n=v<t.getFullYear();if(!o.isInRange(t,d,c)||n)return null;var i=o.isEqual(t,u.start),e=o.isEqual(t,u.end),n=!i&&!e&&b.isInSelectionRange(t,u);return{formattedValue:h[t.getMonth()],id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&p.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,g),isRangeSplitStart:n&&o.isEqual(t,m),isToday:o.isEqual(t,f),title:o.cellTitle(t),value:t}})})},c.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},c.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},c.prototype.isInRange=function(e,t,n){e=y.createDate(e.getFullYear(),e.getMonth(),1),t=!t||y.createDate(t.getFullYear(),t.getMonth(),1)<=e,n=!n||e<=y.createDate(n.getFullYear(),n.getMonth(),1);return t&&n},c.prototype.beginningOfPeriod=function(e){return e&&y.createDate(e.getFullYear(),0,1)},c.prototype.lastDayOfPeriod=function(e){e=y.lastMonthOfYear(e);return y.lastDayOfMonth(e)},c.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},c.prototype.move=function(e,t){t=l[t];return t?t(e):e},c.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},c.prototype.navigationTitle=function(e){return this.title(e)},c.prototype.title=function(e){return e?e.getFullYear().toString():""},c.prototype.rowLength=function(){return 4},c.prototype.skip=function(e,t){return y.durationInYears(t,e)},c.prototype.total=function(e,t){return y.durationInYears(e,t)+1},c.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},c.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?y.addYears(e,-1*(n-t)):e},c.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},c.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?y.cloneDate(t):n<e&&this.isEqual(e,n)?y.cloneDate(n):e},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],c));function c(e){this._intlService=e,this.dateRange=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=y.addMonths(i,1);return n}}t.YearViewService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),b=n(2),r=n(16),C=n(13),D=n(3),s=n(7),w=[[]],l=((n={})[r.Action.Left]=function(e){return b.addDays(e,-1)},n[r.Action.Up]=function(e){return b.addWeeks(e,-1)},n[r.Action.Right]=function(e){return b.addDays(e,1)},n[r.Action.Down]=function(e){return b.addWeeks(e,1)},n[r.Action.PrevView]=function(e){return b.addMonths(e,-1)},n[r.Action.NextView]=function(e){return b.addMonths(e,1)},n[r.Action.FirstInView]=function(e){return b.firstDayOfMonth(e)},n[r.Action.LastInView]=function(e){return b.lastDayOfMonth(e)},n),o=(c.prototype.addToDate=function(e,t){return b.addMonths(e,t)},c.prototype.datesList=function(t,e){return D.range(0,e).map(function(e){return b.addMonths(t,e)})},c.prototype.data=function(e){var r=this,s=e.cellUID,l=e.focusedDate,c=e.isActiveView,d=e.max,p=e.min,u=e.selectedDates,t=e.selectionRange,h=void 0===t?C.EMPTY_SELECTIONRANGE:t,t=e.viewDate,e=e.isDateDisabled,m=void 0===e?function(){return!1}:e;if(!t)return w;var g=b.firstDayOfMonth(t),v=b.getDate(g),f=b.lastDayOfMonth(t),y=b.getDate(f),n=b.dayOfWeek(g,this._intlService.firstDay(),-1),i=D.range(0,7),_=D.getToday();return D.range(0,6).map(function(e){var o=b.addDays(n,7*e);return i.map(function(e){var t=r.normalize(b.addDays(o,e),p,d),n=b.getDate(t),i=n<v||y<n;if(t<p||d<t)return null;var a=r.isEqual(t,h.start),e=r.isEqual(t,h.end),n=!a&&!e&&D.isInSelectionRange(t,h);return{formattedValue:r.value(t),id:""+s+t.getTime(),isFocused:r.isEqual(t,l),isSelected:c&&u.some(function(e){return r.isEqual(t,e)}),isWeekend:r.isWeekend(t),isRangeStart:a,isRangeMid:n,isRangeEnd:e,isRangeSplitStart:n&&r.isEqual(t,g),isRangeSplitEnd:n&&r.isEqual(t,f),isToday:r.isEqual(t,_),title:r.cellTitle(t),value:t,isDisabled:m(t),isOtherMonth:i}})})},c.prototype.isEqual=function(e,t){return!(!e||!t)&&b.getDate(e).getTime()===b.getDate(t).getTime()},c.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(b.addMonths(t[t.length-1],1));return n<=e&&e<t},c.prototype.isInRange=function(e,t,n){e=b.getDate(e),t=!t||b.getDate(t)<=e,n=!n||e<=b.getDate(n);return t&&n},c.prototype.beginningOfPeriod=function(e){return e&&b.createDate(e.getFullYear(),e.getMonth(),1)},c.prototype.lastDayOfPeriod=function(e){return b.lastDayOfMonth(e)},c.prototype.isRangeStart=function(e){return!e.getMonth()},c.prototype.move=function(e,t){t=l[t];return t?t(e):e},c.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},c.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},c.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},c.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},c.prototype.skip=function(e,t){return b.durationInMonths(t,e)},c.prototype.total=function(e,t){return b.durationInMonths(e,t)+1},c.prototype.value=function(e){return e?e.getDate().toString():""},c.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?b.addMonths(e,-1*(n-t)):e},c.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},c.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},c.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?b.cloneDate(t):n<e&&this.isEqual(e,n)?b.cloneDate(n):e},c.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],c));function c(e){this._intlService=e,this.dateRange=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=b.addDays(i,1);return n}}t.MonthViewService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),v=n(2),o=n(16),f=n(13),y=n(3),r=n(7),_=[[]],s=((n={})[o.Action.Left]=function(e){return v.addYears(e,-1)},n[o.Action.Up]=function(e){return v.addYears(e,-5)},n[o.Action.Right]=function(e){return v.addYears(e,1)},n[o.Action.Down]=function(e){return v.addYears(e,5)},n[o.Action.PrevView]=function(e){return v.addDecades(e,-1)},n[o.Action.NextView]=function(e){return v.addDecades(e,1)},n[o.Action.FirstInView]=function(e){return v.firstYearOfDecade(e)},n[o.Action.LastInView]=function(e){return v.lastYearOfDecade(e)},n),a=(l.prototype.addToDate=function(e,t){return v.addDecades(e,t)},l.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addDecades(t,e)})},l.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,d=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?f.EMPTY_SELECTIONRANGE:t,e=e.viewDate;if(!e)return _;var n=y.range(0,4),h=v.firstYearOfDecade(e),m=v.lastYearOfDecade(e),g=y.getToday();return y.range(0,3).map(function(e){var a=v.addYears(h,4*e);return n.map(function(e){var t=o.normalize(v.addYears(a,e),d,c),n=t.getFullYear()>m.getFullYear();if(!o.isInRange(t,d,c)||n)return null;var i=o.isEqual(t,u.start),e=o.isEqual(t,u.end),n=!i&&!e&&y.isInSelectionRange(t,u);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&p.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,m),isRangeSplitStart:n&&o.isEqual(t,h),isToday:o.isEqual(t,g),title:o.cellTitle(t),value:t}})})},l.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},l.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},l.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,n=!n||e<=n.getFullYear();return t&&n},l.prototype.beginningOfPeriod=function(e){if(!e)return e;e=v.firstYearOfDecade(e);return v.createDate(e.getFullYear(),0,1)},l.prototype.lastDayOfPeriod=function(e){e=v.lastYearOfDecade(e),e=v.lastMonthOfYear(e);return v.lastDayOfMonth(e)},l.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},l.prototype.move=function(e,t){t=s[t];return t?t(e):e},l.prototype.cellTitle=function(e){return e.getFullYear().toString()},l.prototype.navigationTitle=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},l.prototype.title=function(e){return e?v.firstYearOfDecade(e).getFullYear()+" - "+v.lastYearOfDecade(e).getFullYear():""},l.prototype.rowLength=function(){return 4},l.prototype.skip=function(e,t){return v.durationInDecades(t,e)},l.prototype.total=function(e,t){return v.durationInDecades(e,t)+1},l.prototype.value=function(e){return e?e.getFullYear().toString():""},l.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?v.addDecades(e,-1*(n-t)):e},l.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},i.__decorate([a.Injectable()],l));function l(){this.dateRange=function(e,t){if(!r.isPresent(e)||!r.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=v.addYears(i,1);return n}}t.DecadeViewService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),v=n(2),o=n(16),f=n(13),y=n(3),r=n(7),_=[[]],s=((n={})[o.Action.Left]=function(e){return v.addDecades(e,-1)},n[o.Action.Up]=function(e){return v.addDecades(e,-5)},n[o.Action.Right]=function(e){return v.addDecades(e,1)},n[o.Action.Down]=function(e){return v.addDecades(e,5)},n[o.Action.PrevView]=function(e){return v.addCenturies(e,-1)},n[o.Action.NextView]=function(e){return v.addCenturies(e,1)},n[o.Action.FirstInView]=function(e){return v.firstDecadeOfCentury(e)},n[o.Action.LastInView]=function(e){return v.lastDecadeOfCentury(e)},n),a=(l.prototype.addToDate=function(e,t){return v.addCenturies(e,t)},l.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addCenturies(t,e)})},l.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,d=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?f.EMPTY_SELECTIONRANGE:t,e=e.viewDate;if(!e)return _;var n=y.range(0,4),h=v.firstDecadeOfCentury(e),m=v.lastDecadeOfCentury(e),g=y.getToday();return y.range(0,3).map(function(e){var a=v.addDecades(h,4*e);return n.map(function(e){var t=o.normalize(v.addDecades(a,e),d,c),n=t.getFullYear()>m.getFullYear();if(!o.isInRange(t,d,c)||n)return null;var i=o.isEqual(t,u.start),e=o.isEqual(t,u.end),n=!i&&!e&&y.isInSelectionRange(t,u);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&p.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,m),isRangeSplitStart:n&&o.isEqual(t,h),isToday:o.isEqual(t,g),title:o.cellTitle(t),value:t}})})},l.prototype.isEqual=function(e,t){return!(!e||!t)&&v.firstYearOfDecade(e).getFullYear()===v.firstYearOfDecade(t).getFullYear()},l.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},l.prototype.isInRange=function(e,t,n){e=v.firstYearOfDecade(e).getFullYear(),t=!t||v.firstYearOfDecade(t).getFullYear()<=e,n=!n||e<=v.firstYearOfDecade(n).getFullYear();return t&&n},l.prototype.beginningOfPeriod=function(e){if(!e)return e;e=v.firstYearOfDecade(v.firstDecadeOfCentury(e));return v.createDate(e.getFullYear(),0,1)},l.prototype.lastDayOfPeriod=function(e){e=v.lastDecadeOfCentury(e),e=v.lastYearOfDecade(e),e=v.lastMonthOfYear(e);return v.lastDayOfMonth(e)},l.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},l.prototype.move=function(e,t){t=s[t];return t?t(e):e},l.prototype.cellTitle=function(e){return v.firstYearOfDecade(e).getFullYear().toString()},l.prototype.navigationTitle=function(e){return e?v.firstDecadeOfCentury(e).getFullYear().toString():""},l.prototype.title=function(e){return e?v.firstDecadeOfCentury(e).getFullYear()+" - "+v.lastDecadeOfCentury(e).getFullYear():""},l.prototype.rowLength=function(){return 4},l.prototype.skip=function(e,t){return v.durationInCenturies(t,e)},l.prototype.total=function(e,t){return v.durationInCenturies(e,t)+1},l.prototype.value=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},l.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?v.addCenturies(e,-1*(n-t)):e},l.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},i.__decorate([a.Injectable()],l));function l(){this.dateRange=function(e,t){if(!r.isPresent(e)||!r.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=v.addDecades(i,1);return n}}t.CenturyViewService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"toggle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"dateTab",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"dateTabLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"timeTab",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"timeTabLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"accept",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"acceptLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancelLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"now",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nowLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(12),s=n(6),l=n(5),c=n(17),d=n(41),p=n(47),u=n(39),h=n(48),m=n(19),g=n(89),v=n(100),n=n(99),n=[g.DateTimePickerComponent,v.DateTimePickerCustomMessagesComponent,n.LocalizedMessagesDirective],h=i.__decorate([a.NgModule({declarations:n.slice(),exports:n.concat([u.TemplatesModule]),imports:[o.CommonModule,l.IntlModule,c.DateInputModule,d.CalendarModule,p.TimePickerModule,r.PopupModule,s.EventsModule,u.TemplatesModule],providers:[{provide:m.TOUCH_ENABLED,useValue:h.touchEnabled}]})],f);function f(){}t.DateTimePickerModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoTimeSelectorLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimeSelectorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoTimePickerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){return(e=s.cloneDate(e)).setHours(t),e}function r(e){return null!==e&&e<12}var i=n(1),a=n(0),s=n(2),n=n(5),n=(l.prototype.apply=function(e,t){var n=e.getHours(),i=r(n),a=r(t.getHours());if(i&&a||!i&&!a)return e;t=this.normalizedRange(),i=t[0],t=t[1],t=void 0===t?24:t;return o(e,Math.min(Math.max(i,n+(a?-12:12)),t||24))},l.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,t=e.max,t=void 0===t?this.max:t,e=e.part,e=void 0===e?this.part:e;this.min=n,this.max=t,this.part=e},l.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n=[],i=this.normalizedRange(),a=i[0],i=i[1],t=this.intl.dateFormatNames(t);return r(a)&&n.push({text:t.am,value:o(this.min,a)}),null!==i&&(!i||11<i)&&n.push({text:t.pm,value:o(this.min,Math.max(12,i))}),this.min.getHours()!==a?n.reverse():n},l.prototype.isRangeChanged=function(e,t){return!1},l.prototype.limitRange=function(e,t,n){return[e,t]},l.prototype.total=function(){var e=this.normalizedRange(),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},l.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},l.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?function(e,t,n){return!t&&!n||t<=e||e<=n}:function(e,t,n){return!t&&!n||t<=e&&e<=n})(e.getHours(),this.min.getHours(),this.max.getHours())},l.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.IntlService])],l));function l(e){this.intl=e}t.DayPeriodService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return p(1e3+e-t)}function a(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:d.setMilliseconds(e,n)}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),p=function(e){return e%1e3},u=a(0),h=a(999),l=(m.prototype.apply=function(e,t){return d.setMilliseconds(e,t.getMilliseconds())},m.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=d.setMilliseconds(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=n,this.max=a,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return p(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return[u(e,n),h(t,n)]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},m.prototype.divideByStep=function(e){return i(e.getMilliseconds(),this.min.getMilliseconds())/this.step},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setMilliseconds(this.max,this.lastMillisecond(e)))},m.prototype.lastMillisecond=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMilliseconds(),t.getMilliseconds()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.insertUndividedMax=!1}t.MillisecondsService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return p(60+e-t)}function a(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:d.setSeconds(e,n)}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),p=function(e){return e%60},u=a(0),h=a(59),l=(m.prototype.apply=function(e,t){return d.setSeconds(e,t.getSeconds())},m.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=d.setSeconds(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=a,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return p(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return[u(e,n),h(t,n)]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},m.prototype.divideByStep=function(e){return i(e.getSeconds(),this.min.getSeconds())/this.step},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setSeconds(this.max,this.lastSecond(e)))},m.prototype.lastSecond=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getSeconds(),t.getSeconds()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.insertUndividedMax=!1}t.SecondsService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return p(60+e-t)}function a(n){return function(e,t){return t&&e.getHours()!==t.getHours()?d.setMinutes(e,n):e}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),p=function(e){return e%60},u=a(0),h=a(59),l=(m.prototype.apply=function(e,t){return d.setMinutes(e,t.getMinutes())},m.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=d.setMinutes(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=a,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return p(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return[u(e,n),h(t,n)]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setMinutes(this.max,this.lastMinute(e)))},m.prototype.divideByStep=function(e){return i(e.getMinutes(),this.min.getMinutes())/this.step},m.prototype.lastMinute=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMinutes(),t.getMinutes()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.insertUndividedMax=!1}t.MinutesService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return p(24+e-t)}function a(n){return function(e,t){return t&&s.getDate(e).getTime()!==s.getDate(t).getTime()?d.setHours(e,n):e}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),p=function(e){return e%24},u=a(0),h=a(23),l=(m.prototype.apply=function(e,t){return d.setHours(e,t.getHours())},m.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,n=e.min,a=void 0===n?this.min:n,n=e.max,n=void 0===n?this.max:n,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){e=d.setHours(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=n,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return p(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return this.boundRange?[u(e,n),h(t,n)]:[e,t]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setHours(this.max,this.lastHour(e)))},m.prototype.divideByStep=function(e){return i(e.getHours(),this.min.getHours())/this.step},m.prototype.lastHour=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getHours(),t.getHours()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}t.HoursService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(26),r=n(2),s=n(45),l=n(8),c=n(42),d=n(46),p=n(65),u=n(64),h=n(63),m=n(62),g=n(61),v=n(20),f={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]}},y=((n={})[c.TIME_PART.dayperiod]=g.DayPeriodService,n[c.TIME_PART.hour]=p.HoursService,n[c.TIME_PART.minute]=u.MinutesService,n[c.TIME_PART.second]=h.SecondsService,n[c.TIME_PART.millisecond]=m.MillisecondsService,n),d=(Object.defineProperty(_.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),_.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(y[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],i=i[1];(this.service.isRangeChanged(a,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},_.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()})},_.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},_.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},_.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},_.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))},_.prototype.handleItemClick=function(e){var e=v.closestInScope(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},_.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},_.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},_.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);if(t===n&&e<2)return i;t=n<t;return t&&e>=this.bottomThreshold||!t&&e>this.topThreshold?this.virtualization.itemOffset(n+1):i},_.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},_.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},_.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},e=Object.assign({},t,e);return e.boundRange="hour"!==e.part.type,e},_.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},_.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;if(!t||!e)return!1;t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)];return t&&e&&t.text!==e.text},_.prototype.handleKeyDown=function(e){var t=(f[e.keyCode]||function(){return null})(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},_.prototype.bindEvents=function(){var t=this;this.scrollSubscription=this.virtualization.scroll$().pipe(a.debounceTime(100),a.map(function(e){return e.target.scrollTop}),a.map(function(e){return t.itemOffset(e)}),a.map(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])});var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},i.__decorate([o.Input(),i.__metadata("design:type",Date)],_.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],_.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],_.prototype,"part",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],_.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],_.prototype,"value",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],_.prototype,"valueChange",void 0),i.__decorate([o.ViewChild(s.VirtualizationComponent,{static:!0}),i.__metadata("design:type",s.VirtualizationComponent)],_.prototype,"virtualization",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],_.prototype,"tabIndex",null),i.__decorate([o.HostBinding("class.k-time-list"),i.__metadata("design:type",Boolean)],_.prototype,"componentClass",void 0),i.__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 '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Injector,d.TimePickerDOMService,o.Renderer2,o.NgZone])],_));function _(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=r.cloneDate(l.MIDNIGHT_DATE),this.max=r.cloneDate(l.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=[]}t.TimeListComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(12),s=n(40),l=n(17),c=n(86),d=n(84),p=n(88),u=n(49),h=n(87),m=n(83),n=n(6),c=[p.DateRangeComponent,u.DateRangePopupComponent,h.DateRangePopupTemplateDirective,m.DateRangeSelectionDirective,d.DateRangeStartInputDirective,c.DateRangeEndInputDirective],n=[s.MultiViewCalendarModule,l.DateInputModule,r.PopupModule,n.EventsModule],n=i.__decorate([a.NgModule({declarations:[c],exports:[c],imports:[o.CommonModule,n]})],g);function g(){}t.DateRangeModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(69),s=(i=n.DatePickerMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.DatePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-datepicker-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DatePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"toggle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.DatePickerMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(69),s=(i=n.DatePickerMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.DatePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoDatePickerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DatePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(92),r=n(11),s=n(5),l=n(12),c=n(41),d=n(39),p=n(17),u=n(6),h=n(70),m=n(68),g=n(48),n=n(19),g=i.__decorate([a.NgModule({declarations:[o.DatePickerComponent,m.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective],exports:[o.DatePickerComponent,m.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective,d.TemplatesModule],imports:[r.CommonModule,p.DateInputModule,c.CalendarModule,s.IntlModule,l.PopupModule,d.TemplatesModule,u.EventsModule],providers:[{provide:n.TOUCH_ENABLED,useValue:g.touchEnabled}]})],v);function v(){}t.DatePickerModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(73),s=(i=n.DateInputMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.DateInputMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-dateinput-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DateInputCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"decrement",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"increment",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.DateInputMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(73),s=(i=n.DateInputMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.DateInputMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoDateInputLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DateInputLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(41),n=n(40),n=i.__decorate([a.NgModule({exports:[o.CalendarModule,n.MultiViewCalendarModule],imports:[o.CalendarModule,n.MultiViewCalendarModule]})],r);function r(){}t.CalendarsModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),n=[n(45).VirtualizationComponent],o=i.__decorate([a.NgModule({declarations:[n],exports:[n],imports:[o.CommonModule]})],r);function r(){}t.VirtualizationModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(78),s=(i=n.CalendarMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.CalendarMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-calendar-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.CalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.CalendarMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(78),s=(i=n.CalendarMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.CalendarMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoCalendarLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.CalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(80),s=(i=n.Messages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.MultiViewCalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(108),s=n(96),l=n(107),n=n(6),n=i.__decorate([a.NgModule({declarations:[r.KForOf,s.HeaderComponent,l.ViewComponent],exports:[r.KForOf,s.HeaderComponent,l.ViewComponent],imports:[o.CommonModule,n.EventsModule]})],c);function c(){}t.CalendarCommonModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(9),s=n(18),a=n(37),l=n(13),c=n(2),d=n(3),a=(Object.defineProperty(p.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(p.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(p.prototype,"calendarRange",{get:function(){return this.selectionRange||l.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=d.either(e.min,n.min),n.max=d.either(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){c.isEqual(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),r.fromEvent(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},p.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},p.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},p.prototype.isEqualCalendarRange=function(e){return d.isEqualRange(this.calendar.selectionRange,e)},p.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(d.clampRange(t))},p.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",e=n?d.clampRange(e):this.updateRange(e);d.isEqualRange(t.selectionRange,e)||(this.acceptAndEmit(e),t.setActiveRangeEnd(i),t.setRange(e))},p.prototype.handleHover=function(e){var t,n,i;this.hasCompleteRange()||(t=(i=this.calendarRange).start,n=i.end,i=this.calendar.activeRangeEnd,(t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e)))},p.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||l.EMPTY_SELECTIONRANGE,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},p.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},p.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},p.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},p.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},p.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"autoCorrectOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],p.prototype,"selectionRange",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],p.prototype,"activeRangeEnd",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],p.prototype,"activeRangeEndChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],p.prototype,"selectionRangeChange",void 0),i.__decorate([o.Directive({selector:"[kendoDateRangeSelection]"}),i.__param(4,o.Optional()),i.__metadata("design:paramtypes",[a.MultiViewCalendarComponent,o.ChangeDetectorRef,o.ElementRef,o.Renderer2,s.DateRangeService])],p));function p(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new o.EventEmitter,this.selectionRangeChange=new o.EventEmitter,this.calendarSubscriptions=new r.Subscription,this.dateRangeService=this.dateRangeService||new s.DateRangeService,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}t.DateRangeSelectionDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),a=n(0),r=n(2),s=n(44),l=n(85),c=n(18),d=n(13),p=n(3),a=(o=l.DateRangeInput,i.__extends(u,o),u.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),o.prototype.init.call(this)},u.prototype.ngOnDestroy=function(){o.prototype.destroy.call(this)},u.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!p.isInRange(e,i,n))return null;n=(this.rangeService.selectionRange||d.EMPTY_SELECTIONRANGE).end;return this.autoCorrectOn===t&&n&&n<e?p.clampRange(e):{start:r.cloneDate(e),end:n}},u.prototype.updateInputValue=function(e){var t=(e||d.EMPTY_SELECTIONRANGE).start,n=this.dateInput,e=n.min,n=n.max;!r.isEqual(this.dateInput.value,t)&&p.isInRange(t,e,n)&&(this.dateInput.writeValue(r.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],u.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],u.prototype,"navigateCalendarOnFocus",void 0),i.__decorate([a.Directive({selector:"[kendoDateRangeStartInput]"}),i.__metadata("design:paramtypes",[c.DateRangeService,s.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],u));function u(e,t,n,i,a){a=o.call(this,"start",e,t,n,i,a)||this;return a.rangeService=e,a.dateInput=t,a.navigateCalendarOnFocus=!1,a}t.DateRangeStartInputDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(6),r=n(9),o=n(26),s=n(7),n=(Object.defineProperty(l.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return s.isPresent(e)&&s.isPresent(e.calendar)},enumerable:!0,configurable:!0}),l.prototype.init=function(){var t=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(o.filter(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),r.fromEvent(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),r.fromEvent(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},l.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},l.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()},l.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new r.Subscription},l.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},l.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()}))})})},l.prototype.updateRange=function(e,t){t=this.getRange(e,t);t&&(this.focusActiveDate(),this.dateRangeService.setRange(t))},l.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===a.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===a.Keys.ArrowDown&&this.dateRangeService.activatePopup()},l.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(i.cloneDate(this.input.value))},l.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t.querySelector(".k-dateinput-wrap"),"k-state-focused")},l);function l(e,t,n,i,a,o){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=o,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new r.Subscription,this.subscriptions=new r.Subscription}t.DateRangeInput=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),a=n(0),r=n(2),s=n(44),l=n(85),c=n(18),d=n(13),p=n(3),u=n(7),a=(o=l.DateRangeInput,i.__extends(h,o),h.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),o.prototype.init.call(this)},h.prototype.ngOnDestroy=function(){o.prototype.destroy.call(this)},h.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!p.isInRange(e,i,n))return null;n=(this.rangeService.selectionRange||d.EMPTY_SELECTIONRANGE).start;return this.autoCorrectOn===t&&u.isPresent(e)&&e<n?p.clampRange(e):{start:n,end:r.cloneDate(e)}},h.prototype.updateInputValue=function(e){var t=(e||d.EMPTY_SELECTIONRANGE).end,n=this.dateInput,e=n.min,n=n.max;!r.isEqual(this.dateInput.value,t)&&p.isInRange(t,e,n)&&(this.dateInput.writeValue(r.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],h.prototype,"navigateCalendarOnFocus",void 0),i.__decorate([a.Directive({selector:"[kendoDateRangeEndInput]"}),i.__metadata("design:paramtypes",[c.DateRangeService,s.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],h));function h(e,t,n,i,a){a=o.call(this,"end",e,t,n,i,a)||this;return a.rangeService=e,a.dateInput=t,a.navigateCalendarOnFocus=!1,a}t.DateRangeEndInputDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoDateRangePopupTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.DateRangePopupTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(23),r=n(22),s=n(49),n=n(18),i=(Object.defineProperty(l.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!0,configurable:!0}),l.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},l.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([a.ContentChildren(s.DateRangePopupComponent),i.__metadata("design:type",a.QueryList)],l.prototype,"contentPopup",void 0),i.__decorate([a.Component({providers:[n.DateRangeService],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),i.__metadata("design:paramtypes",[])],l));function l(){this.showDefault=!1,o.validatePackage(r.packageMetadata)}t.DateRangeComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),d=n(0),o=n(24),p=n(9),r=n(26),u=n(2),s=n(12),l=n(5),h=n(6),c=n(4),m=n(23),g=n(22),v=n(15),f=n(21),y=n(7),_=n(3),b=n(25),C=n(29),D=n(28),w=n(91),k=n(42),T=n(8),S=n(19),E=n(36),I=n(35),M=n(34),O=n(33),V=n(32),R=n(31),x=n(30),P=n(43),A=new RegExp(k.TIME_PART.hour+"|"+k.TIME_PART.minute+"|"+k.TIME_PART.second+"|"+k.TIME_PART.dayperiod+"|literal"),N="date",f=(i=L,Object.defineProperty(L.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(L.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(L.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"min",{get:function(){return this._min},set:function(e){y.isPresent(e)&&(this._min=u.cloneDate(e),this.calendarMin=u.getDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"max",{get:function(){return this._max},set:function(e){y.isPresent(e)&&(this._max=u.cloneDate(e),this.calendarMax=_.lastMillisecondOfDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isOpen",{get:function(){return y.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),this._isActive=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||N,this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return y.isPresent(this.calendar)||y.isPresent(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(y.isPresent(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),L.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(r.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))),_.isWindowAvailable()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return p.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))}))},L.prototype.ngOnChanges=function(e){(y.isPresent(e.min)||y.isPresent(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?C.minValidator(this.min):_.noop,this.maxValidateFn=this.rangeValidation?D.maxValidator(this.max):_.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?w.disabledDatesValidator(this.disabledDatesService.isDateDisabled):_.noop,this.incompleteValidator=this.incompleteDateValidation?P.incompleteDateValidator():_.noop,this.onValidatorChange())},L.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},L.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},L.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},L.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((y.isPresent(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},L.prototype.writeValue=function(e){this.value=e},L.prototype.registerOnChange=function(e){this.onControlChange=e},L.prototype.registerOnTouched=function(e){this.onControlTouched=e},L.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},L.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},L.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},L.prototype.isEmpty=function(){return!y.isPresent(this.value)&&this.input.isEmpty()},L.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||h.hasObservers(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},L.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,h.hasObservers(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},L.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.host.nativeElement.classList.contains("ng-untouched")||h.hasObservers(this.onBlur)||this.isOpen&&h.hasObservers(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},L.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())},L.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},L.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=_.mergeDateAndTime(this.calendar.value,this.timeSelector.current),t=!u.isEqual(this.value,e)||h.hasObservers(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},L.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=h.hasObservers(this.close),this.run(e,function(){return t.togglePopup(!1)}))},L.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},L.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},L.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&h.Keys.ArrowUp:case h.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&h.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&h.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&h.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&y.isPresent(this.calendarValue)&&h.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},L.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=y.isPresent(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==h.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},L.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===h.Keys.Tab&&e&&this.input.focus()},L.prototype.preventMouseDown=function(e){e.preventDefault()},L.prototype.verifyValue=function(e){if(d.isDevMode()&&y.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.")},L.prototype.verifyMinMaxRange=function(){if(d.isDevMode()&&!_.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/.")},L.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},L.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},L.prototype.timeFormatPartFilter=function(e,t,n){t=1<=t&&n[t-1];return t&&"literal"===e.type?A.test(t.type):A.test(e.type)},L.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new b.PreventableEvent,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus()))},L.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},L.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()})},L.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},L.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)))},L.prototype.focusTargetInComponent=function(e){if(!y.isPresent(e))return!1;var t=e.relatedTarget||document.activeElement,e=y.isPresent(this.popupRef)&&this.popupRef.popupElement.contains(t),t=this.wrapper.nativeElement.contains(t);return e||t},L.prototype.setTimeSelectorMinMax=function(e){var t=y.isPresent(e)&&u.isEqual(u.getDate(e),u.getDate(this.min));this.timeSelectorMin=u.cloneDate(t?this.min:T.MIN_TIME);e=y.isPresent(e)&&u.isEqual(u.getDate(e),u.getDate(this.max));this.timeSelectorMax=u.cloneDate(e?this.max:T.MAX_TIME)},L.prototype.setCalendarValue=function(e){var t=y.isPresent(e)&&_.isInRange(e,this.calendarMin,this.calendarMax);this.calendarValue=t?u.getDate(e):null},L.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},L.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},L.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},a.__decorate([d.HostBinding("class.k-widget"),d.HostBinding("class.k-datetimepicker"),a.__metadata("design:type",Boolean)],L.prototype,"hostClasses",void 0),a.__decorate([d.ViewChild("wrapper",{static:!0}),a.__metadata("design:type",d.ElementRef)],L.prototype,"wrapper",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],L.prototype,"value",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"format",null),a.__decorate([d.Input(),a.__metadata("design:type",Number)],L.prototype,"twoDigitYearMax",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],L.prototype,"tabindex",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"disabledDates",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],L.prototype,"popupSettings",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],L.prototype,"focusableId",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],L.prototype,"title",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"disabled",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"readonly",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"readOnlyInput",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"cancelButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],L.prototype,"formatPlaceholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],L.prototype,"placeholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],L.prototype,"steps",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],L.prototype,"focusedDate",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],L.prototype,"calendarType",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"animateCalendarNavigation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"weekNumber",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],L.prototype,"min",null),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],L.prototype,"max",null),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"rangeValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"disabledDatesValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],L.prototype,"incompleteDateValidation",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],L.prototype,"valueChange",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],L.prototype,"open",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],L.prototype,"close",void 0),a.__decorate([d.Output("focus"),a.__metadata("design:type",d.EventEmitter)],L.prototype,"onFocus",void 0),a.__decorate([d.Output("blur"),a.__metadata("design:type",d.EventEmitter)],L.prototype,"onBlur",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],L.prototype,"defaultTab",null),a.__decorate([d.ContentChild(E.CellTemplateDirective,{static:!1}),a.__metadata("design:type",E.CellTemplateDirective)],L.prototype,"cellTemplate",void 0),a.__decorate([d.ContentChild(I.MonthCellTemplateDirective,{static:!1}),a.__metadata("design:type",I.MonthCellTemplateDirective)],L.prototype,"monthCellTemplate",void 0),a.__decorate([d.ContentChild(M.YearCellTemplateDirective,{static:!1}),a.__metadata("design:type",M.YearCellTemplateDirective)],L.prototype,"yearCellTemplate",void 0),a.__decorate([d.ContentChild(O.DecadeCellTemplateDirective,{static:!1}),a.__metadata("design:type",O.DecadeCellTemplateDirective)],L.prototype,"decadeCellTemplate",void 0),a.__decorate([d.ContentChild(V.CenturyCellTemplateDirective,{static:!1}),a.__metadata("design:type",V.CenturyCellTemplateDirective)],L.prototype,"centuryCellTemplate",void 0),a.__decorate([d.ContentChild(R.WeekNumberCellTemplateDirective,{static:!1}),a.__metadata("design:type",R.WeekNumberCellTemplateDirective)],L.prototype,"weekNumberTemplate",void 0),a.__decorate([d.ContentChild(x.HeaderTitleTemplateDirective,{static:!1}),a.__metadata("design:type",x.HeaderTitleTemplateDirective)],L.prototype,"headerTitleTemplate",void 0),a.__decorate([d.ViewChild("container",{read:d.ViewContainerRef,static:!0}),a.__metadata("design:type",d.ViewContainerRef)],L.prototype,"container",void 0),a.__decorate([d.ViewChild("popupTemplate",{read:d.TemplateRef,static:!0}),a.__metadata("design:type",d.TemplateRef)],L.prototype,"popupTemplate",void 0),i=a.__decorate([d.Component({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:d.ChangeDetectionStrategy.OnPush,providers:[v.PickerService,c.LocalizationService,f.DisabledDatesService,{provide:c.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:o.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:h.KendoInput,useExisting:d.forwardRef(function(){return i})}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <span\n #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n </kendo-dateinput>\n <span class="k-select"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-link k-link-date">\n <span\n class="k-icon"\n [class.k-i-calendar]="activeTab === \'date\'"\n [class.k-i-clock]="activeTab === \'time\'"\n >\n </span>\n </span>\n </span>\n </span>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-date-tab"\n [class.k-state-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-tab"\n [class.k-state-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-time-accept k-button k-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n '}),a.__param(6,d.Inject(S.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[s.PopupService,l.IntlService,d.ChangeDetectorRef,v.PickerService,d.NgZone,d.ElementRef,Boolean,c.LocalizationService,f.DisabledDatesService,d.Renderer2])],L));function L(e,t,n,i,a,o,r,s,l,c){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.host=o,this.touchEnabled=r,this.localization=s,this.disabledDatesService=l,this.renderer=c,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+h.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 d.EventEmitter,this.open=new d.EventEmitter,this.close=new d.EventEmitter,this.onFocus=new d.EventEmitter,this.onBlur=new d.EventEmitter,this.activeTab=N,this.timeSelectorFormat="t",this.timeSelectorMin=u.cloneDate(T.MIN_TIME),this.timeSelectorMax=u.cloneDate(T.MAX_TIME),this.calendarValue=null,this.calendarMin=u.cloneDate(T.MIN_DATE),this.calendarMax=_.lastMillisecondOfDate(T.MAX_DATE),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=N,this._min=_.mergeDateAndTime(T.MIN_DATE,T.MIN_TIME),this._max=_.mergeDateAndTime(T.MAX_DATE,T.MAX_TIME),this._isActive=!1,this.onControlTouched=_.noop,this.onControlChange=_.noop,this.onValidatorChange=_.noop,this.minValidateFn=_.noop,this.maxValidateFn=_.noop,this.disabledDatesValidateFn=_.noop,this.incompleteValidator=_.noop,this.subscriptions=new p.Subscription,m.validatePackage(g.packageMetadata)}t.DateTimePickerComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),d=n(0),o=n(24),r=n(4),s=n(12),p=n(2),u=n(6),h=n(23),m=n(22),g=n(8),l=n(5),c=n(15),v=n(7),f=n(42),y=n(25),_=n(3),b=n(109),C=n(19),D=n(9),w=n(43),k=new RegExp(f.TIME_PART.hour+"|"+f.TIME_PART.minute+"|"+f.TIME_PART.second+"|"+f.TIME_PART.millisecond+"|"+f.TIME_PART.dayperiod+"|literal"),l=(i=T,Object.defineProperty(T.prototype,"min",{get:function(){return this._min},set:function(e){this._min=p.cloneDate(e||g.MIN_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"max",{get:function(){return this._max},set:function(e){this._max=p.cloneDate(e||g.MAX_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=p.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&u.hasObservers(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),T.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},T.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.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},T.prototype.ngOnChanges=function(e){(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?b.timeRangeValidator(this.min,this.max):_.noop,this.incompleteValidator=this.incompleteDateValidation?w.incompleteDateValidator():_.noop,this.onValidatorChange()),e.format&&this.verifyFormat()},T.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()},T.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e!==u.Keys.Escape?t&&(e===u.Keys.ArrowUp&&(this.show=!1),e!==u.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},T.prototype.writeValue=function(e){this.verifyValue(e),this.value=p.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},T.prototype.registerOnChange=function(e){this.onControlChange=e},T.prototype.registerOnTouched=function(e){this.onControlTouched=e},T.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},T.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},T.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},T.prototype.focus=function(){this.input.focus()},T.prototype.blur=function(){(this.timeSelector||this.input).blur()},T.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(T.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),T.prototype.handleChange=function(e){var t=this;if(p.isEqual(this.value,e))return this.focusInput(),void(this.show=!1);this.value=p.cloneDate(e),this.zone.run(function(){t.focusInput(),t.show=!1,t.onControlChange(p.cloneDate(e)),t.valueChange.emit(p.cloneDate(e))})},T.prototype.handleReject=function(){this.show=!1},T.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},T.prototype.handleMousedown=function(e){e.preventDefault()},T.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(T.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),T.prototype.normalizeTime=function(e){return _.setTime(g.MIDNIGHT_DATE,e)},T.prototype.mergeTime=function(e){return this.value&&e?_.setTime(this.value,e):e},T.prototype.togglePopup=function(e){var t=new y.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},T.prototype._toggle=function(e){var t=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},T.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},T.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())},T.prototype.verifyValue=function(e){if(d.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.")},T.prototype.verifyFormat=function(){if(d.isDevMode()&&this.intl.splitDateFormat(this.format).some(function(e){return!k.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")},T.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),_.isWindowAvailable()&&(this.windowBlurSubscription=D.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},T.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},T.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,u.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},T.prototype.handleBlur=function(e){var t=this,e=e&&v.currentFocusTarget(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(u.hasObservers(this.onBlur)||this.show&&u.hasObservers(this.close)||v.requiresZoneOnBlur(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},T.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},T.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},a.__decorate([d.ViewChild("container",{read:d.ViewContainerRef,static:!1}),a.__metadata("design:type",d.ViewContainerRef)],T.prototype,"container",void 0),a.__decorate([d.ViewChild("popupTemplate",{static:!1}),a.__metadata("design:type",d.TemplateRef)],T.prototype,"popupTemplate",void 0),a.__decorate([d.ViewChild("wrapper",{static:!1}),a.__metadata("design:type",d.ElementRef)],T.prototype,"wrapper",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"focusableId",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"disabled",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"readonly",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"readOnlyInput",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"format",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],T.prototype,"formatPlaceholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"placeholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],T.prototype,"min",null),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],T.prototype,"max",null),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"incompleteDateValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"cancelButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"nowButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],T.prototype,"steps",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],T.prototype,"popupSettings",null),a.__decorate([d.Input(),a.__metadata("design:type",Number)],T.prototype,"tabindex",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],T.prototype,"tabIndex",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"title",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"rangeValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],T.prototype,"value",null),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],T.prototype,"valueChange",void 0),a.__decorate([d.Output("focus"),a.__metadata("design:type",d.EventEmitter)],T.prototype,"onFocus",void 0),a.__decorate([d.Output("blur"),a.__metadata("design:type",d.EventEmitter)],T.prototype,"onBlur",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],T.prototype,"open",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],T.prototype,"close",void 0),a.__decorate([d.HostBinding("class.k-widget"),d.HostBinding("class.k-timepicker"),a.__metadata("design:type",Boolean)],T.prototype,"wrapperClasses",void 0),a.__decorate([d.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],T.prototype,"disabledClass",null),i=a.__decorate([d.Component({changeDetection:d.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:u.KendoInput,useExisting:d.forwardRef(function(){return i})},r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.timepicker"},c.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 <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-clock"></span>\n </span>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n </span>\n <ng-container #container></ng-container>\n '}),a.__param(9,d.Optional()),a.__param(9,d.Inject(C.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[d.NgZone,r.LocalizationService,d.ChangeDetectorRef,s.PopupService,d.ElementRef,d.Renderer2,d.Injector,c.PickerService,l.IntlService,Boolean])],T));function T(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=o,this.injector=r,this.pickerService=s,this.intl=l,this.touchEnabled=c,this.focusableId="k-"+u.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 d.EventEmitter,this.onFocus=new d.EventEmitter,this.onBlur=new d.EventEmitter,this.open=new d.EventEmitter,this.close=new d.EventEmitter,this.wrapperClasses=!0,this.popupUID=u.guid(),this.onControlChange=_.noop,this.onControlTouched=_.noop,this.onValidatorChange=_.noop,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=_.noop,this.incompleteValidator=_.noop,this._min=p.cloneDate(g.MIN_TIME),this._max=p.cloneDate(g.MAX_TIME),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],h.validatePackage(m.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)))}t.TimePickerComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disabledDatesValidator=function(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),d=n(0),o=n(24),r=n(4),s=n(12),p=n(2),u=n(6),h=n(23),m=n(22),g=n(8),l=n(29),c=n(28),v=n(25),f=n(10),y=n(36),_=n(35),b=n(34),C=n(33),D=n(32),w=n(31),k=n(30),T=n(50),S=n(15),E=n(21),I=n(3),M=n(19),O=n(7),V=n(9),R=n(43),x=n(91),E=(i=P,Object.defineProperty(P.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=p.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&u.hasObservers(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),P.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},P.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.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},P.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?l.minValidator(this.min):I.noop,this.maxValidateFn=this.rangeValidation?c.maxValidator(this.max):I.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?x.disabledDatesValidator(this.disabledDatesService.isDateDisabled):I.noop,this.incompleteValidator=this.incompleteDateValidation?R.incompleteDateValidator():I.noop,this.onValidatorChange())},P.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(P.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),P.prototype.writeValue=function(e){this.verifyValue(e),this.value=p.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},P.prototype.registerOnChange=function(e){this.onControlChange=e},P.prototype.registerOnTouched=function(e){this.onControlTouched=e},P.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},P.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},P.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},P.prototype.focus=function(){this.input.focus()},P.prototype.blur=function(){(this.calendar||this.input).blur()},P.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},P.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},P.prototype.handleMousedown=function(e){e.preventDefault()},P.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(p.cloneDate(e)),this.valueChange.emit(p.cloneDate(e))},P.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(P.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),P.prototype.mergeTime=function(e){return this.value&&e?I.setTime(e,this.value):e},P.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,a=e.target;i===u.Keys.Escape&&(this.show=!1),t&&(i!==u.Keys.ArrowDown||this.show||(this.show=!0),i===u.Keys.ArrowUp&&(this.show=!1)),i===u.Keys.Enter&&a.classList.contains("k-calendar")&&e.preventDefault(),i===u.Keys.Tab&&this.show&&this.calendar.isActive&&I.isTabExitingCalendar(this.calendarType,a,n)&&(this.input.focus(),this.show=!1)},P.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())},P.prototype._toggle=function(e){var t=this;e!==this._show&&((this._show=e)?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},P.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},P.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())},P.prototype.verifySettings=function(){if(d.isDevMode()&&!I.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.")},P.prototype.verifyValue=function(e){if(d.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.")},P.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),I.isWindowAvailable()&&(this.windowBlurSubscription=V.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},P.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,u.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},P.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},P.prototype.handleBlur=function(e){var t=this,e=e&&O.currentFocusTarget(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(u.hasObservers(this.onBlur)||this.show&&u.hasObservers(this.close)||O.requiresZoneOnBlur(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},P.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},P.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},P.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},a.__decorate([d.ViewChild("container",{read:d.ViewContainerRef,static:!0}),a.__metadata("design:type",d.ViewContainerRef)],P.prototype,"container",void 0),a.__decorate([d.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",d.TemplateRef)],P.prototype,"popupTemplate",void 0),a.__decorate([d.ViewChild("wrapper",{static:!1}),a.__metadata("design:type",d.ElementRef)],P.prototype,"wrapper",void 0),a.__decorate([d.ContentChild(y.CellTemplateDirective,{static:!1}),a.__metadata("design:type",y.CellTemplateDirective)],P.prototype,"cellTemplate",void 0),a.__decorate([d.Input("cellTemplate"),a.__metadata("design:type",y.CellTemplateDirective),a.__metadata("design:paramtypes",[y.CellTemplateDirective])],P.prototype,"cellTemplateRef",null),a.__decorate([d.ContentChild(_.MonthCellTemplateDirective,{static:!1}),a.__metadata("design:type",_.MonthCellTemplateDirective)],P.prototype,"monthCellTemplate",void 0),a.__decorate([d.Input("monthCellTemplate"),a.__metadata("design:type",_.MonthCellTemplateDirective),a.__metadata("design:paramtypes",[_.MonthCellTemplateDirective])],P.prototype,"monthCellTemplateRef",null),a.__decorate([d.ContentChild(b.YearCellTemplateDirective,{static:!1}),a.__metadata("design:type",b.YearCellTemplateDirective)],P.prototype,"yearCellTemplate",void 0),a.__decorate([d.Input("yearCellTemplate"),a.__metadata("design:type",b.YearCellTemplateDirective),a.__metadata("design:paramtypes",[b.YearCellTemplateDirective])],P.prototype,"yearCellTemplateRef",null),a.__decorate([d.ContentChild(C.DecadeCellTemplateDirective,{static:!1}),a.__metadata("design:type",C.DecadeCellTemplateDirective)],P.prototype,"decadeCellTemplate",void 0),a.__decorate([d.Input("decadeCellTemplate"),a.__metadata("design:type",C.DecadeCellTemplateDirective),a.__metadata("design:paramtypes",[C.DecadeCellTemplateDirective])],P.prototype,"decadeCellTemplateRef",null),a.__decorate([d.ContentChild(D.CenturyCellTemplateDirective,{static:!1}),a.__metadata("design:type",D.CenturyCellTemplateDirective)],P.prototype,"centuryCellTemplate",void 0),a.__decorate([d.Input("centuryCellTemplate"),a.__metadata("design:type",D.CenturyCellTemplateDirective),a.__metadata("design:paramtypes",[D.CenturyCellTemplateDirective])],P.prototype,"centuryCellTemplateRef",null),a.__decorate([d.ContentChild(w.WeekNumberCellTemplateDirective,{static:!1}),a.__metadata("design:type",w.WeekNumberCellTemplateDirective)],P.prototype,"weekNumberTemplate",void 0),a.__decorate([d.Input("weekNumberTemplate"),a.__metadata("design:type",w.WeekNumberCellTemplateDirective),a.__metadata("design:paramtypes",[w.WeekNumberCellTemplateDirective])],P.prototype,"weekNumberTemplateRef",null),a.__decorate([d.ContentChild(k.HeaderTitleTemplateDirective,{static:!1}),a.__metadata("design:type",k.HeaderTitleTemplateDirective)],P.prototype,"headerTitleTemplate",void 0),a.__decorate([d.Input("headerTitleTemplate"),a.__metadata("design:type",k.HeaderTitleTemplateDirective),a.__metadata("design:paramtypes",[k.HeaderTitleTemplateDirective])],P.prototype,"headerTitleTemplateRef",null),a.__decorate([d.ContentChild(T.NavigationItemTemplateDirective,{static:!1}),a.__metadata("design:type",T.NavigationItemTemplateDirective)],P.prototype,"navigationItemTemplate",void 0),a.__decorate([d.Input("navigationItemTemplate"),a.__metadata("design:type",T.NavigationItemTemplateDirective),a.__metadata("design:paramtypes",[T.NavigationItemTemplateDirective])],P.prototype,"navigationItemTemplateRef",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"focusableId",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"activeView",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"bottomView",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"topView",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"calendarType",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"animateCalendarNavigation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readOnlyInput",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"navigation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],P.prototype,"min",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],P.prototype,"max",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"incompleteDateValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],P.prototype,"focusedDate",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],P.prototype,"value",null),a.__decorate([d.Input(),a.__metadata("design:type",Object)],P.prototype,"format",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number)],P.prototype,"twoDigitYearMax",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],P.prototype,"formatPlaceholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"placeholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"disabledDates",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"title",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"rangeValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabledDatesValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"weekNumber",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],P.prototype,"valueChange",void 0),a.__decorate([d.Output("focus"),a.__metadata("design:type",d.EventEmitter)],P.prototype,"onFocus",void 0),a.__decorate([d.Output("blur"),a.__metadata("design:type",d.EventEmitter)],P.prototype,"onBlur",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],P.prototype,"open",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],P.prototype,"close",void 0),a.__decorate([d.HostBinding("class.k-widget"),d.HostBinding("class.k-datepicker"),a.__metadata("design:type",Boolean)],P.prototype,"wrapperClasses",void 0),a.__decorate([d.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"disabledClass",null),i=a.__decorate([d.Component({changeDetection:d.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:u.KendoInput,useExisting:d.forwardRef(function(){return i})},r.LocalizationService,S.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 <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-calendar"></span>\n </span>\n </span>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n '}),a.__param(9,d.Optional()),a.__param(9,d.Inject(M.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[d.NgZone,r.LocalizationService,d.ChangeDetectorRef,s.PopupService,d.ElementRef,d.Renderer2,d.Injector,S.PickerService,E.DisabledDatesService,Boolean])],P));function P(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=o,this.injector=r,this.pickerService=s,this.disabledDatesService=l,this.touchEnabled=c,this.focusableId="k-"+u.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=p.cloneDate(g.MIN_DATE),this.max=p.cloneDate(g.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 d.EventEmitter,this.onFocus=new d.EventEmitter,this.onBlur=new d.EventEmitter,this.open=new d.EventEmitter,this.close=new d.EventEmitter,this.wrapperClasses=!0,this.popupUID=u.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=I.noop,this.onControlTouched=I.noop,this.onValidatorChange=I.noop,this.minValidateFn=I.noop,this.maxValidateFn=I.noop,this.disabledDatesValidateFn=I.noop,this.incompleteValidator=I.noop,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],h.validatePackage(m.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)))}t.DatePickerComponent=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(5),s=n(45),l=n(14),c=n(27),d=n(10),p=n(8),u=n(3),c=(Object.defineProperty(h.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),h.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))},h.prototype.ngOnChanges=function(e){var t,n,i,a,o;this.service=this.bus.service(this.activeView),this.service&&(this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=u.hasChange(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,i=u.hasChange(e,"activeView"),t=this.focusedDate,o=u.dateInRange(this.service.viewDate(t,this.max,this.minViewsToRender),this.min,this.max),a=this.service.total(this.min,this.max),n=this.total&&this.total!==a||!this.service.isInArray(t,this.dates),this.skip=this.service.skip(o,this.min),this.total=a,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),n&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),a=this.activeDate,o=t,a&&o&&a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()||(this.activeDate=r.cloneDate(t)),i=u.hasChange(e,"focusedDate")||i,(n||i||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(t,this.min)))},h.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},h.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},h.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},h.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},h.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},h.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},h.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},h.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},h.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},h.prototype.getScrollableHeight=function(){return this.activeView===d.CalendarViewEnum.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},h.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},h.prototype.getWeekNames=function(){var e=u.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},h.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],h.prototype,"cellTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],h.prototype,"weekNumberTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],h.prototype,"headerTitleTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],h.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],h.prototype,"cellUID",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],h.prototype,"focusedDate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],h.prototype,"isActive",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],h.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],h.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],h.prototype,"selectedDates",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],h.prototype,"weekNumber",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"cellClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"weekNumberCellClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"activeDateChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"todayButtonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"pageChange",void 0),i.__decorate([o.ViewChild(s.VirtualizationComponent,{static:!1}),i.__metadata("design:type",s.VirtualizationComponent)],h.prototype,"virtualization",void 0),i.__decorate([o.ViewChild("list",{static:!0}),i.__metadata("design:type",o.ElementRef)],h.prototype,"list",void 0),i.__decorate([o.HostBinding("class.k-vstack"),o.HostBinding("class.k-calendar-view"),i.__metadata("design:type",Boolean)],h.prototype,"getComponentClass",void 0),i.__decorate([o.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentMonthClass",null),i.__decorate([o.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentYearClass",null),i.__decorate([o.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentDecadeClass",null),i.__decorate([o.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentCenturyClass",null),i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\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,o.ChangeDetectorRef,a.IntlService,c.CalendarDOMService,o.Renderer2])],h));function h(e,t,n,i,a){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=a,this.isActive=!0,this.min=new Date(p.MIN_DATE),this.max=new Date(p.MAX_DATE),this.selectedDates=[],this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this.todayButtonClick=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}t.ViewListComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(5),r=n(14),s=n(27),l=n(10),c=n(45),d=n(8),p=n(2),u=n(3),h=n(20),a=(Object.defineProperty(m.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),m.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))},m.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=l.CalendarViewEnum[this.activeView],t=u.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)))},m.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},m.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},m.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},m.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},m.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},m.prototype.handleDateChange=function(e){var e=h.closestInScope(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(p.cloneDate(e)))},m.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},m.prototype.intlChange=function(){this.activeView===l.CalendarViewEnum.month&&this.cdr.markForCheck()},i.__decorate([o.Input(),i.__metadata("design:type",Number)],m.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"focusedDate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],m.prototype,"templateRef",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"pageChange",void 0),i.__decorate([o.ViewChild(c.VirtualizationComponent,{static:!1}),i.__metadata("design:type",c.VirtualizationComponent)],m.prototype,"virtualization",void 0),i.__decorate([o.ViewChild("list",{static:!0}),i.__metadata("design:type",o.ElementRef)],m.prototype,"list",void 0),i.__decorate([o.HostBinding("class.k-calendar-navigation"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],m.prototype,"getComponentClass",null),i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),i.__metadata("design:paramtypes",[r.BusViewService,s.CalendarDOMService,a.IntlService,o.ChangeDetectorRef,o.Renderer2])],m));function m(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(d.MIN_DATE),this.max=new Date(d.MAX_DATE),this.focusedDate=new Date,this.valueChange=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}t.NavigationComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),r=n(2),s=n(3),n=n(14),n=(o.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,e=e.selectedDates.slice();return o="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!r.isEqual(e,t)}):e.push(t),t):n.shiftKey?(n=(i=s.sortDates([o||t,t]))[0],i=i[1],e=this.bus.service(a).dateRange(n,i),t>e[0]?e[0]:s.last(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:o}},o.prototype.isDateSelected=function(e,t){return e.some(function(e){return r.isEqual(e,t)})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.BusViewService])],o));function o(e){this.bus=e}t.SelectionService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(4),r=n(5),s=n(2),l=n(10),c=n(14),d=n(8),p=n(3),u=n(21),h=n(9),u=(m.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)))},m.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())},m.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},m.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(p.dateInRange(p.getToday(),this.min,this.max)))},m.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},m.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},m.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},m.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)},m.prototype.setTodayAvailability=function(){var e=p.getToday(),t=p.isInRange(e,s.getDate(this.min),s.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()},i.__decorate([o.Input(),i.__metadata("design:type",Number)],m.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"currentDate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],m.prototype,"rangeLength",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],m.prototype,"templateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],m.prototype,"isPrevDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],m.prototype,"isNextDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],m.prototype,"showNavigationButtons",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"todayButtonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"prevButtonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"nextButtonClick",void 0),i.__decorate([o.HostBinding("class.k-calendar-header"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],m.prototype,"getComponentClass",void 0),i.__decorate([o.Component({selector:"kendo-calendar-header",template:'\n <span class="k-button k-flat k-title k-calendar-title" [class.k-state-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-flat k-icon-button k-prev-view"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-state-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-flat k-icon-button k-next-view"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-right"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[c.BusViewService,o.ChangeDetectorRef,a.LocalizationService,r.IntlService,u.DisabledDatesService])],m));function m(e,t,n,i,a){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=a,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(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 o.EventEmitter,this.prevButtonClick=new o.EventEmitter,this.nextButtonClick=new o.EventEmitter,this.getComponentClass=!0,this.subscriptions=new h.Subscription}t.HeaderComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(0),l=n(2),a=n(14),o=n(52),s=n(5),c=n(16),d=n(10),p=n(8),u=n(3),h=n(6),m=n(7),o=(Object.defineProperty(g.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=u.hasChange(e,"activeView"),e=0<this.views&&u.hasChange(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=l.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate)))},g.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},g.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},g.prototype.initService=function(){this.service=this.bus.service(this.activeView)},g.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},g.prototype.getCaptionTitle=function(e){return this.service.title(e)},g.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},g.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),o=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.Action.NextView?this.nextAnimationDate=l.cloneDate(this.dates[0]):this.prevAnimationDate=l.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",o+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")});var r=i.getBoundingClientRect(),s=parseFloat(getComputedStyle(n).columnGap),i=e===c.Action.NextView?"translateX(0)":"translateX(-"+(r.width+s)+"px)",s=e===c.Action.NextView?"translateX(-"+(r.width+s)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:i},{transform:s}],{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()})},g.prototype.navigate=function(e){this.animateNavigation&&h.isDocumentAvailable()&&m.isPresent(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),e=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(e)&&(this.dates=e),this.activeDate=l.cloneDate(this.dates[0]),this.focusedDate=l.cloneDate(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),l.cloneDate(t)},g.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},g.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},g.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},g.prototype.clampDate=function(e){return u.dateInRange(e,this.min,this.max)},g.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},g.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},g.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},g.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],g.prototype,"cellTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],g.prototype,"weekNumberTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],g.prototype,"activeRangeEnd",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],g.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],g.prototype,"cellUID",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],g.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],g.prototype,"isActive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],g.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],g.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],g.prototype,"selectionRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],g.prototype,"selectedDates",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],g.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],g.prototype,"showViewHeader",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],g.prototype,"animateNavigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],g.prototype,"weekNumber",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"cellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"weekNumberCellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"cellEnter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"cellLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.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)],g.prototype,"getComponentClass",void 0),i.__decorate([r.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentMonthClass",null),i.__decorate([r.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentYearClass",null),i.__decorate([r.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentDecadeClass",null),i.__decorate([r.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentCenturyClass",null),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,s.IntlService,o.WeekNamesService,r.ChangeDetectorRef,r.ElementRef,r.Renderer2])],g));function g(e,t,n,i,a,o){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=o,this.activeView=d.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))}t.HorizontalViewListComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return e?e.virtualization:null}var a=n(1),h=n(0),o=n(24),r=n(4),s=n(2),m=n(6),g=n(23),v=n(22),l=n(37),c=n(94),d=n(93),p=n(27),u=n(14),f=n(51),y=n(21),_=n(95),b=n(111),C=n(36),D=n(35),w=n(34),k=n(33),T=n(32),S=n(31),E=n(30),I=n(50),M=n(15),O=n(10),V=n(29),R=n(28),x=n(8),P=n(3),A=n(20),N=n(7),L=n(9),F="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return B})},t.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:h.forwardRef(function(){return B})},t.KENDO_INPUT_PROVIDER={provide:m.KendoInput,useExisting:h.forwardRef(function(){return B})};var B=(Object.defineProperty(j.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!s.isEqual(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||P.getToday(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(x.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(x.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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)});P.areDatesEqual(t,this.selectedDates)||(e=P.last(t),this.rangePivot=s.cloneDate(e),this.focusedDate=s.cloneDate(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"activeViewEnum",{get:function(){var e=O.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"bottomViewEnum",{get:function(){return O.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"topViewEnum",{get:function(){return O.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!0,configurable:!0}),j.prototype.ngOnInit=function(){var t=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(O.CalendarViewEnum[e])}),this.control=this.injector.get(o.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},j.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),P.hasExistingValue(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=P.dateInRange(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?V.minValidator(this.min):P.noop,this.maxValidateFn=this.rangeValidation?R.maxValidator(this.max):P.noop,this.onValidatorChange())},j.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},j.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(i(this.navigationView),i(this.monthView)))},j.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()}),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},j.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},j.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;N.isPresent(e)&&e.focus()},j.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;N.isPresent(e)&&e.blur()},j.prototype.containsElement=function(e){var t=this;return Boolean(A.closest(e,function(e){return e===t.element.nativeElement}))},j.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(s.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=P.dateInRange(e,this.min,this.max),this.detectChanges())},j.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=L.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},j.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},j.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||!P.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())},j.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},j.prototype.registerOnChange=function(e){this.onControlChange=e},j.prototype.registerOnTouched=function(e){this.onControlTouched=e},j.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},j.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},j.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},j.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case O.CalendarViewEnum.month:return this.monthCellTemplate||this.cellTemplate;case O.CalendarViewEnum.year:return this.yearCellTemplate;case O.CalendarViewEnum.decade:return this.decadeCellTemplate;case O.CalendarViewEnum.century:return this.centuryCellTemplate;default:return null}},j.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},j.prototype.emitNavigate=function(e){var t=O.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},j.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},j.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},j.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},j.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},j.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:P.last(e)})})},j.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()))},j.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},j.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},j.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},j.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+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.")}},j.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)))},j.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},j.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},j.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=s.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},j.prototype.handleKeydown=function(e){var t;"classic"===this.type&&this.multiViewCalendar.isHeaderActive||(t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),N.isPresent(this.pickerService)&&t&&e.altKey||(t=P.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),s.isEqual(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e)))},j.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},j.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},j.prototype.setAriaActivedescendant=function(){var e;N.isPresent(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))&&("classic"!==this.type?(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)):this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant"))},j.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(P.last(e)):e.map(function(e){return s.cloneDate(e)})},j.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"id",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],j.prototype,"focusedDate",null),a.__decorate([h.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],j.prototype,"min",null),a.__decorate([h.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],j.prototype,"max",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"rangeValidation",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"selection",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"value",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Number)],j.prototype,"tabindex",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],j.prototype,"tabIndex",null),a.__decorate([h.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"disabledDates",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"navigation",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"activeView",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"bottomView",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"topView",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"type",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"animateNavigation",void 0),a.__decorate([h.Input(),h.HostBinding("class.k-week-number"),a.__metadata("design:type",Boolean)],j.prototype,"weekNumber",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"activeViewChange",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"navigate",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"activeViewDateChange",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"valueChange",void 0),a.__decorate([h.ContentChild(C.CellTemplateDirective,{static:!0}),a.__metadata("design:type",C.CellTemplateDirective)],j.prototype,"cellTemplate",void 0),a.__decorate([h.Input("cellTemplate"),a.__metadata("design:type",C.CellTemplateDirective),a.__metadata("design:paramtypes",[C.CellTemplateDirective])],j.prototype,"cellTemplateRef",null),a.__decorate([h.ContentChild(D.MonthCellTemplateDirective,{static:!0}),a.__metadata("design:type",D.MonthCellTemplateDirective)],j.prototype,"monthCellTemplate",void 0),a.__decorate([h.Input("monthCellTemplate"),a.__metadata("design:type",D.MonthCellTemplateDirective),a.__metadata("design:paramtypes",[D.MonthCellTemplateDirective])],j.prototype,"monthCellTemplateRef",null),a.__decorate([h.ContentChild(w.YearCellTemplateDirective,{static:!0}),a.__metadata("design:type",w.YearCellTemplateDirective)],j.prototype,"yearCellTemplate",void 0),a.__decorate([h.Input("yearCellTemplate"),a.__metadata("design:type",w.YearCellTemplateDirective),a.__metadata("design:paramtypes",[w.YearCellTemplateDirective])],j.prototype,"yearCellTemplateRef",null),a.__decorate([h.ContentChild(k.DecadeCellTemplateDirective,{static:!0}),a.__metadata("design:type",k.DecadeCellTemplateDirective)],j.prototype,"decadeCellTemplate",void 0),a.__decorate([h.Input("decadeCellTemplate"),a.__metadata("design:type",k.DecadeCellTemplateDirective),a.__metadata("design:paramtypes",[k.DecadeCellTemplateDirective])],j.prototype,"decadeCellTemplateRef",null),a.__decorate([h.ContentChild(T.CenturyCellTemplateDirective,{static:!0}),a.__metadata("design:type",T.CenturyCellTemplateDirective)],j.prototype,"centuryCellTemplate",void 0),a.__decorate([h.Input("centuryCellTemplate"),a.__metadata("design:type",T.CenturyCellTemplateDirective),a.__metadata("design:paramtypes",[T.CenturyCellTemplateDirective])],j.prototype,"centuryCellTemplateRef",null),a.__decorate([h.ContentChild(S.WeekNumberCellTemplateDirective,{static:!0}),a.__metadata("design:type",S.WeekNumberCellTemplateDirective)],j.prototype,"weekNumberTemplate",void 0),a.__decorate([h.Input("weekNumberTemplate"),a.__metadata("design:type",S.WeekNumberCellTemplateDirective),a.__metadata("design:paramtypes",[S.WeekNumberCellTemplateDirective])],j.prototype,"weekNumberTemplateRef",null),a.__decorate([h.ContentChild(E.HeaderTitleTemplateDirective,{static:!0}),a.__metadata("design:type",E.HeaderTitleTemplateDirective)],j.prototype,"headerTitleTemplate",void 0),a.__decorate([h.Input("headerTitleTemplate"),a.__metadata("design:type",E.HeaderTitleTemplateDirective),a.__metadata("design:paramtypes",[E.HeaderTitleTemplateDirective])],j.prototype,"headerTitleTemplateRef",null),a.__decorate([h.ContentChild(I.NavigationItemTemplateDirective,{static:!0}),a.__metadata("design:type",I.NavigationItemTemplateDirective)],j.prototype,"navigationItemTemplate",void 0),a.__decorate([h.Input("navigationItemTemplate"),a.__metadata("design:type",I.NavigationItemTemplateDirective),a.__metadata("design:paramtypes",[I.NavigationItemTemplateDirective])],j.prototype,"navigationItemTemplateRef",null),a.__decorate([h.ViewChild(c.NavigationComponent,{static:!1}),a.__metadata("design:type",c.NavigationComponent)],j.prototype,"navigationView",void 0),a.__decorate([h.ViewChild(d.ViewListComponent,{static:!1}),a.__metadata("design:type",d.ViewListComponent)],j.prototype,"monthView",void 0),a.__decorate([h.ViewChild(l.MultiViewCalendarComponent,{static:!1}),a.__metadata("design:type",l.MultiViewCalendarComponent)],j.prototype,"multiViewCalendar",void 0),a.__decorate([h.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"widgetId",null),a.__decorate([h.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],j.prototype,"calendarTabIndex",null),a.__decorate([h.HostBinding("attr.aria-disabled"),h.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"ariaDisabled",null),a.__decorate([h.Component({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[u.BusViewService,t.CALENDAR_VALUE_ACCESSOR,t.CALENDAR_RANGE_VALIDATORS,t.KENDO_INPUT_PROVIDER,r.LocalizationService,y.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.calendar"},f.NavigationService,b.ScrollSyncService,_.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 '}),a.__param(12,h.Optional()),a.__metadata("design:paramtypes",[u.BusViewService,p.CalendarDOMService,h.ElementRef,f.NavigationService,h.Renderer2,h.ChangeDetectorRef,h.NgZone,h.Injector,b.ScrollSyncService,y.DisabledDatesService,r.LocalizationService,_.SelectionService,M.PickerService])],j));function j(e,t,n,i,a,o,r,s,l,c,d,p,u){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=o,this.ngZone=r,this.injector=s,this.scrollSyncService=l,this.disabledDatesService=c,this.localization=d,this.selectionService=p,this.pickerService=u,this.id=m.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=O.CalendarViewEnum[O.CalendarViewEnum.month],this.bottomView=O.CalendarViewEnum[O.CalendarViewEnum.month],this.topView=O.CalendarViewEnum[O.CalendarViewEnum.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=m.guid(),this.selectedDates=[],this._min=new Date(x.MIN_DATE),this._max=new Date(x.MAX_DATE),this._focusedDate=P.getToday(),this.onControlChange=P.noop,this.onControlTouched=P.noop,this.onValidatorChange=P.noop,this.minValidateFn=P.noop,this.maxValidateFn=P.noop,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,g.validatePackage(v.packageMetadata),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}t.CalendarComponent=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(57),s=(i=n.Messages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoDateTimePickerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(57),s=(i=n.Messages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-datetimepicker-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DateTimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-timeselector-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimeSelectorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-timepicker-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function a(e,t){return i(e,t)&&e.getSeconds()===t.getSeconds()}var o,r,s=n(2),n=n(42),n=[{type:n.TIME_PART.hour,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:n.TIME_PART.minute,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return i(e,t)?t.getMinutes():0}},{type:n.TIME_PART.second,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return a(e,t)?t.getSeconds():0}},{type:n.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return a(n=e,e=t)&&n.getMilliseconds()===e.getMilliseconds()?t.getMilliseconds():0;var n}}];t.generateGetters=(r=n,function(e){return r.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t}),t.generateSnappers=(o=n,function(n){return o.map(function(e){var i,a,o,t=n[e.type];return t?(i=e.getter,a=e.minGetter,o=t,function(e,t){var n=i(e),e=a(e,t),t=n-e;if(t<0)return e;t%=o;return n-t+(o/2<t?o:0)}):e.getter})}),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(i){return function(e,t){var n=s.cloneDate(e);return n.setHours.apply(n,i.map(function(e){return e(n,t)})),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}var a,o=n(1),l=n(0),r=n(4),s=n(5),c=n(2),d=n(6),p=n(8),u=n(66),h=n(46),m=n(3),g=n(103),v=n(15),f=n(20),y=n(7);(n=a=a||{})[n.Left=0]="Left",n[n.Right=1]="Right";Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"current",{get:function(){return this._current},set:function(e){this._current=m.timeInRange(this.snapTime(c.cloneDate(e||p.MIDNIGHT_DATE),this.min),this.min,this.max),l.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")}),0<=e)&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-state-focused"))},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cdr.markForCheck()})),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},_.prototype.ngOnChanges=function(e){this.init()},_.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},_.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},_.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},_.prototype.handleAccept=function(){this.handleChange(this.mergeValue(c.cloneDate(this.value||c.getDate(m.getNow())),this.current))},_.prototype.handleNow=function(){this.current=m.getNow(),this.handleChange(this.current),this.cdr.markForCheck()},_.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},_.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},_.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},_.prototype.handleBlur=function(e){var t=y.currentFocusTarget(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},_.prototype.containsElement=function(e){var t=this;return Boolean(f.closest(e,function(e){return e===t.element.nativeElement}))},_.prototype.partStep=function(e){return this.steps[e.type]||1},_.prototype.init=function(e){e&&!m.hasChange(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=g.valueMerger(g.generateGetters(this.dateFormatParts))),e&&!m.hasChange(e,"steps")||(this.snapTime=g.snapTime(g.generateSnappers(this.steps))),e&&!m.hasChange(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&m.isInTimeRange(m.getNow(),this.min,this.max)},_.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(i,[]).map(function(e){return t===a.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},_.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(c.cloneDate(e))},_.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},_.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},_.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=g.valueMerger(g.generateGetters(this.dateFormatParts)),this.cdr.markForCheck()},_.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)))})},_.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,e=-1!==[d.Keys.ArrowLeft,d.Keys.ArrowRight].indexOf(t);y.isPresent(this.pickerService)&&e&&n||(t!==d.Keys.Enter||this.hasActiveButton()?t!==d.Keys.ArrowLeft&&t!==d.Keys.ArrowRight||this.focusList(t===d.Keys.ArrowLeft?a.Left:a.Right):this.handleAccept())},_.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},_.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},_.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},o.__decorate([l.ViewChild("accept",{static:!1}),o.__metadata("design:type",l.ElementRef)],_.prototype,"accept",void 0),o.__decorate([l.ViewChild("cancel",{static:!1}),o.__metadata("design:type",l.ElementRef)],_.prototype,"cancel",void 0),o.__decorate([l.ViewChild("now",{static:!1}),o.__metadata("design:type",l.ElementRef)],_.prototype,"now",void 0),o.__decorate([l.ViewChildren(u.TimeListComponent),o.__metadata("design:type",l.QueryList)],_.prototype,"timeLists",void 0),o.__decorate([l.ViewChildren("listWrapper"),o.__metadata("design:type",l.QueryList)],_.prototype,"timeListWrappers",void 0),o.__decorate([l.HostBinding("class.k-timeselector"),o.__metadata("design:type",Boolean)],_.prototype,"componentClass",void 0),o.__decorate([l.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"format",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Date)],_.prototype,"min",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Date)],_.prototype,"max",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"cancelButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"setButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"nowButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],_.prototype,"steps",null),o.__decorate([l.Input(),o.__metadata("design:type",Date)],_.prototype,"value",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"valueChange",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"valueReject",void 0),v=o.__decorate([l.Component({changeDetection:l.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 class="k-button k-flat k-time-now" type="button"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel" type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-time-accept k-button k-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n '}),o.__param(7,l.Optional()),o.__metadata("design:paramtypes",[r.LocalizationService,l.ChangeDetectorRef,l.ElementRef,s.IntlService,h.TimePickerDOMService,l.NgZone,l.Renderer2,v.PickerService])],_);function _(e,t,n,i,a,o,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=o,this.renderer=r,this.pickerService=s,this.componentClass=!0,this.format="t",this.min=c.cloneDate(p.MIN_TIME),this.max=c.cloneDate(p.MAX_TIME),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new l.EventEmitter,this.valueReject=new l.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}t.TimeSelectorComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(75),r=n(17),s=n(71),l=n(67),c=n(47),n=n(58),n=[o.CalendarsModule,r.DateInputModule,s.DatePickerModule,c.TimePickerModule,l.DateRangeModule,n.DateTimePickerModule],n=i.__decorate([a.NgModule({exports:n,imports:n})],d);function d(){}t.DateInputsModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(80),s=(i=n.Messages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-multiviewcalendar-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.MultiViewCalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=n(0),l=n(9),a=n(10),o=n(14),r=n(21),c=n(5),d=n(2),p=n(3),u=n(20),h=n(7),r=(Object.defineProperty(m.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===a.CalendarViewEnum.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},m.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))},m.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},m.prototype.isHorizontal=function(){return"horizontal"===this.direction},m.prototype.isMonthView=function(){return this.activeView===a.CalendarViewEnum.month},m.prototype.shouldRenderCellContent=function(e){return h.isPresent(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},m.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},m.prototype.getWeekNumber=function(e){return this.weekNumber?d.weekInYear(e,this.intl.firstDay()):null},m.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;e=d.weekInYear(t.value,this.intl.firstDay()).toString();return{formattedValue:e,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:e,value:d.cloneDate(t.value)}},m.prototype.getStyles=function(e){var t=e.isRangeEnd,n=e.isRangeStart,i="end"===this.activeRangeEnd&&t,a="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":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-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth})},m.prototype.tableCellIndex=function(e,t){return e+":"+t},m.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},m.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},m.prototype.updateData=function(){var e=p.last(this.selectedDates)||p.getToday(),e=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:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},m.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},m.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},m.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)))},m.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(n=i.getAttribute("data-cell-index"),(t=this.cellByIndex(n)).isDisabled||(i=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:t.value,modifiers:{ctrlKey:i,metaKey:n,shiftKey:e}})))},m.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},m.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);t?(e=t.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},m.prototype.closestCell=function(e){return u.closestInScope(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},m.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},m.prototype.cellByIndex=function(e){var t=e.split(":"),e=t[0],t=t[1];return this.data[e][t]},i.__decorate([s.Input(),i.__metadata("design:type",String)],m.prototype,"direction",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],m.prototype,"isActive",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],m.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],m.prototype,"cellUID",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"focusedDate",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"viewDate",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],m.prototype,"activeRangeEnd",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],m.prototype,"selectionRange",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"min",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"max",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],m.prototype,"selectedDates",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],m.prototype,"weekNumber",null),i.__decorate([s.Input(),i.__metadata("design:type",Number)],m.prototype,"viewIndex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",s.TemplateRef)],m.prototype,"templateRef",void 0),i.__decorate([s.Input(),i.__metadata("design:type",s.TemplateRef)],m.prototype,"weekNumberTemplateRef",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"cellClick",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"weekNumberCellClick",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"cellEnter",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"cellLeave",void 0),i.__decorate([s.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",[o.BusViewService,c.IntlService,s.ChangeDetectorRef,s.ElementRef,s.NgZone,s.Renderer2,r.DisabledDatesService])],m));function m(e,t,n,i,a,o,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=o,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new s.EventEmitter,this.weekNumberCellClick=new s.EventEmitter,this.cellEnter=new s.EventEmitter,this.cellLeave=new s.EventEmitter,this.colSpan=0,this.subscriptions=new l.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)))}t.ViewComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),r=n(6),s=(Object.defineProperty(o.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),o);function o(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}t.KForOfContext=s;Object.defineProperty(l.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),l.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+c(t)+"'.")}}},l.prototype.ngDoCheck=function(){var e;!this._differ||(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},l.prototype._applyChanges=function(e){if(r.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 s(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;n<a;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}},i.__decorate([a.Input(),i.__metadata("design:type",Object)],l.prototype,"kForOf",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"kForTrackBy",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef),i.__metadata("design:paramtypes",[a.TemplateRef])],l.prototype,"kForTemplate",null),a=i.__decorate([a.Directive({selector:"[kFor][kForOf]"}),i.__metadata("design:paramtypes",[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers])],l);function l(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}function c(e){return e.name||typeof e}t.KForOf=a,t.getTypeNameForDebugging=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(3);t.timeRangeValidator=function(n,i){return function(e){if(!n||!i||!e.value)return null;var t={timeRangeError:{maxValue:i,minValue:n,value:e.value}};return a.isInTimeRange(e.value,n,i)?null:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Arrow||(t.Arrow={}))[t.Up=0]="Up",t[t.Down=1]="Down",t[t.None=2]="None"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),n=n(27),a=(o.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=e,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=e,function(e){return e*t})},o.prototype.sync=function(e,i){var a=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;a.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,a.scrollSiblingOf(e.target))}),a.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,a.scrollSiblingOf(e.target))})}))},o.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},o.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},o.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},o.prototype.destroy=function(){this.unsubscribe()},o.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.CalendarDOMService,a.NgZone])],o));function o(e,t){this.dom=e,this.zone=t}t.ScrollSyncService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function c(e){return Math.max(e,0)}var d=n(9),p=function(e){this.offset=e};t.ScrollAction=p;var u=function(e){this.skip=e};t.PageAction=u;i.prototype.create=function(e,t,n,i,a,o,r){var s=this;void 0===a&&(a=0),void 0===o&&(o=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=a,this.bottomOffset=o,this.direction=r;var l=new d.ReplaySubject(2),a=this.rowsForHeight(a),t=c(t-a);return l.next(new p(this.rowOffset(t))),a&&l.next(new u(t)),this.subscription=new d.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return l.next(e)}),l},i.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},i.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?a:e;this.lastScroll!==i&&(a=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(c(i-this.topOffset)),n=this.rowHeightService.index(c(i+n-this.bottomOffset)),!a&&n>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new p(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new u(this.firstLoaded))),a&&e<=this.firstLoaded&&(a=Math.floor(.3*this.take),this.firstLoaded=c(e-a),t.next(new p(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new u(this.firstLoaded))))},i.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},i.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},i.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},n=i;function i(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}t.ScrollerService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.height=function(e){return this.heights[e]},a.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},a.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},a.prototype.index=function(i){if(!(i<0)){var e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0);return void 0===e?this.total-1:e}},a.prototype.offset=function(e){return this.offsets[e]},a.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},a.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,n.slice(0,e+1).concat(n.slice(e+1).map(function(e){return e+i})))},a);function a(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(){return null}var a=n(3),o=n(7);t.disabledDatesRangeValidator=function(t){return o.isPresent(t)?function(e){if(!(o.isPresent(e)&&o.isPresent(e.start)&&o.isPresent(e.end))||e.start>e.end)return null;e=a.disabledDatesInRange(e.start,e.end,t);return e.length?{disabledDatesInRange:e}:null}:i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(98);t.CalendarComponent=i.CalendarComponent;i=n(44);t.DateInputComponent=i.DateInputComponent;i=n(92);t.DatePickerComponent=i.DatePickerComponent;i=n(90);t.TimePickerComponent=i.TimePickerComponent;i=n(89);t.DateTimePickerComponent=i.DateTimePickerComponent;i=n(37);t.MultiViewCalendarComponent=i.MultiViewCalendarComponent;i=n(88);t.DateRangeComponent=i.DateRangeComponent;i=n(49);t.DateRangePopupComponent=i.DateRangePopupComponent;i=n(86);t.DateRangeEndInputDirective=i.DateRangeEndInputDirective;i=n(84);t.DateRangeStartInputDirective=i.DateRangeStartInputDirective;i=n(83);t.DateRangeSelectionDirective=i.DateRangeSelectionDirective;i=n(41);t.CalendarModule=i.CalendarModule;i=n(75);t.CalendarsModule=i.CalendarsModule;i=n(17);t.DateInputModule=i.DateInputModule;i=n(71);t.DatePickerModule=i.DatePickerModule;i=n(105);t.DateInputsModule=i.DateInputsModule;i=n(47);t.TimePickerModule=i.TimePickerModule;i=n(58);t.DateTimePickerModule=i.DateTimePickerModule;i=n(40);t.MultiViewCalendarModule=i.MultiViewCalendarModule;i=n(67);t.DateRangeModule=i.DateRangeModule;i=n(18);t.DateRangeService=i.DateRangeService;i=n(77);t.CalendarCustomMessagesComponent=i.CalendarCustomMessagesComponent;i=n(72);t.DateInputCustomMessagesComponent=i.DateInputCustomMessagesComponent;i=n(68);t.DatePickerCustomMessagesComponent=i.DatePickerCustomMessagesComponent;i=n(25);t.PreventableEvent=i.PreventableEvent;i=n(79);t.CalendarLocalizedMessagesDirective=i.CalendarLocalizedMessagesDirective;i=n(81);t.MultiViewCalendarLocalizedMessagesDirective=i.MultiViewCalendarLocalizedMessagesDirective;i=n(74);t.DateInputLocalizedMessagesDirective=i.DateInputLocalizedMessagesDirective;i=n(70);t.DatePickerLocalizedMessagesDirective=i.DatePickerLocalizedMessagesDirective;i=n(60);t.TimePickerLocalizedMessagesDirective=i.TimePickerLocalizedMessagesDirective;n=n(59);t.TimeSelectorLocalizedMessagesDirective=n.TimeSelectorLocalizedMessagesDirective,function(e){for(var t in e)o(t,e[t])}(t)}],i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=115)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-dateinputs",["tslib","@angular/core","@angular/common","@progress/kendo-angular-intl","@progress/kendo-angular-common","@progress/kendo-angular-popup","@progress/kendo-common","@progress/kendo-date-math","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n","@angular/forms","rxjs/operators"],function(o){var r,s,l,c,d,u,p,h,m,g,v,f,y;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){p=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){v=t(e)},function(e){f=t(e)},function(e){y=t(e)}],execute:function(){function i(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,a;a={},i.m=n=[function(e,t){e.exports=s},function(e,t){e.exports=r},function(e,t){e.exports=h},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function n(e){return null!=e}function i(n){return function(e,t){e=o.cloneDate(e);return e[n](t),e}}var o=t(2),a=t(8),s=t(13),l=t(7);r.setTime=function(e,t){e=o.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e};function c(e,t,n){return{candidateValue:r.setTime(a.MIDNIGHT_DATE,e),maxValue:o.addDays(r.setTime(a.MIDNIGHT_DATE,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:r.setTime(a.MIDNIGHT_DATE,t)}}r.setYears=i("setFullYear"),r.setHours=i("setHours"),r.setMinutes=i("setMinutes"),r.setSeconds=i("setSeconds"),r.setMilliseconds=i("setMilliseconds"),r.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i},r.isInRange=function(e,t,n){return!e||!(t&&e<t||n&&n<e)},r.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;e=c(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue;return n<=t&&t<=e},r.isValidRange=function(e,t){return!n(e)||!n(t)||e<=t},r.dateInRange=function(e,t,n){return e&&(t&&e<t?o.cloneDate(t):n&&n<e?o.cloneDate(n):e)},r.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=c(e,t,n),a=i.candidateValue,o=i.minValue,i=i.maxValue;return a<o?r.setTime(e,t):i<a?r.setTime(e,n):e},r.getNow=function(){return new Date},r.getToday=function(){return o.getDate(new Date)},r.noop=function(e){},r.isWindowAvailable=function(){return"undefined"!=typeof window},r.stringifyClassObject=function(n){return Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},r.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},r.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),n=n.substring(0,i),s=[];if(r===n&&0<i)return s.push([t[i-1],n[i-1]]),s;if(0===r.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){var l="";1===n.length&&s.push([t[0],n[0]]);for(var c=n.length;c<r.length;c++)t[c]!==l&&"_"!==t[c]&&(l=t[c],s.push([l,""]));return s}if(0!==n.indexOf(r)&&"_"!==t[i-1])return" "===n[n.length-1]||n[n.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],n[i-1]]];for(var d=t[0],c=Math.max(0,r.length-1);c<t.length;c++)if("_"!==t[c]){d=t[c];break}return[[d,n[i-1]]]},r.domContainerFactory=function(a){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(a);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}},r.hasChange=function(e,t){return void 0!==e[t]},r.hasExistingValue=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},r.last=function(e){return(e=void 0===e?[]:e)&&e[e.length-1]},r.isInSelectionRange=function(e,t){var n=t||s.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return!(!t||!n)&&t<e&&e<n},r.either=function(e,t){return e||t},r.clampRange=function(e){return{start:e,end:e}},r.isEqualRange=function(e,t){var n=e||s.EMPTY_SELECTIONRANGE,i=n.start,e=n.end,n=t||s.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return o.isEqual(i,t)&&o.isEqual(e,n)},r.areDatesEqual=function(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return o.isEqual(e,n[t])})},r.sortDates=function(e){return e.filter(function(e){return l.isPresent(e)}).sort(function(e,t){return e.getTime()-t.getTime()})},r.mergeDateAndTime=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},r.lastMillisecondOfDate=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},r.disabledDatesInRange=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=o.addDays(a,1);return i},r.cropTwoDigitYear=function(e){return!l.isPresent(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))},r.msPaddingFromFormat=function(e){return Array(e.match(/S+(\1)/)[0].length).join("0")},r.millisecondDigitsInFormat=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0},r.millisecondStepFor=function(e){return Math.pow(10,3-e)},r.isTabExitingCalendar=function(e,t,n){return!!l.isPresent(t)&&("infinite"===e||"classic"===e&&n&&t.classList.contains("k-calendar")||!n&&t.classList.contains("k-next-view"))},r.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},r.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},r.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=v},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.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)&&0<e.length&&e.every(function(e){return"number"==typeof e})},t.isDateArray=function(e){return Array.isArray(e)&&0<e.length&&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=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.CalendarViewEnum||(t.CalendarViewEnum={}))[t.month=0]="month",t[t.year=1]="year",t[t.decade=2]="decade",t[t.century=3]="century"},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(56),r=n(55),s=n(54),l=n(53),c=n(10),d=((n={})[c.CalendarViewEnum.month]=s.MonthViewService,n[c.CalendarViewEnum.year]=l.YearViewService,n[c.CalendarViewEnum.decade]=r.DecadeViewService,n[c.CalendarViewEnum.century]=o.CenturyViewService,n),i=(u.prototype.configure=function(e,t){this.bottom=e,this.top=t},u.prototype.service=function(e){e=d[e];return e?this.injector.get(e):null},u.prototype.moveDown=function(e){this.move(e,-1)},u.prototype.moveUp=function(e){this.move(e,1)},u.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},u.prototype.canMoveDown=function(e){return this.bottom<e},u.prototype.canMoveUp=function(e){return e<this.top},u.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},u.prototype.move=function(e,t){t=this.clamp(void 0!==(t=c.CalendarViewEnum[c.CalendarViewEnum[e+t]])?t:e);t!==e&&this.viewChanged.emit({view:t})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.Injector])],u));function u(e){this.injector=e,this.viewChanged=new a.EventEmitter,this.bottom=c.CalendarViewEnum.month,this.top=c.CalendarViewEnum.century}t.BusViewService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.PickerService=function(){this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.sameDateSelected=new i.EventEmitter,this.dateCompletenessChange=new i.EventEmitter}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Action||(t.Action={}))[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView",t[t.LowerView=8]="LowerView",t[t.UpperView=9]="UpperView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(44),r=n(11),s=n(5),l=n(74),c=n(72),n=n(6),n=i.__decorate([a.NgModule({declarations:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],exports:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],imports:[r.CommonModule,s.IntlModule,n.EventsModule]})],d);function d(){}t.DateInputModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e&&e.isActive||!1}var i=n(1),o=n(0),r=n(9),s=n(13),l=n(2),o=(Object.defineProperty(c.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),c.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},c.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},c.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},c.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},c.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=a(e),n=a(this.startInput$.value),i=a(this.endInput$.value);return t||n||i||e&&e.hasActiveContent()||!1},c.prototype.registerStartInput=function(e){this.startInput$.next(e)},c.prototype.registerEndInput=function(e){this.endInput$.next(e)},c.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},c.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},c.prototype.setFocusedDate=function(e){l.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},c.prototype.setRange=function(e){void 0===e&&(e=s.EMPTY_SELECTIONRANGE),this.range$.next(e)},i.__decorate([o.Injectable()],c));function c(){this.activeRangeEnd$=new r.BehaviorSubject(null),this.focusedDate$=new r.BehaviorSubject(null),this.endInput$=new r.BehaviorSubject(null),this.startInput$=new r.BehaviorSubject(null),this.dateRangePopup$=new r.BehaviorSubject(null),this.range$=new r.BehaviorSubject(s.EMPTY_SELECTIONRANGE)}t.DateRangeService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(0);t.TOUCH_ENABLED=new n.InjectionToken("dateinputs-touch-enabled")},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});function a(){return!1}var i=n(1),o=n(0),r=n(2),s=n(9),l=n(7),i=(c.prototype.initialize=function(t){var n,i;"function"==typeof t?this.isDateDisabled=function(e){return t(r.getDate(e))}:l.isNumberArray(t)?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):l.isDateArray(t)?(i=new Set(t.map(function(e){return r.getDate(e).getTime()})),this.isDateDisabled=function(e){return i.has(r.getDate(e).getTime())}):(this.isDateDisabled=a,this.notifyInvalidInput(t)),this.notifyServiceChange()},c.prototype.notifyInvalidInput=function(e){if(l.isPresent(e)&&o.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},c.prototype.notifyServiceChange=function(){this.changes.next()},i.__decorate([o.Injectable()],c));function c(){this.changes=new s.Subject,this.isDateDisabled=a}t.DisabledDatesService=i},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:1642521990,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){e.exports=g},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=i},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function c(e,t){return new Array(e).fill("1").map(t)}function i(e,a,o){var r,s=e.cells,l=e.rows;return function(){return m.isDocumentAvailable?(r||(n=l,i=void 0===s?1:s,e=T([D([w([C("1","k-calendar-th")],"k-calendar-tr")].concat(c(n,function(){return w(c(i,function(e){return b('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),t=a,n=o,r=f([f('\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?T([k([w([C("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,E([e,e])],t,{left:"-10000px",position:"absolute"})),r):null;var e,t,n,i}}function a(e){return e.querySelector(".k-scrollable")}function o(e){return a(e).classList.add("k-scrollable-horizontal"),e}function r(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function s(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function l(e){return e.querySelector("tbody")}var d,u=n(1),p=n(0),h=n(10),m=n(6),g=n(3),v=n(7),f=g.domContainerFactory("div"),y=g.domContainerFactory("ul"),_=g.domContainerFactory("li"),b=g.domContainerFactory("td"),C=g.domContainerFactory("th"),w=g.domContainerFactory("tr"),D=g.domContainerFactory("tbody"),k=g.domContainerFactory("thead"),T=g.domContainerFactory("table"),E=function(e){return f(e,"k-flex k-content k-calendar-content k-scrollable")},S=function(){return m.isDocumentAvailable?d=d||f([E([y([_("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},M=i({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),I=i({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),O=i({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),p=(V.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},V.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(M(),function(e){var t=l(e);n.calendarHeight=r(e),n.monthViewHeight=r(t),n.headerHeight=r(t.children[0]),n.scrollableContentHeight=r(a(e))}),this.batch(o(M()),function(e){var t=l(e);n.calendarWidth=s(e),n.monthViewWidth=s(t),n.scrollableContentWidth=s(a(e))}),this.batch(I(),function(e){n.yearViewHeight=r(l(e)),n.scrollableYearContentHeight=r(a(e))}),this.batch(o(I()),function(e){n.yearViewWidth=s(l(e))}),this.batch(O(),function(e){n.decadeViewHeight=r(l(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(o(O()),function(e){n.decadeViewWidth=s(l(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(S(),function(e){n.navigationItemHeight=r(e.querySelector("li"))}))},V.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},V.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},V.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case h.CalendarViewEnum.month:return this["month"+n];case h.CalendarViewEnum.year:return this["year"+n];case h.CalendarViewEnum.decade:return this["decade"+n];case h.CalendarViewEnum.century:return this["century"+n];default:return 1}},V.prototype.batch=function(e,t){if(v.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)}}},u.__decorate([p.Injectable()],V));function V(){}t.CalendarDOMService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValidator=function(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minValidator=function(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarHeaderTitleTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.HeaderTitleTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarWeekNumberCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.WeekNumberCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarCenturyCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.CenturyCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarDecadeCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.DecadeCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarYearCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.YearCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarMonthCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.MonthCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarCellTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.CellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),c=n(0),a=n(24),o=n(4),r=n(2),d=n(6),s=n(97),l=n(96),u=n(14),p=n(51),h=n(95),m=n(21),g=n(36),v=n(35),f=n(34),y=n(33),_=n(32),b=n(31),C=n(30),w=n(16),D=n(10),k=n(29),T=n(28),E=n(114),S=n(8),M=n(3),I=n(9),O=n(7),n=n(15),V="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.RANGE_CALENDAR_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return R})},t.RANGE_CALENDAR_RANGE_VALIDATORS={multi:!0,provide:a.NG_VALIDATORS,useExisting:c.forwardRef(function(){return R})};var R=(Object.defineProperty(x.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||M.getToday()},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(S.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(e){return O.isPresent(e)}).map(function(e){return r.cloneDate(e)}):r.cloneDate(e);var t=[].concat(e).filter(function(e){return O.isPresent(e)}).map(function(e){return r.cloneDate(e)});M.areDatesEqual(t,this.selectedDates)||(e=M.last(t),this.rangePivot=r.cloneDate(e),this.focusedDate=r.cloneDate(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"activeViewEnum",{get:function(){var e=D.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"bottomViewEnum",{get:function(){return D.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"topViewEnum",{get:function(){return D.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),x.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)},x.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},x.prototype.handleMouseEnter=function(){this.isHovered=!0},x.prototype.handleMouseLeave=function(){this.isHovered=!1},x.prototype.handleMousedown=function(e){e.preventDefault()},x.prototype.handleClick=function(){this.isActive||this.focus()},x.prototype.keydown=function(e){var t;this.isHeaderActive||(e.keyCode===d.Keys.Enter&&(O.isPresent(this.pickerService)&&e.preventDefault(),this.performSelection(this.focusedDate,e)),t=M.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),r.isEqual(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)))},x.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=D.CalendarViewEnum[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},x.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),M.hasExistingValue(e,"focusedDate")&&(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()},x.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},x.prototype.ngAfterViewInit=function(){this.updateButtonState()},x.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},x.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},x.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},x.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;e=!n&&M.areDatesEqual(i,this.selectedDates);this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return r.cloneDate(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},x.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)},x.prototype.setActiveDate=function(e){this.activeDate=r.cloneDate(e),this.cdr.detectChanges()},x.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},x.prototype.registerOnChange=function(e){this.onControlChange=e},x.prototype.registerOnTouched=function(e){this.onControlTouched=e},x.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},x.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},x.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},x.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}},x.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},x.prototype.emitNavigate=function(e){var t=D.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},x.prototype.emitCellEvent=function(e,t){d.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},x.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},x.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:M.last(e)})})},x.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},x.prototype.verifyChanges=function(){if(c.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},x.prototype.verifyValue=function(e){if(c.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.")}},x.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()})},x.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?r.cloneDate(M.last(e)):e.map(function(e){return r.cloneDate(e)})},x.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"id",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],x.prototype,"focusedDate",null),i.__decorate([c.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],x.prototype,"min",null),i.__decorate([c.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],x.prototype,"max",null),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"rangeValidation",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"disabledDatesRangeValidation",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"selection",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],x.prototype,"value",null),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"disabled",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Number)],x.prototype,"tabindex",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],x.prototype,"tabIndex",null),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"isActive",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],x.prototype,"disabledDates",null),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"activeView",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"bottomView",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"topView",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"showViewHeader",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"animateNavigation",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Boolean)],x.prototype,"weekNumber",void 0),i.__decorate([c.Input(),i.__metadata("design:type",String)],x.prototype,"activeRangeEnd",void 0),i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],x.prototype,"selectionRange",null),i.__decorate([c.Input(),i.__metadata("design:type",Number)],x.prototype,"views",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"activeViewChange",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"navigate",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"cellEnter",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"cellLeave",void 0),i.__decorate([c.Output(),i.__metadata("design:type",c.EventEmitter)],x.prototype,"valueChange",void 0),i.__decorate([c.Output("blur"),i.__metadata("design:type",c.EventEmitter)],x.prototype,"blurEvent",void 0),i.__decorate([c.ContentChild(g.CellTemplateDirective,{static:!0}),i.__metadata("design:type",g.CellTemplateDirective)],x.prototype,"cellTemplate",void 0),i.__decorate([c.Input("cellTemplate"),i.__metadata("design:type",g.CellTemplateDirective),i.__metadata("design:paramtypes",[g.CellTemplateDirective])],x.prototype,"cellTemplateRef",null),i.__decorate([c.ContentChild(v.MonthCellTemplateDirective,{static:!0}),i.__metadata("design:type",v.MonthCellTemplateDirective)],x.prototype,"monthCellTemplate",void 0),i.__decorate([c.Input("monthCellTemplate"),i.__metadata("design:type",v.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[v.MonthCellTemplateDirective])],x.prototype,"monthCellTemplateRef",null),i.__decorate([c.ContentChild(f.YearCellTemplateDirective,{static:!0}),i.__metadata("design:type",f.YearCellTemplateDirective)],x.prototype,"yearCellTemplate",void 0),i.__decorate([c.Input("yearCellTemplate"),i.__metadata("design:type",f.YearCellTemplateDirective),i.__metadata("design:paramtypes",[f.YearCellTemplateDirective])],x.prototype,"yearCellTemplateRef",null),i.__decorate([c.ContentChild(y.DecadeCellTemplateDirective,{static:!0}),i.__metadata("design:type",y.DecadeCellTemplateDirective)],x.prototype,"decadeCellTemplate",void 0),i.__decorate([c.Input("decadeCellTemplate"),i.__metadata("design:type",y.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[y.DecadeCellTemplateDirective])],x.prototype,"decadeCellTemplateRef",null),i.__decorate([c.ContentChild(_.CenturyCellTemplateDirective,{static:!0}),i.__metadata("design:type",_.CenturyCellTemplateDirective)],x.prototype,"centuryCellTemplate",void 0),i.__decorate([c.Input("centuryCellTemplate"),i.__metadata("design:type",_.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[_.CenturyCellTemplateDirective])],x.prototype,"centuryCellTemplateRef",null),i.__decorate([c.ContentChild(b.WeekNumberCellTemplateDirective,{static:!0}),i.__metadata("design:type",b.WeekNumberCellTemplateDirective)],x.prototype,"weekNumberTemplate",void 0),i.__decorate([c.Input("weekNumberTemplate"),i.__metadata("design:type",b.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[b.WeekNumberCellTemplateDirective])],x.prototype,"weekNumberTemplateRef",null),i.__decorate([c.ContentChild(C.HeaderTitleTemplateDirective,{static:!0}),i.__metadata("design:type",C.HeaderTitleTemplateDirective)],x.prototype,"headerTitleTemplate",void 0),i.__decorate([c.Input("headerTitleTemplate"),i.__metadata("design:type",C.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[C.HeaderTitleTemplateDirective])],x.prototype,"headerTitleTemplateRef",null),i.__decorate([c.ViewChild(l.HeaderComponent,{static:!1,read:c.ElementRef}),i.__metadata("design:type",c.ElementRef)],x.prototype,"headerElement",void 0),i.__decorate([c.ViewChild(s.HorizontalViewListComponent,{static:!1}),i.__metadata("design:type",s.HorizontalViewListComponent)],x.prototype,"viewList",void 0),i.__decorate([c.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],x.prototype,"widgetId",null),i.__decorate([c.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],x.prototype,"calendarTabIndex",null),i.__decorate([c.HostBinding("attr.aria-disabled"),c.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],x.prototype,"ariaDisabled",null),i.__decorate([c.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],x.prototype,"ariaActivedescendant",null),i.__decorate([c.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],x.prototype,"handleFocusout",null),i.__decorate([c.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleFocus",null),i.__decorate([c.HostListener("mouseenter"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleMouseEnter",null),i.__decorate([c.HostListener("mouseleave"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleMouseLeave",null),i.__decorate([c.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],x.prototype,"handleMousedown",null),i.__decorate([c.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],x.prototype,"handleClick",null),i.__decorate([c.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],x.prototype,"keydown",null),i.__decorate([c.Component({changeDetection:c.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[u.BusViewService,t.RANGE_CALENDAR_VALUE_ACCESSOR,t.RANGE_CALENDAR_RANGE_VALIDATORS,o.LocalizationService,m.DisabledDatesService,{provide:o.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]="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,c.Optional()),i.__metadata("design:paramtypes",[u.BusViewService,c.ElementRef,p.NavigationService,c.Renderer2,c.ChangeDetectorRef,c.NgZone,m.DisabledDatesService,h.SelectionService,n.PickerService])],x));function x(e,t,n,i,a,o,r,s,l){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=a,this.zone=o,this.disabledDatesService=r,this.selectionService=s,this.pickerService=l,this.id=d.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 c.EventEmitter,this.navigate=new c.EventEmitter,this.cellEnter=new c.EventEmitter,this.cellLeave=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.blurEvent=new c.EventEmitter,this.cellUID=d.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)}t.MultiViewCalendarComponent=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"accept",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"acceptLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancelLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"now",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nowLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"toggle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.TimePickerMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(36),r=n(35),s=n(34),l=n(33),c=n(32),d=n(31),u=n(30),n=n(50),n=i.__decorate([a.NgModule({declarations:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,u.HeaderTitleTemplateDirective,n.NavigationItemTemplateDirective],exports:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,u.HeaderTitleTemplateDirective,n.NavigationItemTemplateDirective]})],p);function p(){}t.TemplatesModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(5),s=n(12),l=n(6),c=n(82),d=n(39),u=n(97),p=n(37),h=n(81),m=n(106),g=n(51),v=n(56),f=n(55),y=n(54),_=n(53),n=n(52),n=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,v.CenturyViewService,f.DecadeViewService,y.MonthViewService,_.YearViewService,n.WeekNamesService]})],b);function b(){}t.MultiViewCalendarModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(5),s=n(82),l=n(40),c=n(39),d=n(98),u=n(94),p=n(93),h=n(27),m=n(56),g=n(55),v=n(54),f=n(53),y=n(52),_=n(79),b=n(77),C=n(76),n=n(6),y=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,n.EventsModule,n.ResizeSensorModule],providers:[h.CalendarDOMService,m.CenturyViewService,g.DecadeViewService,v.MonthViewService,f.YearViewService,y.WeekNamesService]})],w);function w(){}t.CalendarModule=y},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(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});function b(e){return e.replace(/^0*/,"")}var i,a=n(1),l=n(0),o=n(29),r=n(28),s=n(43),c=n(24),d=n(4),u=n(5),p=n(23),h=n(22),C=n(2),m=n(6),g=n(110),w=n(3),v=n(15),f=n(20),y=n(7),_=/year|month|<day>/,D=/hour|minute|second|millisecond/,k=/d|M|H|h|m|s/,T=function(){this.symbols=""},E=(M.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},M.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},M.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return C.cloneDate(this.value)},M.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},M.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}},M.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},M.prototype.modifyPart=function(e,t){var n=C.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=C.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},M.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,h=this.matchMonth(t),m=this.matchDayPeriod(t,e),g="0"===t,v=(this.leadingZero||{})[e]||0;for(g?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero(),d=Math.max(0,u);d<=l.length;d++){var f=n?t:l.substring(d)+t;"S"===e&&n&&(f=w.msPaddingFromFormat(o)+f);var y=parseInt(f,10);if((p=this.intl.parseDate(s+f+c,this.format))||isNaN(y)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(_=y-1)&&_<12&&((p=C.cloneDate(this.value)).setMonth(_),p.getMonth()!==_&&(p=C.lastDayOfMonth(C.addMonths(p,-1)))),"y"===e&&(p=C.createDate(parseInt(f,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=C.lastDayOfMonth(C.addMonths(p,-1))))),p){var y=this.partPattern(a.partMap,e).pattern,_=this.intl.parseDate(""+s+this.peek(f,y)+c,this.format),y=this.patternLength(y)||y.length,y=v+(b(f)||t).length>=y,y=null===_||y;return this.shouldNormalizeCentury()&&(p=this.normalizeCentury(p)),this.value=p,this.setExisting(e,!0),{value:this.value,switchToNext:y}}}return h&&(p=this.intl.parseDate(s+h+c,this.format))?(this.value=p,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(p=this.intl.parseDate(s+m+c,this.format))?(this.value=p,{value:this.value,switchToNext:!0}):(g&&this.setExisting(e,!1),{value:null,switchToNext:!1})},M.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},M.prototype.setLeadingZero=function(e){this.leadingZero=e},M.prototype.normalizeCentury=function(e){if(!y.isPresent(e))return e;var t=w.cropTwoDigitYear(e),n=this.getNormalizedCenturyBase(t);return w.setYears(e,n+t)},M.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},M.prototype.isAbbrMonth=function(e,t){t=this.partPattern(e,t);return"month"===t.type&&t.names},M.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},M.prototype.peek=function(e,t){e=b(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},M.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},M.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},M.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},M.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},M.prototype.patternLength=function(e){return"y"===e[0]?4:k.test(e)?2:0},M.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<r;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;t=new T;return t.symbols=i.join(""),t.partMap=a,t},M.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];0<=o&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},M.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},M.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},M),v=(i=S,Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!w.isInRange(e,this.min,this.max)||(this._value=C.cloneDate(e),this.valueUpdate.emit(C.cloneDate(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,w.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,w.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,w.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,w.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,w.getFillModeClass("input",this.fillMode)),e&&(this.renderer.addClass(this.wrapper.nativeElement,w.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(S.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&!y.isPresent(this.pickerService)&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),S.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},S.prototype.containsElement=function(e){var t=this;return Boolean(f.closest(e,function(e){return e===t.wrapper.nativeElement}))},S.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?o.minValidator(this.min):w.noop,this.maxValidator=this.rangeValidation?r.maxValidator(this.max):w.noop,this.incompleteValidator=this.incompleteDateValidation?s.incompleteDateValidator():w.noop,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&C.isEqual(this.value,this.kendoDate.getDateObject());!e.format&&t&&!e.placeholder||(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},S.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},S.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},S.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},S.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(c.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},S.prototype.ngAfterViewInit=function(){this.setComponentClasses()},S.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},S.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=C.cloneDate(e),this.updateElementValue(this.isActive)},S.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=C.cloneDate(e),this.notify())},S.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(C.cloneDate(e.value)),e.valueChange.emit(C.cloneDate(e.value))})},S.prototype.registerOnChange=function(e){this.onControlChange=e},S.prototype.registerOnTouched=function(e){this.onControlTouched=e},S.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},S.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},S.prototype.handleButtonClick=function(e){this.arrowDirection=g.Arrow.None,this.modifyDateSegmentValue(e)},S.prototype.modifyDateSegmentValue=function(e){var t=this.caret(),n=this.currentFormat[t[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;"S"!==n||this.steps.millisecond||(t=w.millisecondDigitsInFormat(this.inputFormat),i=w.millisecondStepFor(t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},S.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;0<=a&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return a<i&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0)},S.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)},S.prototype.handleClick=function(){var e,t;this.hasMousedown=!1,this.isActive&&(e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=y.isPresent(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!e&&t?0:this.caret()[0],this.selectNearestSegment(t))},S.prototype.handleDragAndDrop=function(e){e.preventDefault()},S.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},S.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)},S.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),m.hasObservers(this.onBlur)||y.requiresZoneOnBlur(this.ngControl)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):this.emitBlur(e)},S.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,e=new E(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},S.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){return e[t.pattern[0]]=t.type,e},{})},S.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),a=!this.isActive&&y.isPresent(this.placeholder)&&!this.kendoDate.hasValue(),n=this.inputElement;this.currentFormat=i[1],this.currentValue=a?"":i[0],this.renderer.setProperty(n,"value",this.currentValue),n.placeholder!==this.placeholder&&this.renderer.setProperty(n,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},S.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}},S.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},S.prototype.verifyRange=function(){if(l.isDevMode()&&!w.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.")},S.prototype.verifyValue=function(e){if(l.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.")},S.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=w.dateInRange(e,this.min,this.max);this.autoCorrect&&!C.isEqual(e,t)&&(this.kendoDate=this.getKendoDate(t))},S.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){var n=e.date,e=e.time;return{date:n||_.test(t.type),time:e||D.test(t.type)}},{date:!1,time:!1})},S.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},S.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value,t=+(e=y.isPresent(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},S.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)))},S.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},S.prototype.handlePaste=function(){this.paste=!0},S.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()},S.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=w.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(w.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}},S.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},S.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},S.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(y.isPresent(this.ngControl)&&!y.isPresent(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):y.isPresent(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},S.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")},S.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,w.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,w.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,w.getFillModeClass("input",this.fillMode)),this.spinners&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))},a.__decorate([l.Input(),a.__metadata("design:type",String)],S.prototype,"focusableId",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"disabled",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"readonly",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String)],S.prototype,"title",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Number)],S.prototype,"tabindex",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String)],S.prototype,"role",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"ariaReadOnly",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],S.prototype,"tabIndex",null),a.__decorate([l.Input(),a.__metadata("design:type",Object)],S.prototype,"format",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Object)],S.prototype,"formatPlaceholder",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String)],S.prototype,"placeholder",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Object)],S.prototype,"steps",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Date)],S.prototype,"max",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Date)],S.prototype,"min",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"rangeValidation",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"autoCorrect",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"incompleteDateValidation",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Number)],S.prototype,"twoDigitYearMax",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],S.prototype,"value",null),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"spinners",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"isPopupOpen",void 0),a.__decorate([l.Input(),a.__metadata("design:type",Boolean)],S.prototype,"hasPopup",void 0),a.__decorate([l.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],S.prototype,"size",null),a.__decorate([l.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],S.prototype,"rounded",null),a.__decorate([l.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],S.prototype,"fillMode",null),a.__decorate([l.Output(),a.__metadata("design:type",l.EventEmitter)],S.prototype,"valueChange",void 0),a.__decorate([l.Output(),a.__metadata("design:type",l.EventEmitter)],S.prototype,"valueUpdate",void 0),a.__decorate([l.Output("focus"),a.__metadata("design:type",l.EventEmitter)],S.prototype,"onFocus",void 0),a.__decorate([l.Output("blur"),a.__metadata("design:type",l.EventEmitter)],S.prototype,"onBlur",void 0),a.__decorate([l.ViewChild("dateInput",{static:!0}),a.__metadata("design:type",l.ElementRef)],S.prototype,"dateInput",void 0),a.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-dateinput"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],S.prototype,"wrapperClass",null),a.__decorate([l.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],S.prototype,"disabledClass",null),a.__decorate([l.ViewChild("spinup",{static:!1}),a.__metadata("design:type",l.ElementRef)],S.prototype,"spinup",void 0),a.__decorate([l.ViewChild("spindown",{static:!1}),a.__metadata("design:type",l.ElementRef)],S.prototype,"spindown",void 0),i=a.__decorate([l.Component({changeDetection:l.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:c.NG_VALIDATORS,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:d.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:l.forwardRef(function(){return i})},d.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 '}),a.__param(7,l.Optional()),a.__metadata("design:paramtypes",[l.ChangeDetectorRef,u.IntlService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,d.LocalizationService,v.PickerService])],S));function S(e,t,n,i,a,o,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=a,this.injector=o,this.localization=r,this.pickerService=s,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new l.EventEmitter,this.valueUpdate=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.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=w.noop,this.maxValidator=w.noop,this.incompleteValidator=w.noop,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=w.noop,this.onControlTouched=w.noop,this.onValidatorChange=w.noop,this._size="medium",this._rounded="medium",this._fillMode="solid",this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}function M(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=C.getDate(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},p.validatePackage(h.packageMetadata),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=C.cloneDate(i);else{this.value=C.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}t.DateInputComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),a=n(0),r=n(113),s=n(112),l=n(6),c=n(9),d=n(26);function u(e){return new s.ScrollerService(e)}t.SCROLLER_FACTORY_TOKEN=new a.InjectionToken("dateinputs-scroll-service-factory"),t.DEFAULT_SCROLLER_FACTORY=u,(n=o=t.ScrollDirection||(t.ScrollDirection={}))[n.Backward=0]="Backward",n[n.Forward=1]="Forward";var p=((n={})[o.Forward]=function(t){return function(e){return e+t}},n[o.Backward]=function(t){return function(e){return e-t}},n),h=((n={})[o.Forward]=function(t){return function(e){return Math.min(e,t)}},n[o.Backward]=function(t){return function(e){return Math.max(e,t)}},n),m=((n={})[o.Forward]=function(t){return function(e){return e<t}},n[o.Backward]=function(t){return function(e){return t<e}},n),i=(Object.defineProperty(g.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},g.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},g.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(d.map(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},g.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},g.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},g.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},g.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},g.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},g.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},g.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},g.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},g.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},g.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},g.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n,i,a,o=this.rowHeightService.offset(e),r=this.getContainerScrollDirection(o),e=this.scrollRange(o,r),s=e.start,o=e.end;s!==o&&(e=this.scrollStep(s,o),n=p[r](e),i=h[r](o),a=m[r](n(o)),this.zone.runOutsideAngular(function(){t.animationSubscription=c.combineLatest(c.of(s),c.interval(0,c.animationFrameScheduler)).pipe(d.map(function(e){return e[0]}),d.scan(n),d.takeWhile(a),d.map(i)).subscribe(function(e){return t.scrollTo(e)})}))},g.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i=this.containerMaxScroll(),a=t===o.Backward?1:-1,t=(t=this.maxScrollDifference,Math.min(Math.abs(e-n),t)),e=Math.min(e,i);return{start:Math.min(Math.max(e+a*t,0),i),end:e}},g.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},g.prototype.scroll$=function(){return l.isDocumentAvailable()?c.fromEvent(this.container.nativeElement,"scroll"):c.EMPTY},g.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof s.PageAction?t.pageChange:t.scrollChange).emit(e)})},g.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new r.RowHeightService(this.total,e,0)},g.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},g.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},g.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?o.Backward:o.Forward},i.__decorate([a.Input(),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"itemHeight",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"itemWidth",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"topOffset",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"bottomOffset",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"maxScrollDifference",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"scrollOffsetSize",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"scrollDuration",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"skip",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"take",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],g.prototype,"total",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],g.prototype,"activeIndexChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],g.prototype,"pageChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],g.prototype,"scrollChange",void 0),i.__decorate([a.HostBinding("class.k-flex"),a.HostBinding("class.k-content"),a.HostBinding("class.k-calendar-content"),a.HostBinding("class.k-scrollable"),i.__metadata("design:type",Boolean)],g.prototype,"wrapperClasses",void 0),i.__decorate([a.HostBinding("class.k-scrollable-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"horizontalClass",null),i.__decorate([a.Component({providers:[{provide:t.SCROLLER_FACTORY_TOKEN,useValue:u}],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 '}),i.__param(0,a.Inject(t.SCROLLER_FACTORY_TOKEN)),i.__metadata("design:paramtypes",[Object,a.ElementRef,a.Renderer2,a.NgZone])],g));function g(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.scrollChange=new a.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new c.Subject,this.scroller=e(this.dispatcher)}t.VirtualizationComponent=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"),n=r.domContainerFactory("li"),r=r.domContainerFactory("span"),c=o.isDocumentAvailable()?s([r("hour","k-title k-timeselector-title"),s([s([l([n("<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,a=(d.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},d.prototype.calculateHeights=function(e){var t;o.isDocumentAvailable()&&(e=(t=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(c),this.timeListTitleHeight=e.querySelector(".k-timeselector-title").getBoundingClientRect().height,this.timeListHeight=e.getBoundingClientRect().height,this.itemHeight=e.querySelector("li").getBoundingClientRect().height,t.removeChild(e))},d.prototype.isActive=function(e){return!(!o.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},i.__decorate([a.Injectable()],d));function d(){}t.TimePickerDOMService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(5),s=n(12),l=n(66),c=n(90),d=n(104),u=n(76),p=n(46),h=n(65),m=n(64),g=n(63),v=n(62),f=n(61),y=n(17),_=n(60),b=n(102),C=n(59),w=n(101),D=n(48),k=n(19),n=n(6),d=[_.TimePickerLocalizedMessagesDirective,l.TimeListComponent,b.TimePickerCustomMessagesComponent,c.TimePickerComponent,C.TimeSelectorLocalizedMessagesDirective,w.TimeSelectorCustomMessagesComponent,d.TimeSelectorComponent],n=[y.DateInputModule,r.IntlModule,s.PopupModule,u.VirtualizationModule,n.EventsModule],D=[p.TimePickerDOMService,h.HoursService,m.MinutesService,g.SecondsService,v.MillisecondsService,f.DayPeriodService,{provide:k.TOUCH_ENABLED,useValue:D.touchEnabled}],D=i.__decorate([a.NgModule({declarations:[d],exports:[d],imports:[o.CommonModule].concat(n),providers:D})],T);function T(){}t.TimePickerModule=D},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(4),r=n(12),s=n(87),l=n(18),c=n(37),d=n(25),u=n(6),p=n(9),h=n(26),m=n(3),g=n(7),l=(Object.defineProperty(v.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new d.PreventableEvent,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!0,configurable:!0}),v.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},v.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),m.isWindowAvailable()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},v.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()},v.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()})})}))},v.prototype.focus=function(){this.calendar&&this.calendar.focus()},v.prototype.hasActiveContent=function(){return!(!u.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},v.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},v.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},v.prototype.handleWindowBlur=function(){var e=this;this.show&&(u.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},v.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},v.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===u.Keys.Escape||n&&e===u.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},v.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=p.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=p.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},v.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];g.isPresent(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(v.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),v.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return p.fromEvent(t,"keydown").subscribe(n.handleKeydown.bind(n))}),p.fromEvent(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},v.prototype.destroyPopup=function(){g.isPresent(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),g.isPresent(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!1}),i.__metadata("design:type",o.ViewContainerRef)],v.prototype,"container",void 0),i.__decorate([o.ViewChild("defaultTemplate",{static:!1}),i.__metadata("design:type",o.TemplateRef)],v.prototype,"defaultTemplate",void 0),i.__decorate([o.ContentChild(s.DateRangePopupTemplateDirective,{static:!1}),i.__metadata("design:type",s.DateRangePopupTemplateDirective)],v.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",o.QueryList)],v.prototype,"viewCalendar",void 0),i.__decorate([o.ContentChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",o.QueryList)],v.prototype,"contentCalendar",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ElementRef)],v.prototype,"anchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"appendTo",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],v.prototype,"margin",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],v.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],v.prototype,"close",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],v.prototype,"onBlur",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],v.prototype,"onFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],v.prototype,"cancel",void 0),i.__decorate([o.Component({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),i.__param(4,o.Optional()),i.__param(4,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[r.PopupService,l.DateRangeService,o.ChangeDetectorRef,o.NgZone,Boolean])],v));function v(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popupUID=u.guid(),this.calendarSubscriptions=new p.Subscription,this.popupSubscriptions=new p.Subscription,this.resolvedPromise=Promise.resolve()}t.DateRangePopupComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoCalendarNavigationItemTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.NavigationItemTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(16),n=n(14),r={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},n=(s.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return r[e]},s.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},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.BusViewService])],s));function s(e){this.bus=e}t.NavigationService=n},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),o=(s.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},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],s));function s(e){this.intl=e}t.WeekNamesService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),y=n(2),r=n(16),_=n(13),b=n(3),s=n(7),C=[[]],l=((n={})[r.Action.Left]=function(e){return y.addMonths(e,-1)},n[r.Action.Up]=function(e){return y.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},n[r.Action.Right]=function(e){return y.addMonths(e,1)},n[r.Action.Down]=function(e){return y.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},n[r.Action.PrevView]=function(e){return y.addYears(e,-1)},n[r.Action.NextView]=function(e){return y.addYears(e,1)},n[r.Action.FirstInView]=function(e){return y.firstMonthOfYear(e)},n[r.Action.LastInView]=function(e){return y.lastMonthOfYear(e)},n),o=(c.prototype.addToDate=function(e,t){return y.addYears(e,t)},c.prototype.datesList=function(t,e){return b.range(0,e).map(function(e){return y.addYears(t,e)})},c.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,d=e.min,u=e.selectedDates,t=e.selectionRange,p=void 0===t?_.EMPTY_SELECTIONRANGE:t,e=e.viewDate;if(!e)return C;var h=this.abbrMonthNames(),m=y.firstMonthOfYear(e),g=y.lastMonthOfYear(e),v=m.getFullYear(),n=b.range(0,4),f=b.getToday();return b.range(0,3).map(function(e){var a=y.addMonths(m,4*e);return n.map(function(e){var t=o.normalize(y.addMonths(a,e),d,c),n=v<t.getFullYear();if(!o.isInRange(t,d,c)||n)return null;var i=o.isEqual(t,p.start),e=o.isEqual(t,p.end),n=!i&&!e&&b.isInSelectionRange(t,p);return{formattedValue:h[t.getMonth()],id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&u.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,g),isRangeSplitStart:n&&o.isEqual(t,m),isToday:o.isEqual(t,f),title:o.cellTitle(t),value:t}})})},c.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},c.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},c.prototype.isInRange=function(e,t,n){e=y.createDate(e.getFullYear(),e.getMonth(),1),t=!t||y.createDate(t.getFullYear(),t.getMonth(),1)<=e,n=!n||e<=y.createDate(n.getFullYear(),n.getMonth(),1);return t&&n},c.prototype.beginningOfPeriod=function(e){return e&&y.createDate(e.getFullYear(),0,1)},c.prototype.lastDayOfPeriod=function(e){e=y.lastMonthOfYear(e);return y.lastDayOfMonth(e)},c.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},c.prototype.move=function(e,t){t=l[t];return t?t(e):e},c.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},c.prototype.navigationTitle=function(e){return this.title(e)},c.prototype.title=function(e){return e?e.getFullYear().toString():""},c.prototype.rowLength=function(){return 4},c.prototype.skip=function(e,t){return y.durationInYears(t,e)},c.prototype.total=function(e,t){return y.durationInYears(e,t)+1},c.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},c.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?y.addYears(e,-1*(n-t)):e},c.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},c.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?y.cloneDate(t):n<e&&this.isEqual(e,n)?y.cloneDate(n):e},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],c));function c(e){this._intlService=e,this.dateRange=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=y.addMonths(i,1);return n}}t.YearViewService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),b=n(2),r=n(16),C=n(13),w=n(3),s=n(7),D=[[]],l=((n={})[r.Action.Left]=function(e){return b.addDays(e,-1)},n[r.Action.Up]=function(e){return b.addWeeks(e,-1)},n[r.Action.Right]=function(e){return b.addDays(e,1)},n[r.Action.Down]=function(e){return b.addWeeks(e,1)},n[r.Action.PrevView]=function(e){return b.addMonths(e,-1)},n[r.Action.NextView]=function(e){return b.addMonths(e,1)},n[r.Action.FirstInView]=function(e){return b.firstDayOfMonth(e)},n[r.Action.LastInView]=function(e){return b.lastDayOfMonth(e)},n),o=(c.prototype.addToDate=function(e,t){return b.addMonths(e,t)},c.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return b.addMonths(t,e)})},c.prototype.data=function(e){var r=this,s=e.cellUID,l=e.focusedDate,c=e.isActiveView,d=e.max,u=e.min,p=e.selectedDates,t=e.selectionRange,h=void 0===t?C.EMPTY_SELECTIONRANGE:t,t=e.viewDate,e=e.isDateDisabled,m=void 0===e?function(){return!1}:e;if(!t)return D;var g=b.firstDayOfMonth(t),v=b.getDate(g),f=b.lastDayOfMonth(t),y=b.getDate(f),n=b.dayOfWeek(g,this._intlService.firstDay(),-1),i=w.range(0,7),_=w.getToday();return w.range(0,6).map(function(e){var o=b.addDays(n,7*e);return i.map(function(e){var t=r.normalize(b.addDays(o,e),u,d),n=b.getDate(t),i=n<v||y<n;if(t<u||d<t)return null;var a=r.isEqual(t,h.start),e=r.isEqual(t,h.end),n=!a&&!e&&w.isInSelectionRange(t,h);return{formattedValue:r.value(t),id:""+s+t.getTime(),isFocused:r.isEqual(t,l),isSelected:c&&p.some(function(e){return r.isEqual(t,e)}),isWeekend:r.isWeekend(t),isRangeStart:a,isRangeMid:n,isRangeEnd:e,isRangeSplitStart:n&&r.isEqual(t,g),isRangeSplitEnd:n&&r.isEqual(t,f),isToday:r.isEqual(t,_),title:r.cellTitle(t),value:t,isDisabled:m(t),isOtherMonth:i}})})},c.prototype.isEqual=function(e,t){return!(!e||!t)&&b.getDate(e).getTime()===b.getDate(t).getTime()},c.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(b.addMonths(t[t.length-1],1));return n<=e&&e<t},c.prototype.isInRange=function(e,t,n){e=b.getDate(e),t=!t||b.getDate(t)<=e,n=!n||e<=b.getDate(n);return t&&n},c.prototype.beginningOfPeriod=function(e){return e&&b.createDate(e.getFullYear(),e.getMonth(),1)},c.prototype.lastDayOfPeriod=function(e){return b.lastDayOfMonth(e)},c.prototype.isRangeStart=function(e){return!e.getMonth()},c.prototype.move=function(e,t){t=l[t];return t?t(e):e},c.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},c.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},c.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},c.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},c.prototype.skip=function(e,t){return b.durationInMonths(t,e)},c.prototype.total=function(e,t){return b.durationInMonths(e,t)+1},c.prototype.value=function(e){return e?e.getDate().toString():""},c.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?b.addMonths(e,-1*(n-t)):e},c.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},c.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},c.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?b.cloneDate(t):n<e&&this.isEqual(e,n)?b.cloneDate(n):e},c.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],c));function c(e){this._intlService=e,this.dateRange=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=b.addDays(i,1);return n}}t.MonthViewService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),v=n(2),o=n(16),f=n(13),y=n(3),r=n(7),_=[[]],s=((n={})[o.Action.Left]=function(e){return v.addYears(e,-1)},n[o.Action.Up]=function(e){return v.addYears(e,-5)},n[o.Action.Right]=function(e){return v.addYears(e,1)},n[o.Action.Down]=function(e){return v.addYears(e,5)},n[o.Action.PrevView]=function(e){return v.addDecades(e,-1)},n[o.Action.NextView]=function(e){return v.addDecades(e,1)},n[o.Action.FirstInView]=function(e){return v.firstYearOfDecade(e)},n[o.Action.LastInView]=function(e){return v.lastYearOfDecade(e)},n),a=(l.prototype.addToDate=function(e,t){return v.addDecades(e,t)},l.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addDecades(t,e)})},l.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,d=e.min,u=e.selectedDates,t=e.selectionRange,p=void 0===t?f.EMPTY_SELECTIONRANGE:t,e=e.viewDate;if(!e)return _;var n=y.range(0,4),h=v.firstYearOfDecade(e),m=v.lastYearOfDecade(e),g=y.getToday();return y.range(0,3).map(function(e){var a=v.addYears(h,4*e);return n.map(function(e){var t=o.normalize(v.addYears(a,e),d,c),n=t.getFullYear()>m.getFullYear();if(!o.isInRange(t,d,c)||n)return null;var i=o.isEqual(t,p.start),e=o.isEqual(t,p.end),n=!i&&!e&&y.isInSelectionRange(t,p);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&u.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,m),isRangeSplitStart:n&&o.isEqual(t,h),isToday:o.isEqual(t,g),title:o.cellTitle(t),value:t}})})},l.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},l.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},l.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,n=!n||e<=n.getFullYear();return t&&n},l.prototype.beginningOfPeriod=function(e){if(!e)return e;e=v.firstYearOfDecade(e);return v.createDate(e.getFullYear(),0,1)},l.prototype.lastDayOfPeriod=function(e){e=v.lastYearOfDecade(e),e=v.lastMonthOfYear(e);return v.lastDayOfMonth(e)},l.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},l.prototype.move=function(e,t){t=s[t];return t?t(e):e},l.prototype.cellTitle=function(e){return e.getFullYear().toString()},l.prototype.navigationTitle=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},l.prototype.title=function(e){return e?v.firstYearOfDecade(e).getFullYear()+" - "+v.lastYearOfDecade(e).getFullYear():""},l.prototype.rowLength=function(){return 4},l.prototype.skip=function(e,t){return v.durationInDecades(t,e)},l.prototype.total=function(e,t){return v.durationInDecades(e,t)+1},l.prototype.value=function(e){return e?e.getFullYear().toString():""},l.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?v.addDecades(e,-1*(n-t)):e},l.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},i.__decorate([a.Injectable()],l));function l(){this.dateRange=function(e,t){if(!r.isPresent(e)||!r.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=v.addYears(i,1);return n}}t.DecadeViewService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),v=n(2),o=n(16),f=n(13),y=n(3),r=n(7),_=[[]],s=((n={})[o.Action.Left]=function(e){return v.addDecades(e,-1)},n[o.Action.Up]=function(e){return v.addDecades(e,-5)},n[o.Action.Right]=function(e){return v.addDecades(e,1)},n[o.Action.Down]=function(e){return v.addDecades(e,5)},n[o.Action.PrevView]=function(e){return v.addCenturies(e,-1)},n[o.Action.NextView]=function(e){return v.addCenturies(e,1)},n[o.Action.FirstInView]=function(e){return v.firstDecadeOfCentury(e)},n[o.Action.LastInView]=function(e){return v.lastDecadeOfCentury(e)},n),a=(l.prototype.addToDate=function(e,t){return v.addCenturies(e,t)},l.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addCenturies(t,e)})},l.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,d=e.min,u=e.selectedDates,t=e.selectionRange,p=void 0===t?f.EMPTY_SELECTIONRANGE:t,e=e.viewDate;if(!e)return _;var n=y.range(0,4),h=v.firstDecadeOfCentury(e),m=v.lastDecadeOfCentury(e),g=y.getToday();return y.range(0,3).map(function(e){var a=v.addDecades(h,4*e);return n.map(function(e){var t=o.normalize(v.addDecades(a,e),d,c),n=t.getFullYear()>m.getFullYear();if(!o.isInRange(t,d,c)||n)return null;var i=o.isEqual(t,p.start),e=o.isEqual(t,p.end),n=!i&&!e&&y.isInSelectionRange(t,p);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&u.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,m),isRangeSplitStart:n&&o.isEqual(t,h),isToday:o.isEqual(t,g),title:o.cellTitle(t),value:t}})})},l.prototype.isEqual=function(e,t){return!(!e||!t)&&v.firstYearOfDecade(e).getFullYear()===v.firstYearOfDecade(t).getFullYear()},l.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},l.prototype.isInRange=function(e,t,n){e=v.firstYearOfDecade(e).getFullYear(),t=!t||v.firstYearOfDecade(t).getFullYear()<=e,n=!n||e<=v.firstYearOfDecade(n).getFullYear();return t&&n},l.prototype.beginningOfPeriod=function(e){if(!e)return e;e=v.firstYearOfDecade(v.firstDecadeOfCentury(e));return v.createDate(e.getFullYear(),0,1)},l.prototype.lastDayOfPeriod=function(e){e=v.lastDecadeOfCentury(e),e=v.lastYearOfDecade(e),e=v.lastMonthOfYear(e);return v.lastDayOfMonth(e)},l.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},l.prototype.move=function(e,t){t=s[t];return t?t(e):e},l.prototype.cellTitle=function(e){return v.firstYearOfDecade(e).getFullYear().toString()},l.prototype.navigationTitle=function(e){return e?v.firstDecadeOfCentury(e).getFullYear().toString():""},l.prototype.title=function(e){return e?v.firstDecadeOfCentury(e).getFullYear()+" - "+v.lastDecadeOfCentury(e).getFullYear():""},l.prototype.rowLength=function(){return 4},l.prototype.skip=function(e,t){return v.durationInCenturies(t,e)},l.prototype.total=function(e,t){return v.durationInCenturies(e,t)+1},l.prototype.value=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},l.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?v.addCenturies(e,-1*(n-t)):e},l.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},i.__decorate([a.Injectable()],l));function l(){this.dateRange=function(e,t){if(!r.isPresent(e)||!r.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=v.addDecades(i,1);return n}}t.CenturyViewService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"toggle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"dateTab",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"dateTabLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"timeTab",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"timeTabLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"accept",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"acceptLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancelLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"now",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nowLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(12),s=n(6),l=n(5),c=n(17),d=n(41),u=n(47),p=n(39),h=n(48),m=n(19),g=n(89),v=n(100),n=n(99),n=[g.DateTimePickerComponent,v.DateTimePickerCustomMessagesComponent,n.LocalizedMessagesDirective],h=i.__decorate([a.NgModule({declarations:n.slice(),exports:n.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}]})],f);function f(){}t.DateTimePickerModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoTimeSelectorLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimeSelectorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoTimePickerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){return(e=s.cloneDate(e)).setHours(t),e}function r(e){return null!==e&&e<12}var i=n(1),a=n(0),s=n(2),n=n(5),n=(l.prototype.apply=function(e,t){var n=e.getHours(),i=r(n),a=r(t.getHours());if(i&&a||!i&&!a)return e;t=this.normalizedRange(),i=t[0],t=t[1],t=void 0===t?24:t;return o(e,Math.min(Math.max(i,n+(a?-12:12)),t||24))},l.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,t=e.max,t=void 0===t?this.max:t,e=e.part,e=void 0===e?this.part:e;this.min=n,this.max=t,this.part=e},l.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n=[],i=this.normalizedRange(),a=i[0],i=i[1],t=this.intl.dateFormatNames(t);return r(a)&&n.push({text:t.am,value:o(this.min,a)}),null!==i&&(!i||11<i)&&n.push({text:t.pm,value:o(this.min,Math.max(12,i))}),this.min.getHours()!==a?n.reverse():n},l.prototype.isRangeChanged=function(e,t){return!1},l.prototype.limitRange=function(e,t,n){return[e,t]},l.prototype.total=function(){var e=this.normalizedRange(),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},l.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},l.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?function(e,t,n){return!t&&!n||t<=e||e<=n}:function(e,t,n){return!t&&!n||t<=e&&e<=n})(e.getHours(),this.min.getHours(),this.max.getHours())},l.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.IntlService])],l));function l(e){this.intl=e}t.DayPeriodService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return u(1e3+e-t)}function a(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:d.setMilliseconds(e,n)}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),u=function(e){return e%1e3},p=a(0),h=a(999),l=(m.prototype.apply=function(e,t){return d.setMilliseconds(e,t.getMilliseconds())},m.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=d.setMilliseconds(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=n,this.max=a,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return u(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return[p(e,n),h(t,n)]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},m.prototype.divideByStep=function(e){return i(e.getMilliseconds(),this.min.getMilliseconds())/this.step},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setMilliseconds(this.max,this.lastMillisecond(e)))},m.prototype.lastMillisecond=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMilliseconds(),t.getMilliseconds()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.insertUndividedMax=!1}t.MillisecondsService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return u(60+e-t)}function a(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:d.setSeconds(e,n)}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),u=function(e){return e%60},p=a(0),h=a(59),l=(m.prototype.apply=function(e,t){return d.setSeconds(e,t.getSeconds())},m.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=d.setSeconds(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=a,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return u(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return[p(e,n),h(t,n)]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},m.prototype.divideByStep=function(e){return i(e.getSeconds(),this.min.getSeconds())/this.step},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setSeconds(this.max,this.lastSecond(e)))},m.prototype.lastSecond=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getSeconds(),t.getSeconds()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.insertUndividedMax=!1}t.SecondsService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return u(60+e-t)}function a(n){return function(e,t){return t&&e.getHours()!==t.getHours()?d.setMinutes(e,n):e}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),u=function(e){return e%60},p=a(0),h=a(59),l=(m.prototype.apply=function(e,t){return d.setMinutes(e,t.getMinutes())},m.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=d.setMinutes(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=a,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return u(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return[p(e,n),h(t,n)]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setMinutes(this.max,this.lastMinute(e)))},m.prototype.divideByStep=function(e){return i(e.getMinutes(),this.min.getMinutes())/this.step},m.prototype.lastMinute=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMinutes(),t.getMinutes()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.insertUndividedMax=!1}t.MinutesService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return u(24+e-t)}function a(n){return function(e,t){return t&&s.getDate(e).getTime()!==s.getDate(t).getTime()?d.setHours(e,n):e}}var o=n(1),r=n(0),s=n(2),l=n(5),c=n(8),d=n(3),u=function(e){return e%24},p=a(0),h=a(23),l=(m.prototype.apply=function(e,t){return d.setHours(e,t.getHours())},m.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,n=e.min,a=void 0===n?this.min:n,n=e.max,n=void 0===n?this.max:n,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){e=d.setHours(c.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=n,this.step=e},m.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return u(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},m.prototype.isRangeChanged=function(e,t){return!s.isEqual(this.min,e)||!s.isEqual(this.max,t)},m.prototype.limitRange=function(e,t,n){return this.boundRange?[p(e,n),h(t,n)]:[e,t]},m.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},m.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},m.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},m.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},m.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},m.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},m.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},m.prototype.isLastMissing=function(e){return this.isMissing(d.setHours(this.max,this.lastHour(e)))},m.prototype.divideByStep=function(e){return i(e.getHours(),this.min.getHours())/this.step},m.prototype.lastHour=function(e){return this.range(e)[1]},m.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getHours(),t.getHours()]},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.IntlService])],m));function m(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}t.HoursService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(26),r=n(2),s=n(45),l=n(8),c=n(42),d=n(46),u=n(65),p=n(64),h=n(63),m=n(62),g=n(61),v=n(20),f={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]}},y=((n={})[c.TIME_PART.dayperiod]=g.DayPeriodService,n[c.TIME_PART.hour]=u.HoursService,n[c.TIME_PART.minute]=p.MinutesService,n[c.TIME_PART.second]=h.SecondsService,n[c.TIME_PART.millisecond]=m.MillisecondsService,n),d=(Object.defineProperty(_.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),_.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(y[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],i=i[1];(this.service.isRangeChanged(a,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},_.prototype.ngOnInit=function(){var e=this;this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight;var t=this.dom.timeListTitleHeight;this.topOffset=(this.listHeight-this.itemHeight-t)/2,this.bottomOffset=this.listHeight-this.itemHeight-t,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;t="translateY("+this.topOffset+"px)";this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},_.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},_.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},_.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},_.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))},_.prototype.handleItemClick=function(e){var e=v.closestInScope(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},_.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},_.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},_.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);if(t===n&&e<2)return i;t=n<t;return t&&e>=this.bottomThreshold||!t&&e>this.topThreshold?this.virtualization.itemOffset(n+1):i},_.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},_.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},_.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},e=Object.assign({},t,e);return e.boundRange="hour"!==e.part.type,e},_.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},_.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;if(!t||!e)return!1;t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)];return t&&e&&t.text!==e.text},_.prototype.handleKeyDown=function(e){var t=(f[e.keyCode]||function(){return null})(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},_.prototype.bindEvents=function(){var t=this;this.scrollSubscription=this.virtualization.scroll$().pipe(a.debounceTime(100),a.map(function(e){return e.target.scrollTop}),a.map(function(e){return t.itemOffset(e)}),a.map(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])});var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},i.__decorate([o.Input(),i.__metadata("design:type",Date)],_.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],_.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],_.prototype,"part",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],_.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],_.prototype,"value",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],_.prototype,"valueChange",void 0),i.__decorate([o.ViewChild(s.VirtualizationComponent,{static:!0}),i.__metadata("design:type",s.VirtualizationComponent)],_.prototype,"virtualization",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],_.prototype,"tabIndex",null),i.__decorate([o.HostBinding("class.k-time-list"),i.__metadata("design:type",Boolean)],_.prototype,"componentClass",void 0),i.__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 '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Injector,d.TimePickerDOMService,o.Renderer2,o.NgZone])],_));function _(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=r.cloneDate(l.MIDNIGHT_DATE),this.max=r.cloneDate(l.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=[]}t.TimeListComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(12),s=n(40),l=n(17),c=n(86),d=n(84),u=n(88),p=n(49),h=n(87),m=n(83),n=n(6),c=[u.DateRangeComponent,p.DateRangePopupComponent,h.DateRangePopupTemplateDirective,m.DateRangeSelectionDirective,d.DateRangeStartInputDirective,c.DateRangeEndInputDirective],n=[s.MultiViewCalendarModule,l.DateInputModule,r.PopupModule,n.EventsModule],n=i.__decorate([a.NgModule({declarations:[c],exports:[c],imports:[o.CommonModule,n]})],g);function g(){}t.DateRangeModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(69),s=(i=n.DatePickerMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.DatePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-datepicker-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DatePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"toggle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.DatePickerMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(69),s=(i=n.DatePickerMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.DatePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoDatePickerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DatePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(92),r=n(11),s=n(5),l=n(12),c=n(41),d=n(39),u=n(17),p=n(6),h=n(70),m=n(68),g=n(48),n=n(19),g=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:n.TOUCH_ENABLED,useValue:g.touchEnabled}]})],v);function v(){}t.DatePickerModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(73),s=(i=n.DateInputMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.DateInputMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-dateinput-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DateInputCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"decrement",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"increment",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.DateInputMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(73),s=(i=n.DateInputMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.DateInputMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoDateInputLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DateInputLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(41),n=n(40),n=i.__decorate([a.NgModule({exports:[o.CalendarModule,n.MultiViewCalendarModule],imports:[o.CalendarModule,n.MultiViewCalendarModule]})],r);function r(){}t.CalendarsModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),n=[n(45).VirtualizationComponent],o=i.__decorate([a.NgModule({declarations:[n],exports:[n],imports:[o.CommonModule]})],r);function r(){}t.VirtualizationModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(78),s=(i=n.CalendarMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.CalendarMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-calendar-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.CalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.CalendarMessages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(78),s=(i=n.CalendarMessages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.CalendarMessages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoCalendarLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.CalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"today",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"prevButtonTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"nextButtonTitle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(80),s=(i=n.Messages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.MultiViewCalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(11),r=n(108),s=n(96),l=n(107),n=n(6),n=i.__decorate([a.NgModule({declarations:[r.KForOf,s.HeaderComponent,l.ViewComponent],exports:[r.KForOf,s.HeaderComponent,l.ViewComponent],imports:[o.CommonModule,n.EventsModule]})],c);function c(){}t.CalendarCommonModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(9),s=n(18),a=n(37),l=n(13),c=n(2),d=n(3),a=(Object.defineProperty(u.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(u.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(u.prototype,"calendarRange",{get:function(){return this.selectionRange||l.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),u.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=d.either(e.min,n.min),n.max=d.either(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){c.isEqual(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),r.fromEvent(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},u.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},u.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},u.prototype.isEqualCalendarRange=function(e){return d.isEqualRange(this.calendar.selectionRange,e)},u.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(d.clampRange(t))},u.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",e=n?d.clampRange(e):this.updateRange(e);d.isEqualRange(t.selectionRange,e)||(this.acceptAndEmit(e),t.setActiveRangeEnd(i),t.setRange(e))},u.prototype.handleHover=function(e){var t,n,i;this.hasCompleteRange()||(t=(i=this.calendarRange).start,n=i.end,i=this.calendar.activeRangeEnd,(t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e)))},u.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||l.EMPTY_SELECTIONRANGE,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},u.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},u.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},u.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},u.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},u.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},i.__decorate([o.Input(),i.__metadata("design:type",String)],u.prototype,"autoCorrectOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],u.prototype,"selectionRange",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],u.prototype,"activeRangeEnd",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],u.prototype,"activeRangeEndChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],u.prototype,"selectionRangeChange",void 0),i.__decorate([o.Directive({selector:"[kendoDateRangeSelection]"}),i.__param(4,o.Optional()),i.__metadata("design:paramtypes",[a.MultiViewCalendarComponent,o.ChangeDetectorRef,o.ElementRef,o.Renderer2,s.DateRangeService])],u));function u(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new o.EventEmitter,this.selectionRangeChange=new o.EventEmitter,this.calendarSubscriptions=new r.Subscription,this.dateRangeService=this.dateRangeService||new s.DateRangeService,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}t.DateRangeSelectionDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),a=n(0),r=n(2),s=n(44),l=n(85),c=n(18),d=n(13),u=n(3),a=(o=l.DateRangeInput,i.__extends(p,o),p.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),o.prototype.init.call(this)},p.prototype.ngOnDestroy=function(){o.prototype.destroy.call(this)},p.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!u.isInRange(e,i,n))return null;n=(this.rangeService.selectionRange||d.EMPTY_SELECTIONRANGE).end;return this.autoCorrectOn===t&&n&&n<e?u.clampRange(e):{start:r.cloneDate(e),end:n}},p.prototype.updateInputValue=function(e){var t=(e||d.EMPTY_SELECTIONRANGE).start,n=this.dateInput,e=n.min,n=n.max;!r.isEqual(this.dateInput.value,t)&&u.isInRange(t,e,n)&&(this.dateInput.writeValue(r.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],p.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],p.prototype,"navigateCalendarOnFocus",void 0),i.__decorate([a.Directive({selector:"[kendoDateRangeStartInput]"}),i.__metadata("design:paramtypes",[c.DateRangeService,s.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],p));function p(e,t,n,i,a){a=o.call(this,"start",e,t,n,i,a)||this;return a.rangeService=e,a.dateInput=t,a.navigateCalendarOnFocus=!1,a}t.DateRangeStartInputDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(6),r=n(9),o=n(26),s=n(7),n=(Object.defineProperty(l.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return s.isPresent(e)&&s.isPresent(e.calendar)},enumerable:!0,configurable:!0}),l.prototype.init=function(){var t=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(o.filter(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),r.fromEvent(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),r.fromEvent(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},l.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},l.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()},l.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new r.Subscription},l.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},l.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()}))})})},l.prototype.updateRange=function(e,t){t=this.getRange(e,t);t&&(this.focusActiveDate(),this.dateRangeService.setRange(t))},l.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===a.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===a.Keys.ArrowDown&&this.dateRangeService.activatePopup()},l.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(i.cloneDate(this.input.value))},l.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")},l);function l(e,t,n,i,a,o){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=o,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new r.Subscription,this.subscriptions=new r.Subscription}t.DateRangeInput=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),a=n(0),r=n(2),s=n(44),l=n(85),c=n(18),d=n(13),u=n(3),p=n(7),a=(o=l.DateRangeInput,i.__extends(h,o),h.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),o.prototype.init.call(this)},h.prototype.ngOnDestroy=function(){o.prototype.destroy.call(this)},h.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!u.isInRange(e,i,n))return null;n=(this.rangeService.selectionRange||d.EMPTY_SELECTIONRANGE).start;return this.autoCorrectOn===t&&p.isPresent(e)&&e<n?u.clampRange(e):{start:n,end:r.cloneDate(e)}},h.prototype.updateInputValue=function(e){var t=(e||d.EMPTY_SELECTIONRANGE).end,n=this.dateInput,e=n.min,n=n.max;!r.isEqual(this.dateInput.value,t)&&u.isInRange(t,e,n)&&(this.dateInput.writeValue(r.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],h.prototype,"navigateCalendarOnFocus",void 0),i.__decorate([a.Directive({selector:"[kendoDateRangeEndInput]"}),i.__metadata("design:paramtypes",[c.DateRangeService,s.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],h));function h(e,t,n,i,a){a=o.call(this,"end",e,t,n,i,a)||this;return a.rangeService=e,a.dateInput=t,a.navigateCalendarOnFocus=!1,a}t.DateRangeEndInputDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),n=n(0),n=i.__decorate([n.Directive({selector:"[kendoDateRangePopupTemplate]"}),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.DateRangePopupTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(23),r=n(22),s=n(49),n=n(18),i=(Object.defineProperty(l.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!0,configurable:!0}),l.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},l.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([a.ContentChildren(s.DateRangePopupComponent),i.__metadata("design:type",a.QueryList)],l.prototype,"contentPopup",void 0),i.__decorate([a.Component({providers:[n.DateRangeService],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),i.__metadata("design:paramtypes",[])],l));function l(){this.showDefault=!1,o.validatePackage(r.packageMetadata)}t.DateRangeComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),d=n(0),o=n(24),u=n(9),r=n(26),p=n(2),s=n(12),l=n(5),h=n(6),c=n(4),m=n(23),g=n(22),v=n(15),f=n(21),y=n(7),_=n(3),b=n(25),C=n(29),w=n(28),D=n(91),k=n(42),T=n(8),E=n(19),S=n(36),M=n(35),I=n(34),O=n(33),V=n(32),R=n(31),x=n(30),P=n(43),A=new RegExp(k.TIME_PART.hour+"|"+k.TIME_PART.minute+"|"+k.TIME_PART.second+"|"+k.TIME_PART.dayperiod+"|literal"),N="date",f=(i=F,Object.defineProperty(F.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=p.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"min",{get:function(){return this._min},set:function(e){y.isPresent(e)&&(this._min=p.cloneDate(e),this.calendarMin=p.getDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"max",{get:function(){return this._max},set:function(e){y.isPresent(e)&&(this._max=p.cloneDate(e),this.calendarMax=_.lastMillisecondOfDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isOpen",{get:function(){return y.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=e},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||N,this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,_.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,_.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,_.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,_.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,_.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,_.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,_.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,_.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,_.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,_.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return y.isPresent(this.calendar)||y.isPresent(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(y.isPresent(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),F.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(r.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))),_.isWindowAvailable()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return u.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))}))},F.prototype.ngAfterViewInit=function(){this.setComponentClasses()},F.prototype.ngOnChanges=function(e){(y.isPresent(e.min)||y.isPresent(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?C.minValidator(this.min):_.noop,this.maxValidateFn=this.rangeValidation?w.maxValidator(this.max):_.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?D.disabledDatesValidator(this.disabledDatesService.isDateDisabled):_.noop,this.incompleteValidator=this.incompleteDateValidation?P.incompleteDateValidator():_.noop,this.onValidatorChange())},F.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},F.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},F.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},F.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((y.isPresent(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},F.prototype.writeValue=function(e){this.value=e},F.prototype.registerOnChange=function(e){this.onControlChange=e},F.prototype.registerOnTouched=function(e){this.onControlTouched=e},F.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},F.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},F.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},F.prototype.isEmpty=function(){return!y.isPresent(this.value)&&this.input.isEmpty()},F.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||h.hasObservers(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},F.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,h.hasObservers(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},F.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.wrapper.nativeElement.classList.contains("ng-untouched")||h.hasObservers(this.onBlur)||this.isOpen&&h.hasObservers(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},F.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(p.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},F.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=_.mergeDateAndTime(this.calendar.value,this.timeSelector.current),t=!p.isEqual(this.value,e)||h.hasObservers(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},F.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=h.hasObservers(this.close),this.run(e,function(){return t.togglePopup(!1)}))},F.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},F.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},F.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&h.Keys.ArrowUp:case h.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&h.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&h.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&h.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&y.isPresent(this.calendarValue)&&h.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},F.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=y.isPresent(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==h.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},F.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===h.Keys.Tab&&e&&this.input.focus()},F.prototype.popupButtonsClasses=function(e){e=e||"base";return(this.size?_.getSizeClass("button",this.size):"")+" "+(this.rounded?_.getRoundedClass(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+e:"")},F.prototype.preventMouseDown=function(e){e.preventDefault()},F.prototype.verifyValue=function(e){if(d.isDevMode()&&y.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.")},F.prototype.verifyMinMaxRange=function(){if(d.isDevMode()&&!_.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/.")},F.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},F.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},F.prototype.timeFormatPartFilter=function(e,t,n){t=1<=t&&n[t-1];return t&&"literal"===e.type?A.test(t.type):A.test(e.type)},F.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new b.PreventableEvent,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus()))},F.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},F.prototype.openPopup=function(){var e=this;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()})},F.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},F.prototype.handleValueChange=function(e){p.isEqual(this.value,e)||(this.value=p.cloneDate(e),this.onControlChange(p.cloneDate(e)),this.valueChange.emit(p.cloneDate(e)))},F.prototype.focusTargetInComponent=function(e){if(!y.isPresent(e))return!1;var t=e.relatedTarget||document.activeElement,e=y.isPresent(this.popupRef)&&this.popupRef.popupElement.contains(t),t=this.wrapper.nativeElement.contains(t);return e||t},F.prototype.setTimeSelectorMinMax=function(e){var t=y.isPresent(e)&&p.isEqual(p.getDate(e),p.getDate(this.min));this.timeSelectorMin=p.cloneDate(t?this.min:T.MIN_TIME);e=y.isPresent(e)&&p.isEqual(p.getDate(e),p.getDate(this.max));this.timeSelectorMax=p.cloneDate(e?this.max:T.MAX_TIME)},F.prototype.setCalendarValue=function(e){var t=y.isPresent(e)&&_.isInRange(e,this.calendarMin,this.calendarMax);this.calendarValue=t?p.getDate(e):null},F.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},F.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},F.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},F.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,_.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,_.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,_.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,_.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,_.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},a.__decorate([d.HostBinding("class.k-datetimepicker"),d.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],F.prototype,"hostClasses",void 0),a.__decorate([d.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],F.prototype,"disabledClass",null),a.__decorate([d.ViewChild("toggleButton",{static:!0}),a.__metadata("design:type",d.ElementRef)],F.prototype,"toggleButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],F.prototype,"value",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],F.prototype,"format",null),a.__decorate([d.Input(),a.__metadata("design:type",Number)],F.prototype,"twoDigitYearMax",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],F.prototype,"tabindex",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],F.prototype,"disabledDates",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],F.prototype,"popupSettings",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],F.prototype,"focusableId",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],F.prototype,"title",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"disabled",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"readonly",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"readOnlyInput",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"cancelButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],F.prototype,"formatPlaceholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],F.prototype,"placeholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],F.prototype,"steps",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],F.prototype,"focusedDate",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],F.prototype,"calendarType",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"animateCalendarNavigation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"weekNumber",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],F.prototype,"min",null),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],F.prototype,"max",null),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"rangeValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"disabledDatesValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],F.prototype,"incompleteDateValidation",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],F.prototype,"valueChange",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],F.prototype,"open",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],F.prototype,"close",void 0),a.__decorate([d.Output("focus"),a.__metadata("design:type",d.EventEmitter)],F.prototype,"onFocus",void 0),a.__decorate([d.Output("blur"),a.__metadata("design:type",d.EventEmitter)],F.prototype,"onBlur",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],F.prototype,"defaultTab",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],F.prototype,"size",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],F.prototype,"rounded",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],F.prototype,"fillMode",null),a.__decorate([d.ContentChild(S.CellTemplateDirective,{static:!1}),a.__metadata("design:type",S.CellTemplateDirective)],F.prototype,"cellTemplate",void 0),a.__decorate([d.ContentChild(M.MonthCellTemplateDirective,{static:!1}),a.__metadata("design:type",M.MonthCellTemplateDirective)],F.prototype,"monthCellTemplate",void 0),a.__decorate([d.ContentChild(I.YearCellTemplateDirective,{static:!1}),a.__metadata("design:type",I.YearCellTemplateDirective)],F.prototype,"yearCellTemplate",void 0),a.__decorate([d.ContentChild(O.DecadeCellTemplateDirective,{static:!1}),a.__metadata("design:type",O.DecadeCellTemplateDirective)],F.prototype,"decadeCellTemplate",void 0),a.__decorate([d.ContentChild(V.CenturyCellTemplateDirective,{static:!1}),a.__metadata("design:type",V.CenturyCellTemplateDirective)],F.prototype,"centuryCellTemplate",void 0),a.__decorate([d.ContentChild(R.WeekNumberCellTemplateDirective,{static:!1}),a.__metadata("design:type",R.WeekNumberCellTemplateDirective)],F.prototype,"weekNumberTemplate",void 0),a.__decorate([d.ContentChild(x.HeaderTitleTemplateDirective,{static:!1}),a.__metadata("design:type",x.HeaderTitleTemplateDirective)],F.prototype,"headerTitleTemplate",void 0),a.__decorate([d.ViewChild("container",{read:d.ViewContainerRef,static:!0}),a.__metadata("design:type",d.ViewContainerRef)],F.prototype,"container",void 0),a.__decorate([d.ViewChild("popupTemplate",{read:d.TemplateRef,static:!0}),a.__metadata("design:type",d.TemplateRef)],F.prototype,"popupTemplate",void 0),i=a.__decorate([d.Component({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:d.ChangeDetectionStrategy.OnPush,providers:[v.PickerService,c.LocalizationService,f.DisabledDatesService,{provide:c.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:o.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:h.KendoInput,useExisting:d.forwardRef(function(){return i})}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [(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 '}),a.__param(6,d.Inject(E.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[s.PopupService,l.IntlService,d.ChangeDetectorRef,v.PickerService,d.NgZone,d.ElementRef,Boolean,c.LocalizationService,f.DisabledDatesService,d.Renderer2])],F));function F(e,t,n,i,a,o,r,s,l,c){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.wrapper=o,this.touchEnabled=r,this.localization=s,this.disabledDatesService=l,this.renderer=c,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+h.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 d.EventEmitter,this.open=new d.EventEmitter,this.close=new d.EventEmitter,this.onFocus=new d.EventEmitter,this.onBlur=new d.EventEmitter,this.activeTab=N,this.timeSelectorFormat="t",this.timeSelectorMin=p.cloneDate(T.MIN_TIME),this.timeSelectorMax=p.cloneDate(T.MAX_TIME),this.calendarValue=null,this.calendarMin=p.cloneDate(T.MIN_DATE),this.calendarMax=_.lastMillisecondOfDate(T.MAX_DATE),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=N,this._min=_.mergeDateAndTime(T.MIN_DATE,T.MIN_TIME),this._max=_.mergeDateAndTime(T.MAX_DATE,T.MAX_TIME),this._isActive=!1,this.onControlTouched=_.noop,this.onControlChange=_.noop,this.onValidatorChange=_.noop,this.minValidateFn=_.noop,this.maxValidateFn=_.noop,this.disabledDatesValidateFn=_.noop,this.incompleteValidator=_.noop,this.subscriptions=new u.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",m.validatePackage(g.packageMetadata)}t.DateTimePickerComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),d=n(0),o=n(24),r=n(4),s=n(12),u=n(2),p=n(6),h=n(23),m=n(22),g=n(8),l=n(5),c=n(15),v=n(7),f=n(42),y=n(25),_=n(3),b=n(109),C=n(19),w=n(9),D=n(43),k=new RegExp(f.TIME_PART.hour+"|"+f.TIME_PART.minute+"|"+f.TIME_PART.second+"|"+f.TIME_PART.millisecond+"|"+f.TIME_PART.dayperiod+"|literal"),l=(i=T,Object.defineProperty(T.prototype,"min",{get:function(){return this._min},set:function(e){this._min=u.cloneDate(e||g.MIN_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"max",{get:function(){return this._max},set:function(e){this._max=u.cloneDate(e||g.MAX_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=u.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,_.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,_.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,_.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,_.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,_.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,_.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,_.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,_.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,_.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,_.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&p.hasObservers(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),T.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},T.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()}))},T.prototype.ngAfterViewInit=function(){this.setComponentClasses()},T.prototype.ngOnChanges=function(e){(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?b.timeRangeValidator(this.min,this.max):_.noop,this.incompleteValidator=this.incompleteDateValidation?D.incompleteDateValidator():_.noop,this.onValidatorChange()),e.format&&this.verifyFormat()},T.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()},T.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e!==p.Keys.Escape?t&&(e===p.Keys.ArrowUp&&(this.show=!1),e!==p.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},T.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))},T.prototype.registerOnChange=function(e){this.onControlChange=e},T.prototype.registerOnTouched=function(e){this.onControlTouched=e},T.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},T.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},T.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},T.prototype.focus=function(){this.input.focus()},T.prototype.blur=function(){(this.timeSelector||this.input).blur()},T.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(T.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),T.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))})},T.prototype.handleReject=function(){this.show=!1},T.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},T.prototype.handleMousedown=function(e){e.preventDefault()},T.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(T.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),T.prototype.normalizeTime=function(e){return _.setTime(g.MIDNIGHT_DATE,e)},T.prototype.mergeTime=function(e){return this.value&&e?_.setTime(this.value,e):e},T.prototype.togglePopup=function(e){var t=new y.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},T.prototype._toggle=function(e){var t=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},T.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},T.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())},T.prototype.verifyValue=function(e){if(d.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.")},T.prototype.verifyFormat=function(){if(d.isDevMode()&&this.intl.splitDateFormat(this.format).some(function(e){return!k.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")},T.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),_.isWindowAvailable()&&(this.windowBlurSubscription=w.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},T.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},T.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,p.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},T.prototype.handleBlur=function(e){var t=this,e=e&&v.currentFocusTarget(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(p.hasObservers(this.onBlur)||this.show&&p.hasObservers(this.close)||v.requiresZoneOnBlur(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},T.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},T.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},T.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,_.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,_.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,_.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,_.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,_.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},a.__decorate([d.ViewChild("container",{read:d.ViewContainerRef,static:!1}),a.__metadata("design:type",d.ViewContainerRef)],T.prototype,"container",void 0),a.__decorate([d.ViewChild("popupTemplate",{static:!1}),a.__metadata("design:type",d.TemplateRef)],T.prototype,"popupTemplate",void 0),a.__decorate([d.ViewChild("toggleButton",{static:!0}),a.__metadata("design:type",d.ElementRef)],T.prototype,"toggleButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"focusableId",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"disabled",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"readonly",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"readOnlyInput",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"format",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],T.prototype,"formatPlaceholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"placeholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],T.prototype,"min",null),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],T.prototype,"max",null),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"incompleteDateValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"cancelButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"nowButton",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],T.prototype,"steps",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],T.prototype,"popupSettings",null),a.__decorate([d.Input(),a.__metadata("design:type",Number)],T.prototype,"tabindex",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],T.prototype,"tabIndex",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],T.prototype,"title",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],T.prototype,"rangeValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],T.prototype,"value",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],T.prototype,"size",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],T.prototype,"rounded",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],T.prototype,"fillMode",null),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],T.prototype,"valueChange",void 0),a.__decorate([d.Output("focus"),a.__metadata("design:type",d.EventEmitter)],T.prototype,"onFocus",void 0),a.__decorate([d.Output("blur"),a.__metadata("design:type",d.EventEmitter)],T.prototype,"onBlur",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],T.prototype,"open",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],T.prototype,"close",void 0),a.__decorate([d.HostBinding("class.k-timepicker"),d.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],T.prototype,"wrapperClasses",void 0),a.__decorate([d.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],T.prototype,"disabledClass",null),i=a.__decorate([d.Component({changeDetection:d.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:p.KendoInput,useExisting:d.forwardRef(function(){return i})},r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.timepicker"},c.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 '}),a.__param(9,d.Optional()),a.__param(9,d.Inject(C.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[d.NgZone,r.LocalizationService,d.ChangeDetectorRef,s.PopupService,d.ElementRef,d.Renderer2,d.Injector,c.PickerService,l.IntlService,Boolean])],T));function T(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.intl=l,this.touchEnabled=c,this.focusableId="k-"+p.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 d.EventEmitter,this.onFocus=new d.EventEmitter,this.onBlur=new d.EventEmitter,this.open=new d.EventEmitter,this.close=new d.EventEmitter,this.wrapperClasses=!0,this.popupUID=p.guid(),this.onControlChange=_.noop,this.onControlTouched=_.noop,this.onValidatorChange=_.noop,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=_.noop,this.incompleteValidator=_.noop,this._min=u.cloneDate(g.MIN_TIME),this._max=u.cloneDate(g.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",h.validatePackage(m.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)))}t.TimePickerComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disabledDatesValidator=function(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),d=n(0),o=n(24),r=n(4),s=n(12),u=n(2),p=n(6),h=n(23),m=n(22),g=n(8),l=n(29),c=n(28),v=n(25),f=n(10),y=n(36),_=n(35),b=n(34),C=n(33),w=n(32),D=n(31),k=n(30),T=n(50),E=n(15),S=n(21),M=n(3),I=n(19),O=n(7),V=n(9),R=n(43),x=n(91),S=(i=P,Object.defineProperty(P.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=u.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,M.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,M.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,M.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,M.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,M.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,M.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,M.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,M.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.toggleButton.nativeElement,M.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,M.getFillModeClass("input",e))),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&p.hasObservers(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),P.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},P.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()}))},P.prototype.ngAfterViewInit=function(){this.setComponentClasses()},P.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?l.minValidator(this.min):M.noop,this.maxValidateFn=this.rangeValidation?c.maxValidator(this.max):M.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?x.disabledDatesValidator(this.disabledDatesService.isDateDisabled):M.noop,this.incompleteValidator=this.incompleteDateValidation?R.incompleteDateValidator():M.noop,this.onValidatorChange())},P.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(P.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),P.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))},P.prototype.registerOnChange=function(e){this.onControlChange=e},P.prototype.registerOnTouched=function(e){this.onControlTouched=e},P.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},P.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},P.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},P.prototype.focus=function(){this.input.focus()},P.prototype.blur=function(){(this.calendar||this.input).blur()},P.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},P.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},P.prototype.handleMousedown=function(e){e.preventDefault()},P.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))},P.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(P.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(P.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(P.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),P.prototype.mergeTime=function(e){return this.value&&e?M.setTime(e,this.value):e},P.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,a=e.target;i===p.Keys.Escape&&(this.show=!1),t&&(i!==p.Keys.ArrowDown||this.show||(this.show=!0),i===p.Keys.ArrowUp&&(this.show=!1)),i===p.Keys.Enter&&a.classList.contains("k-calendar")&&e.preventDefault(),i===p.Keys.Tab&&this.show&&this.calendar.isActive&&M.isTabExitingCalendar(this.calendarType,a,n)&&(this.input.focus(),this.show=!1)},P.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())},P.prototype._toggle=function(e){var t=this;e!==this._show&&((this._show=e)?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},P.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},P.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())},P.prototype.verifySettings=function(){if(d.isDevMode()&&!M.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.")},P.prototype.verifyValue=function(e){if(d.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.")},P.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),M.isWindowAvailable()&&(this.windowBlurSubscription=V.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},P.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,p.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},P.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},P.prototype.handleBlur=function(e){var t=this,e=e&&O.currentFocusTarget(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(p.hasObservers(this.onBlur)||this.show&&p.hasObservers(this.close)||O.requiresZoneOnBlur(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},P.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},P.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},P.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},P.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,M.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,M.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,M.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,M.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,M.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},a.__decorate([d.ViewChild("container",{read:d.ViewContainerRef,static:!0}),a.__metadata("design:type",d.ViewContainerRef)],P.prototype,"container",void 0),a.__decorate([d.ViewChild("popupTemplate",{static:!0}),a.__metadata("design:type",d.TemplateRef)],P.prototype,"popupTemplate",void 0),a.__decorate([d.ViewChild("toggleButton",{static:!0}),a.__metadata("design:type",d.ElementRef)],P.prototype,"toggleButton",void 0),a.__decorate([d.ContentChild(y.CellTemplateDirective,{static:!1}),a.__metadata("design:type",y.CellTemplateDirective)],P.prototype,"cellTemplate",void 0),a.__decorate([d.Input("cellTemplate"),a.__metadata("design:type",y.CellTemplateDirective),a.__metadata("design:paramtypes",[y.CellTemplateDirective])],P.prototype,"cellTemplateRef",null),a.__decorate([d.ContentChild(_.MonthCellTemplateDirective,{static:!1}),a.__metadata("design:type",_.MonthCellTemplateDirective)],P.prototype,"monthCellTemplate",void 0),a.__decorate([d.Input("monthCellTemplate"),a.__metadata("design:type",_.MonthCellTemplateDirective),a.__metadata("design:paramtypes",[_.MonthCellTemplateDirective])],P.prototype,"monthCellTemplateRef",null),a.__decorate([d.ContentChild(b.YearCellTemplateDirective,{static:!1}),a.__metadata("design:type",b.YearCellTemplateDirective)],P.prototype,"yearCellTemplate",void 0),a.__decorate([d.Input("yearCellTemplate"),a.__metadata("design:type",b.YearCellTemplateDirective),a.__metadata("design:paramtypes",[b.YearCellTemplateDirective])],P.prototype,"yearCellTemplateRef",null),a.__decorate([d.ContentChild(C.DecadeCellTemplateDirective,{static:!1}),a.__metadata("design:type",C.DecadeCellTemplateDirective)],P.prototype,"decadeCellTemplate",void 0),a.__decorate([d.Input("decadeCellTemplate"),a.__metadata("design:type",C.DecadeCellTemplateDirective),a.__metadata("design:paramtypes",[C.DecadeCellTemplateDirective])],P.prototype,"decadeCellTemplateRef",null),a.__decorate([d.ContentChild(w.CenturyCellTemplateDirective,{static:!1}),a.__metadata("design:type",w.CenturyCellTemplateDirective)],P.prototype,"centuryCellTemplate",void 0),a.__decorate([d.Input("centuryCellTemplate"),a.__metadata("design:type",w.CenturyCellTemplateDirective),a.__metadata("design:paramtypes",[w.CenturyCellTemplateDirective])],P.prototype,"centuryCellTemplateRef",null),a.__decorate([d.ContentChild(D.WeekNumberCellTemplateDirective,{static:!1}),a.__metadata("design:type",D.WeekNumberCellTemplateDirective)],P.prototype,"weekNumberTemplate",void 0),a.__decorate([d.Input("weekNumberTemplate"),a.__metadata("design:type",D.WeekNumberCellTemplateDirective),a.__metadata("design:paramtypes",[D.WeekNumberCellTemplateDirective])],P.prototype,"weekNumberTemplateRef",null),a.__decorate([d.ContentChild(k.HeaderTitleTemplateDirective,{static:!1}),a.__metadata("design:type",k.HeaderTitleTemplateDirective)],P.prototype,"headerTitleTemplate",void 0),a.__decorate([d.Input("headerTitleTemplate"),a.__metadata("design:type",k.HeaderTitleTemplateDirective),a.__metadata("design:paramtypes",[k.HeaderTitleTemplateDirective])],P.prototype,"headerTitleTemplateRef",null),a.__decorate([d.ContentChild(T.NavigationItemTemplateDirective,{static:!1}),a.__metadata("design:type",T.NavigationItemTemplateDirective)],P.prototype,"navigationItemTemplate",void 0),a.__decorate([d.Input("navigationItemTemplate"),a.__metadata("design:type",T.NavigationItemTemplateDirective),a.__metadata("design:paramtypes",[T.NavigationItemTemplateDirective])],P.prototype,"navigationItemTemplateRef",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"focusableId",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"activeView",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"bottomView",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"topView",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"calendarType",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"animateCalendarNavigation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabled",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readonly",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"readOnlyInput",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"popupSettings",null),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"navigation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],P.prototype,"min",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],P.prototype,"max",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"incompleteDateValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date)],P.prototype,"focusedDate",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],P.prototype,"value",null),a.__decorate([d.Input(),a.__metadata("design:type",Object)],P.prototype,"format",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number)],P.prototype,"twoDigitYearMax",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Object)],P.prototype,"formatPlaceholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"placeholder",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number)],P.prototype,"tabindex",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],P.prototype,"tabIndex",null),a.__decorate([d.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],P.prototype,"disabledDates",null),a.__decorate([d.Input(),a.__metadata("design:type",String)],P.prototype,"title",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"rangeValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"disabledDatesValidation",void 0),a.__decorate([d.Input(),a.__metadata("design:type",Boolean)],P.prototype,"weekNumber",void 0),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"size",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"rounded",null),a.__decorate([d.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],P.prototype,"fillMode",null),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],P.prototype,"valueChange",void 0),a.__decorate([d.Output("focus"),a.__metadata("design:type",d.EventEmitter)],P.prototype,"onFocus",void 0),a.__decorate([d.Output("blur"),a.__metadata("design:type",d.EventEmitter)],P.prototype,"onBlur",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],P.prototype,"open",void 0),a.__decorate([d.Output(),a.__metadata("design:type",d.EventEmitter)],P.prototype,"close",void 0),a.__decorate([d.HostBinding("class.k-datepicker"),d.HostBinding("class.k-input"),a.__metadata("design:type",Boolean)],P.prototype,"wrapperClasses",void 0),a.__decorate([d.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],P.prototype,"disabledClass",null),i=a.__decorate([d.Component({changeDetection:d.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0},{provide:p.KendoInput,useExisting:d.forwardRef(function(){return i})},r.LocalizationService,E.PickerService,S.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 '}),a.__param(9,d.Optional()),a.__param(9,d.Inject(I.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[d.NgZone,r.LocalizationService,d.ChangeDetectorRef,s.PopupService,d.ElementRef,d.Renderer2,d.Injector,E.PickerService,S.DisabledDatesService,Boolean])],P));function P(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.disabledDatesService=l,this.touchEnabled=c,this.focusableId="k-"+p.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=u.cloneDate(g.MIN_DATE),this.max=u.cloneDate(g.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 d.EventEmitter,this.onFocus=new d.EventEmitter,this.onBlur=new d.EventEmitter,this.open=new d.EventEmitter,this.close=new d.EventEmitter,this.wrapperClasses=!0,this.popupUID=p.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=M.noop,this.onControlTouched=M.noop,this.onValidatorChange=M.noop,this.minValidateFn=M.noop,this.maxValidateFn=M.noop,this.disabledDatesValidateFn=M.noop,this.incompleteValidator=M.noop,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",h.validatePackage(m.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)))}t.DatePickerComponent=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(5),s=n(45),l=n(14),c=n(27),d=n(10),u=n(8),p=n(3),c=(Object.defineProperty(h.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),h.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))},h.prototype.ngOnChanges=function(e){var t,n,i,a,o;this.service=this.bus.service(this.activeView),this.service&&(this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=p.hasChange(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,i=p.hasChange(e,"activeView"),t=this.focusedDate,o=p.dateInRange(this.service.viewDate(t,this.max,this.minViewsToRender),this.min,this.max),a=this.service.total(this.min,this.max),n=this.total&&this.total!==a||!this.service.isInArray(t,this.dates),this.skip=this.service.skip(o,this.min),this.total=a,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),n&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),a=this.activeDate,o=t,a&&o&&a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()||(this.activeDate=r.cloneDate(t)),i=p.hasChange(e,"focusedDate")||i,(n||i||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(t,this.min)))},h.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},h.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},h.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},h.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},h.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},h.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},h.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},h.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},h.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},h.prototype.getScrollableHeight=function(){return this.activeView===d.CalendarViewEnum.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},h.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},h.prototype.getWeekNames=function(){var e=p.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},h.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],h.prototype,"cellTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],h.prototype,"weekNumberTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],h.prototype,"headerTitleTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],h.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],h.prototype,"cellUID",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],h.prototype,"focusedDate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],h.prototype,"isActive",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],h.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],h.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],h.prototype,"selectedDates",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],h.prototype,"weekNumber",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"cellClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"weekNumberCellClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"activeDateChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"todayButtonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],h.prototype,"pageChange",void 0),i.__decorate([o.ViewChild(s.VirtualizationComponent,{static:!1}),i.__metadata("design:type",s.VirtualizationComponent)],h.prototype,"virtualization",void 0),i.__decorate([o.ViewChild("list",{static:!0}),i.__metadata("design:type",o.ElementRef)],h.prototype,"list",void 0),i.__decorate([o.HostBinding("class.k-vstack"),o.HostBinding("class.k-calendar-view"),i.__metadata("design:type",Boolean)],h.prototype,"getComponentClass",void 0),i.__decorate([o.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentMonthClass",null),i.__decorate([o.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentYearClass",null),i.__decorate([o.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentDecadeClass",null),i.__decorate([o.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"getComponentCenturyClass",null),i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\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,o.ChangeDetectorRef,a.IntlService,c.CalendarDOMService,o.Renderer2])],h));function h(e,t,n,i,a){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=a,this.isActive=!0,this.min=new Date(u.MIN_DATE),this.max=new Date(u.MAX_DATE),this.selectedDates=[],this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this.todayButtonClick=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}t.ViewListComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(5),r=n(14),s=n(27),l=n(10),c=n(45),d=n(8),u=n(2),p=n(3),h=n(20),a=(Object.defineProperty(m.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),m.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))},m.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=l.CalendarViewEnum[this.activeView],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)))},m.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},m.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},m.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},m.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},m.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},m.prototype.handleDateChange=function(e){var e=h.closestInScope(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(u.cloneDate(e)))},m.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},m.prototype.intlChange=function(){this.activeView===l.CalendarViewEnum.month&&this.cdr.markForCheck()},i.__decorate([o.Input(),i.__metadata("design:type",Number)],m.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"focusedDate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],m.prototype,"templateRef",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"pageChange",void 0),i.__decorate([o.ViewChild(c.VirtualizationComponent,{static:!1}),i.__metadata("design:type",c.VirtualizationComponent)],m.prototype,"virtualization",void 0),i.__decorate([o.ViewChild("list",{static:!0}),i.__metadata("design:type",o.ElementRef)],m.prototype,"list",void 0),i.__decorate([o.HostBinding("class.k-calendar-navigation"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],m.prototype,"getComponentClass",null),i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),i.__metadata("design:paramtypes",[r.BusViewService,s.CalendarDOMService,a.IntlService,o.ChangeDetectorRef,o.Renderer2])],m));function m(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(d.MIN_DATE),this.max=new Date(d.MAX_DATE),this.focusedDate=new Date,this.valueChange=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}t.NavigationComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),r=n(2),s=n(3),n=n(14),n=(o.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,e=e.selectedDates.slice();return o="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!r.isEqual(e,t)}):e.push(t),t):n.shiftKey?(n=(i=s.sortDates([o||t,t]))[0],i=i[1],e=this.bus.service(a).dateRange(n,i),t>e[0]?e[0]:s.last(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:o}},o.prototype.isDateSelected=function(e,t){return e.some(function(e){return r.isEqual(e,t)})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.BusViewService])],o));function o(e){this.bus=e}t.SelectionService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n(4),r=n(5),s=n(2),l=n(10),c=n(14),d=n(8),u=n(3),p=n(21),h=n(9),p=(m.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)))},m.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())},m.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},m.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(u.dateInRange(u.getToday(),this.min,this.max)))},m.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},m.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},m.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},m.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)},m.prototype.setTodayAvailability=function(){var e=u.getToday(),t=u.isInRange(e,s.getDate(this.min),s.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()},i.__decorate([o.Input(),i.__metadata("design:type",Number)],m.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"currentDate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],m.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],m.prototype,"rangeLength",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],m.prototype,"templateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],m.prototype,"isPrevDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],m.prototype,"isNextDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],m.prototype,"showNavigationButtons",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"todayButtonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"prevButtonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],m.prototype,"nextButtonClick",void 0),i.__decorate([o.HostBinding("class.k-calendar-header"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],m.prototype,"getComponentClass",void 0),i.__decorate([o.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,o.ChangeDetectorRef,a.LocalizationService,r.IntlService,p.DisabledDatesService])],m));function m(e,t,n,i,a){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=a,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(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 o.EventEmitter,this.prevButtonClick=new o.EventEmitter,this.nextButtonClick=new o.EventEmitter,this.getComponentClass=!0,this.subscriptions=new h.Subscription}t.HeaderComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(0),l=n(2),a=n(14),o=n(52),s=n(5),c=n(16),d=n(10),u=n(8),p=n(3),h=n(6),m=n(7),o=(Object.defineProperty(g.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),g.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=p.hasChange(e,"activeView"),e=0<this.views&&p.hasChange(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=l.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate)))},g.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},g.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},g.prototype.initService=function(){this.service=this.bus.service(this.activeView)},g.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},g.prototype.getCaptionTitle=function(e){return this.service.title(e)},g.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},g.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),o=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.Action.NextView?this.nextAnimationDate=l.cloneDate(this.dates[0]):this.prevAnimationDate=l.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",o+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")});var r=i.getBoundingClientRect(),s=parseFloat(getComputedStyle(n).columnGap),i=e===c.Action.NextView?"translateX(0)":"translateX(-"+(r.width+s)+"px)",s=e===c.Action.NextView?"translateX(-"+(r.width+s)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:i},{transform:s}],{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()})},g.prototype.navigate=function(e){this.animateNavigation&&h.isDocumentAvailable()&&m.isPresent(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),e=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(e)&&(this.dates=e),this.activeDate=l.cloneDate(this.dates[0]),this.focusedDate=l.cloneDate(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),l.cloneDate(t)},g.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},g.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},g.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},g.prototype.clampDate=function(e){return p.dateInRange(e,this.min,this.max)},g.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},g.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},g.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},g.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],g.prototype,"cellTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],g.prototype,"weekNumberTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],g.prototype,"activeRangeEnd",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],g.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],g.prototype,"cellUID",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],g.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],g.prototype,"isActive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],g.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],g.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],g.prototype,"selectionRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],g.prototype,"selectedDates",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],g.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],g.prototype,"showViewHeader",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],g.prototype,"animateNavigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],g.prototype,"weekNumber",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"cellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"weekNumberCellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"cellEnter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.prototype,"cellLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],g.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)],g.prototype,"getComponentClass",void 0),i.__decorate([r.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentMonthClass",null),i.__decorate([r.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentYearClass",null),i.__decorate([r.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentDecadeClass",null),i.__decorate([r.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"getComponentCenturyClass",null),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,s.IntlService,o.WeekNamesService,r.ChangeDetectorRef,r.ElementRef,r.Renderer2])],g));function g(e,t,n,i,a,o){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=o,this.activeView=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 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))}t.HorizontalViewListComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return e?e.virtualization:null}var a=n(1),h=n(0),o=n(24),r=n(4),s=n(2),m=n(6),g=n(23),v=n(22),l=n(37),c=n(94),d=n(93),u=n(27),p=n(14),f=n(51),y=n(21),_=n(95),b=n(111),C=n(36),w=n(35),D=n(34),k=n(33),T=n(32),E=n(31),S=n(30),M=n(50),I=n(15),O=n(10),V=n(29),R=n(28),x=n(8),P=n(3),A=n(20),N=n(7),F=n(9),B="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return L})},t.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:h.forwardRef(function(){return L})},t.KENDO_INPUT_PROVIDER={provide:m.KendoInput,useExisting:h.forwardRef(function(){return L})};var L=(Object.defineProperty(j.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!s.isEqual(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||P.getToday(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(x.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(x.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(j.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)});P.areDatesEqual(t,this.selectedDates)||(e=P.last(t),this.rangePivot=s.cloneDate(e),this.focusedDate=s.cloneDate(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.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(j.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"activeViewEnum",{get:function(){var e=O.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"bottomViewEnum",{get:function(){return O.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"topViewEnum",{get:function(){return O.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!0,configurable:!0}),j.prototype.ngOnInit=function(){var t=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(O.CalendarViewEnum[e])}),this.control=this.injector.get(o.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},j.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),P.hasExistingValue(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=P.dateInRange(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?V.minValidator(this.min):P.noop,this.maxValidateFn=this.rangeValidation?R.maxValidator(this.max):P.noop,this.onValidatorChange())},j.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},j.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(i(this.navigationView),i(this.monthView)))},j.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()}),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},j.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},j.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;N.isPresent(e)&&e.focus()},j.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;N.isPresent(e)&&e.blur()},j.prototype.containsElement=function(e){var t=this;return Boolean(A.closest(e,function(e){return e===t.element.nativeElement}))},j.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(s.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=P.dateInRange(e,this.min,this.max),this.detectChanges())},j.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=F.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},j.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},j.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||!P.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())},j.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},j.prototype.registerOnChange=function(e){this.onControlChange=e},j.prototype.registerOnTouched=function(e){this.onControlTouched=e},j.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},j.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},j.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},j.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case O.CalendarViewEnum.month:return this.monthCellTemplate||this.cellTemplate;case O.CalendarViewEnum.year:return this.yearCellTemplate;case O.CalendarViewEnum.decade:return this.decadeCellTemplate;case O.CalendarViewEnum.century:return this.centuryCellTemplate;default:return null}},j.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},j.prototype.emitNavigate=function(e){var t=O.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},j.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},j.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},j.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},j.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},j.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:P.last(e)})})},j.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()))},j.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},j.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},j.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},j.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+B+" 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 "+B+" for possible resolution.")}},j.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)))},j.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},j.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},j.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=s.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},j.prototype.handleKeydown=function(e){var t;"classic"===this.type&&this.multiViewCalendar.isHeaderActive||(t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),N.isPresent(this.pickerService)&&t&&e.altKey||(t=P.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),s.isEqual(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e)))},j.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},j.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},j.prototype.setAriaActivedescendant=function(){var e;N.isPresent(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))&&("classic"!==this.type?(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)):this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant"))},j.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(P.last(e)):e.map(function(e){return s.cloneDate(e)})},j.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"id",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],j.prototype,"focusedDate",null),a.__decorate([h.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],j.prototype,"min",null),a.__decorate([h.Input(),a.__metadata("design:type",Date),a.__metadata("design:paramtypes",[Date])],j.prototype,"max",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"rangeValidation",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"selection",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"value",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"disabled",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Number)],j.prototype,"tabindex",void 0),a.__decorate([h.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],j.prototype,"tabIndex",null),a.__decorate([h.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],j.prototype,"disabledDates",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"navigation",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"activeView",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"bottomView",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String)],j.prototype,"topView",void 0),a.__decorate([h.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],j.prototype,"type",null),a.__decorate([h.Input(),a.__metadata("design:type",Boolean)],j.prototype,"animateNavigation",void 0),a.__decorate([h.Input(),h.HostBinding("class.k-week-number"),a.__metadata("design:type",Boolean)],j.prototype,"weekNumber",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"activeViewChange",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"navigate",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"activeViewDateChange",void 0),a.__decorate([h.Output(),a.__metadata("design:type",h.EventEmitter)],j.prototype,"valueChange",void 0),a.__decorate([h.ContentChild(C.CellTemplateDirective,{static:!0}),a.__metadata("design:type",C.CellTemplateDirective)],j.prototype,"cellTemplate",void 0),a.__decorate([h.Input("cellTemplate"),a.__metadata("design:type",C.CellTemplateDirective),a.__metadata("design:paramtypes",[C.CellTemplateDirective])],j.prototype,"cellTemplateRef",null),a.__decorate([h.ContentChild(w.MonthCellTemplateDirective,{static:!0}),a.__metadata("design:type",w.MonthCellTemplateDirective)],j.prototype,"monthCellTemplate",void 0),a.__decorate([h.Input("monthCellTemplate"),a.__metadata("design:type",w.MonthCellTemplateDirective),a.__metadata("design:paramtypes",[w.MonthCellTemplateDirective])],j.prototype,"monthCellTemplateRef",null),a.__decorate([h.ContentChild(D.YearCellTemplateDirective,{static:!0}),a.__metadata("design:type",D.YearCellTemplateDirective)],j.prototype,"yearCellTemplate",void 0),a.__decorate([h.Input("yearCellTemplate"),a.__metadata("design:type",D.YearCellTemplateDirective),a.__metadata("design:paramtypes",[D.YearCellTemplateDirective])],j.prototype,"yearCellTemplateRef",null),a.__decorate([h.ContentChild(k.DecadeCellTemplateDirective,{static:!0}),a.__metadata("design:type",k.DecadeCellTemplateDirective)],j.prototype,"decadeCellTemplate",void 0),a.__decorate([h.Input("decadeCellTemplate"),a.__metadata("design:type",k.DecadeCellTemplateDirective),a.__metadata("design:paramtypes",[k.DecadeCellTemplateDirective])],j.prototype,"decadeCellTemplateRef",null),a.__decorate([h.ContentChild(T.CenturyCellTemplateDirective,{static:!0}),a.__metadata("design:type",T.CenturyCellTemplateDirective)],j.prototype,"centuryCellTemplate",void 0),a.__decorate([h.Input("centuryCellTemplate"),a.__metadata("design:type",T.CenturyCellTemplateDirective),a.__metadata("design:paramtypes",[T.CenturyCellTemplateDirective])],j.prototype,"centuryCellTemplateRef",null),a.__decorate([h.ContentChild(E.WeekNumberCellTemplateDirective,{static:!0}),a.__metadata("design:type",E.WeekNumberCellTemplateDirective)],j.prototype,"weekNumberTemplate",void 0),a.__decorate([h.Input("weekNumberTemplate"),a.__metadata("design:type",E.WeekNumberCellTemplateDirective),a.__metadata("design:paramtypes",[E.WeekNumberCellTemplateDirective])],j.prototype,"weekNumberTemplateRef",null),a.__decorate([h.ContentChild(S.HeaderTitleTemplateDirective,{static:!0}),a.__metadata("design:type",S.HeaderTitleTemplateDirective)],j.prototype,"headerTitleTemplate",void 0),a.__decorate([h.Input("headerTitleTemplate"),a.__metadata("design:type",S.HeaderTitleTemplateDirective),a.__metadata("design:paramtypes",[S.HeaderTitleTemplateDirective])],j.prototype,"headerTitleTemplateRef",null),a.__decorate([h.ContentChild(M.NavigationItemTemplateDirective,{static:!0}),a.__metadata("design:type",M.NavigationItemTemplateDirective)],j.prototype,"navigationItemTemplate",void 0),a.__decorate([h.Input("navigationItemTemplate"),a.__metadata("design:type",M.NavigationItemTemplateDirective),a.__metadata("design:paramtypes",[M.NavigationItemTemplateDirective])],j.prototype,"navigationItemTemplateRef",null),a.__decorate([h.ViewChild(c.NavigationComponent,{static:!1}),a.__metadata("design:type",c.NavigationComponent)],j.prototype,"navigationView",void 0),a.__decorate([h.ViewChild(d.ViewListComponent,{static:!1}),a.__metadata("design:type",d.ViewListComponent)],j.prototype,"monthView",void 0),a.__decorate([h.ViewChild(l.MultiViewCalendarComponent,{static:!1}),a.__metadata("design:type",l.MultiViewCalendarComponent)],j.prototype,"multiViewCalendar",void 0),a.__decorate([h.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],j.prototype,"widgetId",null),a.__decorate([h.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],j.prototype,"calendarTabIndex",null),a.__decorate([h.HostBinding("attr.aria-disabled"),h.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],j.prototype,"ariaDisabled",null),a.__decorate([h.Component({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[p.BusViewService,t.CALENDAR_VALUE_ACCESSOR,t.CALENDAR_RANGE_VALIDATORS,t.KENDO_INPUT_PROVIDER,r.LocalizationService,y.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.calendar"},f.NavigationService,b.ScrollSyncService,_.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 '}),a.__param(12,h.Optional()),a.__metadata("design:paramtypes",[p.BusViewService,u.CalendarDOMService,h.ElementRef,f.NavigationService,h.Renderer2,h.ChangeDetectorRef,h.NgZone,h.Injector,b.ScrollSyncService,y.DisabledDatesService,r.LocalizationService,_.SelectionService,I.PickerService])],j));function j(e,t,n,i,a,o,r,s,l,c,d,u,p){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=o,this.ngZone=r,this.injector=s,this.scrollSyncService=l,this.disabledDatesService=c,this.localization=d,this.selectionService=u,this.pickerService=p,this.id=m.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=O.CalendarViewEnum[O.CalendarViewEnum.month],this.bottomView=O.CalendarViewEnum[O.CalendarViewEnum.month],this.topView=O.CalendarViewEnum[O.CalendarViewEnum.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=m.guid(),this.selectedDates=[],this._min=new Date(x.MIN_DATE),this._max=new Date(x.MAX_DATE),this._focusedDate=P.getToday(),this.onControlChange=P.noop,this.onControlTouched=P.noop,this.onValidatorChange=P.noop,this.minValidateFn=P.noop,this.maxValidateFn=P.noop,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,g.validatePackage(v.packageMetadata),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}t.CalendarComponent=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(57),s=(i=n.Messages,o.__extends(l,i),a=l,a=o.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoDateTimePickerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(57),s=(i=n.Messages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-datetimepicker-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.DateTimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-timeselector-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimeSelectorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(38),s=(i=n.TimePickerMessages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.TimePickerMessages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-timepicker-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function a(e,t){return i(e,t)&&e.getSeconds()===t.getSeconds()}var o,r,s=n(2),n=n(42),n=[{type:n.TIME_PART.hour,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:n.TIME_PART.minute,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return i(e,t)?t.getMinutes():0}},{type:n.TIME_PART.second,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return a(e,t)?t.getSeconds():0}},{type:n.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return a(n=e,e=t)&&n.getMilliseconds()===e.getMilliseconds()?t.getMilliseconds():0;var n}}];t.generateGetters=(r=n,function(e){return r.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t}),t.generateSnappers=(o=n,function(n){return o.map(function(e){var i,a,o,t=n[e.type];return t?(i=e.getter,a=e.minGetter,o=t,function(e,t){var n=i(e),e=a(e,t),t=n-e;if(t<0)return e;t%=o;return n-t+(o/2<t?o:0)}):e.getter})}),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(i){return function(e,t){var n=s.cloneDate(e);return n.setHours.apply(n,i.map(function(e){return e(n,t)})),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}var a,o=n(1),l=n(0),r=n(4),s=n(5),c=n(2),d=n(6),u=n(8),p=n(66),h=n(46),m=n(3),g=n(103),v=n(15),f=n(20),y=n(7);(n=a=a||{})[n.Left=0]="Left",n[n.Right=1]="Right";Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"current",{get:function(){return this._current},set:function(e){this._current=m.timeInRange(this.snapTime(c.cloneDate(e||u.MIDNIGHT_DATE),this.min),this.min,this.max),l.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")}),0<=e)&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-state-focused"))},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cdr.markForCheck()})),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},_.prototype.ngOnChanges=function(e){this.init()},_.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},_.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},_.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},_.prototype.handleAccept=function(){this.handleChange(this.mergeValue(c.cloneDate(this.value||c.getDate(m.getNow())),this.current))},_.prototype.handleNow=function(){this.current=m.getNow(),this.handleChange(this.current),this.cdr.markForCheck()},_.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},_.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},_.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},_.prototype.handleBlur=function(e){var t=y.currentFocusTarget(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},_.prototype.containsElement=function(e){var t=this;return Boolean(f.closest(e,function(e){return e===t.element.nativeElement}))},_.prototype.partStep=function(e){return this.steps[e.type]||1},_.prototype.init=function(e){e&&!m.hasChange(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=g.valueMerger(g.generateGetters(this.dateFormatParts))),e&&!m.hasChange(e,"steps")||(this.snapTime=g.snapTime(g.generateSnappers(this.steps))),e&&!m.hasChange(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&m.isInTimeRange(m.getNow(),this.min,this.max)},_.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(i,[]).map(function(e){return t===a.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},_.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(c.cloneDate(e))},_.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},_.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},_.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=g.valueMerger(g.generateGetters(this.dateFormatParts)),this.cdr.markForCheck()},_.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)))})},_.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,e=-1!==[d.Keys.ArrowLeft,d.Keys.ArrowRight].indexOf(t);y.isPresent(this.pickerService)&&e&&n||(t!==d.Keys.Enter||this.hasActiveButton()?t!==d.Keys.ArrowLeft&&t!==d.Keys.ArrowRight||this.focusList(t===d.Keys.ArrowLeft?a.Left:a.Right):this.handleAccept())},_.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},_.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},_.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},o.__decorate([l.ViewChild("accept",{static:!1}),o.__metadata("design:type",l.ElementRef)],_.prototype,"accept",void 0),o.__decorate([l.ViewChild("cancel",{static:!1}),o.__metadata("design:type",l.ElementRef)],_.prototype,"cancel",void 0),o.__decorate([l.ViewChild("now",{static:!1}),o.__metadata("design:type",l.ElementRef)],_.prototype,"now",void 0),o.__decorate([l.ViewChildren(p.TimeListComponent),o.__metadata("design:type",l.QueryList)],_.prototype,"timeLists",void 0),o.__decorate([l.ViewChildren("listWrapper"),o.__metadata("design:type",l.QueryList)],_.prototype,"timeListWrappers",void 0),o.__decorate([l.HostBinding("class.k-timeselector"),o.__metadata("design:type",Boolean)],_.prototype,"componentClass",void 0),o.__decorate([l.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"format",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Date)],_.prototype,"min",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Date)],_.prototype,"max",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"cancelButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"setButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"nowButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],_.prototype,"steps",null),o.__decorate([l.Input(),o.__metadata("design:type",Date)],_.prototype,"value",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"valueChange",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"valueReject",void 0),v=o.__decorate([l.Component({changeDetection:l.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 '}),o.__param(7,l.Optional()),o.__metadata("design:paramtypes",[r.LocalizationService,l.ChangeDetectorRef,l.ElementRef,s.IntlService,h.TimePickerDOMService,l.NgZone,l.Renderer2,v.PickerService])],_);function _(e,t,n,i,a,o,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=o,this.renderer=r,this.pickerService=s,this.componentClass=!0,this.format="t",this.min=c.cloneDate(u.MIN_TIME),this.max=c.cloneDate(u.MAX_TIME),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new l.EventEmitter,this.valueReject=new l.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}t.TimeSelectorComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(75),r=n(17),s=n(71),l=n(67),c=n(47),n=n(58),n=[o.CalendarsModule,r.DateInputModule,s.DatePickerModule,c.TimePickerModule,l.DateRangeModule,n.DateTimePickerModule],n=i.__decorate([a.NgModule({exports:n,imports:n})],d);function d(){}t.DateInputsModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(1),r=n(0),s=n(4),n=n(80),s=(i=n.Messages,o.__extends(l,i),a=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-multiviewcalendar-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.MultiViewCalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=n(0),l=n(9),a=n(10),o=n(14),r=n(21),c=n(5),d=n(2),u=n(3),p=n(20),h=n(7),r=(Object.defineProperty(m.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===a.CalendarViewEnum.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),m.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},m.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))},m.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},m.prototype.isHorizontal=function(){return"horizontal"===this.direction},m.prototype.isMonthView=function(){return this.activeView===a.CalendarViewEnum.month},m.prototype.shouldRenderCellContent=function(e){return h.isPresent(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},m.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},m.prototype.getWeekNumber=function(e){return this.weekNumber?d.weekInYear(e,this.intl.firstDay()):null},m.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;e=d.weekInYear(t.value,this.intl.firstDay()).toString();return{formattedValue:e,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:e,value:d.cloneDate(t.value)}},m.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})},m.prototype.tableCellIndex=function(e,t){return e+":"+t},m.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},m.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},m.prototype.updateData=function(){var e=u.last(this.selectedDates)||u.getToday(),e=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:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},m.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},m.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},m.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)))},m.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(n=i.getAttribute("data-cell-index"),(t=this.cellByIndex(n)).isDisabled||(i=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:t.value,modifiers:{ctrlKey:i,metaKey:n,shiftKey:e}})))},m.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},m.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);t?(e=t.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},m.prototype.closestCell=function(e){return p.closestInScope(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},m.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},m.prototype.cellByIndex=function(e){var t=e.split(":"),e=t[0],t=t[1];return this.data[e][t]},i.__decorate([s.Input(),i.__metadata("design:type",String)],m.prototype,"direction",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],m.prototype,"isActive",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],m.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],m.prototype,"cellUID",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"focusedDate",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"viewDate",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],m.prototype,"activeRangeEnd",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],m.prototype,"selectionRange",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"min",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Date)],m.prototype,"max",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],m.prototype,"selectedDates",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],m.prototype,"weekNumber",null),i.__decorate([s.Input(),i.__metadata("design:type",Number)],m.prototype,"viewIndex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",s.TemplateRef)],m.prototype,"templateRef",void 0),i.__decorate([s.Input(),i.__metadata("design:type",s.TemplateRef)],m.prototype,"weekNumberTemplateRef",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"cellClick",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"weekNumberCellClick",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"cellEnter",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],m.prototype,"cellLeave",void 0),i.__decorate([s.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",[o.BusViewService,c.IntlService,s.ChangeDetectorRef,s.ElementRef,s.NgZone,s.Renderer2,r.DisabledDatesService])],m));function m(e,t,n,i,a,o,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=o,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new s.EventEmitter,this.weekNumberCellClick=new s.EventEmitter,this.cellEnter=new s.EventEmitter,this.cellLeave=new s.EventEmitter,this.colSpan=0,this.subscriptions=new l.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)))}t.ViewComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),r=n(6),s=(Object.defineProperty(o.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),o);function o(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}t.KForOfContext=s;Object.defineProperty(l.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),l.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+c(t)+"'.")}}},l.prototype.ngDoCheck=function(){var e;!this._differ||(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},l.prototype._applyChanges=function(e){if(r.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 s(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;n<a;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}},i.__decorate([a.Input(),i.__metadata("design:type",Object)],l.prototype,"kForOf",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"kForTrackBy",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef),i.__metadata("design:paramtypes",[a.TemplateRef])],l.prototype,"kForTemplate",null),a=i.__decorate([a.Directive({selector:"[kFor][kForOf]"}),i.__metadata("design:paramtypes",[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers])],l);function l(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}function c(e){return e.name||typeof e}t.KForOf=a,t.getTypeNameForDebugging=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(3);t.timeRangeValidator=function(n,i){return function(e){if(!n||!i||!e.value)return null;var t={timeRangeError:{maxValue:i,minValue:n,value:e.value}};return a.isInTimeRange(e.value,n,i)?null:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Arrow||(t.Arrow={}))[t.Up=0]="Up",t[t.Down=1]="Down",t[t.None=2]="None"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),n=n(27),a=(o.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=e,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=e,function(e){return e*t})},o.prototype.sync=function(e,i){var a=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;a.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,a.scrollSiblingOf(e.target))}),a.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,a.scrollSiblingOf(e.target))})}))},o.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},o.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},o.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},o.prototype.destroy=function(){this.unsubscribe()},o.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.CalendarDOMService,a.NgZone])],o));function o(e,t){this.dom=e,this.zone=t}t.ScrollSyncService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function c(e){return Math.max(e,0)}var d=n(9),u=function(e){this.offset=e};t.ScrollAction=u;var p=function(e){this.skip=e};t.PageAction=p;i.prototype.create=function(e,t,n,i,a,o,r){var s=this;void 0===a&&(a=0),void 0===o&&(o=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=a,this.bottomOffset=o,this.direction=r;var l=new d.ReplaySubject(2),a=this.rowsForHeight(a),t=c(t-a);return l.next(new u(this.rowOffset(t))),a&&l.next(new p(t)),this.subscription=new d.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return l.next(e)}),l},i.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},i.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?a:e;this.lastScroll!==i&&(a=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(c(i-this.topOffset)),n=this.rowHeightService.index(c(i+n-this.bottomOffset)),!a&&n>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new u(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new p(this.firstLoaded))),a&&e<=this.firstLoaded&&(a=Math.floor(.3*this.take),this.firstLoaded=c(e-a),t.next(new u(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new p(this.firstLoaded))))},i.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},i.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},i.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},n=i;function i(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}t.ScrollerService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.height=function(e){return this.heights[e]},a.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},a.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},a.prototype.index=function(i){if(!(i<0)){var e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0);return void 0===e?this.total-1:e}},a.prototype.offset=function(e){return this.offsets[e]},a.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},a.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,n.slice(0,e+1).concat(n.slice(e+1).map(function(e){return e+i})))},a);function a(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(){return null}var a=n(3),o=n(7);t.disabledDatesRangeValidator=function(t){return o.isPresent(t)?function(e){if(!(o.isPresent(e)&&o.isPresent(e.start)&&o.isPresent(e.end))||e.start>e.end)return null;e=a.disabledDatesInRange(e.start,e.end,t);return e.length?{disabledDatesInRange:e}:null}:i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(98);t.CalendarComponent=i.CalendarComponent;i=n(44);t.DateInputComponent=i.DateInputComponent;i=n(92);t.DatePickerComponent=i.DatePickerComponent;i=n(90);t.TimePickerComponent=i.TimePickerComponent;i=n(89);t.DateTimePickerComponent=i.DateTimePickerComponent;i=n(37);t.MultiViewCalendarComponent=i.MultiViewCalendarComponent;i=n(88);t.DateRangeComponent=i.DateRangeComponent;i=n(49);t.DateRangePopupComponent=i.DateRangePopupComponent;i=n(86);t.DateRangeEndInputDirective=i.DateRangeEndInputDirective;i=n(84);t.DateRangeStartInputDirective=i.DateRangeStartInputDirective;i=n(83);t.DateRangeSelectionDirective=i.DateRangeSelectionDirective;i=n(41);t.CalendarModule=i.CalendarModule;i=n(75);t.CalendarsModule=i.CalendarsModule;i=n(17);t.DateInputModule=i.DateInputModule;i=n(71);t.DatePickerModule=i.DatePickerModule;i=n(105);t.DateInputsModule=i.DateInputsModule;i=n(47);t.TimePickerModule=i.TimePickerModule;i=n(58);t.DateTimePickerModule=i.DateTimePickerModule;i=n(40);t.MultiViewCalendarModule=i.MultiViewCalendarModule;i=n(67);t.DateRangeModule=i.DateRangeModule;i=n(18);t.DateRangeService=i.DateRangeService;i=n(77);t.CalendarCustomMessagesComponent=i.CalendarCustomMessagesComponent;i=n(72);t.DateInputCustomMessagesComponent=i.DateInputCustomMessagesComponent;i=n(68);t.DatePickerCustomMessagesComponent=i.DatePickerCustomMessagesComponent;i=n(25);t.PreventableEvent=i.PreventableEvent;i=n(79);t.CalendarLocalizedMessagesDirective=i.CalendarLocalizedMessagesDirective;i=n(81);t.MultiViewCalendarLocalizedMessagesDirective=i.MultiViewCalendarLocalizedMessagesDirective;i=n(74);t.DateInputLocalizedMessagesDirective=i.DateInputLocalizedMessagesDirective;i=n(70);t.DatePickerLocalizedMessagesDirective=i.DatePickerLocalizedMessagesDirective;i=n(60);t.TimePickerLocalizedMessagesDirective=i.TimePickerLocalizedMessagesDirective;n=n(59);t.TimeSelectorLocalizedMessagesDirective=n.TimeSelectorLocalizedMessagesDirective,function(e){for(var t in e)o(t,e[t])}(t)}],i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=115)}}});
|