@progress/kendo-react-dateinputs 2.7.0-dev.201902260733 → 2.7.1

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.
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-dateinputs",["react","prop-types","@progress/kendo-react-common","@progress/kendo-react-popup","@progress/kendo-date-math","@progress/kendo-react-intl"],function(f){var n,i,r,a,o,s;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){r=t(e)},function(e){a=t(e)},function(e){o=t(e)},function(e){s=t(e)}],execute:function(){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=33)}([function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),i=n(0),u=n(8);t.isEqualRange=function(e,t){var n=e||u.EMPTY_SELECTIONRANGE,i=n.start,r=n.end,a=t||u.EMPTY_SELECTIONRANGE,o=a.start,s=a.end;return null!==i&&null!==r&&null!==o&&null!==s&&l.isEqual(i,o)&&l.isEqual(r,s)},t.viewInRange=function(e,t,n){return void 0===t||void 0===n?e:t<=e&&e<=n?e:e<t?t:n},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);var r=function(e){return null!=e};t.isValidRange=function(e,t){return!r(e)||!r(t)||e<=t},t.setTime=function(e,t){var n=l.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.getToday=function(){return i.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&e<t||n&&n<e)},t.isInSelectionRange=function(e,t){var n=t||u.EMPTY_SELECTIONRANGE,i=n.start,r=n.end;return!(!i||!r)&&i<e&&e<r},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e?t&&e<t?l.cloneDate(t):n&&n<e?l.cloneDate(n):e:e},t.domContainerFactory=function(r){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(r);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}},t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.Action=i.Action;var r=n(14);t.CalendarViewEnum=r.CalendarViewEnum;var a=n(8);t.EMPTY_SELECTIONRANGE=a.EMPTY_SELECTIONRANGE},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.Action||(t.Action={}))[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"},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";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.prevView="multiviewcalendar.prevView",t.nextView="multiviewcalendar.nextView",t.increaseValue="dateinput.increment",t.decreaseValue="dateinput.decrement",t.today="calendar.today",t.toggleCalendar="datepicker.toggleCalendar",t.swapStartEnd="daterangepicker.swapStartEnd",t.messages=((i={})[t.today]="TODAY",i[t.increaseValue]="Increase value",i[t.decreaseValue]="Decrease value",i[t.toggleCalendar]="Toggle calendar",i[t.prevView]="Navigate to previous view",i[t.nextView]="Navigate to next view",i[t.swapStartEnd]="Swap start and end values",i)},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,a=n(0),o=n(17),s=n(1),l=function(i){return function(e,t){var n=a.cloneDate(e);return n[i](t),n}},u=[{type:o.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:o.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:o.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:o.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(i=u,function(e){return i.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=(r=u,function(n,s){return r.map(function(e){var i,r,a,o,t=Math.floor(n[e.type]);return t?(i=e.getter,r=t,a=s,o=e.type,function(e){var t=i(e),n=i(a);return"hour"===o?t-(t-n)%r:e.getTime()<=a.getTime()&&0!==t&&t<=n?Math.ceil(t/r)*r:t-t%r}):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(n){return function(e){var t=a.cloneDate(e);return t.setHours.apply(t,n.map(function(e){return e(t)})),t}},t.setHours=l("setHours"),t.setMinutes=l("setMinutes"),t.setSeconds=l("setSeconds"),t.getNow=function(){return new Date},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i};var c=function(e,t,n){return{candidateValue:s.setTime(s.MIDNIGHT_DATE,e),maxValue:a.addDays(s.setTime(s.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:s.setTime(s.MIDNIGHT_DATE,t)}};t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=c(e,t,n),r=i.candidateValue,a=i.minValue,o=i.maxValue;return r<a?s.setTime(e,t):o<r?s.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var i=c(e,t,n),r=i.candidateValue,a=i.minValue,o=i.maxValue;return a<=r&&r<=o},t.isInRange=function(e,t,n){if(null===e)return!0;var i=c(e,t,n),r=i.candidateValue,a=i.minValue,o=i.maxValue;return a<=r&&r<=o},t.isSmallerThanMin=function(e,t){if(null===e||null===t)return!1;var n=s.setTime(s.MIDNIGHT_DATE,e),i=s.setTime(s.MIDNIGHT_DATE,t);return n.getTime()<i.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;var n=s.setTime(s.MIDNIGHT_DATE,e);return s.setTime(s.MIDNIGHT_DATE,t).getTime()<n.getHours()}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var D=n(2),a=n(4),o=n(0),_=n(5),S=n(44),O=n(3),k=n(30),s=n(1),I=n(9),l=function(e){function w(){var u=null!==e&&e.apply(this,arguments)||this;return u.kendoDate=null,u._element=null,u._inputId=O.guid(),u.setValidity=function(){u.element&&u.element.setCustomValidity&&u.element.setCustomValidity(u.validity.valid?"":u.props.validationMessage||w.defaultProps.validationMessage)},u.spinnersMouseDown=function(e){e.preventDefault(),u.element&&document.activeElement!==u.element&&u.element.focus()},u.elementChange=function(e){if(u.element&&u.kendoDate){var t=u.kendoDate.getTextAndFormat(),n=t.text,i=t.format;u.currentFormat=i;var r=u.value,a=k.approximateStringMatching(n,u.currentFormat,u.element.value,u.selection.start),o=1===a.length&&"_"===a[0][1],s=!1;if(!o)for(var l=0;l<a.length;l++)s=u.kendoDate.parsePart(a[l][0],a[l][1]).switchToNext;a.length&&"_"!==a[0][0]&&u.setSelection(u.selectionBySymbol(a[0][0])),(s||o)&&u.switchDateSegment(1),u.triggerChange(e,r)}},u.elementClick=function(e){u.setSelection(u.selectionByIndex(u.selection.start))},u.wheel=function(e){document.activeElement===u.element&&(e.nativeEvent.deltaY<0&&(e.preventDefault(),u.increasePart(e)),0<e.nativeEvent.deltaY&&(e.preventDefault(),u.decreasePart(e)))},u.increasePart=function(e){u.modifyDateSegmentValue(1,e)},u.decreasePart=function(e){u.modifyDateSegmentValue(-1,e)},u.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:u.switchDateSegment(-1);break;case 38:u.modifyDateSegmentValue(1,e);break;case 39:u.switchDateSegment(1);break;case 40:u.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},u}return r(w,e),w.prototype.componentDidMount=function(){this.setValidity()},w.prototype.componentDidUpdate=function(){this._lastSelectedSymbol&&this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)),this.setValidity()},w.prototype.render=function(){var t=this,e=_.provideLocalizationService(this),n=b({},w.defaultProps,this.props),i=n.formatPlaceholder,r=n.format,a=n.value,o=n.min,s=n.max,l=n.name,u=n.label,c=n.id,p=n.defaultValue;null===this.kendoDate?(this.kendoDate=new S.KendoDate(this.intl.bind(this),i,r),this.kendoDate.setValue(a||p)):(this.kendoDate.format=r,this.kendoDate.formatPlaceholder=i),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var d=this.kendoDate.getTextAndFormat(),h=d.text,f=d.format;this.currentFormat=f;var v=c||this._inputId,m=!this.validityStyles||this.validity.valid,g={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===s?void 0:s.getTime(),"aria-valuetext":h};null!==this.value&&(g["aria-valuenow"]=this.value.getTime());var y=D.createElement("span",{style:u?void 0:{width:this.props.width},dir:this.props.dir,className:m?k.wrapperClasses.join(" "):Array.prototype.concat([],k.wrapperClasses,k.invalidClasses).join(" ")},D.createElement("span",{className:"k-dateinput-wrap"+(this.props.disabled?" k-state-disabled":"")},D.createElement("input",b({tabIndex:this.props.tabIndex,disabled:this.props.disabled,title:this.props.title||h,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:v,onWheel:this.wheel,onClick:this.elementClick,onChange:this.elementChange,onKeyDown:this.elementKeyDown,value:h,name:l},g,{ref:function(e){return t._element=e}})),this.props.children,this.props.spinners&&D.createElement("span",{className:"k-select",onMouseDown:this.spinnersMouseDown},D.createElement("span",{className:"k-link k-link-increase","aria-label":e.toLanguageString(I.increaseValue,I.messages[I.increaseValue]),title:e.toLanguageString(I.increaseValue,I.messages[I.increaseValue]),onClick:this.increasePart},D.createElement("span",{className:"k-icon k-i-arrow-n"})),D.createElement("span",{className:"k-link k-link-decrease","aria-label":e.toLanguageString(I.decreaseValue,I.messages[I.decreaseValue]),title:e.toLanguageString(I.decreaseValue,I.messages[I.decreaseValue]),onClick:this.decreasePart},D.createElement("span",{className:"k-icon k-i-arrow-s"})))));return u?D.createElement(O.FloatingLabel,{id:v,value:h,valid:m,label:u,children:y,style:{width:this.props.width}}):y},Object.defineProperty(w.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:w.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:w.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"validity",{get:function(){var e=k.isInRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,i=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:i,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:w.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:w.defaultProps.required},enumerable:!0,configurable:!0}),w.prototype.intl=function(){return _.provideIntlService(this)},Object.defineProperty(w.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),w.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame(function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)})},w.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!o.isEqual(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},w.prototype.selectionBySymbol=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));return t<0&&(t=0),{start:t,end:n}},w.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,i=e-1;n<this.currentFormat.length||0<=i;n++,i--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(0<=i&&"_"!==this.currentFormat[i]){t=this.selectionBySymbol(this.currentFormat[i]);break}}return t},w.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,i=t.end;if(n<i&&this.currentFormat[n]!==this.currentFormat[i-1])this.setSelection(this.selectionByIndex(0<e?n:i-1));else{for(var r=this.currentFormat[n],a=n+e;0<a&&a<this.currentFormat.length&&(this.currentFormat[a]===r||"_"===this.currentFormat[a]);)a+=e;if("_"!==this.currentFormat[a]){for(var o=a;0<=o&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[a];)o+=e;o<a&&(o+1!==n||a+1!==i)?this.setSelection({start:o+1,end:a+1}):a<o&&(a!==n||o!==i)&&this.setSelection({start:a,end:o})}}},w.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,i=this.currentFormat[this.selection.start],r=this.kendoDate.symbolMap(i),a=((this.props.steps||{})[r]||1)*e;this.kendoDate.modifyPart(i,a),this.setSelection(this.selectionBySymbol(i)),this.triggerChange(t,n)}},w.propTypes={value:a.instanceOf(Date),format:a.string,formatPlaceholder:a.oneOfType([a.oneOf(["wide","narrow","short","formatPattern"]),a.shape({year:a.string,month:a.string,day:a.string,hour:a.string,minute:a.string,second:a.string})]),width:a.oneOfType([a.string,a.number]),tabIndex:a.number,title:a.string,steps:a.shape({year:a.number,month:a.number,day:a.number,hour:a.number,minute:a.number,second:a.number}),min:a.instanceOf(Date),max:a.instanceOf(Date),disabled:a.bool,spinners:a.bool,name:a.string,dir:a.string,label:a.string,id:a.string,onChange:a.func,validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool},w.defaultProps={format:k.defaultFormat,formatPlaceholder:k.defaultFormatPlaceholder,defaultValue:null,spinners:!1,disabled:!1,max:o.cloneDate(s.MAX_DATE),min:o.cloneDate(s.MIN_DATE),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!"},w}(D.Component);t.DateInput=l,_.registerForIntl(l),_.registerForLocalization(l)},function(e,t,n){"use strict";var i,r,a,o,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=n(2),p=n(4),d=n(3),h=n(35);(l=c=t.ScrollDirection||(t.ScrollDirection={}))[l.Backward=0]="Backward",l[l.Forward=1]="Forward";var f=((r={})[c.Forward]=function(t){return function(e){return e+t}},r[c.Backward]=function(t){return function(e){return e-t}},r),v=((a={})[c.Forward]=function(t){return function(e){return Math.min(e,t)}},a[c.Backward]=function(t){return function(e){return Math.max(e,t)}},a),m=((o={})[c.Forward]=function(t){return function(e){return e<t}},o[c.Backward]=function(t){return function(e){return t<e}},o),g=function(t){function i(e){var p=t.call(this,e)||this;return p.animationInProgress=!1,p.scrollTo=function(e){var t="vertical"===p.direction?"scrollTop":"scrollLeft";p.scrollContainer&&(p.scrollContainer[t]=e)},p.scrollToIndex=function(e){p.rowHeightService&&(p.animationInProgress=!1,p.scrollTo(p.rowHeightService.offset(e)))},p.animateToIndex=function(e){if(p.rowHeightService&&window){window.cancelAnimationFrame(p.cancelAnimation);var t=p.rowHeightService.offset(e),n=p.getContainerScrollDirection(t),i=p.scrollRange(t,n),r=i.start,a=i.end;if(r!==a){var o=p.scrollStep(r,a),s=f[n](o),l=v[n](a),u=m[n](s(a)),c=function(e){p.animationInProgress=!0;var t=s(e);p.scrollTo(l(t)),u(t)?p.cancelAnimation=window.requestAnimationFrame(function(){c(t)}):p.animationInProgress=!1};p.cancelAnimation=window.requestAnimationFrame(function(){c(r)})}}},p.scrollToBottom=function(){p.rowHeightService&&p.scrollTo(p.rowHeightService.totalHeight()+p.props.bottomOffset)},p.scrollStep=function(e,t){var n=p.props.scrollDuration||i.defaultProps.scrollDuration;return Math.abs(t-e)/(n/17)},p.scrollRange=function(e,t){var n=p.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var i,r,a,o=p.containerMaxScroll(),s=t===c.Backward?1:-1,l=(i=n,r=e,a=p.props.maxScrollDifference,Math.min(Math.abs(r-i),a)),u=Math.min(e,o);return{start:Math.min(Math.max(u+s*l,0),o),end:u}},p.containerMaxScroll=function(){return p.containerScrollSize-p.containerOffsetSize},p.getContainerScrollDirection=function(e){return e<p.containerScrollPosition?c.Backward:c.Forward},p.initServices=function(e){void 0===e&&(e=p.props);var t="vertical"===p.direction?e.itemHeight:e.itemWidth;void 0!==t&&(p.rowHeightService=new h.RowHeightService(e.total,t,0),p.scrollerService.create(p.rowHeightService,e.skip,e.take,e.total,e.topOffset,p.scrollOffsetSize,p.direction))},p.getContainerProperty=function(e){return p.scrollContainer?p.scrollContainer[e]:0},p.handleScroll=function(e){if(p.scrollContainer&&p.rowHeightService){var t=e.target;p.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=p.rowHeightService.index(p.containerScrollPosition-p.props.topOffset),i=p.props.onScrollAction,r={index:n,target:t,scrollAction:p.scrollAction,pageAction:p.pageAction,animationInProgress:p.animationInProgress};i&&i.call(void 0,r),p.scrollAction=void 0,p.pageAction=void 0}},p.handleScrollAction=function(e){p.scrollAction=e},p.handlePageAction=function(e){p.pageAction=e},p.scrollerService=new h.ScrollerService(p.handleScrollAction,p.handlePageAction),p}return s(i,t),Object.defineProperty(i.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:i.defaultProps.direction},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:i.defaultProps.scrollOffsetSize},enumerable:!0,configurable:!0}),i.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},i.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},i.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},i.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),r=i+this.rowHeightService.height(e);return t<=i&&r<=n},i.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},i.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},i.prototype.render=function(){var t=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var e=""+(this.rowHeightService.totalHeight()+this.props.bottomOffset),n="vertical"===this.direction?{height:e+"px"}:{width:e+"px"},i=d.classNames("k-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),r=d.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return u.createElement("div",{ref:function(e){t.scrollContainer=e},onScroll:this.handleScroll,className:i,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,u.createElement("div",{style:n,className:r}))},i.propTypes={bottomOffset:p.number.isRequired,className:p.string,direction:p.oneOf(["horizontal","vertical"]),forceScroll:p.bool,itemHeight:p.number,itemWidth:p.number,maxScrollDifference:p.number,onScroll:p.func,onScrollAction:p.func,scrollDuration:p.number,scrollOffsetSize:p.number,skip:p.number.isRequired,tabIndex:p.number,take:p.number.isRequired,topOffset:p.number.isRequired,total:p.number.isRequired,role:p.string},i.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},i}(u.Component);t.Virtualization=g},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.CalendarViewEnum||(t.CalendarViewEnum={}))[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(38);t.BusViewService=i.BusViewService;var r=n(22);t.CenturyViewService=r.CenturyViewService;var a=n(23);t.DecadeViewService=a.DecadeViewService;var o=n(39);t.DOMService=o.DOMService;var s=n(24);t.MonthViewService=s.MonthViewService;var l=n(40);t.NavigationService=l.NavigationService;var u=n(41);t.ScrollSyncService=u.ScrollSyncService;var c=n(42);t.WeekNamesService=c.WeekNamesService;var p=n(25);t.YearViewService=p.YearViewService},function(e,t){e.exports=a},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";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),a=n(4),p=n(3),d=n(0),h=n(5),f=n(34),v=n(43),o=n(10),m=n(6),g=n(1),s=n(15),y=function(e){return e?e.virtualization:null},w=function(e,t,n,i){return void 0===e&&(e=l.defaultProps.min),void 0===t&&(t=l.defaultProps.max),void 0!==i?null!==i&&g.isInRange(i,e,t)?i:null:null!==n&&g.isInRange(n,e,t)?n:null},l=function(n){function l(e){var o=n.call(this,e)||this;o.cellUID=p.guid(),o.id=p.guid(),o.isActive=!1,o.handleScroll=function(e){o.scrollSyncService&&o.scrollSyncService.sync(y(o.Navigation),y(o.calendarViewList),e)},o.handleNavigationChange=function(e){if(!o.props.disabled){var t=d.cloneDate(e.value);o.setState({focusedDate:t})}},o.handleViewChange=function(e){var t=e.view;o.scrollSyncService.configure(t),o.setState({activeView:t})},o.handleDateChange=function(e){var t=d.cloneDate(e.value),n=d.cloneDate(e.value),i=o.bus.canMoveDown(o.state.activeView);if(!o.props.disabled){if(i){if(!e.isTodayClick)return o.bus.moveDown(o.state.activeView,e.syntheticEvent),void o.setState({focusedDate:n});o.bus.moveToBottom(o.state.activeView)}o.setState({value:t,focusedDate:n}),o.valueDuringOnChange=t;var r=o.props.onChange;if(r){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:o};r.call(void 0,a)}o.valueDuringOnChange=void 0}},o.handleFocus=function(e){if(o.isActive=!0,o.calendarViewList){o.calendarViewList.focusActiveDate();var t=o.props.onFocus;t&&t.call(void 0,e)}},o.handleBlur=function(e){if(o.isActive=!1,o.calendarViewList){o.calendarViewList.blurActiveDate();var t=o.props.onBlur;t&&t.call(void 0,e)}},o.handleKeyDown=function(e){if(e.keyCode===p.Keys.enter){if(null!==o.value&&d.isEqualDate(o.focusedDate,o.value)){var t=g.dateInRange(o.focusedDate,o.min,o.max);y(o.calendarViewList).scrollToIndex(o.service.skip(t,o.min))}var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:o.focusedDate,target:o};o.handleDateChange.call(void 0,n)}else{var i=g.dateInRange(o.navigation.move(o.focusedDate,o.navigation.action(e),o.state.activeView,o.service,e),o.min,o.max);if(d.isEqualDate(o.focusedDate,i))return;o.setState({focusedDate:i})}e.preventDefault()},o.handleMouseDown=function(e){e.preventDefault()},o.handleClick=function(e){o._element&&o._element.focus()};var t=w(o.min,o.max,o.props.defaultValue||l.defaultProps.defaultValue,o.props.value);return o.state={value:t,activeView:g.viewInRange(m.CalendarViewEnum[e.defaultActiveView],o.bottomView,o.topView),focusedDate:g.dateInRange(e.focusedDate||t||g.getToday(),o.min,o.max)},o.dom=new s.DOMService,o.bus=new s.BusViewService(o.handleViewChange),o.navigation=new s.NavigationService(o.bus),o.oldValue=t,o}return r(l,n),Object.defineProperty(l.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"min",{get:function(){return d.getDate(void 0!==this.props.min?this.props.min:l.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"max",{get:function(){return d.getDate(void 0!==this.props.max?this.props.max:l.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"bottomView",{get:function(){return m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:l.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"topView",{get:function(){return m.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:l.defaultProps.topView]},enumerable:!0,configurable:!0}),l.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new s.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())})},l.prototype.componentDidUpdate=function(e,t){t.activeView!==this.state.activeView&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate():this.calendarViewList.blurActiveDate()),this.oldValue=this.value},l.prototype.render=function(){var t=this,e=null!==this.value&&null!==this.oldValue?!d.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,n=g.viewInRange(this.state.activeView,m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:l.defaultProps.bottomView],m.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:l.defaultProps.topView]),i=w(this.min,this.max,this.value,this.value),r=i?d.getDate(i):null;this.focusedDate=d.getDate(g.dateInRange(e&&null!==i?i:this.state.focusedDate,this.min,this.max)),this.intl=h.provideIntlService(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(n,this.intl);var a=p.classNames("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled},this.props.className),o={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},s=[this.props.navigation&&c.createElement(v.Navigation,{key:0,ref:function(e){t.Navigation=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),c.createElement(f.ViewList,{key:1,ref:function(e){t.calendarViewList=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:this.props.smoothScroll,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:r,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return c.createElement("div",u({},o,{ref:function(e){t._element=e},className:a,id:this.props.id||this.id,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onScroll:this.handleScroll,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),s)},l.propTypes={className:a.string,defaultActiveView:a.oneOf(["month","year","decade","century"]),defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),id:a.string,max:a.instanceOf(Date),min:a.instanceOf(Date),navigation:a.bool,smoothScroll:a.bool,onBlur:a.func,onChange:a.func,onFocus:a.func,tabIndex:a.number,value:a.instanceOf(Date),weekNumber:a.bool,topView:function(e,t,n){var i=e[t],r=e.bottomView;if(i&&r&&m.CalendarViewEnum[i]<m.CalendarViewEnum[r])return new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n ")},bottomView:function(e,t,n){var i=e[t],r=e.topView;if(i&&r&&m.CalendarViewEnum[i]>m.CalendarViewEnum[r])return new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n ")}},l.defaultProps={disabled:!1,min:o.MIN_DATE,max:o.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},l}(c.Component);t.Calendar=l,h.registerForIntl(l)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),a=n(4),u=n(0),c=n(5),p=n(20),d=n(21),o=n(6),h=n(1),f=n(15),v=function(e){return l.createElement("td",{key:e}," ")},m=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.buildWeekNumber=function(e,t){if(!o.firstDate(e))return v("week-cell-"+t);var n=o.getWeekNumber(o.firstDate(e)),i="kendo-react-calendar-week-cell-"+n,r={className:"k-alt",value:n};return o.props.weekCell?l.createElement(o.props.weekCell,s({},r,{key:i}),n):l.createElement(d.CalendarWeekCell,s({},r,{key:i}),n)},o.buildRow=function(e){return e.map(function(e,t){if(!e)return v(t);var n={"aria-selected":e.isSelected},i="kendo-react-calendar-cell-"+e.value.getTime(),r=e.value.getTime()<o.props.min.getTime()||e.value.getTime()>o.props.max.getTime(),a=s({},n,e,{isDisabled:r,view:o.props.activeView,onClick:o.handleClick,onMouseEnter:o.handleMouseEnter,onMouseLeave:o.handleMouseLeave});return o.props.cell?l.createElement(o.props.cell,s({},a,{key:i}),e.formattedValue):l.createElement(p.CalendarCell,s({},a,{key:i}),e.formattedValue)})},o.firstDate=function(e){var t=o.firstWeekDateContext(e);return t?t.value:null},o.firstWeekDateContext=function(e){if(!o.weekNumber)return null;for(var t=0,n=e[t];!n&&t<e.length;)n=e[++t];return n},o.handleClick=function(e,t){var n=o.props.onChange;if(n){var i={value:u.cloneDate(e),target:o,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};n.call(void 0,i)}},o.handleMouseEnter=function(e){var t=o.props.onCellEnter;t&&t.call(void 0,u.cloneDate(e))},o.handleMouseLeave=function(e){var t=o.props.onCellLeave;t&&t.call(void 0,u.cloneDate(e))},o}return r(t,e),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===o.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===o.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!0,configurable:!0}),t.prototype.render=function(){var n=this;this.intl=c.provideIntlService(this),this.weekService=new f.WeekNamesService(this.intl);var e=this.weekService.getWeekNames(this.weekNumber),t=this.props.service.rowLength(this.weekNumber),i=this.props.service.title(this.props.viewDate),r=h.getToday(),a=h.setTime(this.props.viewDate,r),o=this.props.service.data({cellUID:this.props.cellUID,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:a});return l.createElement("tbody",{role:"rowgroup"},!this.isHorizontal&&l.createElement("tr",{role:"row"},l.createElement("th",{scope:"col",colSpan:t},i)),this.isMonthView&&this.isHorizontal&&l.createElement("tr",{role:"row"},e.map(function(e,t){return l.createElement("th",{key:t},e)})),o.map(function(e,t){return l.createElement("tr",{role:"row",key:t},n.weekNumber&&n.buildWeekNumber(e,t),n.buildRow(e))}))},t.prototype.getWeekNumber=function(e){return this.weekNumber?u.weekInYear(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:a.oneOf(["start","end",null]),activeView:a.number.isRequired,cellUID:a.string.isRequired,direction:a.oneOf(["horizontal","vertical"]),focusedDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onChange:a.func,selectedDate:a.oneOfType([a.instanceOf(Date),a.arrayOf(a.instanceOf(Date))]),showWeekNumbers:a.bool,viewDate:a.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:h.getToday(),showWeekNumbers:!1},t}(l.Component);t.View=m,c.registerForIntl(m)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var y=n(2),w=n(3),a=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.handleClick=function(e){var t=r.props,n=t.onClick,i=t.value;n&&n.call(void 0,i,e)},r.handleMouseEnter=function(){var e=r.props,t=e.onMouseEnter,n=e.value;t&&t.call(void 0,n)},r.handleMouseLeave=function(){var e=r.props,t=e.onMouseLeave,n=e.value;t&&t.call(void 0,n)},r}return r(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,i=g(t,["value"]),r=e.value,a=g(e,["value"]);return!((!n||!r||n.getTime()===r.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(e[a]!==t[a])return!1}return!0}(i,a))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),i=e.isFocused,r=e.isSelected,a=e.isRangeStart,o=e.isRangeMid,s=e.isRangeEnd,l=e.isRangeSplitStart,u=e.isRangeSplitEnd,c=e.isToday,p=e.isDisabled,d=(e.view,e.value,g(e,["className","formattedValue","isWeekend","isFocused","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),h="end"===this.props.activeRangeEnd&&s,f="start"===this.props.activeRangeEnd&&a,v=w.classNames({"k-range-end":s,"k-range-mid":o,"k-range-split-end":u,"k-range-split-start":l,"k-range-start":a,"k-state-active":f||h,"k-state-pending-focus":i,"k-state-selected":r||a||s,"k-today":c,"k-weekend":n,"k-state-disabled":p},t);return y.createElement("td",m({},d,{className:v,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),y.createElement("span",{className:"k-link"},this.props.children))},t}(y.Component);t.CalendarCell=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return o.createElement("td",a({},this.props),this.props.children)},t}(o.Component);t.CalendarWeekCell=s},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var y=n(0),r=n(6),w=n(1),a=[[]],o=((i={})[r.Action.Left]=function(e){return y.addDecades(e,-1)},i[r.Action.Up]=function(e){return y.addDecades(e,-5)},i[r.Action.Right]=function(e){return y.addDecades(e,1)},i[r.Action.Down]=function(e){return y.addDecades(e,5)},i[r.Action.PrevView]=function(e){return y.addCenturies(e,-1)},i[r.Action.NextView]=function(e){return y.addCenturies(e,1)},i[r.Action.FirstInView]=function(e){return y.firstDecadeOfCentury(e)},i[r.Action.LastInView]=function(e){return y.lastDecadeOfCentury(e)},i),s=function(){function e(){}return e.prototype.addToDate=function(e,t){return y.addCenturies(e,t)},e.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return y.addCenturies(t,e)})},e.prototype.data=function(e){var s=this,l=e.cellUID,u=e.focusedDate,c=e.isActiveView,p=e.max,d=e.min,h=e.selectedDate,t=e.selectionRange,f=void 0===t?r.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return a;var i=w.range(0,5),v=y.firstDecadeOfCentury(n),m=y.lastDecadeOfCentury(n),g=w.getToday();return w.range(0,2).map(function(e){var o=y.addDecades(v,5*e);return i.map(function(e){var t=s.normalize(y.addDecades(o,e),d,p);if(!s.isInRange(t,d,p))return null;var n=s.isEqual(t,f.start),i=s.isEqual(t,f.end),r=!n&&!i&&w.isInSelectionRange(t,f),a=c&&(Array.isArray(h)?s.isSelectedFromArray(t,h,d,p):w.isInRange(h,d,p)&&s.isEqual(t,h));return{formattedValue:s.value(t),id:""+l+t.getTime(),isFocused:s.isEqual(t,u),isSelected:a,isWeekend:!1,isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&s.isEqual(t,m),isRangeSplitStart:r&&s.isEqual(t,v),isToday:s.isEqual(t,g),title:s.cellTitle(t),value:t}})})},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isEqual=function(e,t){return!(!e||!t)&&y.firstYearOfDecade(e).getFullYear()===y.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=y.firstYearOfDecade(e).getFullYear(),r=!t||y.firstYearOfDecade(t).getFullYear()<=i,a=!n||i<=y.firstYearOfDecade(n).getFullYear();return r&&a},e.prototype.isInSameView=function(e,t){return 0===y.durationInCenturies(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=o[t];return n?n(e):e},e.prototype.cellTitle=function(e){return y.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?y.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?y.firstDecadeOfCentury(e).getFullYear()+" - "+y.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return y.durationInCenturies(t,e)},e.prototype.total=function(e,t){return y.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?y.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),y.durationInCenturies(e,t)<n?y.addCenturies(e,-1):e},e.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},e}();t.CenturyViewService=s},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var y=n(0),r=n(7),a=n(8),w=n(1),o=[[]],s=((i={})[r.Action.Left]=function(e){return y.addYears(e,-1)},i[r.Action.Up]=function(e){return y.addYears(e,-5)},i[r.Action.Right]=function(e){return y.addYears(e,1)},i[r.Action.Down]=function(e){return y.addYears(e,5)},i[r.Action.PrevView]=function(e){return y.addDecades(e,-1)},i[r.Action.NextView]=function(e){return y.addDecades(e,1)},i[r.Action.FirstInView]=function(e){return y.firstYearOfDecade(e)},i[r.Action.LastInView]=function(e){return y.lastYearOfDecade(e)},i),l=function(){function e(){}return e.prototype.addToDate=function(e,t){return y.addDecades(e,t)},e.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return y.addDecades(t,e)})},e.prototype.data=function(e){var s=this,l=e.cellUID,u=e.focusedDate,c=e.isActiveView,p=e.max,d=e.min,h=e.selectedDate,t=e.selectionRange,f=void 0===t?a.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return o;var i=w.range(0,5),v=y.firstYearOfDecade(n),m=y.lastYearOfDecade(n),g=w.getToday();return w.range(0,2).map(function(e){var o=y.addYears(v,5*e);return i.map(function(e){var t=s.normalize(y.addYears(o,e),d,p);if(!s.isInRange(t,d,p))return null;var n=s.isEqual(t,f.start),i=s.isEqual(t,f.end),r=!n&&!i&&w.isInSelectionRange(t,f),a=c&&(Array.isArray(h)?s.isSelectedFromArray(t,h,d,p):w.isInRange(h,d,p)&&s.isEqual(t,h));return{formattedValue:s.value(t),id:""+l+t.getTime(),isFocused:s.isEqual(t,u),isSelected:a,isWeekend:!1,isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&s.isEqual(t,m),isRangeSplitStart:r&&s.isEqual(t,v),isToday:s.isEqual(t,g),title:s.cellTitle(t),value:t}})})},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),r=!t||t.getFullYear()<=i,a=!n||i<=n.getFullYear();return r&&a},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===y.durationInDecades(e,t)},e.prototype.move=function(e,t){var n=s[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?y.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?y.firstYearOfDecade(e).getFullYear()+" - "+y.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return y.durationInDecades(t,e)},e.prototype.total=function(e,t){return y.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),y.durationInDecades(e,t)<n?y.addDecades(e,-1):e},e.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},e}();t.DecadeViewService=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var y=n(0),r=n(7),a=n(8),w=n(1),o=[[]],s=((i={})[r.Action.Left]=function(e){return y.addDays(e,-1)},i[r.Action.Up]=function(e){return y.addWeeks(e,-1)},i[r.Action.Right]=function(e){return y.addDays(e,1)},i[r.Action.Down]=function(e){return y.addWeeks(e,1)},i[r.Action.PrevView]=function(e){return y.addMonths(e,-1)},i[r.Action.NextView]=function(e){return y.addMonths(e,1)},i[r.Action.FirstInView]=function(e){return y.firstDayOfMonth(e)},i[r.Action.LastInView]=function(e){return y.lastDayOfMonth(e)},i),l=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return y.addMonths(e,t)},e.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return y.addMonths(t,e)})},e.prototype.data=function(e){var s=this,l=e.cellUID,u=e.focusedDate,c=e.isActiveView,p=e.max,d=e.min,h=e.selectedDate,t=e.selectionRange,f=void 0===t?a.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return o;var v=y.firstDayOfMonth(n),m=y.lastDayOfMonth(n),i=y.dayOfWeek(v,this.intl.firstDay(),-1),r=w.range(0,7),g=w.getToday();return w.range(0,6).map(function(e){var o=y.addDays(i,7*e);return r.map(function(e){var t=s.normalize(y.addDays(o,e),d,p);if(t<v||m<t||t<d||p<t)return null;var n=s.isEqual(t,f.start),i=s.isEqual(t,f.end),r=!n&&!i&&w.isInSelectionRange(t,f),a=c&&(Array.isArray(h)?s.isSelectedFromArray(t,h,d,p):w.isInRange(h,d,p)&&s.isEqual(t,h));return{formattedValue:s.value(t),id:""+l+t.getTime(),isFocused:s.isEqual(t,u),isSelected:a,isWeekend:s.isWeekend(t),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitStart:r&&s.isEqual(t,v),isRangeSplitEnd:r&&s.isEqual(t,m),isToday:s.isEqual(t,g),title:s.cellTitle(t),value:t}})})},e.prototype.isEqual=function(e,t){return!(!e||!t)&&y.getDate(e).getTime()===y.getDate(t).getTime()},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isInArray=function(e,t){return!!t.length&&y.firstDayOfMonth(t[0])<=e&&e<=y.lastDayOfMonth(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var i=y.getDate(e),r=!t||y.getDate(t)<=i,a=!n||i<=y.getDate(n);return r&&a},e.prototype.isInSameView=function(e,t){return 0===y.durationInMonths(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=s[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return y.durationInMonths(t,e)},e.prototype.total=function(e,t){return y.durationInMonths(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),y.durationInMonths(e,t)<n?y.addMonths(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?y.getDate(t):n<e&&this.isEqual(e,n)?y.getDate(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}();t.MonthViewService=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var D=n(0),r=n(7),_=n(1),a=n(8),o=[[]],s=((i={})[r.Action.Left]=function(e){return D.addMonths(e,-1)},i[r.Action.Up]=function(e){return D.addMonths(e,4<(t=e.getMonth())?-5:t<2?-2:-7);var t},i[r.Action.Right]=function(e){return D.addMonths(e,1)},i[r.Action.Down]=function(e){return D.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},i[r.Action.PrevView]=function(e){return D.addYears(e,-1)},i[r.Action.NextView]=function(e){return D.addYears(e,1)},i[r.Action.FirstInView]=function(e){return D.firstMonthOfYear(e)},i[r.Action.LastInView]=function(e){return D.lastMonthOfYear(e)},i),l=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return D.addYears(e,t)},e.prototype.datesList=function(t,e){return _.range(0,e).map(function(e){return D.addYears(t,e)})},e.prototype.data=function(e){var l=this,u=e.cellUID,c=e.focusedDate,p=e.isActiveView,d=e.max,h=e.min,f=e.selectedDate,t=e.selectionRange,v=void 0===t?a.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return o;var m=this.abbrMonthNames(),g=D.firstMonthOfYear(n),y=D.lastMonthOfYear(n),w=g.getFullYear(),i=_.range(0,5),b=_.getToday();return _.range(0,3).map(function(e){var s=D.addMonths(g,5*e);return i.map(function(e){var t=l.normalize(D.addMonths(s,e),h,d),n=w<t.getFullYear();if(!l.isInRange(t,h,d)||n)return null;var i=l.isEqual(t,v.start),r=l.isEqual(t,v.end),a=!i&&!r&&_.isInSelectionRange(t,v),o=p&&(Array.isArray(f)?l.isSelectedFromArray(t,f,h,d):_.isInRange(f,h,d)&&l.isEqual(t,f));return{formattedValue:m[t.getMonth()],id:""+u+t.getTime(),isFocused:l.isEqual(t,c),isSelected:o,isWeekend:!1,isRangeStart:i,isRangeMid:a,isRangeEnd:r,isRangeSplitEnd:a&&l.isEqual(t,y),isRangeSplitStart:a&&l.isEqual(t,g),isToday:l.isEqual(t,b),title:l.cellTitle(t),value:t}})})},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){_.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=D.createDate(e.getFullYear(),e.getMonth(),1),r=!t||D.createDate(t.getFullYear(),t.getMonth(),1)<=i,a=!n||i<=D.createDate(n.getFullYear(),n.getMonth(),1);return r&&a},e.prototype.isInSameView=function(e,t){return 0===D.durationInYears(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=s[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return D.durationInYears(t,e)},e.prototype.total=function(e,t){return D.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),D.durationInYears(e,t)<n?D.addYears(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?D.cloneDate(t):n<e&&this.isEqual(e,n)?D.cloneDate(n):e},e}();t.YearViewService=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),a=n(4),l=n(5),u=n(0),c=n(3),p=n(27),d=n(9),h=n(1),f=n(10),v=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.getTitle=function(){if(!i.props.currentDate)return"";var e=i.rangeLength-1,t=i.props.service.title(i.props.currentDate),n=i.props.service.addToDate(i.props.currentDate,e);return e<1||!i.props.service.isInRange(n,i.min,i.max)?t:t+" - "+i.props.service.title(n)},i.handleTitleClick=function(e){i.navigate&&i.props.bus.moveUp(i.props.activeView,e)},i.handleTodayClick=function(e){if(i.todayIsInRange){i.props.bus.moveToBottom(i.props.activeView);var t=i.props.onTodayClick;if(t){var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:h.dateInRange(h.getToday(),i.min,i.max),target:i};t.call(void 0,n)}}},i}return r(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigate",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return h.isInRange(h.getToday(),u.getDate(this.min),u.getDate(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=l.provideLocalizationService(this);var e=this.localization.toLanguageString(d.today,d.messages[d.today]),t=this.getTitle(),n=c.classNames("k-button k-bare k-title",{"k-state-disabled":!this.navigate}),i=c.classNames("k-today",{"k-state-disabled":!this.todayIsInRange}),r={children:t,value:t,view:this.props.activeView,className:n,onClick:this.handleTitleClick},a=this.props.headerTitle?s.createElement(this.props.headerTitle,o({},r),t):s.createElement(p.CalendarHeaderTitle,o({},r),t);return s.createElement("div",{className:"k-calendar-header"},a,s.createElement("span",{className:i,onClick:this.handleTodayClick},e))},t.propTypes={activeView:a.number.isRequired,currentDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onTodayClick:a.func,rangeLength:a.number},t.defaultProps={rangeLength:1,min:f.MIN_DATE,max:h.MAX_DATE},t}(s.Component);t.Header=v,l.registerForLocalization(v)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,o(e,["view"]));return s.createElement("span",a({},t),this.props.children)},t}(s.PureComponent);t.CalendarHeaderTitle=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(3),u=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.handleClick=function(e){var t=r.props,n=t.onClick,i=t.value;n&&n.call(void 0,i,e)},r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,o(e,["isRangeStart","value","text"]));return s.createElement("li",a({},n,{onClick:this.handleClick}),s.createElement("span",{className:l.classNames({"k-calendar-navigation-marker":t})},this.props.children))},t}(s.Component);t.CalendarNavigationItem=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.symbols=""};t.Mask=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultFormat="d",t.defaultFormatPlaceholder="wide",t.padZero=function(e){return new Array(Math.max(e,0)).fill("0").join("")},t.approximateStringMatching=function(e,t,n,i){var r=e[i+e.length-n.length],a=e.substring(0,i+e.length-n.length),o=n.substring(0,i),s=[];if(a===o&&0<i)return s.push([t[i-1],o[i-1]]),s;if(0===a.indexOf(o)&&(0===o.length||t[o.length-1]!==t[o.length])){var l="";1===o.length&&s.push([t[0],o[0]]);for(var u=o.length;u<a.length;u++)t[u]!==l&&"_"!==t[u]&&(l=t[u],s.push([l,""]));return s}if(0!==o.indexOf(a)&&"_"!==t[i-1])return" "===o[o.length-1]||o[o.length-1]===r?[[t[i-1],"_"]]:[[t[i-1],o[i-1]]];var c=t[0];for(u=Math.max(0,a.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,o[i-1]]]},t.dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},t.isInRange=function(e,t,n){return null===e||!(t&&e<t||n&&n<e)},t.invalidClasses=["k-state-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17);t.TIME_PART=i.TIME_PART},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),a=n(4),v=n(5),m=n(3),g=n(0),y=n(6),o=n(10),w=n(9),b=n(15),D=n(1),_=n(57),S=function(e,t,n){return void 0===e&&(e=s.defaultProps.min),void 0===t&&(t=s.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&D.isInRange(g.getDate(n),e,t)?g.getDate(n):null},O=function(t,n,e){return void 0===t&&(t=s.defaultProps.min),void 0===n&&(n=s.defaultProps.max),Array.isArray(e)?e.filter(function(e){return D.isInRange(e,t,n)}).map(function(e){return g.getDate(e)}):null},k=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?y.EMPTY_SELECTIONRANGE:e},I=function(e,t,n){return e||t&&t[0]||n&&n.start},s=function(p){function d(e){var l=p.call(this,e)||this;l.selectedDate=null,l.selectedMultiple=null,l.selectedRange=y.EMPTY_SELECTIONRANGE,l.cellUID=m.guid(),l.activeRangeEnd="start",l.wrapperID=m.guid(),l.isActive=!1,l.calculateFocusFromValue=!0,l.clampRange=function(e){return{start:e,end:null}},l.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&l.isActive?t:e.end}},l.generateRange=function(e,t){var n=t.end,i=t.start,r=null!==t.start&&e.getTime()<=t.start.getTime();return!l.props.allowReverse&&r?{start:e,end:l.selectedRange.start}:"end"!==l.activeRange?{start:e,end:n}:{start:i||l.selectedDate,end:e}},l.canNavigate=function(e){if(!l.service)return!1;var t=l.service.move(l.focusedDate,e);return l.min<=t&&t<=l.max||l.service.isInSameView(t,l.min)||l.service.isInSameView(t,l.max)},l.isListInRange=function(e){return l.min<e[0]&&l.max>e[Math.max(0,(l.props.views||d.defaultProps.views)-1)]},l.navigate=function(e){l.calculateFocusFromValue=!1;var t=l.move(e);l.setState({focusedDate:t})},l.move=function(e){return l.clampDate(l.service.move(l.focusedDate,e))},l.clampDate=function(e){return D.dateInRange(e,l.min,l.max)},l.shouldAutoCorrect=function(e,t){var n=t.end,i=t.start;return"end"!==l.activeRange?null!==n&&n<e:null!==i&&e<i},l.handleCellEnter=function(e){"range"===l.props.mode&&(l.calculateFocusFromValue=!1,l.setState({focusedDate:e}))},l.handleMouseDown=function(e){e.preventDefault()},l.handleClick=function(e){l._element&&l._element.focus()},l.handleFocus=function(e){if(l.isActive=!0,l.calendarViewList){l.calendarViewList.focusActiveDate();var t=l.props.onFocus;t&&t.call(void 0,e)}},l.handleBlur=function(e){if(l.isActive=!1,l.calendarViewList){l.calendarViewList.blurActiveDate();var t=l.props.onBlur;t&&t.call(void 0,e)}},l.handlePrevButtonClick=function(){l.navigate(y.Action.PrevView)},l.handleNextButtonClick=function(){l.navigate(y.Action.NextView)},l.handleKeyDown=function(e){if(e.keyCode===m.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:l.focusedDate,target:l};l.handleDateChange.call(void 0,t)}else{var n=D.dateInRange(l.navigation.move(l.focusedDate,l.navigation.action(e),l.state.activeView,l.service,e),l.min,l.max);if(g.isEqualDate(l.focusedDate,n))return;l.calculateFocusFromValue=!1,l.setState({focusedDate:n})}e.preventDefault()},l.handleViewChange=function(e){var t=e.view;l.setState({activeView:t})},l.handleDateChange=function(n){l.calculateFocusFromValue=!1;var e=g.cloneDate(n.value),t=l.bus.canMoveDown(l.state.activeView);if(!l.props.disabled){if(t){if(!n.isTodayClick)return l.bus.moveDown(l.state.activeView,n.syntheticEvent),void l.setState({focusedDate:e});l.bus.moveToBottom(l.state.activeView)}var i;switch(l.props.mode){case"single":i=g.cloneDate(n.value);break;case"multiple":if(Array.isArray(l.selectedMultiple)){var r=l.selectedMultiple.slice(),a=-1;r.forEach(function(e,t){g.isEqualDate(e,n.value)&&(a=t)}),-1!==a?r.splice(a,1):r.push(g.cloneDate(n.value)),i=r.slice()}else i=l.selectedDate?[g.cloneDate(l.selectedDate),g.cloneDate(n.value)]:[g.cloneDate(n.value)];break;case"range":i=null!==l.selectedRange.start&&null!==l.selectedRange.end&&"start"===l.activeRange?l.clampRange(n.value):l.generateRange(n.value,l.selectedRange),l.activeRangeEnd="end"!==l.activeRange?"end":"start";break;default:i=g.cloneDate(n.value)}l.valueDuringOnChange=i,l.setState({value:i,focusedDate:e}),l.valueDuringOnChange=i;var o=l.props.onChange;if(o){var s={syntheticEvent:n.syntheticEvent,nativeEvent:n.nativeEvent,value:i,target:l};o.call(void 0,s)}l.valueDuringOnChange=void 0}};var t,n,i=void 0!==e.value?e.value:e.defaultValue||d.defaultProps.defaultValue,r=S(l.min,l.max,i),a=O(l.min,l.max,i),o=k(i),s=I(r,a,o),u=D.viewInRange(y.CalendarViewEnum[e.defaultActiveView],l.bottomView,l.topView),c=D.dateInRange(e.focusedDate||s||D.getToday(),l.min,l.max);return l.state={value:i,activeView:u,focusedDate:c},l.activeRangeEnd=(n=r,null===(t=o).start&&null===n?"start":null===t.end?"end":"start"),l.bus=new b.BusViewService(l.handleViewChange),l.navigation=new b.NavigationService(l.bus),l.calculateFocusFromValue=!1,l}return r(d,p),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"focusedDate",{get:function(){return g.cloneDate(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"min",{get:function(){return g.getDate(void 0!==this.props.min?this.props.min:d.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"max",{get:function(){return g.getDate(void 0!==this.props.max?this.props.max:d.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"bottomView",{get:function(){return y.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:d.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"topView",{get:function(){return y.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:d.defaultProps.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!0,configurable:!0}),d.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},d.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate():this.calendarViewList.blurActiveDate()),this.calculateFocusFromValue=!0},d.prototype.render=function(){var t=this;this.intl=v.provideIntlService(this),this.localization=v.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView);var e=D.viewInRange(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(e,this.intl),this.selectedDate=S(this.min,this.max,this.value),this.selectedMultiple=O(this.min,this.max,this.value),this.selectedRange=k(this.value);var n=I(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=D.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var i=m.classNames("k-widget k-calendar k-calendar-infinite k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),r=this.rangeWithFocused(this.selectedRange,this.focusedDate),a={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},o=this.localization.toLanguageString(w.prevView,w.messages[w.prevView]),s=this.localization.toLanguageString(w.nextView,w.messages[w.nextView]),l=!this.canNavigate(y.Action.PrevView),u=!this.canNavigate(y.Action.NextView),c={"aria-disabled":l},p={"aria-disabled":u};return f.createElement("div",h({ref:function(e){t._element=e},className:i,id:this.props.id||this.wrapperID,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a),f.createElement("button",h({className:"k-button k-prev-view",title:o,disabled:l,onClick:this.handlePrevButtonClick},c),f.createElement("span",{className:"k-icon k-i-arrow-chevron-left"})),f.createElement(_.HorizontalViewList,{ref:function(e){t.calendarViewList=e},activeView:e,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:r,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}),f.createElement("button",h({className:"k-button k-next-view",title:s,disabled:u,onClick:this.handleNextButtonClick},p),f.createElement("span",{className:"k-icon k-i-arrow-chevron-right"})))},d.propTypes={activeRangeEnd:a.oneOf(["start","end"]),allowReverse:a.bool,bottomView:a.oneOf(["month","year","decade","century"]),className:a.string,defaultActiveView:a.oneOf(["month","year","decade","century"]),defaultValue:a.oneOfType([a.instanceOf(Date),a.arrayOf(a.instanceOf(Date)),a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)})]),disabled:a.bool,focusedDate:a.instanceOf(Date),id:a.string,max:a.instanceOf(Date),min:a.instanceOf(Date),mode:a.oneOf(["single","multiple","range"]),onBlur:a.func,onChange:a.func,onFocus:a.func,tabIndex:a.number,topView:a.oneOf(["month","year","decade","century"]),value:a.oneOfType([a.instanceOf(Date),a.arrayOf(a.instanceOf(Date)),a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)})]),views:function(e,t,n){var i=e[t];if(void 0!==i&&i<1)return new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'")},weekNumber:a.bool},d.defaultProps={disabled:!1,min:o.MIN_DATE,max:o.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},d}(f.Component);t.MultiViewCalendar=s,v.registerForIntl(s),v.registerForLocalization(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18);t.Calendar=i.Calendar;var r=n(12);t.DateInput=r.DateInput;var a=n(46);t.DatePicker=a.DatePicker;var o=n(48);t.TimePicker=o.TimePicker;var s=n(32);t.MultiViewCalendar=s.MultiViewCalendar;var l=n(58);t.DateRangePicker=l.DateRangePicker;var u=n(20);t.CalendarCell=u.CalendarCell;var c=n(21);t.CalendarWeekCell=c.CalendarWeekCell;var p=n(27);t.CalendarHeaderTitle=p.CalendarHeaderTitle;var d=n(28);t.CalendarNavigationItem=d.CalendarNavigationItem;var h=n(6);t.CalendarViewEnum=h.CalendarViewEnum,function(e){for(var t in e)f(t,e[t])}(t)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),a=n(4),h=n(3),s=n(0),o=n(5),f=n(13),l=n(19),v=n(26),m=n(1),g=n(6),u=function(t){function e(e){var o=t.call(this,e)||this;return o.isActive=!1,o.animateToIndex=!0,o.shouldScroll=!1,o.focusActiveDate=function(){if(o._element){var e=o._element.querySelector("td.k-state-focused"),t=o._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),o.isActive=!0}},o.blurActiveDate=function(){if(o._element){var e=o._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),o.isActive=!1}},o.handleVirtualizationMount=function(e){if(o.virtualization=e,o.virtualization&&o.table){o.table.style.transform="translateY("+o.viewOffset+"px)";var t=m.dateInRange(o.props.focusedDate,o.props.min,o.props.max),n=o.props.service.skip(t,o.props.min);o.virtualization.scrollToIndex(n)}},o.buildMonthView=function(e,t){return d.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-weekdays"},d.createElement("colgroup",null,e.map(function(e,t){return d.createElement("col",{key:t})})),d.createElement("thead",null,d.createElement("tr",null,t.map(function(e,t){return d.createElement("th",{key:t},e)}))))},o.buildDates=function(e,t){var n=o.props.cellUID;return d.createElement("table",{ref:function(e){return o.table=e}},d.createElement("colgroup",null,e.map(function(e,t){return d.createElement("col",{key:t})})),t.map(function(e){return d.createElement(l.View,{ref:function(e){o.calendarView||(o.calendarView=e)},key:e.getTime(),activeView:o.props.activeView,viewDate:e,min:o.props.min,max:o.props.max,cellUID:n,focusedDate:o.props.focusedDate,cell:o.props.cell,selectedDate:o.props.value,showWeekNumbers:o.weekNumber,onChange:o.handleDateChange,bus:o.props.bus,service:o.props.service,weekCell:o.props.weekCell})}))},o.calculateHeights=function(){if(o.props.dom){var e=o.props.activeView===g.CalendarViewEnum.month?o.props.dom.scrollableContentHeight:o.props.dom.scrollableYearContentHeight;o.bottomOffset=e-o.props.dom.viewHeight(o.props.activeView),o.viewOffset=-1*o.props.dom.headerHeight,o.viewHeight=o.props.dom.viewHeight(o.props.activeView)||1}},o.getTake=function(e,t){return Math.min(t-e,o.take)},o.handleScrollAction=function(e){var t=e.index,n=e.scrollAction,i=e.pageAction,r=i?i.skip:o.state.skip;if(o.state.index===t&&o.state.skip===r||o.setState({index:t,skip:r}),o.table&&n){var a="translateY("+n.offset+"px)";o.table.style.transform=a}},o.handleTodayClick=function(e){o.shouldScroll=!0,o.handleDateChange.call(void 0,e,!0)},o.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=o.props.onChange;if(n){var i={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:s.cloneDate(e.value),target:o,isTodayClick:t};n.call(void 0,i)}},o.lastView=o.props.activeView,o.state={skip:o.props.service.skip(o.props.focusedDate,o.props.min),index:o.props.service.skip(o.props.focusedDate,o.props.min)},o}return r(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNames",{get:function(){this.intl=o.provideIntlService(this);var e=m.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===g.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:e.defaultProps.take},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.props.activeView!==e.activeView;if(this.animateToIndex=!t,t||!s.isEqualDate(this.props.focusedDate,e.focusedDate)||this.shouldScroll){var n=m.dateInRange(e.focusedDate,e.min,e.max);this.indexToScroll=e.service.skip(n,e.min)}},e.prototype.componentDidUpdate=function(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0},e.prototype.render=function(){var t=this;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=m.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),a=this.getTake(i,r),o=this.props.service.addToDate(this.props.min,i),s=this.props.service.addToDate(this.props.min,this.state.index),l=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),u=h.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===g.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===g.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===g.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===g.CalendarViewEnum.century}),c=this.buildDates(l,this.props.service.datesList(o,a)),p=[d.createElement(v.Header,{key:"calendar-view-list-header",currentDate:s,min:this.props.min,max:this.props.max,activeView:this.props.activeView,onTodayClick:this.handleTodayClick,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle}),this.props.activeView===g.CalendarViewEnum.month&&this.buildMonthView(l,this.weekNames),d.createElement(f.Virtualization,{key:"calendar-view-list-content",skip:i,take:this.take,total:r,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:c})];return d.createElement("div",{ref:function(e){t._element=e},className:u},this.props.dom.didCalculate?p:null)},e.propTypes={activeView:a.number.isRequired,bottomOffset:a.number,cellUID:a.string.isRequired,focusedDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onChange:a.func,showWeekNumbers:a.bool,smoothScroll:a.bool,take:a.number,value:a.instanceOf(Date),viewHeight:a.number,viewOffset:a.number},e.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},e}(d.Component);t.ViewList=u,o.registerForIntl(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36);t.RowHeightService=i.RowHeightService;var r=n(37);t.PageAction=r.PageAction,t.ScrollAction=r.ScrollAction,t.ScrollerService=r.ScrollerService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,r=0;r<e;r++)this.offsets.push(i),i+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},e.prototype.updateRowHeight=function(e,t){var n,i,r;this.heights[e]+=t,this.offsets=(n=this.offsets,i=e,r=t,n.slice(0,i+1).concat(n.slice(i+1).map(function(e){return e+r})))},e}();t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){return Math.max(e,0)},d=function(e){this.offset=e};t.ScrollAction=d;var h=function(e){this.skip=e};t.PageAction=h;var i=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,i,r,a,o){void 0===r&&(r=0),void 0===a&&(a=0),void 0===o&&(o="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScrollTop=0,this.topOffset=r,this.bottomOffset=a,this.direction=o;var s=this.rowsForHeight(r),l=p(t-s);this.onScrollAction(new d(this.rowOffset(l))),this.onPageAction(new h(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,i=e.offsetHeight,r=e.offsetWidth,a="vertical"===this.direction?n:t,o="vertical"===this.direction?i:r;if(this.lastScrollTop!==a){var s=this.lastScrollTop>=a;this.lastScrollTop=a;var l=this.rowHeightService.index(p(a-this.topOffset)),u=this.rowHeightService.index(p(a+o-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new d(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new h(this.firstLoaded))),s&&l<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=p(l-c),this.onScrollAction(new d(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new h(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e}();t.ScrollerService=i},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(22),a=n(23),o=n(24),s=n(25),l=n(14),u=((i={})[l.CalendarViewEnum.month]=o.MonthViewService,i[l.CalendarViewEnum.year]=s.YearViewService,i[l.CalendarViewEnum.decade]=a.DecadeViewService,i[l.CalendarViewEnum.century]=r.CenturyViewService,i),c=function(){function e(e){this.bottom=l.CalendarViewEnum.month,this.top=l.CalendarViewEnum.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new u[""+e](t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var i,r,a,o=this.clamp((i=e,r=t,void 0!==(a=l.CalendarViewEnum[l.CalendarViewEnum[i+r]])?a:i));o!==e&&this.onViewChanged({view:o},n)},e}();t.BusViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),O=n(1),r=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var n=this;if(O.isDocumentAvailable()){var t,u=O.domContainerFactory("div"),i=O.domContainerFactory("ul"),r=O.domContainerFactory("li"),c=O.domContainerFactory("td"),p=O.domContainerFactory("th"),d=O.domContainerFactory("tr"),h=O.domContainerFactory("tbody"),f=O.domContainerFactory("thead"),v=O.domContainerFactory("table"),m=function(){return u('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},g=function(e,t){return new Array(e).fill("1").map(t)},y=function(e){return u(e,"k-content k-scrollable")},a=function(e,r,a){var o,s=e.cells,l=e.rows;return function(){return O.isDocumentAvailable?(o||(n=l,void 0===(i=s)&&(i=1),e=v([h([d([p("1")])].concat(g(n,function(){return d(g(i,function(e){return c('<span class="k-link">'+e+"</span>")}))})))]),t=r,o=u(a?[m(),v([f([d([p("MO")])])],"k-calendar-weekdays"),y([e,e])]:[m(),y([e,e])],t,{left:"-10000px",position:"absolute"})),o):null;var e,t,n,i}},o=function(e){return e.querySelector(".k-scrollable")},s=function(e){var t=o(e);return t.className=t.className+" k-scrollable-horizontal",e},l=a({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),w=a({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),b=a({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),D=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},_=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},S=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(l(),function(e){var t=S(e);n.calendarHeight=D(e),n.monthViewHeight=D(t),n.headerHeight=D(t.children[0]),n.scrollableContentHeight=D(o(e))}),this.batch(s(l()),function(e){var t=S(e);n.calendarWidth=_(e),n.monthViewWidth=_(t),n.scrollableContentWidth=_(o(e))}),this.batch(w(),function(e){n.yearViewHeight=D(S(e)),n.scrollableYearContentHeight=D(o(e))}),this.batch(s(w()),function(e){n.yearViewWidth=_(S(e))}),this.batch(b(),function(e){n.decadeViewHeight=D(S(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(s(b()),function(e){n.decadeViewWidth=_(S(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(O.isDocumentAvailable?(t||(t=u([y([i([r("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),t):null,function(e){n.navigationItemHeight=D(e.querySelector("li"))})}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case i.CalendarViewEnum.month:return this["month"+n];case i.CalendarViewEnum.year:return this["year"+n];case i.CalendarViewEnum.decade:return this["decade"+n];case i.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,i=n.appendChild(e);t(i),n.removeChild(i)},e}();t.DOMService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),i={33:a.Action.PrevView,34:a.Action.NextView,35:a.Action.LastInView,36:a.Action.FirstInView,37:a.Action.Left,38:a.Action.Up,39:a.Action.Right,40:a.Action.Down,"meta+38":a.Action.UpperView,"meta+40":a.Action.LowerView},r=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return i[t]},e.prototype.move=function(e,t,n,i,r){return i?t===a.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,r),e):t===a.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,r),e):i.move(e,t):e},e}();t.NavigationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t,n,i=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=i,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=i,function(e){return e*t})},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e}();t.ScrollSyncService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=i.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}();t.WeekNamesService=r},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),a=n(4),s=n(0),l=n(28),c=n(1),p=n(13),d=function(t){function e(e){var a=t.call(this,e)||this;return a.topOffset=0,a.handleVirtualizationMount=function(e){if(a.virtualization=e,a.virtualization&&a.list){a.list.style.transform="translateY("+a.topOffset+"px)";var t=c.dateInRange(a.props.focusedDate,a.props.min,a.props.max),n=a.props.service.skip(t,a.props.min);a.virtualization.scrollToIndex(n)}},a.buildNavigationItem=function(e){var t=a.props.service.navigationTitle(e),n=a.props.service.isRangeStart(e),i="kendo-react-calendar-nav-item-"+e.getTime(),r={text:t,value:e,isRangeStart:n,view:a.props.activeView,onClick:a.handleDateChange};return a.props.navigationItem?u.createElement(a.props.navigationItem,o({},r,{key:i}),t):u.createElement(l.CalendarNavigationItem,o({},r,{key:i}),t)},a.calculateHeights=function(){var e=a.props.dom.calendarHeight;a.itemHeight=a.props.dom.navigationItemHeight||1,a.maxViewHeight=a.props.dom.monthViewHeight,a.topOffset=(e-a.itemHeight)/2,a.bottomOffset=e-a.itemHeight},a.handleDateChange=function(e,t){var n=a.props.onChange;if(n){var i={value:s.cloneDate(e),target:a,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};n.call(void 0,i)}},a.handleScrollAction=function(e){var t=e.scrollAction,n=e.pageAction,i=n?n.skip:a.state.skip;if(a.state.skip!==i&&a.setState({skip:i}),a.list&&t){var r="translateY("+t.offset+"px)";a.list.style.transform=r}},a.lastView=a.props.activeView,a.state={skip:a.props.service.skip(a.props.focusedDate,a.props.min)},a}return r(e,t),Object.defineProperty(e.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:e.defaultProps.take},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){if(this.props.activeView===e.activeView&&s.isEqual(this.props.focusedDate,e.focusedDate))return null;var t=c.dateInRange(e.focusedDate,e.min,e.max);this.indexToScroll=e.service.skip(t,e.min)},e.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&(this.virtualization.scrollToIndex(this.indexToScroll),this.forceUpdate()),this.lastView=this.props.activeView,this.indexToScroll=void 0},e.prototype.render=function(){var t=this;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=c.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),a=this.getTake(i,r),o=this.props.service.addToDate(this.props.min,i),s=this.props.service.datesList(o,a),l=u.createElement(p.Virtualization,{skip:i,take:this.take,total:r,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},u.createElement("ul",{ref:function(e){t.list=e},className:"k-reset"},s.map(function(e){return t.buildNavigationItem(e)})));return u.createElement("div",{className:"k-calendar-navigation"},u.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?l:null)},e.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},e.propTypes={activeView:a.number.isRequired,focusedDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onChange:a.func,take:a.number},e.defaultProps={take:30},e}(u.Component);t.Navigation=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45);t.KendoDate=i.KendoDate;var r=n(29);t.Mask=r.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var D=n(0),l=n(29),i=n(30),r=function(){function e(e,t,n){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.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=D.getDate(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){e?D.isEqual(e,this._value)||(this._value=D.cloneDate(e),this.modifyExisting(!0)):(this._value=D.getDate(new Date),this.modifyExisting(!1))},e.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)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return D.cloneDate(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.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;default:return}},e.prototype.modifyPart=function(e,t){var n=D.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=D.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"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n,i=this.leadingZero||{};if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null,switchToNext:!1};for(var r=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,s=!1,l="",u="",c="",p=0;p<r.length;p++)o[p]===e?(u+=this.getExisting(e)?r[p]:"0",s=!0):s?c+=r[p]:l+=r[p];var d=u.length-3,h=null,f=this.matchMonth(t);for(p=Math.max(0,d);p<=u.length;p++){var v=u.substring(p)+t,m=parseInt(v,10);if(!(h=this.intl.parseDate(l+v+c,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var g=m-1;-1<g&&g<12&&((h=D.cloneDate(this.value)).setMonth(g),h.getMonth()!==g&&(h=D.lastDayOfMonth(D.addMonths(h,-1))))}"y"===e&&(h=D.createDate(parseInt(v,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&&h.getDate()!==this.value.getDate()&&(h=D.lastDayOfMonth(D.addMonths(h,-1))))}if(h){var y=this.partPattern(a.partMap,e).pattern,w=this.intl.parseDate(""+l+this.peek(v,y)+c,this.format);this._value=h,this.setExisting(e,!0);var b=null===w||i[e]&&y.length<=v.length;return{value:this.value,switchToNext:b}}}return f&&(h=this.intl.parseDate(l+f+c,this.format))?(this._value=h,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):("0"===t&&(this.leadingZero=this.isAbbrMonth(a.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null,switchToNext:!1})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(i.dateSymbolMap,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},e.prototype.peek=function(e,t){var n=e.replace(/^0*/,"")+"0";return i.padZero(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)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""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],r=[],a=0;a<n.length;a++)for(var o=this.intl.formatDate(e,{pattern:n[a].pattern}).length;0<o;)i.push(this.symbols[n[a].pattern[0]]||"_"),r.push(n[a]),o--;var s=new l.Mask;return s.symbols=i.join(""),s.partMap=r,s},e.prototype.merge=function(e,t){for(var n="",i="",r=t.symbols,a=r.length-1;0<=a;a--)if(-1===this.knownParts.indexOf(r[a])||this.getExisting(r[a]))n=e[a]+n,i=r[a]+i;else{for(var o=r[a];0<=a&&o===r[a];)a--;for(a++,n=this.leadingZero&&this.leadingZero[o]?"0"+n:this.dateFieldName(t.partMap[a])+n;i.length<n.length;)i=r[a]+i}return{text:n,format:i}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}();t.KendoDate=r},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),P=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},V=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var A=n(2),a=n(4),R=n(16),N=n(0),j=n(3),F=n(12),L=n(18),o=n(1),s=n(47),H=n(9),q=n(5),l=function(t){function n(e){var i=t.call(this,e)||this;return i._popupId=j.guid(),i._element=null,i._wrapper=null,i._dateInput=null,i._calendar=null,i.shouldFocusDateInput=!1,i.setDateInputRef=function(e){i._dateInput=e},i.setCalendarRef=function(e){i._calendar=e},i.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},i.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},i.handleInputValueChange=function(e){i.handleValueChange(e.value,e)},i.handleCalendarValueChange=function(e){var t=i.mergeTime(e.value);i.handleValueChange(t,e)},i.handleValueChange=function(e,t){i.setState({value:N.cloneDate(e||void 0),show:!1}),i.valueDuringOnChange=e,i.showDuringOnChange=!1,i.shouldFocusDateInput=!0;var n=i.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:i.value,show:i.show,target:i}),i.valueDuringOnChange=void 0,i.showDuringOnChange=void 0},i.handleFocus=function(e){clearTimeout(i.nextTickId),i._wrapper&&i._wrapper.classList.add("k-state-focused");var t=i.props.onFocus;t&&t.call(void 0,e)},i.handleBlur=function(e){i.nextTick(function(){i._wrapper&&i._wrapper.classList.remove("k-state-focused"),i.setShow(!1)});var t=i.props.onBlur;t&&t.call(void 0,e)},i.handleIconClick=function(){i.props.disabled||(i.shouldFocusDateInput=!0,i.setShow(!i.show))},i.handleIconMouseDown=function(e){e.preventDefault()},i.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===j.Keys.esc)return e.stopPropagation(),void i.setShow(!1);!t||n!==j.Keys.up&&n!==j.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===j.Keys.up,i.setShow(n===j.Keys.down))},i.state={value:i.props.defaultValue||n.defaultProps.defaultValue,show:i.props.defaultShow||n.defaultProps.defaultShow},i}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dateInput",{get:function(){return this._dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?N.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validity",{get:function(){var e=s.isInRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,i=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:i,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:n.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:n.defaultProps.required},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.show&&this.forceUpdate(),this._dateInput&&this._dateInput.element&&(this._dateInput.element.setAttribute("aria-haspopup","true"),this._dateInput.element.setAttribute("aria-expanded",""+this.show))},n.prototype.componentDidUpdate=function(e){this._dateInput&&this._dateInput.element&&this._dateInput.element.setAttribute("aria-expanded",""+this.show),this._calendar&&this._calendar.element&&this.show&&!e.show&&this._calendar.element.focus(),this._dateInput&&this._dateInput.element&&!this.show&&this.shouldFocusDateInput&&this._dateInput.element.focus(),this.shouldFocusDateInput=!1},n.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},n.prototype.render=function(){var t=this,e=this.props,n=e.disabled,i=e.tabIndex,r=e.title,a=e.id,o=e.format,s=e.formatPlaceholder,l=e.min,u=e.max,c=e.weekNumber,p=e.focusedDate,d=e.className,h=e.width,f=e.name,v=e.validationMessage,m=e.required,g=e.validityStyles,y=this.props.popupSettings,w=y.popupClass,b=V(y,["popupClass"]),D=this.show,_=this.value,S=_&&N.getDate(_),O=!this.validityStyles||this.validity.valid,k=j.classNames("k-widget k-datepicker k-header",{"k-state-invalid":!O},d),I=j.classNames("k-picker-wrap",{"k-state-default":!n,"k-state-disabled":n}),E=j.classNames("k-calendar-container k-group k-reset",w),M={disabled:n,format:o,formatPlaceholder:s,id:a,max:u,min:l,name:f,onChange:this.handleInputValueChange,required:m,tabIndex:D?-1:i,title:r,valid:this.validity.valid,validationMessage:v,validityStyles:g,value:_},x=P({show:D,animate:null!==this._wrapper,anchor:this._wrapper||void 0,className:E,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},b),C={disabled:n,value:S,min:l,max:u,weekNumber:c,focusedDate:p,onChange:this.handleCalendarValueChange},T=this.props.calendar?A.createElement(this.props.calendar,P({},C)):A.createElement(L.Calendar,P({ref:this.setCalendarRef},C));return A.createElement("span",{ref:function(e){t._element=e},className:k,onKeyDown:this.handleKeyDown,style:{width:h},onFocus:this.handleFocus,onBlur:this.handleBlur},A.createElement("span",{ref:function(e){t._wrapper=e},className:I},this.props.dateInput?A.createElement(this.props.dateInput,P({},M)):A.createElement(F.DateInput,P({ref:this.setDateInputRef},M)),A.createElement("span",P({role:"button",onMouseDown:this.handleIconMouseDown,onClick:this.handleIconClick,title:q.provideLocalizationService(this).toLanguageString(H.toggleCalendar,H.messages[H.toggleCalendar]),className:"k-select"},{"aria-controls":this._popupId,"aria-label":q.provideLocalizationService(this).toLanguageString(H.toggleCalendar,H.messages[H.toggleCalendar])}),A.createElement("span",{className:"k-icon k-i-calendar"}))),this.props.popup?A.createElement(this.props.popup,P({},x),T," "):A.createElement(R.Popup,P({},x),T))},n.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},n.prototype.mergeTime=function(e){return this.value&&e?o.setTime(e,this.value):e},n.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},n.propTypes={className:a.string,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),format:a.string,formatPlaceholder:a.oneOfType([a.oneOf(["wide","narrow","short","formatPattern"]),a.shape({year:a.string,month:a.string,day:a.string,hour:a.string,minute:a.string,second:a.string})]),id:a.string,min:a.instanceOf(Date),max:a.instanceOf(Date),name:a.string,popupSettings:a.shape({animate:a.bool,appendTo:a.any,popupClass:a.string}),show:a.bool,tabIndex:a.number,title:a.string,value:a.instanceOf(Date),weekNumber:a.bool,width:a.oneOfType([a.number,a.string]),validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool},n.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"d",max:o.MAX_DATE,min:o.MIN_DATE,popupSettings:{},tabIndex:0,title:"",weekNumber:!1,required:!1,validityStyles:!0},n}(A.Component);t.DatePicker=l,q.registerForLocalization(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.isInRange=function(e,t,n){return null===e||!(t&&i.getDate(t)>i.getDate(e)||n&&i.getDate(n)<i.getDate(e))}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),M=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},x=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var C=n(2),a=n(4),T=n(16),o=n(0),P=n(3),s=n(5),V=n(12),A=n(49),l=n(1),u=n(11),c=n(31),p=new RegExp(c.TIME_PART.hour+"|"+c.TIME_PART.minute+"|"+c.TIME_PART.second+"|"+c.TIME_PART.dayperiod+"|literal"),d=function(t){function n(e){var i=t.call(this,e)||this;return i._popupId=P.guid(),i._element=null,i._wrapper=null,i._dateInput=null,i._timeSelector=null,i.shouldFocusDateInput=!1,i.setDateInputRef=function(e){i._dateInput=e},i.setTimeSelectorRef=function(e){i._timeSelector=e},i.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},i.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},i.handleInputValueChange=function(e){var t=i.mergeTime(e.value);i.handleValueChange(M({},e,{value:t}))},i.handleValueChange=function(e){i.setState({value:o.cloneDate(e.value),show:!1}),i.valueDuringOnChange=e.value,i.showDuringOnChange=!1,i.shouldFocusDateInput=!0;var t=i.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:i.value,show:i.show,target:i}),i.valueDuringOnChange=void 0,i.showDuringOnChange=void 0},i.handleFocus=function(e){clearTimeout(i.nextTickId),i._wrapper&&i._wrapper.classList.add("k-state-focused");var t=i.props.onFocus;t&&t.call(void 0,e)},i.handleBlur=function(e){i.nextTick(function(){i._wrapper&&i._wrapper.classList.remove("k-state-focused"),i.setShow(!1)});var t=i.props.onBlur;t&&t.call(void 0,e)},i.handleValueReject=function(e){i.setShow(!1)},i.handleIconClick=function(e){i.props.disabled||(i.shouldFocusDateInput=!0,i.setShow(!i.show))},i.handleIconMouseDown=function(e){e.preventDefault()},i.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===P.Keys.esc)return e.stopPropagation(),void i.setShow(!1);!t||n!==P.Keys.up&&n!==P.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===P.Keys.up,i.setShow(n===P.Keys.down))},i.state={value:i.props.defaultValue||n.defaultProps.defaultValue,show:i.props.defaultShow||n.defaultProps.defaultShow},i.normalizeTime=i.normalizeTime.bind(i),i.setShow=i.setShow.bind(i),i.nextTick=i.nextTick.bind(i),i.mergeTime=i.mergeTime.bind(i),i}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dateInput",{get:function(){return this._dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?o.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),i=u.isInRange(e,t,n),r=void 0!==this.props.validationMessage,a=(!this.required||null!==this.value)&&i,o=void 0!==this.props.valid?this.props.valid:a;return{customError:r,rangeOverflow:u.isBiggerThanMax(e,n),rangeUnderflow:u.isSmallerThanMin(e,t),valid:o,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:n.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:n.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"popupSettings",{get:function(){return this.props.popupSettings||n.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.show&&this.forceUpdate(),this._dateInput&&this._dateInput.element&&(this._dateInput.element.setAttribute("aria-haspopup","true"),this._dateInput.element.setAttribute("aria-expanded",""+this.show))},n.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},n.prototype.componentDidUpdate=function(e){this._dateInput&&this._dateInput.element&&this._dateInput.element.setAttribute("aria-expanded",""+this.show),this._timeSelector&&this.show&&!e.show?this._timeSelector.focusActiveList():this._dateInput&&this._dateInput.element&&!this.show&&this.shouldFocusDateInput&&this._dateInput.element.focus(),this.shouldFocusDateInput=!1},n.prototype.render=function(){var t=this,e=this.props,n=e.disabled,i=e.tabIndex,r=e.title,a=e.id,o=e.className,s=e.format,l=e.formatPlaceholder,u=e.smoothScroll,c=e.width,p=e.name,d=e.steps,h=e.cancelButton,f=e.nowButton,v=e.validationMessage,m=e.required,g=e.validityStyles,y=this.popupSettings,w=y.popupClass,b=x(y,["popupClass"]),D=!this.validityStyles||this.validity.valid,_=P.classNames("k-widget k-timepicker k-header",{"k-state-invalid":!D},o),S=P.classNames("k-picker-wrap",{"k-state-default":!n,"k-state-disabled":n}),O=P.classNames("k-group k-reset",w),k={disabled:n,format:s,formatPlaceholder:l,id:a,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:p,onChange:this.handleInputValueChange,required:m,steps:d,tabIndex:this.show?-1:i,title:r,valid:this.validity.valid,validationMessage:v,validityStyles:g,value:this.value&&this.normalizeTime(this.value)},I=M({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper||void 0,className:O,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},b),E=C.createElement(A.TimeSelector,{ref:this.setTimeSelectorRef,cancelButton:h,disabled:n,nowButton:f,format:s,min:this.min,max:this.max,steps:d,smoothScroll:u,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject});return C.createElement("span",{ref:function(e){t._element=e},className:_,onKeyDown:this.handleKeyDown,style:{width:c},onFocus:this.handleFocus,onBlur:this.handleBlur},C.createElement("span",{ref:function(e){t._wrapper=e},className:S},this.props.dateInput?C.createElement(this.props.dateInput,M({},k)):C.createElement(V.DateInput,M({ref:this.setDateInputRef},k)),C.createElement("span",M({role:"button",onMouseDown:this.handleIconMouseDown,onClick:this.handleIconClick,title:"Toggle TimeSelector",className:"k-select"},{"aria-controls":this._popupId,"aria-label":"Toggle Clock"}),C.createElement("span",{className:"k-icon k-i-clock"}))),this.props.popup?C.createElement(this.props.popup,M({},I),E):C.createElement(T.Popup,M({},I),E))},n.prototype.normalizeTime=function(e){return l.setTime(l.MIDNIGHT_DATE,e)},n.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},n.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},n.prototype.mergeTime=function(e){return this.value&&e?l.setTime(this.value,e):e},n.propTypes={className:a.string,cancelButton:a.bool,nowButton:a.bool,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,format:function(e,t,n){var i=e[t];return s.provideIntlService(this).splitDateFormat(i).forEach(function(e){if(!p.test(e.type))return new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Provided format is not supported. Supported specifiers are T|t|H|h|m|s|a.\n ")}),null},formatPlaceholder:a.oneOfType([a.oneOf(["wide","narrow","short","formatPattern"]),a.shape({year:a.string,month:a.string,day:a.string,hour:a.string,minute:a.string,second:a.string})]),id:a.string,min:a.instanceOf(Date),max:a.instanceOf(Date),name:a.string,popupSettings:a.shape({animate:a.bool,appendTo:a.any,popupClass:a.string}),show:a.bool,steps:a.shape({hour:a.number,minute:a.number,second:a.number}),smoothScroll:a.bool,tabIndex:a.number,title:a.string,value:a.instanceOf(Date),width:a.oneOfType([a.number,a.string]),validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool},n.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:l.MAX_TIME,min:l.MIN_TIME,popupSettings:{},title:"",tabIndex:0,steps:{},required:!1,validityStyles:!0},n}(C.Component);t.TimePicker=d,s.registerForIntl(d)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a,o,u=n(2),s=n(4),c=n(0),p=n(3),d=n(5),h=n(50),f=n(1),v=n(17),m=n(11),g=new RegExp(v.TIME_PART.hour+"|"+v.TIME_PART.minute+"|"+v.TIME_PART.second+"|"+v.TIME_PART.dayperiod+"|literal");(o=a=t.Direction||(t.Direction={}))[o.Left=0]="Left",o[o.Right=1]="Right";var y=function(n){function i(e){var r=n.call(this,e)||this;r.timeLists=[],r.focusActiveList=function(){var e=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&e&&e.element&&e.element.focus()},r.focusList=function(t){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map(function(e){return t===a.Right?e.next:e.prev}).map(function(e){return e&&e.element&&e.element.focus()})},r.listReducer=function(e,t,n,i){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:i[n+1]||t,prev:i[n-1]||t}]},r.showNowButton=function(){return!r.hasSteps()&&r.props.nowButton&&m.isInTimeRange(m.getNow(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case p.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));case p.Keys.left:return e.preventDefault(),void r.focusList(a.Left);case p.Keys.right:return e.preventDefault(),void r.focusList(a.Right);default:return}},r.handleAccept=function(e){var t=r.mergeValue(c.cloneDate(r.value||m.getNow()),r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){var t=m.timeInRange(r.snapTime(c.cloneDate(r.value||f.MIDNIGHT_DATE)),r.min,r.max);r.setState({current:t});var n=r.props.onReject;n&&n.call(void 0,e)},r.handleListBlur=function(){r.nextTick(function(){r.setState({activeListIndex:-1})})},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleNowClick=function(e){var t=r.mergeValue(c.cloneDate(r.current),m.getNow());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){var t=m.timeInRange(r.snapTime(c.cloneDate(e||f.MIDNIGHT_DATE)),r.min,r.max);r.setState({current:t})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||i.defaultProps.format),r.mergeValue=m.valueMerger(m.generateGetters(r.dateFormatParts)),r.snapTime=m.snapTime(m.generateSnappers(r.props.steps,r.props.min||i.defaultProps.min));var t=m.timeInRange(r.snapTime(c.cloneDate(r.props.value||f.MIDNIGHT_DATE)),r.min,r.max);return r.state={value:r.props.value||i.defaultProps.value,current:t,min:r.min,max:r.max,activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return r(i,n),Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?c.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intl",{get:function(){return d.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"current",{get:function(){return c.cloneDate(this.state.current)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"min",{get:function(){return this.snapTime(this.props.min||i.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this.snapTime(this.props.max||i.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"steps",{get:function(){return this.props.steps||i.defaultProps.steps},enumerable:!0,configurable:!0}),i.prototype.componentWillReceiveProps=function(e){e.steps===this.steps&&e.min===this.min||(this.snapTime=m.snapTime(m.generateSnappers(e.steps,e.min)))},i.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},i.prototype.render=function(){var n=this,e=this.props,t=e.format,i=e.cancelButton,r=e.disabled,a=e.tabIndex,o=e.className,s=e.smoothScroll;return this.timeLists=[],u.createElement("span",{ref:function(e){n._element=e},tabIndex:r?void 0:a||0,className:p.classNames("k-timeselector k-reset",o,{"k-state-disabled":r}),onKeyDown:this.handleKeyDown},u.createElement("div",{className:"k-time-header"},u.createElement("span",{className:"k-title"},this.intl.formatDate(this.current,t)),this.showNowButton()&&u.createElement("button",l({ref:function(e){n._nowButton=e},className:"k-button k-bare k-time-now",title:"Select Now"},{"aria-label":"Select Now"},{onClick:this.handleNowClick}),"NOW")),u.createElement("div",{className:"k-time-list-container"},u.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map(function(e,t){return"literal"!==e.type?u.createElement("div",{key:t,className:p.classNames("k-time-list-wrapper",{"k-state-focused":t===n.state.activeListIndex}),role:"presentation",tabIndex:-1},u.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},n.intl.dateFieldName(e)),u.createElement(h.TimeList,{min:n.min,max:n.max,part:e,step:e.type?n.steps[e.type]:1,smoothScroll:s,ref:function(e){e&&n.timeLists.push(e)},id:t,onFocus:function(){n.handleListFocus(t)},onBlur:n.handleListBlur,onChange:n.handleChange,value:n.current})):u.createElement("div",{key:t,className:"k-time-separator"},e.pattern)})),u.createElement("div",{className:"k-time-footer k-action-buttons"},i&&u.createElement("button",l({ref:function(e){n._cancelButton=e},className:"k-button k-time-cancel",onClick:this.handleReject,title:"Cancel"},{"aria-label":"Cancel"}),"Cancel"),u.createElement("button",l({ref:function(e){n._acceptButton=e},className:"k-time-accept k-button k-primary",onClick:this.handleAccept,title:"Set"},{"aria-label":"Set"}),"Set")))},i.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},i.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton||document.activeElement===this._nowButton)},i.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)},i.propTypes={cancelButton:s.bool,className:s.string,disabled:s.bool,format:function(e,t,n){var i=e[t];d.provideIntlService(this).splitDateFormat(i).forEach(function(e){if(!g.test(e.type))throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Provided format is not supported. Supported specifiers are T|t|H|h|m|s|a.\n ")})},max:s.instanceOf(Date),min:s.instanceOf(Date),nowButton:s.bool,steps:s.shape({hour:s.number,minute:s.number,second:s.number}),smoothScroll:s.bool,tabIndex:s.number,value:s.instanceOf(Date)},i.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"t",min:f.MIN_TIME,max:f.MAX_TIME,steps:{}},i}(u.Component);t.TimeSelector=y,d.registerForIntl(y)},function(e,t,n){"use strict";var i,r,a,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(4),u=n(0),c=n(3),p=n(5),d=n(13),h=n(31),f=n(51),v=n(1),m=((r={})[c.Keys.end]=function(e,t){return e[e.length-1]},r[c.Keys.home]=function(e,t){return e[0]},r[c.Keys.up]=function(e,t){return e[t-1]},r[c.Keys.down]=function(e,t){return e[t+1]},r),g=((a={})[h.TIME_PART.dayperiod]=f.DayPeriodService,a[h.TIME_PART.hour]=f.HoursService,a[h.TIME_PART.minute]=f.MinutesService,a[h.TIME_PART.second]=f.SecondsService,a),y=function(t){function e(e){var l=t.call(this,e)||this;return l.animateToIndex=!1,l.itemOffset=function(e){if(!l.virtualization)return-1;var t=l.service.selectedIndex(l.props.value),n=l.virtualization.activeIndex(),i=l.virtualization.itemOffset(n),r=Math.abs(Math.ceil(e)-i);if(t===n&&r<2)return i;var a=n<t;return a&&r>=l.bottomThreshold||!a&&r>l.topThreshold?l.virtualization.itemOffset(n+1):i},l.calculateHeights=function(){l.dom.didCalculate&&(l.itemHeight=l.dom.itemHeight,l.listHeight=l.dom.timeListHeight,l.topOffset=(l.listHeight-l.itemHeight)/2,l.bottomOffset=l.listHeight-l.itemHeight,l.topThreshold=.05*l.itemHeight,l.bottomThreshold=.95*l.itemHeight)},l.configureServices=function(e){var t=void 0===e?l.props:e,n=t.min,i=t.max,r=t.value,a=l.service.limitRange(n||l.min,i||l.max,r||l.props.value),o=a[0],s=a[1];l.service.configure(l.serviceSettings({min:o,max:s}))},l.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,min:u.cloneDate(l.min),max:u.cloneDate(l.max),part:l.props.part,step:l.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},l.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(l.virtualization&&t&&!n){l.animateToIndex=!1;var i=l.virtualization.itemIndex(l.itemOffset(t.scrollTop)),r=l.service.data(l.props.value)[i];l.handleChange(r)}},l.handleFocus=function(e){var t=l.props.onFocus;t&&t.call(void 0,e)},l.handleBlur=function(e){var t=l.props.onBlur;t&&t.call(void 0,e)},l.handleMouseOver=function(){l._element&&document&&document.activeElement!==l._element&&l._element.focus()},l.handleKeyDown=function(e){var t=e.keyCode;t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault();var n=(m[e.keyCode]||c.noop)(l.service.data(l.props.value),l.service.selectedIndex(l.props.value));n&&l.handleChange(n)},l.handleChange=function(e){var t=l.service.apply(l.props.value,e.value);if(l.props.value.getTime()!==t.getTime()){l.setState({value:t});var n=l.props.onChange;n&&n.call(void 0,t)}},l.dom=new f.DOMService,l}return o(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this.props.min||e.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this.props.max||e.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):e.defaultProps.step},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){this._element&&(this.dom.calculateHeights(this._element),this.forceUpdate())},e.prototype.componentDidUpdate=function(){if(this.virtualization){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},e.prototype.render=function(){var n=this;if(this.props.part.type&&g[this.props.part.type]){this.calculateHeights(),this.intl=p.provideIntlService(this),this.service=new g[this.props.part.type](this.intl),this.configureServices();var e=this.service.data(this.props.value),t="translateY("+this.topOffset+"px)",i=this.service.total(this.props.value),r=s.createElement("ul",{style:{transform:t,msTransform:t},className:"k-reset"},e.map(function(e,t){return s.createElement("li",{key:t,className:"k-item",onClick:function(){n.handleChange(e)}},s.createElement("span",null,e.text))}));return s.createElement("div",{className:"k-time-list",id:String(this.props.id),tabIndex:0,ref:function(e){n._element=e},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?s.createElement(d.Virtualization,{bottomOffset:this.bottomOffset,children:r,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(e){n.virtualization=e},role:"presentation",skip:0,tabIndex:-1,take:i,topOffset:this.topOffset,total:i}):s.createElement("div",{className:"k-time-list-container"},r))}},e.propTypes={id:l.number,max:l.instanceOf(Date),min:l.instanceOf(Date),part:function(e,t,n){var i=e[t];if(!i||!g[i.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ")},step:function(e,t,n){var i=e[t];if(void 0!==i&&i<=0)throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n "+t+" cannot be less than 1.\n ")},value:l.instanceOf(Date),smoothScroll:l.bool},e.defaultProps={max:v.MAX_TIME,min:v.MIDNIGHT_DATE,step:1,smoothScroll:!0},e}(s.Component);t.TimeList=y,p.registerForIntl(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);t.DayPeriodService=i.DayPeriodService;var r=n(53);t.DOMService=r.DOMService;var a=n(54);t.HoursService=a.HoursService;var o=n(55);t.MinutesService=o.MinutesService;var s=n(56);t.SecondsService=s.SecondsService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),c=function(e,t){var n=i.cloneDate(e);return n.setHours(t),n},p=function(e){return null!==e&&e<12},r=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=p(n),r=p(t.getHours());if(i&&r||!i&&!r)return e;var a=this.normalizedRange(),o=a[0],s=a[1],l=void 0===s?24:s,u=n+(r?-12:12);return c(e,Math.min(Math.max(o,u),l||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,r=void 0===i?this.max:i,a=e.part,o=void 0===a?this.part:a;this.min=n,this.max=r,this.part=o},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],r=this.normalizedRange(),a=r[0],o=r[1],s=this.intl.dateFormatNames(t);return p(a)&&i.push({text:s.am,value:c(this.min,a)}),null!==(n=o)&&(!n||11<n)&&i.push({text:s.pm,value:c(this.min,Math.max(12,o))}),this.min.getHours()!==a?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(11<t||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?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())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}();t.DayPeriodService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(a.isDocumentAvailable()){var t=a.domContainerFactory("div"),n=t([t([t([a.domContainerFactory("ul")([a.domContainerFactory("li")("<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"}),i=e&&e.querySelector(".k-time-list-container")||document.body,r=i.appendChild(n);this.timeListHeight=r.querySelector(".k-scrollable").offsetHeight,this.itemHeight=r.querySelector("li").offsetHeight,i.removeChild(r),this.didCalculate=!0}},e}();t.DOMService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),h=n(1),f=n(11),s=(24,function(e){return e%24}),r=function(e,t){return s(24+e-t)},a=function(n){return function(e,t){return t&&i.getDate(e).getTime()!==i.getDate(t).getTime()?f.setHours(e,n):e}},o=a(0),l=a(23),u=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return f.setHours(e,t.getHours())},e.prototype.configure=function(e){var n=this,t=e.boundRange,i=void 0===t?this.boundRange:t,r=e.insertUndividedMax,a=void 0===r?this.insertUndividedMax:r,o=e.min,s=void 0===o?this.min:o,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.boundRange=i,this.insertUndividedMax=a,this.toListItem=function(e){var t=f.setHours(h.MIDNIGHT_DATE,e);return{text:n.intl.formatDate(t,c.pattern),value:t}},this.min=s,this.max=u,this.step=d},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],a=(t=r,n=this.step,function(e){return s(t+e*n)}),o=f.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),e&&this.addMissing(o,e),o},e.prototype.isRangeChanged=function(e,t){return!i.isEqual(this.min,e)||!i.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[o(e,n),l(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(r(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(f.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return r(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e}();t.HoursService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),p=n(1),d=n(11),s=(60,function(e){return e%60}),r=function(e,t){return s(60+e-t)},a=function(n){return function(e,t){return t&&e.getHours()!==t.getHours()?d.setMinutes(e,n):e}},o=a(0),l=a(59),u=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return d.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var n=this,t=e.insertUndividedMax,i=void 0===t?this.insertUndividedMax:t,r=e.min,a=void 0===r?this.min:r,o=e.max,s=void 0===o?this.max:o,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var t=d.setMinutes(p.MIDNIGHT_DATE,e);return{text:n.intl.formatDate(t,l.pattern),value:t}},this.min=a,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],a=(t=r,n=this.step,function(e){return s(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),e&&this.addMissing(o,e),o},e.prototype.isRangeChanged=function(e,t){return!i.isEqual(this.min,e)||!i.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[o(e,n),l(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(r(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(d.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return r(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e}();t.MinutesService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),p=n(1),d=n(11),s=(60,function(e){return e%60}),r=function(e,t){return s(60+e-t)},a=function(n){return function(e,t){return!t||e.getMinutes()===t.getMinutes()&&e.getHours()===t.getHours()?e:d.setSeconds(e,n)}},o=a(0),l=a(59),u=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return d.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var n=this,t=e.insertUndividedMax,i=void 0===t?this.insertUndividedMax:t,r=e.min,a=void 0===r?this.min:r,o=e.max,s=void 0===o?this.max:o,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var t=d.setSeconds(p.MIDNIGHT_DATE,e);return{text:n.intl.formatDate(t,l.pattern),value:t}},this.min=a,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],a=(t=r,n=this.step,function(e){return s(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),e&&this.addMissing(o,e),o},e.prototype.isRangeChanged=function(e,t){return!i.isEqual(this.min,e)||!i.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[o(e,n),l(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},e.prototype.divideByStep=function(e){return r(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(r(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(d.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e}();t.SecondsService=u},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),u=n(26),c=n(19),p=n(6),d=n(3),h=n(0),a=n(10),o=function(t){function s(e){var r=t.call(this,e)||this;return r.isActive=!1,r.focusActiveDate=function(){if(r._element){var e=r._element.querySelector("td.k-state-focused"),t=r._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),r.isActive=!0}},r.blurActiveDate=function(){if(r._element){var e=r._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),r.isActive=!1}},r.rotateSelectionRange=function(e){if(null===e.start||null===e.end)return e;var t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},r.handleTodayClick=function(e){r.handleDateChange.call(void 0,e,!0)},r.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=r.props.onChange;if(n){var i={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:h.cloneDate(e.value),target:r,isTodayClick:t};n.call(void 0,i)}},r.lastView=e.activeView,r}return r(s,t),Object.defineProperty(s.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===p.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:s.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:s.defaultProps.max},enumerable:!0,configurable:!0}),s.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.lastViewsCount=this.props.views||s.defaultProps.views},s.prototype.render=function(){var t=this,e=this.lastView!==this.props.activeView,n=this.dates&&this.props.service.isInArray(this.props.focusedDate,this.dates),i=this.lastViewsCount!==this.props.views;(!n||e||i)&&(this.dates=this.props.service.datesList(this.props.focusedDate,this.props.views||s.defaultProps.views));var r=h.cloneDate(this.dates&&this.dates[0]?this.dates[0]:void 0),a=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,o=d.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===p.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===p.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===p.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===p.CalendarViewEnum.century});return l.createElement("div",{ref:function(e){t._element=e},className:o},l.createElement(u.Header,{key:".kendo.calendar.header."+r.getTime(),activeView:this.props.activeView,currentDate:r,min:this.min,max:this.max,rangeLength:this.props.views,onTodayClick:this.handleTodayClick,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle}),l.createElement("table",{className:"k-content",key:r.getTime()},this.dates.map(function(e){return l.createElement(c.View,{bus:t.props.bus,service:t.props.service,key:e.getTime(),direction:"horizontal",activeView:t.props.activeView,cellUID:t.props.cellUID,viewDate:e,min:t.min,max:t.max,focusedDate:t.props.focusedDate,selectionRange:a,selectedDate:t.props.value,showWeekNumbers:t.weekNumber,onChange:t.handleDateChange,onCellEnter:t.props.onCellEnter,cell:t.props.cell,weekCell:t.props.weekCell})})))},s.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:a.MIN_DATE,max:a.MAX_DATE},s}(l.Component);t.HorizontalViewList=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),a=n(4),d=n(16),o=n(0),h=n(3),f=n(5),v=n(12),m=n(32),g=n(6),s=n(10),y=n(9),w={display:"inline-block"},l=function(t){function n(e){var r=t.call(this,e)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._popupId=h.guid(),r._startInputId=h.guid(),r._endInputId=h.guid(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.setStartDateInputRef=function(e){r._startDateInput=e},r.setEndDateInputRef=function(e){r._endDateInput=e},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus()},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||g.EMPTY_SELECTIONRANGE},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r._startDateInput&&r._startDateInput.element&&r._startDateInput.element.classList.add("k-state-focused"),r._endDateInput&&r._endDateInput.element&&r._endDateInput.element.classList.add("k-state-focused");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick(function(){r._startDateInput&&r._startDateInput.element&&r._startDateInput.element.classList.remove("k-state-focused"),r._endDateInput&&r._endDateInput.element&&r._endDateInput.element.classList.remove("k-state-focused"),r.setShow(!1)});var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:o.cloneDate(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:o.cloneDate(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||g.EMPTY_SELECTIONRANGE;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===h.Keys.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===h.Keys.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===h.Keys.tab&&r.show&&r._calendar&&r._calendar.element&&r._endDateInput&&r._endDateInput.element&&document&&document.activeElement===r._endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var i={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,i)}r.valueDuringOnChange=void 0},r.state={show:r.props.show||r.props.defaultShow||n.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||n.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||g.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.show&&this.forceUpdate(),this._startDateInput&&this._startDateInput.element&&this._endDateInput&&this._endDateInput.element&&(this._startDateInput.element.setAttribute("aria-expanded",""+this.show),this._endDateInput.element.setAttribute("aria-expanded",""+this.show))},n.prototype.componentDidUpdate=function(){this._startDateInput&&this._startDateInput.element&&this._endDateInput&&this._endDateInput.element&&(this._startDateInput.element.setAttribute("aria-expanded",""+this.show),this._endDateInput.element.setAttribute("aria-expanded",""+this.show)),this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},n.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},n.prototype.render=function(){var t=this,e=this.value||g.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,r=h.classNames("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),a=c({label:"Start",format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled},this.props.startDateInputSettings,{value:e.start,onChange:this.handleStartChange}),o=c({label:"End",format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled},this.props.endDateInputSettings,{value:e.end,onChange:this.handleEndChange}),s=c({animate:null!==this._wrapper,anchor:this._wrapper||void 0,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),l=c({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings,{value:e,onChange:this.handleCalendarChange}),u=this.props.calendar?p.createElement(this.props.calendar,c({},l)):p.createElement(m.MultiViewCalendar,c({},l,{ref:this.setCalendarRef}));return p.createElement("span",{ref:function(e){t._element=e},className:r,style:this.props.style,id:this.props.id,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},p.createElement("span",{ref:function(e){t._wrapper=e},className:"k-daterangepicker-wrap",style:w},this.props.startDateInput?p.createElement(this.props.startDateInput,c({},a)):p.createElement(v.DateInput,c({},a,{ref:this.setStartDateInputRef})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?p.createElement("span",c({role:"button",className:"k-select k-button k-flat",title:f.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+i,"aria-label":f.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd])}),p.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"})):p.createElement("span",null," "),this.props.endDateInput?p.createElement(this.props.endDateInput,c({},o)):p.createElement(v.DateInput,c({},o,{ref:this.setEndDateInputRef}))),this.props.popup?p.createElement(this.props.popup,c({},s),u):p.createElement(d.Popup,c({},s),u))},n.prototype.focusDateInputElement=function(){document&&this._startDateInput&&this._startDateInput.element&&this._endDateInput&&this._endDateInput.element&&(null!==this.value.start&&null===this.value.end||document.activeElement===this._endDateInput.element?document.activeElement!==this._startDateInput.element&&this._endDateInput.element.focus():this._startDateInput.element.focus())},n.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},n.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},n.propTypes={allowReverse:a.bool,calendarSettings:a.any,className:a.string,defaultShow:a.bool,defaultValue:a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)}),disabled:a.bool,endDateInputSettings:a.shape(v.DateInput.propTypes),focusedDate:a.instanceOf(Date),format:a.string,id:a.string,max:a.instanceOf(Date),min:a.instanceOf(Date),onBlur:a.func,onChange:a.func,onFocus:a.func,popupSettings:a.any,show:a.bool,startDateInputSettings:a.any,style:a.any,swapButton:a.any,tabIndex:a.number,value:a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)})},n.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:g.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:s.MAX_DATE,min:s.MIN_DATE,swapButton:!1},n}(p.Component);t.DateRangePicker=l}])}}});
1
+ System.register("@progress/kendo-react-dateinputs",["@progress/kendo-react-popup","react","prop-types","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-react-common"],function(f){var n,i,r,a,o,s;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){r=t(e)},function(e){a=t(e)},function(e){o=t(e)},function(e){s=t(e)}],execute:function(){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=33)}([function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),i=n(0),u=n(8);t.isEqualRange=function(e,t){var n=e||u.EMPTY_SELECTIONRANGE,i=n.start,r=n.end,a=t||u.EMPTY_SELECTIONRANGE,o=a.start,s=a.end;return null!==i&&null!==r&&null!==o&&null!==s&&l.isEqual(i,o)&&l.isEqual(r,s)},t.viewInRange=function(e,t,n){return void 0===t||void 0===n?e:t<=e&&e<=n?e:e<t?t:n},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);var r=function(e){return null!=e};t.isValidRange=function(e,t){return!r(e)||!r(t)||e<=t},t.setTime=function(e,t){var n=l.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.getToday=function(){return i.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&e<t||n&&n<e)},t.isInSelectionRange=function(e,t){var n=t||u.EMPTY_SELECTIONRANGE,i=n.start,r=n.end;return!(!i||!r)&&i<e&&e<r},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e?t&&e<t?l.cloneDate(t):n&&n<e?l.cloneDate(n):e:e},t.domContainerFactory=function(r){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(r);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}},t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.Action=i.Action;var r=n(14);t.CalendarViewEnum=r.CalendarViewEnum;var a=n(8);t.EMPTY_SELECTIONRANGE=a.EMPTY_SELECTIONRANGE},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.Action||(t.Action={}))[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"},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";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.prevView="multiviewcalendar.prevView",t.nextView="multiviewcalendar.nextView",t.increaseValue="dateinput.increment",t.decreaseValue="dateinput.decrement",t.today="calendar.today",t.toggleCalendar="datepicker.toggleCalendar",t.swapStartEnd="daterangepicker.swapStartEnd",t.messages=((i={})[t.today]="TODAY",i[t.increaseValue]="Increase value",i[t.decreaseValue]="Decrease value",i[t.toggleCalendar]="Toggle calendar",i[t.prevView]="Navigate to previous view",i[t.nextView]="Navigate to next view",i[t.swapStartEnd]="Swap start and end values",i)},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,a=n(0),o=n(17),s=n(1),l=function(i){return function(e,t){var n=a.cloneDate(e);return n[i](t),n}},u=[{type:o.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:o.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:o.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:o.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(i=u,function(e){return i.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=(r=u,function(n,s){return r.map(function(e){var i,r,a,o,t=Math.floor(n[e.type]);return t?(i=e.getter,r=t,a=s,o=e.type,function(e){var t=i(e),n=i(a);return"hour"===o?t-(t-n)%r:e.getTime()<=a.getTime()&&0!==t&&t<=n?Math.ceil(t/r)*r:t-t%r}):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(n){return function(e){var t=a.cloneDate(e);return t.setHours.apply(t,n.map(function(e){return e(t)})),t}},t.setHours=l("setHours"),t.setMinutes=l("setMinutes"),t.setSeconds=l("setSeconds"),t.getNow=function(){return new Date},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i};var c=function(e,t,n){return{candidateValue:s.setTime(s.MIDNIGHT_DATE,e),maxValue:a.addDays(s.setTime(s.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:s.setTime(s.MIDNIGHT_DATE,t)}};t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=c(e,t,n),r=i.candidateValue,a=i.minValue,o=i.maxValue;return r<a?s.setTime(e,t):o<r?s.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var i=c(e,t,n),r=i.candidateValue,a=i.minValue,o=i.maxValue;return a<=r&&r<=o},t.isInRange=function(e,t,n){if(null===e)return!0;var i=c(e,t,n),r=i.candidateValue,a=i.minValue,o=i.maxValue;return a<=r&&r<=o},t.isSmallerThanMin=function(e,t){if(null===e||null===t)return!1;var n=s.setTime(s.MIDNIGHT_DATE,e),i=s.setTime(s.MIDNIGHT_DATE,t);return n.getTime()<i.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;var n=s.setTime(s.MIDNIGHT_DATE,e);return s.setTime(s.MIDNIGHT_DATE,t).getTime()<n.getHours()}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var D=n(2),a=n(4),o=n(0),_=n(5),S=n(44),O=n(3),k=n(30),s=n(1),I=n(9),l=function(e){function w(){var u=null!==e&&e.apply(this,arguments)||this;return u.kendoDate=null,u._element=null,u._inputId=O.guid(),u.setValidity=function(){u.element&&u.element.setCustomValidity&&u.element.setCustomValidity(u.validity.valid?"":u.props.validationMessage||w.defaultProps.validationMessage)},u.spinnersMouseDown=function(e){e.preventDefault(),u.element&&document.activeElement!==u.element&&u.element.focus()},u.elementChange=function(e){if(u.element&&u.kendoDate){var t=u.kendoDate.getTextAndFormat(),n=t.text,i=t.format;u.currentFormat=i;var r=u.value,a=k.approximateStringMatching(n,u.currentFormat,u.element.value,u.selection.start),o=1===a.length&&"_"===a[0][1],s=!1;if(!o)for(var l=0;l<a.length;l++)s=u.kendoDate.parsePart(a[l][0],a[l][1]).switchToNext;a.length&&"_"!==a[0][0]&&u.setSelection(u.selectionBySymbol(a[0][0])),(s||o)&&u.switchDateSegment(1),u.triggerChange(e,r)}},u.elementClick=function(e){u.setSelection(u.selectionByIndex(u.selection.start))},u.wheel=function(e){document.activeElement===u.element&&(e.nativeEvent.deltaY<0&&(e.preventDefault(),u.increasePart(e)),0<e.nativeEvent.deltaY&&(e.preventDefault(),u.decreasePart(e)))},u.increasePart=function(e){u.modifyDateSegmentValue(1,e)},u.decreasePart=function(e){u.modifyDateSegmentValue(-1,e)},u.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:u.switchDateSegment(-1);break;case 38:u.modifyDateSegmentValue(1,e);break;case 39:u.switchDateSegment(1);break;case 40:u.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},u}return r(w,e),w.prototype.componentDidMount=function(){this.setValidity()},w.prototype.componentDidUpdate=function(){this._lastSelectedSymbol&&this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)),this.setValidity()},w.prototype.render=function(){var t=this,e=_.provideLocalizationService(this),n=b({},w.defaultProps,this.props),i=n.formatPlaceholder,r=n.format,a=n.value,o=n.min,s=n.max,l=n.name,u=n.label,c=n.id,p=n.defaultValue;null===this.kendoDate?(this.kendoDate=new S.KendoDate(this.intl.bind(this),i,r),this.kendoDate.setValue(a||p)):(this.kendoDate.format=r,this.kendoDate.formatPlaceholder=i),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var d=this.kendoDate.getTextAndFormat(),h=d.text,f=d.format;this.currentFormat=f;var v=c||this._inputId,m=!this.validityStyles||this.validity.valid,g={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===s?void 0:s.getTime(),"aria-valuetext":h};null!==this.value&&(g["aria-valuenow"]=this.value.getTime());var y=D.createElement("span",{style:u?void 0:{width:this.props.width},dir:this.props.dir,className:m?k.wrapperClasses.join(" "):Array.prototype.concat([],k.wrapperClasses,k.invalidClasses).join(" ")},D.createElement("span",{className:"k-dateinput-wrap"+(this.props.disabled?" k-state-disabled":"")},D.createElement("input",b({tabIndex:this.props.tabIndex,disabled:this.props.disabled,title:this.props.title||h,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:v,onWheel:this.wheel,onClick:this.elementClick,onChange:this.elementChange,onKeyDown:this.elementKeyDown,value:h,name:l},g,{ref:function(e){return t._element=e}})),this.props.children,this.props.spinners&&D.createElement("span",{className:"k-select",onMouseDown:this.spinnersMouseDown},D.createElement("span",{className:"k-link k-link-increase","aria-label":e.toLanguageString(I.increaseValue,I.messages[I.increaseValue]),title:e.toLanguageString(I.increaseValue,I.messages[I.increaseValue]),onClick:this.increasePart},D.createElement("span",{className:"k-icon k-i-arrow-n"})),D.createElement("span",{className:"k-link k-link-decrease","aria-label":e.toLanguageString(I.decreaseValue,I.messages[I.decreaseValue]),title:e.toLanguageString(I.decreaseValue,I.messages[I.decreaseValue]),onClick:this.decreasePart},D.createElement("span",{className:"k-icon k-i-arrow-s"})))));return u?D.createElement(O.FloatingLabel,{id:v,value:h,valid:m,label:u,children:y,style:{width:this.props.width}}):y},Object.defineProperty(w.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:w.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:w.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"validity",{get:function(){var e=k.isInRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,i=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:i,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:w.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:w.defaultProps.required},enumerable:!0,configurable:!0}),w.prototype.intl=function(){return _.provideIntlService(this)},Object.defineProperty(w.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),w.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame(function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)})},w.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!o.isEqual(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},w.prototype.selectionBySymbol=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));return t<0&&(t=0),{start:t,end:n}},w.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,i=e-1;n<this.currentFormat.length||0<=i;n++,i--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(0<=i&&"_"!==this.currentFormat[i]){t=this.selectionBySymbol(this.currentFormat[i]);break}}return t},w.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,i=t.end;if(n<i&&this.currentFormat[n]!==this.currentFormat[i-1])this.setSelection(this.selectionByIndex(0<e?n:i-1));else{for(var r=this.currentFormat[n],a=n+e;0<a&&a<this.currentFormat.length&&(this.currentFormat[a]===r||"_"===this.currentFormat[a]);)a+=e;if("_"!==this.currentFormat[a]){for(var o=a;0<=o&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[a];)o+=e;o<a&&(o+1!==n||a+1!==i)?this.setSelection({start:o+1,end:a+1}):a<o&&(a!==n||o!==i)&&this.setSelection({start:a,end:o})}}},w.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,i=this.currentFormat[this.selection.start],r=this.kendoDate.symbolMap(i),a=((this.props.steps||{})[r]||1)*e;this.kendoDate.modifyPart(i,a),this.setSelection(this.selectionBySymbol(i)),this.triggerChange(t,n)}},w.propTypes={value:a.instanceOf(Date),format:a.string,formatPlaceholder:a.oneOfType([a.oneOf(["wide","narrow","short","formatPattern"]),a.shape({year:a.string,month:a.string,day:a.string,hour:a.string,minute:a.string,second:a.string})]),width:a.oneOfType([a.string,a.number]),tabIndex:a.number,title:a.string,steps:a.shape({year:a.number,month:a.number,day:a.number,hour:a.number,minute:a.number,second:a.number}),min:a.instanceOf(Date),max:a.instanceOf(Date),disabled:a.bool,spinners:a.bool,name:a.string,dir:a.string,label:a.string,id:a.string,onChange:a.func,validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool},w.defaultProps={format:k.defaultFormat,formatPlaceholder:k.defaultFormatPlaceholder,defaultValue:null,spinners:!1,disabled:!1,max:o.cloneDate(s.MAX_DATE),min:o.cloneDate(s.MIN_DATE),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!"},w}(D.Component);t.DateInput=l,_.registerForIntl(l),_.registerForLocalization(l)},function(e,t,n){"use strict";var i,r,a,o,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=n(2),p=n(4),d=n(3),h=n(35);(l=c=t.ScrollDirection||(t.ScrollDirection={}))[l.Backward=0]="Backward",l[l.Forward=1]="Forward";var f=((r={})[c.Forward]=function(t){return function(e){return e+t}},r[c.Backward]=function(t){return function(e){return e-t}},r),v=((a={})[c.Forward]=function(t){return function(e){return Math.min(e,t)}},a[c.Backward]=function(t){return function(e){return Math.max(e,t)}},a),m=((o={})[c.Forward]=function(t){return function(e){return e<t}},o[c.Backward]=function(t){return function(e){return t<e}},o),g=function(t){function i(e){var p=t.call(this,e)||this;return p.animationInProgress=!1,p.scrollTo=function(e){var t="vertical"===p.direction?"scrollTop":"scrollLeft";p.scrollContainer&&(p.scrollContainer[t]=e)},p.scrollToIndex=function(e){p.rowHeightService&&(p.animationInProgress=!1,p.scrollTo(p.rowHeightService.offset(e)))},p.animateToIndex=function(e){if(p.rowHeightService&&window){window.cancelAnimationFrame(p.cancelAnimation);var t=p.rowHeightService.offset(e),n=p.getContainerScrollDirection(t),i=p.scrollRange(t,n),r=i.start,a=i.end;if(r!==a){var o=p.scrollStep(r,a),s=f[n](o),l=v[n](a),u=m[n](s(a)),c=function(e){p.animationInProgress=!0;var t=s(e);p.scrollTo(l(t)),u(t)?p.cancelAnimation=window.requestAnimationFrame(function(){c(t)}):p.animationInProgress=!1};p.cancelAnimation=window.requestAnimationFrame(function(){c(r)})}}},p.scrollToBottom=function(){p.rowHeightService&&p.scrollTo(p.rowHeightService.totalHeight()+p.props.bottomOffset)},p.scrollStep=function(e,t){var n=p.props.scrollDuration||i.defaultProps.scrollDuration;return Math.abs(t-e)/(n/17)},p.scrollRange=function(e,t){var n=p.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var i,r,a,o=p.containerMaxScroll(),s=t===c.Backward?1:-1,l=(i=n,r=e,a=p.props.maxScrollDifference,Math.min(Math.abs(r-i),a)),u=Math.min(e,o);return{start:Math.min(Math.max(u+s*l,0),o),end:u}},p.containerMaxScroll=function(){return p.containerScrollSize-p.containerOffsetSize},p.getContainerScrollDirection=function(e){return e<p.containerScrollPosition?c.Backward:c.Forward},p.initServices=function(e){void 0===e&&(e=p.props);var t="vertical"===p.direction?e.itemHeight:e.itemWidth;void 0!==t&&(p.rowHeightService=new h.RowHeightService(e.total,t,0),p.scrollerService.create(p.rowHeightService,e.skip,e.take,e.total,e.topOffset,p.scrollOffsetSize,p.direction))},p.getContainerProperty=function(e){return p.scrollContainer?p.scrollContainer[e]:0},p.handleScroll=function(e){if(p.scrollContainer&&p.rowHeightService){var t=e.target;p.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=p.rowHeightService.index(p.containerScrollPosition-p.props.topOffset),i=p.props.onScrollAction,r={index:n,target:t,scrollAction:p.scrollAction,pageAction:p.pageAction,animationInProgress:p.animationInProgress};i&&i.call(void 0,r),p.scrollAction=void 0,p.pageAction=void 0}},p.handleScrollAction=function(e){p.scrollAction=e},p.handlePageAction=function(e){p.pageAction=e},p.scrollerService=new h.ScrollerService(p.handleScrollAction,p.handlePageAction),p}return s(i,t),Object.defineProperty(i.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:i.defaultProps.direction},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:i.defaultProps.scrollOffsetSize},enumerable:!0,configurable:!0}),i.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},i.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},i.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},i.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),r=i+this.rowHeightService.height(e);return t<=i&&r<=n},i.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},i.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},i.prototype.render=function(){var t=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var e=""+(this.rowHeightService.totalHeight()+this.props.bottomOffset),n="vertical"===this.direction?{height:e+"px"}:{width:e+"px"},i=d.classNames("k-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),r=d.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return u.createElement("div",{ref:function(e){t.scrollContainer=e},onScroll:this.handleScroll,className:i,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,u.createElement("div",{style:n,className:r}))},i.propTypes={bottomOffset:p.number.isRequired,className:p.string,direction:p.oneOf(["horizontal","vertical"]),forceScroll:p.bool,itemHeight:p.number,itemWidth:p.number,maxScrollDifference:p.number,onScroll:p.func,onScrollAction:p.func,scrollDuration:p.number,scrollOffsetSize:p.number,skip:p.number.isRequired,tabIndex:p.number,take:p.number.isRequired,topOffset:p.number.isRequired,total:p.number.isRequired,role:p.string},i.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},i}(u.Component);t.Virtualization=g},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.CalendarViewEnum||(t.CalendarViewEnum={}))[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(38);t.BusViewService=i.BusViewService;var r=n(22);t.CenturyViewService=r.CenturyViewService;var a=n(23);t.DecadeViewService=a.DecadeViewService;var o=n(39);t.DOMService=o.DOMService;var s=n(24);t.MonthViewService=s.MonthViewService;var l=n(40);t.NavigationService=l.NavigationService;var u=n(41);t.ScrollSyncService=u.ScrollSyncService;var c=n(42);t.WeekNamesService=c.WeekNamesService;var p=n(25);t.YearViewService=p.YearViewService},function(e,t){e.exports=n},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";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),a=n(4),p=n(3),d=n(0),h=n(5),f=n(34),v=n(43),o=n(10),m=n(6),g=n(1),s=n(15),y=function(e){return e?e.virtualization:null},w=function(e,t,n,i){return void 0===e&&(e=l.defaultProps.min),void 0===t&&(t=l.defaultProps.max),void 0!==i?null!==i&&g.isInRange(i,e,t)?i:null:null!==n&&g.isInRange(n,e,t)?n:null},l=function(n){function l(e){var o=n.call(this,e)||this;o.cellUID=p.guid(),o.id=p.guid(),o.isActive=!1,o.handleScroll=function(e){o.scrollSyncService&&o.scrollSyncService.sync(y(o.Navigation),y(o.calendarViewList),e)},o.handleNavigationChange=function(e){if(!o.props.disabled){var t=d.cloneDate(e.value);o.setState({focusedDate:t})}},o.handleViewChange=function(e){var t=e.view;o.scrollSyncService.configure(t),o.setState({activeView:t})},o.handleDateChange=function(e){var t=d.cloneDate(e.value),n=d.cloneDate(e.value),i=o.bus.canMoveDown(o.state.activeView);if(!o.props.disabled){if(i){if(!e.isTodayClick)return o.bus.moveDown(o.state.activeView,e.syntheticEvent),void o.setState({focusedDate:n});o.bus.moveToBottom(o.state.activeView)}o.setState({value:t,focusedDate:n}),o.valueDuringOnChange=t;var r=o.props.onChange;if(r){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:o};r.call(void 0,a)}o.valueDuringOnChange=void 0}},o.handleFocus=function(e){if(o.isActive=!0,o.calendarViewList){o.calendarViewList.focusActiveDate();var t=o.props.onFocus;t&&t.call(void 0,e)}},o.handleBlur=function(e){if(o.isActive=!1,o.calendarViewList){o.calendarViewList.blurActiveDate();var t=o.props.onBlur;t&&t.call(void 0,e)}},o.handleKeyDown=function(e){if(e.keyCode===p.Keys.enter){if(null!==o.value&&d.isEqualDate(o.focusedDate,o.value)){var t=g.dateInRange(o.focusedDate,o.min,o.max);y(o.calendarViewList).scrollToIndex(o.service.skip(t,o.min))}var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:o.focusedDate,target:o};o.handleDateChange.call(void 0,n)}else{var i=g.dateInRange(o.navigation.move(o.focusedDate,o.navigation.action(e),o.state.activeView,o.service,e),o.min,o.max);if(d.isEqualDate(o.focusedDate,i))return;o.setState({focusedDate:i})}e.preventDefault()},o.handleMouseDown=function(e){e.preventDefault()},o.handleClick=function(e){o._element&&o._element.focus()};var t=w(o.min,o.max,o.props.defaultValue||l.defaultProps.defaultValue,o.props.value);return o.state={value:t,activeView:g.viewInRange(m.CalendarViewEnum[e.defaultActiveView],o.bottomView,o.topView),focusedDate:g.dateInRange(e.focusedDate||t||g.getToday(),o.min,o.max)},o.dom=new s.DOMService,o.bus=new s.BusViewService(o.handleViewChange),o.navigation=new s.NavigationService(o.bus),o.oldValue=t,o}return r(l,n),Object.defineProperty(l.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"min",{get:function(){return d.getDate(void 0!==this.props.min?this.props.min:l.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"max",{get:function(){return d.getDate(void 0!==this.props.max?this.props.max:l.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"bottomView",{get:function(){return m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:l.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"topView",{get:function(){return m.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:l.defaultProps.topView]},enumerable:!0,configurable:!0}),l.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new s.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())})},l.prototype.componentDidUpdate=function(e,t){t.activeView!==this.state.activeView&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate():this.calendarViewList.blurActiveDate()),this.oldValue=this.value},l.prototype.render=function(){var t=this,e=null!==this.value&&null!==this.oldValue?!d.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,n=g.viewInRange(this.state.activeView,m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:l.defaultProps.bottomView],m.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:l.defaultProps.topView]),i=w(this.min,this.max,this.value,this.value),r=i?d.getDate(i):null;this.focusedDate=d.getDate(g.dateInRange(e&&null!==i?i:this.state.focusedDate,this.min,this.max)),this.intl=h.provideIntlService(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(n,this.intl);var a=p.classNames("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled},this.props.className),o={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},s=[this.props.navigation&&c.createElement(v.Navigation,{key:0,ref:function(e){t.Navigation=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),c.createElement(f.ViewList,{key:1,ref:function(e){t.calendarViewList=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:this.props.smoothScroll,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:r,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return c.createElement("div",u({},o,{ref:function(e){t._element=e},className:a,id:this.props.id||this.id,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onScroll:this.handleScroll,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),s)},l.propTypes={className:a.string,defaultActiveView:a.oneOf(["month","year","decade","century"]),defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),id:a.string,max:a.instanceOf(Date),min:a.instanceOf(Date),navigation:a.bool,smoothScroll:a.bool,onBlur:a.func,onChange:a.func,onFocus:a.func,tabIndex:a.number,value:a.instanceOf(Date),weekNumber:a.bool,topView:function(e,t,n){var i=e[t],r=e.bottomView;if(i&&r&&m.CalendarViewEnum[i]<m.CalendarViewEnum[r])return new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n ")},bottomView:function(e,t,n){var i=e[t],r=e.topView;if(i&&r&&m.CalendarViewEnum[i]>m.CalendarViewEnum[r])return new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n ")}},l.defaultProps={disabled:!1,min:o.MIN_DATE,max:o.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},l}(c.Component);t.Calendar=l,h.registerForIntl(l)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),a=n(4),u=n(0),c=n(5),p=n(20),d=n(21),o=n(6),h=n(1),f=n(15),v=function(e){return l.createElement("td",{key:e}," ")},m=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.buildWeekNumber=function(e,t){if(!o.firstDate(e))return v("week-cell-"+t);var n=o.getWeekNumber(o.firstDate(e)),i="kendo-react-calendar-week-cell-"+n,r={className:"k-alt",value:n};return o.props.weekCell?l.createElement(o.props.weekCell,s({},r,{key:i}),n):l.createElement(d.CalendarWeekCell,s({},r,{key:i}),n)},o.buildRow=function(e){return e.map(function(e,t){if(!e)return v(t);var n={"aria-selected":e.isSelected},i="kendo-react-calendar-cell-"+e.value.getTime(),r=e.value.getTime()<o.props.min.getTime()||e.value.getTime()>o.props.max.getTime(),a=s({},n,e,{isDisabled:r,view:o.props.activeView,onClick:o.handleClick,onMouseEnter:o.handleMouseEnter,onMouseLeave:o.handleMouseLeave});return o.props.cell?l.createElement(o.props.cell,s({},a,{key:i}),e.formattedValue):l.createElement(p.CalendarCell,s({},a,{key:i}),e.formattedValue)})},o.firstDate=function(e){var t=o.firstWeekDateContext(e);return t?t.value:null},o.firstWeekDateContext=function(e){if(!o.weekNumber)return null;for(var t=0,n=e[t];!n&&t<e.length;)n=e[++t];return n},o.handleClick=function(e,t){var n=o.props.onChange;if(n){var i={value:u.cloneDate(e),target:o,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};n.call(void 0,i)}},o.handleMouseEnter=function(e){var t=o.props.onCellEnter;t&&t.call(void 0,u.cloneDate(e))},o.handleMouseLeave=function(e){var t=o.props.onCellLeave;t&&t.call(void 0,u.cloneDate(e))},o}return r(t,e),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===o.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===o.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!0,configurable:!0}),t.prototype.render=function(){var n=this;this.intl=c.provideIntlService(this),this.weekService=new f.WeekNamesService(this.intl);var e=this.weekService.getWeekNames(this.weekNumber),t=this.props.service.rowLength(this.weekNumber),i=this.props.service.title(this.props.viewDate),r=h.getToday(),a=h.setTime(this.props.viewDate,r),o=this.props.service.data({cellUID:this.props.cellUID,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:a});return l.createElement("tbody",{role:"rowgroup"},!this.isHorizontal&&l.createElement("tr",{role:"row"},l.createElement("th",{scope:"col",colSpan:t},i)),this.isMonthView&&this.isHorizontal&&l.createElement("tr",{role:"row"},e.map(function(e,t){return l.createElement("th",{key:t},e)})),o.map(function(e,t){return l.createElement("tr",{role:"row",key:t},n.weekNumber&&n.buildWeekNumber(e,t),n.buildRow(e))}))},t.prototype.getWeekNumber=function(e){return this.weekNumber?u.weekInYear(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:a.oneOf(["start","end",null]),activeView:a.number.isRequired,cellUID:a.string.isRequired,direction:a.oneOf(["horizontal","vertical"]),focusedDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onChange:a.func,selectedDate:a.oneOfType([a.instanceOf(Date),a.arrayOf(a.instanceOf(Date))]),showWeekNumbers:a.bool,viewDate:a.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:h.getToday(),showWeekNumbers:!1},t}(l.Component);t.View=m,c.registerForIntl(m)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var y=n(2),w=n(3),a=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.handleClick=function(e){var t=r.props,n=t.onClick,i=t.value;n&&n.call(void 0,i,e)},r.handleMouseEnter=function(){var e=r.props,t=e.onMouseEnter,n=e.value;t&&t.call(void 0,n)},r.handleMouseLeave=function(){var e=r.props,t=e.onMouseLeave,n=e.value;t&&t.call(void 0,n)},r}return r(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,i=g(t,["value"]),r=e.value,a=g(e,["value"]);return!((!n||!r||n.getTime()===r.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(e[a]!==t[a])return!1}return!0}(i,a))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),i=e.isFocused,r=e.isSelected,a=e.isRangeStart,o=e.isRangeMid,s=e.isRangeEnd,l=e.isRangeSplitStart,u=e.isRangeSplitEnd,c=e.isToday,p=e.isDisabled,d=(e.view,e.value,g(e,["className","formattedValue","isWeekend","isFocused","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),h="end"===this.props.activeRangeEnd&&s,f="start"===this.props.activeRangeEnd&&a,v=w.classNames({"k-range-end":s,"k-range-mid":o,"k-range-split-end":u,"k-range-split-start":l,"k-range-start":a,"k-state-active":f||h,"k-state-pending-focus":i,"k-state-selected":r||a||s,"k-today":c,"k-weekend":n,"k-state-disabled":p},t);return y.createElement("td",m({},d,{className:v,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),y.createElement("span",{className:"k-link"},this.props.children))},t}(y.Component);t.CalendarCell=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return o.createElement("td",a({},this.props),this.props.children)},t}(o.Component);t.CalendarWeekCell=s},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var y=n(0),r=n(6),w=n(1),a=[[]],o=((i={})[r.Action.Left]=function(e){return y.addDecades(e,-1)},i[r.Action.Up]=function(e){return y.addDecades(e,-5)},i[r.Action.Right]=function(e){return y.addDecades(e,1)},i[r.Action.Down]=function(e){return y.addDecades(e,5)},i[r.Action.PrevView]=function(e){return y.addCenturies(e,-1)},i[r.Action.NextView]=function(e){return y.addCenturies(e,1)},i[r.Action.FirstInView]=function(e){return y.firstDecadeOfCentury(e)},i[r.Action.LastInView]=function(e){return y.lastDecadeOfCentury(e)},i),s=function(){function e(){}return e.prototype.addToDate=function(e,t){return y.addCenturies(e,t)},e.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return y.addCenturies(t,e)})},e.prototype.data=function(e){var s=this,l=e.cellUID,u=e.focusedDate,c=e.isActiveView,p=e.max,d=e.min,h=e.selectedDate,t=e.selectionRange,f=void 0===t?r.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return a;var i=w.range(0,5),v=y.firstDecadeOfCentury(n),m=y.lastDecadeOfCentury(n),g=w.getToday();return w.range(0,2).map(function(e){var o=y.addDecades(v,5*e);return i.map(function(e){var t=s.normalize(y.addDecades(o,e),d,p);if(!s.isInRange(t,d,p))return null;var n=s.isEqual(t,f.start),i=s.isEqual(t,f.end),r=!n&&!i&&w.isInSelectionRange(t,f),a=c&&(Array.isArray(h)?s.isSelectedFromArray(t,h,d,p):w.isInRange(h,d,p)&&s.isEqual(t,h));return{formattedValue:s.value(t),id:""+l+t.getTime(),isFocused:s.isEqual(t,u),isSelected:a,isWeekend:!1,isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&s.isEqual(t,m),isRangeSplitStart:r&&s.isEqual(t,v),isToday:s.isEqual(t,g),title:s.cellTitle(t),value:t}})})},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isEqual=function(e,t){return!(!e||!t)&&y.firstYearOfDecade(e).getFullYear()===y.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=y.firstYearOfDecade(e).getFullYear(),r=!t||y.firstYearOfDecade(t).getFullYear()<=i,a=!n||i<=y.firstYearOfDecade(n).getFullYear();return r&&a},e.prototype.isInSameView=function(e,t){return 0===y.durationInCenturies(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=o[t];return n?n(e):e},e.prototype.cellTitle=function(e){return y.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?y.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?y.firstDecadeOfCentury(e).getFullYear()+" - "+y.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return y.durationInCenturies(t,e)},e.prototype.total=function(e,t){return y.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?y.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),y.durationInCenturies(e,t)<n?y.addCenturies(e,-1):e},e.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},e}();t.CenturyViewService=s},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var y=n(0),r=n(7),a=n(8),w=n(1),o=[[]],s=((i={})[r.Action.Left]=function(e){return y.addYears(e,-1)},i[r.Action.Up]=function(e){return y.addYears(e,-5)},i[r.Action.Right]=function(e){return y.addYears(e,1)},i[r.Action.Down]=function(e){return y.addYears(e,5)},i[r.Action.PrevView]=function(e){return y.addDecades(e,-1)},i[r.Action.NextView]=function(e){return y.addDecades(e,1)},i[r.Action.FirstInView]=function(e){return y.firstYearOfDecade(e)},i[r.Action.LastInView]=function(e){return y.lastYearOfDecade(e)},i),l=function(){function e(){}return e.prototype.addToDate=function(e,t){return y.addDecades(e,t)},e.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return y.addDecades(t,e)})},e.prototype.data=function(e){var s=this,l=e.cellUID,u=e.focusedDate,c=e.isActiveView,p=e.max,d=e.min,h=e.selectedDate,t=e.selectionRange,f=void 0===t?a.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return o;var i=w.range(0,5),v=y.firstYearOfDecade(n),m=y.lastYearOfDecade(n),g=w.getToday();return w.range(0,2).map(function(e){var o=y.addYears(v,5*e);return i.map(function(e){var t=s.normalize(y.addYears(o,e),d,p);if(!s.isInRange(t,d,p))return null;var n=s.isEqual(t,f.start),i=s.isEqual(t,f.end),r=!n&&!i&&w.isInSelectionRange(t,f),a=c&&(Array.isArray(h)?s.isSelectedFromArray(t,h,d,p):w.isInRange(h,d,p)&&s.isEqual(t,h));return{formattedValue:s.value(t),id:""+l+t.getTime(),isFocused:s.isEqual(t,u),isSelected:a,isWeekend:!1,isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&s.isEqual(t,m),isRangeSplitStart:r&&s.isEqual(t,v),isToday:s.isEqual(t,g),title:s.cellTitle(t),value:t}})})},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),r=!t||t.getFullYear()<=i,a=!n||i<=n.getFullYear();return r&&a},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===y.durationInDecades(e,t)},e.prototype.move=function(e,t){var n=s[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?y.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?y.firstYearOfDecade(e).getFullYear()+" - "+y.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return y.durationInDecades(t,e)},e.prototype.total=function(e,t){return y.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),y.durationInDecades(e,t)<n?y.addDecades(e,-1):e},e.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},e}();t.DecadeViewService=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var y=n(0),r=n(7),a=n(8),w=n(1),o=[[]],s=((i={})[r.Action.Left]=function(e){return y.addDays(e,-1)},i[r.Action.Up]=function(e){return y.addWeeks(e,-1)},i[r.Action.Right]=function(e){return y.addDays(e,1)},i[r.Action.Down]=function(e){return y.addWeeks(e,1)},i[r.Action.PrevView]=function(e){return y.addMonths(e,-1)},i[r.Action.NextView]=function(e){return y.addMonths(e,1)},i[r.Action.FirstInView]=function(e){return y.firstDayOfMonth(e)},i[r.Action.LastInView]=function(e){return y.lastDayOfMonth(e)},i),l=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return y.addMonths(e,t)},e.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return y.addMonths(t,e)})},e.prototype.data=function(e){var s=this,l=e.cellUID,u=e.focusedDate,c=e.isActiveView,p=e.max,d=e.min,h=e.selectedDate,t=e.selectionRange,f=void 0===t?a.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return o;var v=y.firstDayOfMonth(n),m=y.lastDayOfMonth(n),i=y.dayOfWeek(v,this.intl.firstDay(),-1),r=w.range(0,7),g=w.getToday();return w.range(0,6).map(function(e){var o=y.addDays(i,7*e);return r.map(function(e){var t=s.normalize(y.addDays(o,e),d,p);if(t<v||m<t||t<d||p<t)return null;var n=s.isEqual(t,f.start),i=s.isEqual(t,f.end),r=!n&&!i&&w.isInSelectionRange(t,f),a=c&&(Array.isArray(h)?s.isSelectedFromArray(t,h,d,p):w.isInRange(h,d,p)&&s.isEqual(t,h));return{formattedValue:s.value(t),id:""+l+t.getTime(),isFocused:s.isEqual(t,u),isSelected:a,isWeekend:s.isWeekend(t),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitStart:r&&s.isEqual(t,v),isRangeSplitEnd:r&&s.isEqual(t,m),isToday:s.isEqual(t,g),title:s.cellTitle(t),value:t}})})},e.prototype.isEqual=function(e,t){return!(!e||!t)&&y.getDate(e).getTime()===y.getDate(t).getTime()},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isInArray=function(e,t){return!!t.length&&y.firstDayOfMonth(t[0])<=e&&e<=y.lastDayOfMonth(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var i=y.getDate(e),r=!t||y.getDate(t)<=i,a=!n||i<=y.getDate(n);return r&&a},e.prototype.isInSameView=function(e,t){return 0===y.durationInMonths(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=s[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return y.durationInMonths(t,e)},e.prototype.total=function(e,t){return y.durationInMonths(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),y.durationInMonths(e,t)<n?y.addMonths(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?y.getDate(t):n<e&&this.isEqual(e,n)?y.getDate(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}();t.MonthViewService=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var D=n(0),r=n(7),_=n(1),a=n(8),o=[[]],s=((i={})[r.Action.Left]=function(e){return D.addMonths(e,-1)},i[r.Action.Up]=function(e){return D.addMonths(e,4<(t=e.getMonth())?-5:t<2?-2:-7);var t},i[r.Action.Right]=function(e){return D.addMonths(e,1)},i[r.Action.Down]=function(e){return D.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},i[r.Action.PrevView]=function(e){return D.addYears(e,-1)},i[r.Action.NextView]=function(e){return D.addYears(e,1)},i[r.Action.FirstInView]=function(e){return D.firstMonthOfYear(e)},i[r.Action.LastInView]=function(e){return D.lastMonthOfYear(e)},i),l=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return D.addYears(e,t)},e.prototype.datesList=function(t,e){return _.range(0,e).map(function(e){return D.addYears(t,e)})},e.prototype.data=function(e){var l=this,u=e.cellUID,c=e.focusedDate,p=e.isActiveView,d=e.max,h=e.min,f=e.selectedDate,t=e.selectionRange,v=void 0===t?a.EMPTY_SELECTIONRANGE:t,n=e.viewDate;if(!n)return o;var m=this.abbrMonthNames(),g=D.firstMonthOfYear(n),y=D.lastMonthOfYear(n),w=g.getFullYear(),i=_.range(0,5),b=_.getToday();return _.range(0,3).map(function(e){var s=D.addMonths(g,5*e);return i.map(function(e){var t=l.normalize(D.addMonths(s,e),h,d),n=w<t.getFullYear();if(!l.isInRange(t,h,d)||n)return null;var i=l.isEqual(t,v.start),r=l.isEqual(t,v.end),a=!i&&!r&&_.isInSelectionRange(t,v),o=p&&(Array.isArray(f)?l.isSelectedFromArray(t,f,h,d):_.isInRange(f,h,d)&&l.isEqual(t,f));return{formattedValue:m[t.getMonth()],id:""+u+t.getTime(),isFocused:l.isEqual(t,c),isSelected:o,isWeekend:!1,isRangeStart:i,isRangeMid:a,isRangeEnd:r,isRangeSplitEnd:a&&l.isEqual(t,y),isRangeSplitStart:a&&l.isEqual(t,g),isToday:l.isEqual(t,b),title:l.cellTitle(t),value:t}})})},e.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,a=!1;return e.forEach(function(e){_.isInRange(t,n,i)&&r.isEqual(t,e)&&(a=!0)}),a},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=D.createDate(e.getFullYear(),e.getMonth(),1),r=!t||D.createDate(t.getFullYear(),t.getMonth(),1)<=i,a=!n||i<=D.createDate(n.getFullYear(),n.getMonth(),1);return r&&a},e.prototype.isInSameView=function(e,t){return 0===D.durationInYears(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=s[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return D.durationInYears(t,e)},e.prototype.total=function(e,t){return D.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),D.durationInYears(e,t)<n?D.addYears(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?D.cloneDate(t):n<e&&this.isEqual(e,n)?D.cloneDate(n):e},e}();t.YearViewService=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),a=n(4),l=n(5),u=n(0),c=n(3),p=n(27),d=n(9),h=n(1),f=n(10),v=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.getTitle=function(){if(!i.props.currentDate)return"";var e=i.rangeLength-1,t=i.props.service.title(i.props.currentDate),n=i.props.service.addToDate(i.props.currentDate,e);return e<1||!i.props.service.isInRange(n,i.min,i.max)?t:t+" - "+i.props.service.title(n)},i.handleTitleClick=function(e){i.navigate&&i.props.bus.moveUp(i.props.activeView,e)},i.handleTodayClick=function(e){if(i.todayIsInRange){i.props.bus.moveToBottom(i.props.activeView);var t=i.props.onTodayClick;if(t){var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:h.dateInRange(h.getToday(),i.min,i.max),target:i};t.call(void 0,n)}}},i}return r(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigate",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return h.isInRange(h.getToday(),u.getDate(this.min),u.getDate(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=l.provideLocalizationService(this);var e=this.localization.toLanguageString(d.today,d.messages[d.today]),t=this.getTitle(),n=c.classNames("k-button k-bare k-title",{"k-state-disabled":!this.navigate}),i=c.classNames("k-today",{"k-state-disabled":!this.todayIsInRange}),r={children:t,value:t,view:this.props.activeView,className:n,onClick:this.handleTitleClick},a=this.props.headerTitle?s.createElement(this.props.headerTitle,o({},r),t):s.createElement(p.CalendarHeaderTitle,o({},r),t);return s.createElement("div",{className:"k-calendar-header"},a,s.createElement("span",{className:i,onClick:this.handleTodayClick},e))},t.propTypes={activeView:a.number.isRequired,currentDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onTodayClick:a.func,rangeLength:a.number},t.defaultProps={rangeLength:1,min:f.MIN_DATE,max:h.MAX_DATE},t}(s.Component);t.Header=v,l.registerForLocalization(v)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,o(e,["view"]));return s.createElement("span",a({},t),this.props.children)},t}(s.PureComponent);t.CalendarHeaderTitle=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(3),u=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.handleClick=function(e){var t=r.props,n=t.onClick,i=t.value;n&&n.call(void 0,i,e)},r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,o(e,["isRangeStart","value","text"]));return s.createElement("li",a({},n,{onClick:this.handleClick}),s.createElement("span",{className:l.classNames({"k-calendar-navigation-marker":t})},this.props.children))},t}(s.Component);t.CalendarNavigationItem=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.symbols=""};t.Mask=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultFormat="d",t.defaultFormatPlaceholder="wide",t.padZero=function(e){return new Array(Math.max(e,0)).fill("0").join("")},t.approximateStringMatching=function(e,t,n,i){var r=e[i+e.length-n.length],a=e.substring(0,i+e.length-n.length),o=n.substring(0,i),s=[];if(a===o&&0<i)return s.push([t[i-1],o[i-1]]),s;if(0===a.indexOf(o)&&(0===o.length||t[o.length-1]!==t[o.length])){var l="";1===o.length&&s.push([t[0],o[0]]);for(var u=o.length;u<a.length;u++)t[u]!==l&&"_"!==t[u]&&(l=t[u],s.push([l,""]));return s}if(0!==o.indexOf(a)&&"_"!==t[i-1])return" "===o[o.length-1]||o[o.length-1]===r?[[t[i-1],"_"]]:[[t[i-1],o[i-1]]];var c=t[0];for(u=Math.max(0,a.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,o[i-1]]]},t.dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},t.isInRange=function(e,t,n){return null===e||!(t&&e<t||n&&n<e)},t.invalidClasses=["k-state-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17);t.TIME_PART=i.TIME_PART},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var f=n(2),a=n(4),v=n(5),m=n(3),g=n(0),y=n(6),o=n(10),w=n(9),b=n(15),D=n(1),_=n(57),S=function(e,t,n){return void 0===e&&(e=s.defaultProps.min),void 0===t&&(t=s.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&D.isInRange(g.getDate(n),e,t)?g.getDate(n):null},O=function(t,n,e){return void 0===t&&(t=s.defaultProps.min),void 0===n&&(n=s.defaultProps.max),Array.isArray(e)?e.filter(function(e){return D.isInRange(e,t,n)}).map(function(e){return g.getDate(e)}):null},k=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?y.EMPTY_SELECTIONRANGE:e},I=function(e,t,n){return e||t&&t[0]||n&&n.start},s=function(p){function d(e){var l=p.call(this,e)||this;l.selectedDate=null,l.selectedMultiple=null,l.selectedRange=y.EMPTY_SELECTIONRANGE,l.cellUID=m.guid(),l.activeRangeEnd="start",l.wrapperID=m.guid(),l.isActive=!1,l.calculateFocusFromValue=!0,l.clampRange=function(e){return{start:e,end:null}},l.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&l.isActive?t:e.end}},l.generateRange=function(e,t){var n=t.end,i=t.start,r=null!==t.start&&e.getTime()<=t.start.getTime();return!l.props.allowReverse&&r?{start:e,end:l.selectedRange.start}:"end"!==l.activeRange?{start:e,end:n}:{start:i||l.selectedDate,end:e}},l.canNavigate=function(e){if(!l.service)return!1;var t=l.service.move(l.focusedDate,e);return l.min<=t&&t<=l.max||l.service.isInSameView(t,l.min)||l.service.isInSameView(t,l.max)},l.isListInRange=function(e){return l.min<e[0]&&l.max>e[Math.max(0,(l.props.views||d.defaultProps.views)-1)]},l.navigate=function(e){l.calculateFocusFromValue=!1;var t=l.move(e);l.setState({focusedDate:t})},l.move=function(e){return l.clampDate(l.service.move(l.focusedDate,e))},l.clampDate=function(e){return D.dateInRange(e,l.min,l.max)},l.shouldAutoCorrect=function(e,t){var n=t.end,i=t.start;return"end"!==l.activeRange?null!==n&&n<e:null!==i&&e<i},l.handleCellEnter=function(e){"range"===l.props.mode&&(l.calculateFocusFromValue=!1,l.setState({focusedDate:e}))},l.handleMouseDown=function(e){e.preventDefault()},l.handleClick=function(e){l._element&&l._element.focus()},l.handleFocus=function(e){if(l.isActive=!0,l.calendarViewList){l.calendarViewList.focusActiveDate();var t=l.props.onFocus;t&&t.call(void 0,e)}},l.handleBlur=function(e){if(l.isActive=!1,l.calendarViewList){l.calendarViewList.blurActiveDate();var t=l.props.onBlur;t&&t.call(void 0,e)}},l.handlePrevButtonClick=function(){l.navigate(y.Action.PrevView)},l.handleNextButtonClick=function(){l.navigate(y.Action.NextView)},l.handleKeyDown=function(e){if(e.keyCode===m.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:l.focusedDate,target:l};l.handleDateChange.call(void 0,t)}else{var n=D.dateInRange(l.navigation.move(l.focusedDate,l.navigation.action(e),l.state.activeView,l.service,e),l.min,l.max);if(g.isEqualDate(l.focusedDate,n))return;l.calculateFocusFromValue=!1,l.setState({focusedDate:n})}e.preventDefault()},l.handleViewChange=function(e){var t=e.view;l.setState({activeView:t})},l.handleDateChange=function(n){l.calculateFocusFromValue=!1;var e=g.cloneDate(n.value),t=l.bus.canMoveDown(l.state.activeView);if(!l.props.disabled){if(t){if(!n.isTodayClick)return l.bus.moveDown(l.state.activeView,n.syntheticEvent),void l.setState({focusedDate:e});l.bus.moveToBottom(l.state.activeView)}var i;switch(l.props.mode){case"single":i=g.cloneDate(n.value);break;case"multiple":if(Array.isArray(l.selectedMultiple)){var r=l.selectedMultiple.slice(),a=-1;r.forEach(function(e,t){g.isEqualDate(e,n.value)&&(a=t)}),-1!==a?r.splice(a,1):r.push(g.cloneDate(n.value)),i=r.slice()}else i=l.selectedDate?[g.cloneDate(l.selectedDate),g.cloneDate(n.value)]:[g.cloneDate(n.value)];break;case"range":i=null!==l.selectedRange.start&&null!==l.selectedRange.end&&"start"===l.activeRange?l.clampRange(n.value):l.generateRange(n.value,l.selectedRange),l.activeRangeEnd="end"!==l.activeRange?"end":"start";break;default:i=g.cloneDate(n.value)}l.valueDuringOnChange=i,l.setState({value:i,focusedDate:e}),l.valueDuringOnChange=i;var o=l.props.onChange;if(o){var s={syntheticEvent:n.syntheticEvent,nativeEvent:n.nativeEvent,value:i,target:l};o.call(void 0,s)}l.valueDuringOnChange=void 0}};var t,n,i=void 0!==e.value?e.value:e.defaultValue||d.defaultProps.defaultValue,r=S(l.min,l.max,i),a=O(l.min,l.max,i),o=k(i),s=I(r,a,o),u=D.viewInRange(y.CalendarViewEnum[e.defaultActiveView],l.bottomView,l.topView),c=D.dateInRange(e.focusedDate||s||D.getToday(),l.min,l.max);return l.state={value:i,activeView:u,focusedDate:c},l.activeRangeEnd=(n=r,null===(t=o).start&&null===n?"start":null===t.end?"end":"start"),l.bus=new b.BusViewService(l.handleViewChange),l.navigation=new b.NavigationService(l.bus),l.calculateFocusFromValue=!1,l}return r(d,p),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"focusedDate",{get:function(){return g.cloneDate(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"min",{get:function(){return g.getDate(void 0!==this.props.min?this.props.min:d.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"max",{get:function(){return g.getDate(void 0!==this.props.max?this.props.max:d.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"bottomView",{get:function(){return y.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:d.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"topView",{get:function(){return y.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:d.defaultProps.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!0,configurable:!0}),d.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},d.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate():this.calendarViewList.blurActiveDate()),this.calculateFocusFromValue=!0},d.prototype.render=function(){var t=this;this.intl=v.provideIntlService(this),this.localization=v.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView);var e=D.viewInRange(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(e,this.intl),this.selectedDate=S(this.min,this.max,this.value),this.selectedMultiple=O(this.min,this.max,this.value),this.selectedRange=k(this.value);var n=I(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=D.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var i=m.classNames("k-widget k-calendar k-calendar-infinite k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),r=this.rangeWithFocused(this.selectedRange,this.focusedDate),a={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},o=this.localization.toLanguageString(w.prevView,w.messages[w.prevView]),s=this.localization.toLanguageString(w.nextView,w.messages[w.nextView]),l=!this.canNavigate(y.Action.PrevView),u=!this.canNavigate(y.Action.NextView),c={"aria-disabled":l},p={"aria-disabled":u};return f.createElement("div",h({ref:function(e){t._element=e},className:i,id:this.props.id||this.wrapperID,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a),f.createElement("button",h({className:"k-button k-prev-view",title:o,disabled:l,onClick:this.handlePrevButtonClick},c),f.createElement("span",{className:"k-icon k-i-arrow-chevron-left"})),f.createElement(_.HorizontalViewList,{ref:function(e){t.calendarViewList=e},activeView:e,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:r,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}),f.createElement("button",h({className:"k-button k-next-view",title:s,disabled:u,onClick:this.handleNextButtonClick},p),f.createElement("span",{className:"k-icon k-i-arrow-chevron-right"})))},d.propTypes={activeRangeEnd:a.oneOf(["start","end"]),allowReverse:a.bool,bottomView:a.oneOf(["month","year","decade","century"]),className:a.string,defaultActiveView:a.oneOf(["month","year","decade","century"]),defaultValue:a.oneOfType([a.instanceOf(Date),a.arrayOf(a.instanceOf(Date)),a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)})]),disabled:a.bool,focusedDate:a.instanceOf(Date),id:a.string,max:a.instanceOf(Date),min:a.instanceOf(Date),mode:a.oneOf(["single","multiple","range"]),onBlur:a.func,onChange:a.func,onFocus:a.func,tabIndex:a.number,topView:a.oneOf(["month","year","decade","century"]),value:a.oneOfType([a.instanceOf(Date),a.arrayOf(a.instanceOf(Date)),a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)})]),views:function(e,t,n){var i=e[t];if(void 0!==i&&i<1)return new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'")},weekNumber:a.bool},d.defaultProps={disabled:!1,min:o.MIN_DATE,max:o.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},d}(f.Component);t.MultiViewCalendar=s,v.registerForIntl(s),v.registerForLocalization(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18);t.Calendar=i.Calendar;var r=n(12);t.DateInput=r.DateInput;var a=n(46);t.DatePicker=a.DatePicker;var o=n(48);t.TimePicker=o.TimePicker;var s=n(32);t.MultiViewCalendar=s.MultiViewCalendar;var l=n(58);t.DateRangePicker=l.DateRangePicker;var u=n(20);t.CalendarCell=u.CalendarCell;var c=n(21);t.CalendarWeekCell=c.CalendarWeekCell;var p=n(27);t.CalendarHeaderTitle=p.CalendarHeaderTitle;var d=n(28);t.CalendarNavigationItem=d.CalendarNavigationItem;var h=n(6);t.CalendarViewEnum=h.CalendarViewEnum,function(e){for(var t in e)f(t,e[t])}(t)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),a=n(4),h=n(3),s=n(0),o=n(5),f=n(13),l=n(19),v=n(26),m=n(1),g=n(6),u=function(t){function e(e){var o=t.call(this,e)||this;return o.isActive=!1,o.animateToIndex=!0,o.shouldScroll=!1,o.focusActiveDate=function(){if(o._element){var e=o._element.querySelector("td.k-state-focused"),t=o._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),o.isActive=!0}},o.blurActiveDate=function(){if(o._element){var e=o._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),o.isActive=!1}},o.handleVirtualizationMount=function(e){if(o.virtualization=e,o.virtualization&&o.table){o.table.style.transform="translateY("+o.viewOffset+"px)";var t=m.dateInRange(o.props.focusedDate,o.props.min,o.props.max),n=o.props.service.skip(t,o.props.min);o.virtualization.scrollToIndex(n)}},o.buildMonthView=function(e,t){return d.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-weekdays"},d.createElement("colgroup",null,e.map(function(e,t){return d.createElement("col",{key:t})})),d.createElement("thead",null,d.createElement("tr",null,t.map(function(e,t){return d.createElement("th",{key:t},e)}))))},o.buildDates=function(e,t){var n=o.props.cellUID;return d.createElement("table",{ref:function(e){return o.table=e}},d.createElement("colgroup",null,e.map(function(e,t){return d.createElement("col",{key:t})})),t.map(function(e){return d.createElement(l.View,{ref:function(e){o.calendarView||(o.calendarView=e)},key:e.getTime(),activeView:o.props.activeView,viewDate:e,min:o.props.min,max:o.props.max,cellUID:n,focusedDate:o.props.focusedDate,cell:o.props.cell,selectedDate:o.props.value,showWeekNumbers:o.weekNumber,onChange:o.handleDateChange,bus:o.props.bus,service:o.props.service,weekCell:o.props.weekCell})}))},o.calculateHeights=function(){if(o.props.dom){var e=o.props.activeView===g.CalendarViewEnum.month?o.props.dom.scrollableContentHeight:o.props.dom.scrollableYearContentHeight;o.bottomOffset=e-o.props.dom.viewHeight(o.props.activeView),o.viewOffset=-1*o.props.dom.headerHeight,o.viewHeight=o.props.dom.viewHeight(o.props.activeView)||1}},o.getTake=function(e,t){return Math.min(t-e,o.take)},o.handleScrollAction=function(e){var t=e.index,n=e.scrollAction,i=e.pageAction,r=i?i.skip:o.state.skip;if(o.state.index===t&&o.state.skip===r||o.setState({index:t,skip:r}),o.table&&n){var a="translateY("+n.offset+"px)";o.table.style.transform=a}},o.handleTodayClick=function(e){o.shouldScroll=!0,o.handleDateChange.call(void 0,e,!0)},o.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=o.props.onChange;if(n){var i={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:s.cloneDate(e.value),target:o,isTodayClick:t};n.call(void 0,i)}},o.lastView=o.props.activeView,o.state={skip:o.props.service.skip(o.props.focusedDate,o.props.min),index:o.props.service.skip(o.props.focusedDate,o.props.min)},o}return r(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNames",{get:function(){this.intl=o.provideIntlService(this);var e=m.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===g.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:e.defaultProps.take},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){var t=this.props.activeView!==e.activeView;if(this.animateToIndex=!t,t||!s.isEqualDate(this.props.focusedDate,e.focusedDate)||this.shouldScroll){var n=m.dateInRange(e.focusedDate,e.min,e.max);this.indexToScroll=e.service.skip(n,e.min)}},e.prototype.componentDidUpdate=function(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0},e.prototype.render=function(){var t=this;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=m.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),a=this.getTake(i,r),o=this.props.service.addToDate(this.props.min,i),s=this.props.service.addToDate(this.props.min,this.state.index),l=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),u=h.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===g.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===g.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===g.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===g.CalendarViewEnum.century}),c=this.buildDates(l,this.props.service.datesList(o,a)),p=[d.createElement(v.Header,{key:"calendar-view-list-header",currentDate:s,min:this.props.min,max:this.props.max,activeView:this.props.activeView,onTodayClick:this.handleTodayClick,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle}),this.props.activeView===g.CalendarViewEnum.month&&this.buildMonthView(l,this.weekNames),d.createElement(f.Virtualization,{key:"calendar-view-list-content",skip:i,take:this.take,total:r,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:c})];return d.createElement("div",{ref:function(e){t._element=e},className:u},this.props.dom.didCalculate?p:null)},e.propTypes={activeView:a.number.isRequired,bottomOffset:a.number,cellUID:a.string.isRequired,focusedDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onChange:a.func,showWeekNumbers:a.bool,smoothScroll:a.bool,take:a.number,value:a.instanceOf(Date),viewHeight:a.number,viewOffset:a.number},e.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},e}(d.Component);t.ViewList=u,o.registerForIntl(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36);t.RowHeightService=i.RowHeightService;var r=n(37);t.PageAction=r.PageAction,t.ScrollAction=r.ScrollAction,t.ScrollerService=r.ScrollerService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,r=0;r<e;r++)this.offsets.push(i),i+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},e.prototype.updateRowHeight=function(e,t){var n,i,r;this.heights[e]+=t,this.offsets=(n=this.offsets,i=e,r=t,n.slice(0,i+1).concat(n.slice(i+1).map(function(e){return e+r})))},e}();t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){return Math.max(e,0)},d=function(e){this.offset=e};t.ScrollAction=d;var h=function(e){this.skip=e};t.PageAction=h;var i=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,i,r,a,o){void 0===r&&(r=0),void 0===a&&(a=0),void 0===o&&(o="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScrollTop=0,this.topOffset=r,this.bottomOffset=a,this.direction=o;var s=this.rowsForHeight(r),l=p(t-s);this.onScrollAction(new d(this.rowOffset(l))),this.onPageAction(new h(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,i=e.offsetHeight,r=e.offsetWidth,a="vertical"===this.direction?n:t,o="vertical"===this.direction?i:r;if(this.lastScrollTop!==a){var s=this.lastScrollTop>=a;this.lastScrollTop=a;var l=this.rowHeightService.index(p(a-this.topOffset)),u=this.rowHeightService.index(p(a+o-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new d(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new h(this.firstLoaded))),s&&l<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=p(l-c),this.onScrollAction(new d(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new h(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e}();t.ScrollerService=i},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(22),a=n(23),o=n(24),s=n(25),l=n(14),u=((i={})[l.CalendarViewEnum.month]=o.MonthViewService,i[l.CalendarViewEnum.year]=s.YearViewService,i[l.CalendarViewEnum.decade]=a.DecadeViewService,i[l.CalendarViewEnum.century]=r.CenturyViewService,i),c=function(){function e(e){this.bottom=l.CalendarViewEnum.month,this.top=l.CalendarViewEnum.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new u[""+e](t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var i,r,a,o=this.clamp((i=e,r=t,void 0!==(a=l.CalendarViewEnum[l.CalendarViewEnum[i+r]])?a:i));o!==e&&this.onViewChanged({view:o},n)},e}();t.BusViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),O=n(1),r=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var n=this;if(O.isDocumentAvailable()){var t,u=O.domContainerFactory("div"),i=O.domContainerFactory("ul"),r=O.domContainerFactory("li"),c=O.domContainerFactory("td"),p=O.domContainerFactory("th"),d=O.domContainerFactory("tr"),h=O.domContainerFactory("tbody"),f=O.domContainerFactory("thead"),v=O.domContainerFactory("table"),m=function(){return u('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},g=function(e,t){return new Array(e).fill("1").map(t)},y=function(e){return u(e,"k-content k-scrollable")},a=function(e,r,a){var o,s=e.cells,l=e.rows;return function(){return O.isDocumentAvailable?(o||(n=l,void 0===(i=s)&&(i=1),e=v([h([d([p("1")])].concat(g(n,function(){return d(g(i,function(e){return c('<span class="k-link">'+e+"</span>")}))})))]),t=r,o=u(a?[m(),v([f([d([p("MO")])])],"k-calendar-weekdays"),y([e,e])]:[m(),y([e,e])],t,{left:"-10000px",position:"absolute"})),o):null;var e,t,n,i}},o=function(e){return e.querySelector(".k-scrollable")},s=function(e){var t=o(e);return t.className=t.className+" k-scrollable-horizontal",e},l=a({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),w=a({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),b=a({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),D=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},_=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},S=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(l(),function(e){var t=S(e);n.calendarHeight=D(e),n.monthViewHeight=D(t),n.headerHeight=D(t.children[0]),n.scrollableContentHeight=D(o(e))}),this.batch(s(l()),function(e){var t=S(e);n.calendarWidth=_(e),n.monthViewWidth=_(t),n.scrollableContentWidth=_(o(e))}),this.batch(w(),function(e){n.yearViewHeight=D(S(e)),n.scrollableYearContentHeight=D(o(e))}),this.batch(s(w()),function(e){n.yearViewWidth=_(S(e))}),this.batch(b(),function(e){n.decadeViewHeight=D(S(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(s(b()),function(e){n.decadeViewWidth=_(S(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(O.isDocumentAvailable?(t||(t=u([y([i([r("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),t):null,function(e){n.navigationItemHeight=D(e.querySelector("li"))})}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case i.CalendarViewEnum.month:return this["month"+n];case i.CalendarViewEnum.year:return this["year"+n];case i.CalendarViewEnum.decade:return this["decade"+n];case i.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,i=n.appendChild(e);t(i),n.removeChild(i)},e}();t.DOMService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),i={33:a.Action.PrevView,34:a.Action.NextView,35:a.Action.LastInView,36:a.Action.FirstInView,37:a.Action.Left,38:a.Action.Up,39:a.Action.Right,40:a.Action.Down,"meta+38":a.Action.UpperView,"meta+40":a.Action.LowerView},r=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return i[t]},e.prototype.move=function(e,t,n,i,r){return i?t===a.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,r),e):t===a.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,r),e):i.move(e,t):e},e}();t.NavigationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t,n,i=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=i,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=i,function(e){return e*t})},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e}();t.ScrollSyncService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=i.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}();t.WeekNamesService=r},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),a=n(4),s=n(0),l=n(28),c=n(1),p=n(13),d=function(t){function e(e){var a=t.call(this,e)||this;return a.topOffset=0,a.handleVirtualizationMount=function(e){if(a.virtualization=e,a.virtualization&&a.list){a.list.style.transform="translateY("+a.topOffset+"px)";var t=c.dateInRange(a.props.focusedDate,a.props.min,a.props.max),n=a.props.service.skip(t,a.props.min);a.virtualization.scrollToIndex(n)}},a.buildNavigationItem=function(e){var t=a.props.service.navigationTitle(e),n=a.props.service.isRangeStart(e),i="kendo-react-calendar-nav-item-"+e.getTime(),r={text:t,value:e,isRangeStart:n,view:a.props.activeView,onClick:a.handleDateChange};return a.props.navigationItem?u.createElement(a.props.navigationItem,o({},r,{key:i}),t):u.createElement(l.CalendarNavigationItem,o({},r,{key:i}),t)},a.calculateHeights=function(){var e=a.props.dom.calendarHeight;a.itemHeight=a.props.dom.navigationItemHeight||1,a.maxViewHeight=a.props.dom.monthViewHeight,a.topOffset=(e-a.itemHeight)/2,a.bottomOffset=e-a.itemHeight},a.handleDateChange=function(e,t){var n=a.props.onChange;if(n){var i={value:s.cloneDate(e),target:a,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};n.call(void 0,i)}},a.handleScrollAction=function(e){var t=e.scrollAction,n=e.pageAction,i=n?n.skip:a.state.skip;if(a.state.skip!==i&&a.setState({skip:i}),a.list&&t){var r="translateY("+t.offset+"px)";a.list.style.transform=r}},a.lastView=a.props.activeView,a.state={skip:a.props.service.skip(a.props.focusedDate,a.props.min)},a}return r(e,t),Object.defineProperty(e.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:e.defaultProps.take},enumerable:!0,configurable:!0}),e.prototype.componentWillReceiveProps=function(e){if(this.props.activeView===e.activeView&&s.isEqual(this.props.focusedDate,e.focusedDate))return null;var t=c.dateInRange(e.focusedDate,e.min,e.max);this.indexToScroll=e.service.skip(t,e.min)},e.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&(this.virtualization.scrollToIndex(this.indexToScroll),this.forceUpdate()),this.lastView=this.props.activeView,this.indexToScroll=void 0},e.prototype.render=function(){var t=this;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=c.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),a=this.getTake(i,r),o=this.props.service.addToDate(this.props.min,i),s=this.props.service.datesList(o,a),l=u.createElement(p.Virtualization,{skip:i,take:this.take,total:r,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},u.createElement("ul",{ref:function(e){t.list=e},className:"k-reset"},s.map(function(e){return t.buildNavigationItem(e)})));return u.createElement("div",{className:"k-calendar-navigation"},u.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?l:null)},e.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},e.propTypes={activeView:a.number.isRequired,focusedDate:a.instanceOf(Date).isRequired,max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onChange:a.func,take:a.number},e.defaultProps={take:30},e}(u.Component);t.Navigation=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45);t.KendoDate=i.KendoDate;var r=n(29);t.Mask=r.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var D=n(0),l=n(29),i=n(30),r=function(){function e(e,t,n){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.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=D.getDate(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){e?D.isEqual(e,this._value)||(this._value=D.cloneDate(e),this.modifyExisting(!0)):(this._value=D.getDate(new Date),this.modifyExisting(!1))},e.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)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return D.cloneDate(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.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;default:return}},e.prototype.modifyPart=function(e,t){var n=D.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=D.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"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n,i=this.leadingZero||{};if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null,switchToNext:!1};for(var r=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,s=!1,l="",u="",c="",p=0;p<r.length;p++)o[p]===e?(u+=this.getExisting(e)?r[p]:"0",s=!0):s?c+=r[p]:l+=r[p];var d=u.length-3,h=null,f=this.matchMonth(t);for(p=Math.max(0,d);p<=u.length;p++){var v=u.substring(p)+t,m=parseInt(v,10);if(!(h=this.intl.parseDate(l+v+c,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var g=m-1;-1<g&&g<12&&((h=D.cloneDate(this.value)).setMonth(g),h.getMonth()!==g&&(h=D.lastDayOfMonth(D.addMonths(h,-1))))}"y"===e&&(h=D.createDate(parseInt(v,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&&h.getDate()!==this.value.getDate()&&(h=D.lastDayOfMonth(D.addMonths(h,-1))))}if(h){var y=this.partPattern(a.partMap,e).pattern,w=this.intl.parseDate(""+l+this.peek(v,y)+c,this.format);this._value=h,this.setExisting(e,!0);var b=null===w||i[e]&&y.length<=v.length;return{value:this.value,switchToNext:b}}}return f&&(h=this.intl.parseDate(l+f+c,this.format))?(this._value=h,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):("0"===t&&(this.leadingZero=this.isAbbrMonth(a.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null,switchToNext:!1})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(i.dateSymbolMap,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},e.prototype.peek=function(e,t){var n=e.replace(/^0*/,"")+"0";return i.padZero(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)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""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],r=[],a=0;a<n.length;a++)for(var o=this.intl.formatDate(e,{pattern:n[a].pattern}).length;0<o;)i.push(this.symbols[n[a].pattern[0]]||"_"),r.push(n[a]),o--;var s=new l.Mask;return s.symbols=i.join(""),s.partMap=r,s},e.prototype.merge=function(e,t){for(var n="",i="",r=t.symbols,a=r.length-1;0<=a;a--)if(-1===this.knownParts.indexOf(r[a])||this.getExisting(r[a]))n=e[a]+n,i=r[a]+i;else{for(var o=r[a];0<=a&&o===r[a];)a--;for(a++,n=this.leadingZero&&this.leadingZero[o]?"0"+n:this.dateFieldName(t.partMap[a])+n;i.length<n.length;)i=r[a]+i}return{text:n,format:i}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}();t.KendoDate=r},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),P=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},V=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var A=n(2),a=n(4),R=n(16),N=n(0),j=n(3),F=n(12),L=n(18),o=n(1),s=n(47),H=n(9),q=n(5),l=function(t){function n(e){var i=t.call(this,e)||this;return i._popupId=j.guid(),i._element=null,i._wrapper=null,i._dateInput=null,i._calendar=null,i.shouldFocusDateInput=!1,i.setDateInputRef=function(e){i._dateInput=e},i.setCalendarRef=function(e){i._calendar=e},i.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},i.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},i.handleInputValueChange=function(e){i.handleValueChange(e.value,e)},i.handleCalendarValueChange=function(e){var t=i.mergeTime(e.value);i.handleValueChange(t,e)},i.handleValueChange=function(e,t){i.setState({value:N.cloneDate(e||void 0),show:!1}),i.valueDuringOnChange=e,i.showDuringOnChange=!1,i.shouldFocusDateInput=!0;var n=i.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:i.value,show:i.show,target:i}),i.valueDuringOnChange=void 0,i.showDuringOnChange=void 0},i.handleFocus=function(e){clearTimeout(i.nextTickId),i._wrapper&&i._wrapper.classList.add("k-state-focused");var t=i.props.onFocus;t&&t.call(void 0,e)},i.handleBlur=function(e){i.nextTick(function(){i._wrapper&&i._wrapper.classList.remove("k-state-focused"),i.setShow(!1)});var t=i.props.onBlur;t&&t.call(void 0,e)},i.handleIconClick=function(){i.props.disabled||(i.shouldFocusDateInput=!0,i.setShow(!i.show))},i.handleIconMouseDown=function(e){e.preventDefault()},i.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===j.Keys.esc)return e.stopPropagation(),void i.setShow(!1);!t||n!==j.Keys.up&&n!==j.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===j.Keys.up,i.setShow(n===j.Keys.down))},i.state={value:i.props.defaultValue||n.defaultProps.defaultValue,show:i.props.defaultShow||n.defaultProps.defaultShow},i}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dateInput",{get:function(){return this._dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?N.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validity",{get:function(){var e=s.isInRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,i=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:i,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:n.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:n.defaultProps.required},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.show&&this.forceUpdate(),this._dateInput&&this._dateInput.element&&(this._dateInput.element.setAttribute("aria-haspopup","true"),this._dateInput.element.setAttribute("aria-expanded",""+this.show))},n.prototype.componentDidUpdate=function(e){this._dateInput&&this._dateInput.element&&this._dateInput.element.setAttribute("aria-expanded",""+this.show),this._calendar&&this._calendar.element&&this.show&&!e.show&&this._calendar.element.focus(),this._dateInput&&this._dateInput.element&&!this.show&&this.shouldFocusDateInput&&this._dateInput.element.focus(),this.shouldFocusDateInput=!1},n.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},n.prototype.render=function(){var t=this,e=this.props,n=e.disabled,i=e.tabIndex,r=e.title,a=e.id,o=e.format,s=e.formatPlaceholder,l=e.min,u=e.max,c=e.weekNumber,p=e.focusedDate,d=e.className,h=e.width,f=e.name,v=e.validationMessage,m=e.required,g=e.validityStyles,y=this.props.popupSettings,w=y.popupClass,b=V(y,["popupClass"]),D=this.show,_=this.value,S=_&&N.getDate(_),O=!this.validityStyles||this.validity.valid,k=j.classNames("k-widget k-datepicker k-header",{"k-state-invalid":!O},d),I=j.classNames("k-picker-wrap",{"k-state-default":!n,"k-state-disabled":n}),E=j.classNames("k-calendar-container k-group k-reset",w),M={disabled:n,format:o,formatPlaceholder:s,id:a,max:u,min:l,name:f,onChange:this.handleInputValueChange,required:m,tabIndex:D?-1:i,title:r,valid:this.validity.valid,validationMessage:v,validityStyles:g,value:_},x=P({show:D,animate:null!==this._wrapper,anchor:this._wrapper||void 0,className:E,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},b),C={disabled:n,value:S,min:l,max:u,weekNumber:c,focusedDate:p,onChange:this.handleCalendarValueChange},T=this.props.calendar?A.createElement(this.props.calendar,P({},C)):A.createElement(L.Calendar,P({ref:this.setCalendarRef},C));return A.createElement("span",{ref:function(e){t._element=e},className:k,onKeyDown:this.handleKeyDown,style:{width:h},onFocus:this.handleFocus,onBlur:this.handleBlur},A.createElement("span",{ref:function(e){t._wrapper=e},className:I},this.props.dateInput?A.createElement(this.props.dateInput,P({},M)):A.createElement(F.DateInput,P({ref:this.setDateInputRef},M)),A.createElement("span",P({role:"button",onMouseDown:this.handleIconMouseDown,onClick:this.handleIconClick,title:q.provideLocalizationService(this).toLanguageString(H.toggleCalendar,H.messages[H.toggleCalendar]),className:"k-select"},{"aria-controls":this._popupId,"aria-label":q.provideLocalizationService(this).toLanguageString(H.toggleCalendar,H.messages[H.toggleCalendar])}),A.createElement("span",{className:"k-icon k-i-calendar"}))),this.props.popup?A.createElement(this.props.popup,P({},x),T," "):A.createElement(R.Popup,P({},x),T))},n.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},n.prototype.mergeTime=function(e){return this.value&&e?o.setTime(e,this.value):e},n.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},n.propTypes={className:a.string,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),format:a.string,formatPlaceholder:a.oneOfType([a.oneOf(["wide","narrow","short","formatPattern"]),a.shape({year:a.string,month:a.string,day:a.string,hour:a.string,minute:a.string,second:a.string})]),id:a.string,min:a.instanceOf(Date),max:a.instanceOf(Date),name:a.string,popupSettings:a.shape({animate:a.bool,appendTo:a.any,popupClass:a.string}),show:a.bool,tabIndex:a.number,title:a.string,value:a.instanceOf(Date),weekNumber:a.bool,width:a.oneOfType([a.number,a.string]),validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool},n.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"d",max:o.MAX_DATE,min:o.MIN_DATE,popupSettings:{},tabIndex:0,title:"",weekNumber:!1,required:!1,validityStyles:!0},n}(A.Component);t.DatePicker=l,q.registerForLocalization(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.isInRange=function(e,t,n){return null===e||!(t&&i.getDate(t)>i.getDate(e)||n&&i.getDate(n)<i.getDate(e))}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),M=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},x=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var C=n(2),a=n(4),T=n(16),o=n(0),P=n(3),s=n(5),V=n(12),A=n(49),l=n(1),u=n(11),c=n(31),p=new RegExp(c.TIME_PART.hour+"|"+c.TIME_PART.minute+"|"+c.TIME_PART.second+"|"+c.TIME_PART.dayperiod+"|literal"),d=function(t){function n(e){var i=t.call(this,e)||this;return i._popupId=P.guid(),i._element=null,i._wrapper=null,i._dateInput=null,i._timeSelector=null,i.shouldFocusDateInput=!1,i.setDateInputRef=function(e){i._dateInput=e},i.setTimeSelectorRef=function(e){i._timeSelector=e},i.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},i.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},i.handleInputValueChange=function(e){var t=i.mergeTime(e.value);i.handleValueChange(M({},e,{value:t}))},i.handleValueChange=function(e){i.setState({value:o.cloneDate(e.value),show:!1}),i.valueDuringOnChange=e.value,i.showDuringOnChange=!1,i.shouldFocusDateInput=!0;var t=i.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:i.value,show:i.show,target:i}),i.valueDuringOnChange=void 0,i.showDuringOnChange=void 0},i.handleFocus=function(e){clearTimeout(i.nextTickId),i._wrapper&&i._wrapper.classList.add("k-state-focused");var t=i.props.onFocus;t&&t.call(void 0,e)},i.handleBlur=function(e){i.nextTick(function(){i._wrapper&&i._wrapper.classList.remove("k-state-focused"),i.setShow(!1)});var t=i.props.onBlur;t&&t.call(void 0,e)},i.handleValueReject=function(e){i.setShow(!1)},i.handleIconClick=function(e){i.props.disabled||(i.shouldFocusDateInput=!0,i.setShow(!i.show))},i.handleIconMouseDown=function(e){e.preventDefault()},i.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===P.Keys.esc)return e.stopPropagation(),void i.setShow(!1);!t||n!==P.Keys.up&&n!==P.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===P.Keys.up,i.setShow(n===P.Keys.down))},i.state={value:i.props.defaultValue||n.defaultProps.defaultValue,show:i.props.defaultShow||n.defaultProps.defaultShow},i.normalizeTime=i.normalizeTime.bind(i),i.setShow=i.setShow.bind(i),i.nextTick=i.nextTick.bind(i),i.mergeTime=i.mergeTime.bind(i),i}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dateInput",{get:function(){return this._dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?o.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),i=u.isInRange(e,t,n),r=void 0!==this.props.validationMessage,a=(!this.required||null!==this.value)&&i,o=void 0!==this.props.valid?this.props.valid:a;return{customError:r,rangeOverflow:u.isBiggerThanMax(e,n),rangeUnderflow:u.isSmallerThanMin(e,t),valid:o,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:n.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:n.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"popupSettings",{get:function(){return this.props.popupSettings||n.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.show&&this.forceUpdate(),this._dateInput&&this._dateInput.element&&(this._dateInput.element.setAttribute("aria-haspopup","true"),this._dateInput.element.setAttribute("aria-expanded",""+this.show))},n.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},n.prototype.componentDidUpdate=function(e){this._dateInput&&this._dateInput.element&&this._dateInput.element.setAttribute("aria-expanded",""+this.show),this._timeSelector&&this.show&&!e.show?this._timeSelector.focusActiveList():this._dateInput&&this._dateInput.element&&!this.show&&this.shouldFocusDateInput&&this._dateInput.element.focus(),this.shouldFocusDateInput=!1},n.prototype.render=function(){var t=this,e=this.props,n=e.disabled,i=e.tabIndex,r=e.title,a=e.id,o=e.className,s=e.format,l=e.formatPlaceholder,u=e.smoothScroll,c=e.width,p=e.name,d=e.steps,h=e.cancelButton,f=e.nowButton,v=e.validationMessage,m=e.required,g=e.validityStyles,y=this.popupSettings,w=y.popupClass,b=x(y,["popupClass"]),D=!this.validityStyles||this.validity.valid,_=P.classNames("k-widget k-timepicker k-header",{"k-state-invalid":!D},o),S=P.classNames("k-picker-wrap",{"k-state-default":!n,"k-state-disabled":n}),O=P.classNames("k-group k-reset",w),k={disabled:n,format:s,formatPlaceholder:l,id:a,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:p,onChange:this.handleInputValueChange,required:m,steps:d,tabIndex:this.show?-1:i,title:r,valid:this.validity.valid,validationMessage:v,validityStyles:g,value:this.value&&this.normalizeTime(this.value)},I=M({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper||void 0,className:O,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},b),E=C.createElement(A.TimeSelector,{ref:this.setTimeSelectorRef,cancelButton:h,disabled:n,nowButton:f,format:s,min:this.min,max:this.max,steps:d,smoothScroll:u,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject});return C.createElement("span",{ref:function(e){t._element=e},className:_,onKeyDown:this.handleKeyDown,style:{width:c},onFocus:this.handleFocus,onBlur:this.handleBlur},C.createElement("span",{ref:function(e){t._wrapper=e},className:S},this.props.dateInput?C.createElement(this.props.dateInput,M({},k)):C.createElement(V.DateInput,M({ref:this.setDateInputRef},k)),C.createElement("span",M({role:"button",onMouseDown:this.handleIconMouseDown,onClick:this.handleIconClick,title:"Toggle TimeSelector",className:"k-select"},{"aria-controls":this._popupId,"aria-label":"Toggle Clock"}),C.createElement("span",{className:"k-icon k-i-clock"}))),this.props.popup?C.createElement(this.props.popup,M({},I),E):C.createElement(T.Popup,M({},I),E))},n.prototype.normalizeTime=function(e){return l.setTime(l.MIDNIGHT_DATE,e)},n.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},n.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},n.prototype.mergeTime=function(e){return this.value&&e?l.setTime(this.value,e):e},n.propTypes={className:a.string,cancelButton:a.bool,nowButton:a.bool,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,format:function(e,t,n){var i=e[t];return s.provideIntlService(this).splitDateFormat(i).forEach(function(e){if(!p.test(e.type))return new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Provided format is not supported. Supported specifiers are T|t|H|h|m|s|a.\n ")}),null},formatPlaceholder:a.oneOfType([a.oneOf(["wide","narrow","short","formatPattern"]),a.shape({year:a.string,month:a.string,day:a.string,hour:a.string,minute:a.string,second:a.string})]),id:a.string,min:a.instanceOf(Date),max:a.instanceOf(Date),name:a.string,popupSettings:a.shape({animate:a.bool,appendTo:a.any,popupClass:a.string}),show:a.bool,steps:a.shape({hour:a.number,minute:a.number,second:a.number}),smoothScroll:a.bool,tabIndex:a.number,title:a.string,value:a.instanceOf(Date),width:a.oneOfType([a.number,a.string]),validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool},n.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:l.MAX_TIME,min:l.MIN_TIME,popupSettings:{},title:"",tabIndex:0,steps:{},required:!1,validityStyles:!0},n}(C.Component);t.TimePicker=d,s.registerForIntl(d)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a,o,u=n(2),s=n(4),c=n(0),p=n(3),d=n(5),h=n(50),f=n(1),v=n(17),m=n(11),g=new RegExp(v.TIME_PART.hour+"|"+v.TIME_PART.minute+"|"+v.TIME_PART.second+"|"+v.TIME_PART.dayperiod+"|literal");(o=a=t.Direction||(t.Direction={}))[o.Left=0]="Left",o[o.Right=1]="Right";var y=function(n){function i(e){var r=n.call(this,e)||this;r.timeLists=[],r.focusActiveList=function(){var e=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&e&&e.element&&e.element.focus()},r.focusList=function(t){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map(function(e){return t===a.Right?e.next:e.prev}).map(function(e){return e&&e.element&&e.element.focus()})},r.listReducer=function(e,t,n,i){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:i[n+1]||t,prev:i[n-1]||t}]},r.showNowButton=function(){return!r.hasSteps()&&r.props.nowButton&&m.isInTimeRange(m.getNow(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case p.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));case p.Keys.left:return e.preventDefault(),void r.focusList(a.Left);case p.Keys.right:return e.preventDefault(),void r.focusList(a.Right);default:return}},r.handleAccept=function(e){var t=r.mergeValue(c.cloneDate(r.value||m.getNow()),r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){var t=m.timeInRange(r.snapTime(c.cloneDate(r.value||f.MIDNIGHT_DATE)),r.min,r.max);r.setState({current:t});var n=r.props.onReject;n&&n.call(void 0,e)},r.handleListBlur=function(){r.nextTick(function(){r.setState({activeListIndex:-1})})},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleNowClick=function(e){var t=r.mergeValue(c.cloneDate(r.current),m.getNow());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){var t=m.timeInRange(r.snapTime(c.cloneDate(e||f.MIDNIGHT_DATE)),r.min,r.max);r.setState({current:t})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||i.defaultProps.format),r.mergeValue=m.valueMerger(m.generateGetters(r.dateFormatParts)),r.snapTime=m.snapTime(m.generateSnappers(r.props.steps,r.props.min||i.defaultProps.min));var t=m.timeInRange(r.snapTime(c.cloneDate(r.props.value||f.MIDNIGHT_DATE)),r.min,r.max);return r.state={value:r.props.value||i.defaultProps.value,current:t,min:r.min,max:r.max,activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return r(i,n),Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?c.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intl",{get:function(){return d.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"current",{get:function(){return c.cloneDate(this.state.current)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"min",{get:function(){return this.snapTime(this.props.min||i.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this.snapTime(this.props.max||i.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"steps",{get:function(){return this.props.steps||i.defaultProps.steps},enumerable:!0,configurable:!0}),i.prototype.componentWillReceiveProps=function(e){e.steps===this.steps&&e.min===this.min||(this.snapTime=m.snapTime(m.generateSnappers(e.steps,e.min)))},i.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},i.prototype.render=function(){var n=this,e=this.props,t=e.format,i=e.cancelButton,r=e.disabled,a=e.tabIndex,o=e.className,s=e.smoothScroll;return this.timeLists=[],u.createElement("span",{ref:function(e){n._element=e},tabIndex:r?void 0:a||0,className:p.classNames("k-timeselector k-reset",o,{"k-state-disabled":r}),onKeyDown:this.handleKeyDown},u.createElement("div",{className:"k-time-header"},u.createElement("span",{className:"k-title"},this.intl.formatDate(this.current,t)),this.showNowButton()&&u.createElement("button",l({ref:function(e){n._nowButton=e},className:"k-button k-bare k-time-now",title:"Select Now"},{"aria-label":"Select Now"},{onClick:this.handleNowClick}),"NOW")),u.createElement("div",{className:"k-time-list-container"},u.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map(function(e,t){return"literal"!==e.type?u.createElement("div",{key:t,className:p.classNames("k-time-list-wrapper",{"k-state-focused":t===n.state.activeListIndex}),role:"presentation",tabIndex:-1},u.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},n.intl.dateFieldName(e)),u.createElement(h.TimeList,{min:n.min,max:n.max,part:e,step:e.type?n.steps[e.type]:1,smoothScroll:s,ref:function(e){e&&n.timeLists.push(e)},id:t,onFocus:function(){n.handleListFocus(t)},onBlur:n.handleListBlur,onChange:n.handleChange,value:n.current})):u.createElement("div",{key:t,className:"k-time-separator"},e.pattern)})),u.createElement("div",{className:"k-time-footer k-action-buttons"},i&&u.createElement("button",l({ref:function(e){n._cancelButton=e},className:"k-button k-time-cancel",onClick:this.handleReject,title:"Cancel"},{"aria-label":"Cancel"}),"Cancel"),u.createElement("button",l({ref:function(e){n._acceptButton=e},className:"k-time-accept k-button k-primary",onClick:this.handleAccept,title:"Set"},{"aria-label":"Set"}),"Set")))},i.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},i.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton||document.activeElement===this._nowButton)},i.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)},i.propTypes={cancelButton:s.bool,className:s.string,disabled:s.bool,format:function(e,t,n){var i=e[t];d.provideIntlService(this).splitDateFormat(i).forEach(function(e){if(!g.test(e.type))throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Provided format is not supported. Supported specifiers are T|t|H|h|m|s|a.\n ")})},max:s.instanceOf(Date),min:s.instanceOf(Date),nowButton:s.bool,steps:s.shape({hour:s.number,minute:s.number,second:s.number}),smoothScroll:s.bool,tabIndex:s.number,value:s.instanceOf(Date)},i.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"t",min:f.MIN_TIME,max:f.MAX_TIME,steps:{}},i}(u.Component);t.TimeSelector=y,d.registerForIntl(y)},function(e,t,n){"use strict";var i,r,a,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(4),u=n(0),c=n(3),p=n(5),d=n(13),h=n(31),f=n(51),v=n(1),m=((r={})[c.Keys.end]=function(e,t){return e[e.length-1]},r[c.Keys.home]=function(e,t){return e[0]},r[c.Keys.up]=function(e,t){return e[t-1]},r[c.Keys.down]=function(e,t){return e[t+1]},r),g=((a={})[h.TIME_PART.dayperiod]=f.DayPeriodService,a[h.TIME_PART.hour]=f.HoursService,a[h.TIME_PART.minute]=f.MinutesService,a[h.TIME_PART.second]=f.SecondsService,a),y=function(t){function e(e){var l=t.call(this,e)||this;return l.animateToIndex=!1,l.itemOffset=function(e){if(!l.virtualization)return-1;var t=l.service.selectedIndex(l.props.value),n=l.virtualization.activeIndex(),i=l.virtualization.itemOffset(n),r=Math.abs(Math.ceil(e)-i);if(t===n&&r<2)return i;var a=n<t;return a&&r>=l.bottomThreshold||!a&&r>l.topThreshold?l.virtualization.itemOffset(n+1):i},l.calculateHeights=function(){l.dom.didCalculate&&(l.itemHeight=l.dom.itemHeight,l.listHeight=l.dom.timeListHeight,l.topOffset=(l.listHeight-l.itemHeight)/2,l.bottomOffset=l.listHeight-l.itemHeight,l.topThreshold=.05*l.itemHeight,l.bottomThreshold=.95*l.itemHeight)},l.configureServices=function(e){var t=void 0===e?l.props:e,n=t.min,i=t.max,r=t.value,a=l.service.limitRange(n||l.min,i||l.max,r||l.props.value),o=a[0],s=a[1];l.service.configure(l.serviceSettings({min:o,max:s}))},l.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,min:u.cloneDate(l.min),max:u.cloneDate(l.max),part:l.props.part,step:l.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},l.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(l.virtualization&&t&&!n){l.animateToIndex=!1;var i=l.virtualization.itemIndex(l.itemOffset(t.scrollTop)),r=l.service.data(l.props.value)[i];l.handleChange(r)}},l.handleFocus=function(e){var t=l.props.onFocus;t&&t.call(void 0,e)},l.handleBlur=function(e){var t=l.props.onBlur;t&&t.call(void 0,e)},l.handleMouseOver=function(){l._element&&document&&document.activeElement!==l._element&&l._element.focus()},l.handleKeyDown=function(e){var t=e.keyCode;t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault();var n=(m[e.keyCode]||c.noop)(l.service.data(l.props.value),l.service.selectedIndex(l.props.value));n&&l.handleChange(n)},l.handleChange=function(e){var t=l.service.apply(l.props.value,e.value);if(l.props.value.getTime()!==t.getTime()){l.setState({value:t});var n=l.props.onChange;n&&n.call(void 0,t)}},l.dom=new f.DOMService,l}return o(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this.props.min||e.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this.props.max||e.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):e.defaultProps.step},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){this._element&&(this.dom.calculateHeights(this._element),this.forceUpdate())},e.prototype.componentDidUpdate=function(){if(this.virtualization){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},e.prototype.render=function(){var n=this;if(this.props.part.type&&g[this.props.part.type]){this.calculateHeights(),this.intl=p.provideIntlService(this),this.service=new g[this.props.part.type](this.intl),this.configureServices();var e=this.service.data(this.props.value),t="translateY("+this.topOffset+"px)",i=this.service.total(this.props.value),r=s.createElement("ul",{style:{transform:t,msTransform:t},className:"k-reset"},e.map(function(e,t){return s.createElement("li",{key:t,className:"k-item",onClick:function(){n.handleChange(e)}},s.createElement("span",null,e.text))}));return s.createElement("div",{className:"k-time-list",id:String(this.props.id),tabIndex:0,ref:function(e){n._element=e},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?s.createElement(d.Virtualization,{bottomOffset:this.bottomOffset,children:r,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(e){n.virtualization=e},role:"presentation",skip:0,tabIndex:-1,take:i,topOffset:this.topOffset,total:i}):s.createElement("div",{className:"k-time-list-container"},r))}},e.propTypes={id:l.number,max:l.instanceOf(Date),min:l.instanceOf(Date),part:function(e,t,n){var i=e[t];if(!i||!g[i.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ")},step:function(e,t,n){var i=e[t];if(void 0!==i&&i<=0)throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n "+t+" cannot be less than 1.\n ")},value:l.instanceOf(Date),smoothScroll:l.bool},e.defaultProps={max:v.MAX_TIME,min:v.MIDNIGHT_DATE,step:1,smoothScroll:!0},e}(s.Component);t.TimeList=y,p.registerForIntl(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);t.DayPeriodService=i.DayPeriodService;var r=n(53);t.DOMService=r.DOMService;var a=n(54);t.HoursService=a.HoursService;var o=n(55);t.MinutesService=o.MinutesService;var s=n(56);t.SecondsService=s.SecondsService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),c=function(e,t){var n=i.cloneDate(e);return n.setHours(t),n},p=function(e){return null!==e&&e<12},r=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=p(n),r=p(t.getHours());if(i&&r||!i&&!r)return e;var a=this.normalizedRange(),o=a[0],s=a[1],l=void 0===s?24:s,u=n+(r?-12:12);return c(e,Math.min(Math.max(o,u),l||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,r=void 0===i?this.max:i,a=e.part,o=void 0===a?this.part:a;this.min=n,this.max=r,this.part=o},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],r=this.normalizedRange(),a=r[0],o=r[1],s=this.intl.dateFormatNames(t);return p(a)&&i.push({text:s.am,value:c(this.min,a)}),null!==(n=o)&&(!n||11<n)&&i.push({text:s.pm,value:c(this.min,Math.max(12,o))}),this.min.getHours()!==a?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(11<t||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?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())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}();t.DayPeriodService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(a.isDocumentAvailable()){var t=a.domContainerFactory("div"),n=t([t([t([a.domContainerFactory("ul")([a.domContainerFactory("li")("<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"}),i=e&&e.querySelector(".k-time-list-container")||document.body,r=i.appendChild(n);this.timeListHeight=r.querySelector(".k-scrollable").offsetHeight,this.itemHeight=r.querySelector("li").offsetHeight,i.removeChild(r),this.didCalculate=!0}},e}();t.DOMService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),h=n(1),f=n(11),s=(24,function(e){return e%24}),r=function(e,t){return s(24+e-t)},a=function(n){return function(e,t){return t&&i.getDate(e).getTime()!==i.getDate(t).getTime()?f.setHours(e,n):e}},o=a(0),l=a(23),u=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return f.setHours(e,t.getHours())},e.prototype.configure=function(e){var n=this,t=e.boundRange,i=void 0===t?this.boundRange:t,r=e.insertUndividedMax,a=void 0===r?this.insertUndividedMax:r,o=e.min,s=void 0===o?this.min:o,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.boundRange=i,this.insertUndividedMax=a,this.toListItem=function(e){var t=f.setHours(h.MIDNIGHT_DATE,e);return{text:n.intl.formatDate(t,c.pattern),value:t}},this.min=s,this.max=u,this.step=d},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],a=(t=r,n=this.step,function(e){return s(t+e*n)}),o=f.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),e&&this.addMissing(o,e),o},e.prototype.isRangeChanged=function(e,t){return!i.isEqual(this.min,e)||!i.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[o(e,n),l(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(r(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(f.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return r(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e}();t.HoursService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),p=n(1),d=n(11),s=(60,function(e){return e%60}),r=function(e,t){return s(60+e-t)},a=function(n){return function(e,t){return t&&e.getHours()!==t.getHours()?d.setMinutes(e,n):e}},o=a(0),l=a(59),u=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return d.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var n=this,t=e.insertUndividedMax,i=void 0===t?this.insertUndividedMax:t,r=e.min,a=void 0===r?this.min:r,o=e.max,s=void 0===o?this.max:o,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var t=d.setMinutes(p.MIDNIGHT_DATE,e);return{text:n.intl.formatDate(t,l.pattern),value:t}},this.min=a,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],a=(t=r,n=this.step,function(e){return s(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),e&&this.addMissing(o,e),o},e.prototype.isRangeChanged=function(e,t){return!i.isEqual(this.min,e)||!i.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[o(e,n),l(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(r(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(d.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return r(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e}();t.MinutesService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),p=n(1),d=n(11),s=(60,function(e){return e%60}),r=function(e,t){return s(60+e-t)},a=function(n){return function(e,t){return!t||e.getMinutes()===t.getMinutes()&&e.getHours()===t.getHours()?e:d.setSeconds(e,n)}},o=a(0),l=a(59),u=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return d.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var n=this,t=e.insertUndividedMax,i=void 0===t?this.insertUndividedMax:t,r=e.min,a=void 0===r?this.min:r,o=e.max,s=void 0===o?this.max:o,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var t=d.setSeconds(p.MIDNIGHT_DATE,e);return{text:n.intl.formatDate(t,l.pattern),value:t}},this.min=a,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],a=(t=r,n=this.step,function(e){return s(t+e*n)}),o=d.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),e&&this.addMissing(o,e),o},e.prototype.isRangeChanged=function(e,t){return!i.isEqual(this.min,e)||!i.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[o(e,n),l(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},e.prototype.divideByStep=function(e){return r(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(r(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(d.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e}();t.SecondsService=u},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),u=n(26),c=n(19),p=n(6),d=n(3),h=n(0),a=n(10),o=function(t){function s(e){var r=t.call(this,e)||this;return r.isActive=!1,r.focusActiveDate=function(){if(r._element){var e=r._element.querySelector("td.k-state-focused"),t=r._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),r.isActive=!0}},r.blurActiveDate=function(){if(r._element){var e=r._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),r.isActive=!1}},r.rotateSelectionRange=function(e){if(null===e.start||null===e.end)return e;var t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},r.handleTodayClick=function(e){r.handleDateChange.call(void 0,e,!0)},r.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=r.props.onChange;if(n){var i={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:h.cloneDate(e.value),target:r,isTodayClick:t};n.call(void 0,i)}},r.lastView=e.activeView,r}return r(s,t),Object.defineProperty(s.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===p.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:s.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:s.defaultProps.max},enumerable:!0,configurable:!0}),s.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.lastViewsCount=this.props.views||s.defaultProps.views},s.prototype.render=function(){var t=this,e=this.lastView!==this.props.activeView,n=this.dates&&this.props.service.isInArray(this.props.focusedDate,this.dates),i=this.lastViewsCount!==this.props.views;(!n||e||i)&&(this.dates=this.props.service.datesList(this.props.focusedDate,this.props.views||s.defaultProps.views));var r=h.cloneDate(this.dates&&this.dates[0]?this.dates[0]:void 0),a=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,o=d.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===p.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===p.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===p.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===p.CalendarViewEnum.century});return l.createElement("div",{ref:function(e){t._element=e},className:o},l.createElement(u.Header,{key:".kendo.calendar.header."+r.getTime(),activeView:this.props.activeView,currentDate:r,min:this.min,max:this.max,rangeLength:this.props.views,onTodayClick:this.handleTodayClick,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle}),l.createElement("table",{className:"k-content",key:r.getTime()},this.dates.map(function(e){return l.createElement(c.View,{bus:t.props.bus,service:t.props.service,key:e.getTime(),direction:"horizontal",activeView:t.props.activeView,cellUID:t.props.cellUID,viewDate:e,min:t.min,max:t.max,focusedDate:t.props.focusedDate,selectionRange:a,selectedDate:t.props.value,showWeekNumbers:t.weekNumber,onChange:t.handleDateChange,onCellEnter:t.props.onCellEnter,cell:t.props.cell,weekCell:t.props.weekCell})})))},s.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:a.MIN_DATE,max:a.MAX_DATE},s}(l.Component);t.HorizontalViewList=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(2),a=n(4),d=n(16),o=n(0),h=n(3),f=n(5),v=n(12),m=n(32),g=n(6),s=n(10),y=n(9),w={display:"inline-block"},l=function(t){function n(e){var r=t.call(this,e)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._popupId=h.guid(),r._startInputId=h.guid(),r._endInputId=h.guid(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.setStartDateInputRef=function(e){r._startDateInput=e},r.setEndDateInputRef=function(e){r._endDateInput=e},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus()},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||g.EMPTY_SELECTIONRANGE},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r._startDateInput&&r._startDateInput.element&&r._startDateInput.element.classList.add("k-state-focused"),r._endDateInput&&r._endDateInput.element&&r._endDateInput.element.classList.add("k-state-focused");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick(function(){r._startDateInput&&r._startDateInput.element&&r._startDateInput.element.classList.remove("k-state-focused"),r._endDateInput&&r._endDateInput.element&&r._endDateInput.element.classList.remove("k-state-focused"),r.setShow(!1)});var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:o.cloneDate(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:o.cloneDate(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||g.EMPTY_SELECTIONRANGE;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===h.Keys.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===h.Keys.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===h.Keys.tab&&r.show&&r._calendar&&r._calendar.element&&r._endDateInput&&r._endDateInput.element&&document&&document.activeElement===r._endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var i={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,i)}r.valueDuringOnChange=void 0},r.state={show:r.props.show||r.props.defaultShow||n.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||n.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||g.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.show&&this.forceUpdate(),this._startDateInput&&this._startDateInput.element&&this._endDateInput&&this._endDateInput.element&&(this._startDateInput.element.setAttribute("aria-expanded",""+this.show),this._endDateInput.element.setAttribute("aria-expanded",""+this.show))},n.prototype.componentDidUpdate=function(){this._startDateInput&&this._startDateInput.element&&this._endDateInput&&this._endDateInput.element&&(this._startDateInput.element.setAttribute("aria-expanded",""+this.show),this._endDateInput.element.setAttribute("aria-expanded",""+this.show)),this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},n.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},n.prototype.render=function(){var t=this,e=this.value||g.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,r=h.classNames("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),a=c({label:"Start",format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled},this.props.startDateInputSettings,{value:e.start,onChange:this.handleStartChange}),o=c({label:"End",format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled},this.props.endDateInputSettings,{value:e.end,onChange:this.handleEndChange}),s=c({animate:null!==this._wrapper,anchor:this._wrapper||void 0,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),l=c({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings,{value:e,onChange:this.handleCalendarChange}),u=this.props.calendar?p.createElement(this.props.calendar,c({},l)):p.createElement(m.MultiViewCalendar,c({},l,{ref:this.setCalendarRef}));return p.createElement("span",{ref:function(e){t._element=e},className:r,style:this.props.style,id:this.props.id,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},p.createElement("span",{ref:function(e){t._wrapper=e},className:"k-daterangepicker-wrap",style:w},this.props.startDateInput?p.createElement(this.props.startDateInput,c({},a)):p.createElement(v.DateInput,c({},a,{ref:this.setStartDateInputRef})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?p.createElement("span",c({role:"button",className:"k-select k-button k-flat",title:f.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+i,"aria-label":f.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd])}),p.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"})):p.createElement("span",null," "),this.props.endDateInput?p.createElement(this.props.endDateInput,c({},o)):p.createElement(v.DateInput,c({},o,{ref:this.setEndDateInputRef}))),this.props.popup?p.createElement(this.props.popup,c({},s),u):p.createElement(d.Popup,c({},s),u))},n.prototype.focusDateInputElement=function(){document&&this._startDateInput&&this._startDateInput.element&&this._endDateInput&&this._endDateInput.element&&(null!==this.value.start&&null===this.value.end||document.activeElement===this._endDateInput.element?document.activeElement!==this._startDateInput.element&&this._endDateInput.element.focus():this._startDateInput.element.focus())},n.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=setTimeout(function(){return e()})},n.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},n.propTypes={allowReverse:a.bool,calendarSettings:a.any,className:a.string,defaultShow:a.bool,defaultValue:a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)}),disabled:a.bool,endDateInputSettings:a.shape(v.DateInput.propTypes),focusedDate:a.instanceOf(Date),format:a.string,id:a.string,max:a.instanceOf(Date),min:a.instanceOf(Date),onBlur:a.func,onChange:a.func,onFocus:a.func,popupSettings:a.any,show:a.bool,startDateInputSettings:a.any,style:a.any,swapButton:a.any,tabIndex:a.number,value:a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)})},n.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:g.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:s.MAX_DATE,min:s.MIN_DATE,swapButton:!1},n}(p.Component);t.DateRangePicker=l}])}}});