@progress/kendo-react-dateinputs 5.3.0-dev.202205051853 → 5.3.0
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-date-math","@progress/kendo-react-intl","@progress/kendo-react-common","@progress/kendo-react-buttons","@progress/kendo-react-labels","@progress/kendo-react-popup"],function(a){var o,s,l,u,c,p,d,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){d=t(e)},function(e){h=t(e)}],execute:function(){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}var n,i;n=[function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return null!=e}var r=n(0),o=n(0),a=n(13);t.isEqualRange=function(e,t){var e=e||a.EMPTY_SELECTIONRANGE,n=e.start,e=e.end,t=t||a.EMPTY_SELECTIONRANGE,i=t.start,t=t.end;return null!==n&&null!==e&&null!==i&&null!==t&&r.isEqual(n,i)&&r.isEqual(e,t)},t.nullable=function(o){function e(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];return null===t[n]?null:(e?o.isRequired:o).apply(void 0,[t,n].concat(i))}var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t},t.viewInRange=function(e,t,n){return void 0===t||void 0===n||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);t.isValidRange=function(e,t){return!i(e)||!i(t)||e<=t},t.setTime=function(e,t){e=r.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},t.getToday=function(){return o.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&e<t||n&&n<e)},t.isInDateRange=function(e,t,n){return null===e||!(t&&o.getDate(t)>o.getDate(e)||n&&o.getDate(n)<o.getDate(e))},t.isInSelectionRange=function(e,t){var t=t||a.EMPTY_SELECTIONRANGE,n=t.start,t=t.end;return!(!n||!t)&&n<e&&e<t},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.intersects=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},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?r.cloneDate(t):n&&n<e?r.cloneDate(n):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}}},function(e,t){e.exports=c},function(e,t){e.exports=o},function(e,t){e.exports=s},function(e,t){e.exports=u},function(e,t){e.exports=p},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.start="daterangepicker.start",t.end="daterangepicker.end",t.separator="daterangepicker.separator",t.toggleDateTimeSelector="datetimepicker.toggleDateTimeSelector",t.now="timepicker.now",t.selectNow="timepicker.selectNow",t.timePickerCancel="timepicker.cancel",t.timePickerSet="timepicker.set",t.toggleTimeSelector="timepicker.toggleTimeSelector",t.toggleClock="timepicker.toggleClock",t.date="datetimepicker.date",t.time="datetimepicker.time",t.dateTimePickerCancel="datetimepicker.cancel",t.dateTimePickerSet="datetimepicker.set",t.messages=((i={})[t.today]="TODAY",i[t.now]="NOW",i[t.timePickerSet]="Set",i[t.timePickerCancel]="Cancel",i[t.date]="Date",i[t.time]="Time",i[t.dateTimePickerCancel]="Cancel",i[t.dateTimePickerSet]="Set",i[t.start]="Start",i[t.end]="End",i[t.separator]=" ",i[t.selectNow]="Select Now",i[t.toggleTimeSelector]="Toggle TimeSelector",i[t.toggleClock]="Toggle Clock",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[t.toggleDateTimeSelector]="Toggle date-time selector",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});function i(n){return function(e,t){e=s.cloneDate(e);return e[n](t),e}}function a(e,t,n){return{candidateValue:u.setTime(u.MIDNIGHT_DATE,e),maxValue:s.addDays(u.setTime(u.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:u.setTime(u.MIDNIGHT_DATE,t)}}var r,o,s=n(0),l=n(20),u=n(1),n=[{type:l.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:l.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:l.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:l.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(r=n,function(e){return r.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t}),t.generateSnappers=(o=n,function(n,s){return o.map(function(e){var i,r,o,a,t=Math.floor(n[e.type]);return t?(i=e.getter,r=t,o=s,a=e.type,function(e){var t=i(e),n=i(o);return"hour"===a?t-(t-n)%r:e.getTime()<=o.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=s.cloneDate(e);return t.setHours.apply(t,n.map(function(e){return e(t)})),t}},t.setHours=i("setHours"),t.setMinutes=i("setMinutes"),t.setSeconds=i("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};t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=a(e,t,n),r=i.candidateValue,o=i.minValue,i=i.maxValue;return r<o?u.setTime(e,t):i<r?u.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;e=a(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue;return n<=t&&t<=e},t.isInRange=function(e,t,n){if(null===e)return!0;e=a(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue;return n<=t&&t<=e},t.isSmallerThanMin=function(e,t){if(null===e||null===t)return!1;e=u.setTime(u.MIDNIGHT_DATE,e),t=u.setTime(u.MIDNIGHT_DATE,t);return e.getTime()<t.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;e=u.setTime(u.MIDNIGHT_DATE,e);return u.setTime(u.MIDNIGHT_DATE,t).getTime()<e.getHours()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),i=(t.Action=i.Action,n(18)),i=(t.CalendarViewEnum=i.CalendarViewEnum,n(13));t.EMPTY_SELECTIONRANGE=i.EMPTY_SELECTIONRANGE},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1651775671,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Action||(t.Action={}))[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView",t[t.LowerView=8]="LowerView",t[t.UpperView=9]="UpperView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,o,t){"use strict";var i,n,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__assign||function(){return(g=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}).apply(this,arguments)},v=(Object.defineProperty(o,"__esModule",{value:!0}),t(3)),a=t(4),s=t(0),y=t(6),b=t(5),l=t(51),w=t(2),D=t(35),u=t(2),c=t(11),O=t(34),p=t(1),k=t(7),d=t(9),t=t(8),r=(n=v.Component,r(S,n),S.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},S.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},S.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},S.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?S.defaultProps.size:t,t=e.fillMode,o=void 0===t?S.defaultProps.fillMode:t,t=e.rounded,a=void 0===t?S.defaultProps.rounded:t,s=(this.props._ref&&(this.props._ref.current=this),b.provideLocalizationService(this)),e=g({},S.defaultProps,this.props),t=e.min,n=e.max,l=e.name,u=e.label,e=e.id,c=this.text,p=c===this.props.placeholder?"":c,d=c===this.props.placeholder?c:void 0,h=e||this._inputId,f=!this.validityStyles||this.validity.valid,m={"aria-valuemin":null===t?void 0:t.getTime(),"aria-valuemax":null===n?void 0:n.getTime(),"aria-valuetext":p},e=(null!==this.value&&(m["aria-valuenow"]=this.value.getTime()),O.wrapperClasses.slice()),t=(this.props.className&&e.push(this.props.className),v.createElement(w.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},function(e){var t,n=e.onFocus,e=e.onBlur;return v.createElement("span",{ref:function(e){i._wrapper=e},style:u?void 0:{width:i.props.width},dir:i.props.dir,className:w.classNames("k-dateinput","k-input",((t={})["k-input-"+(w.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-input-"+o]=o,t["k-rounded-"+(w.kendoThemeMaps.roundedMap[a]||a)]=a,t["k-invalid"]=!f,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),i.props.className),onFocus:n,onBlur:e},v.createElement("input",g({role:"spinbutton",tabIndex:i.props.tabIndex,disabled:i.props.disabled,title:void 0!==i.props.title?i.props.title:c,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input-inner",id:h,"aria-label":i.props.ariaLabel,"aria-labelledby":i.props.ariaLabelledBy,"aria-describedby":i.props.ariaDescribedBy,"aria-expanded":i.props.ariaExpanded,"aria-haspopup":i.props.ariaHasPopup,onWheel:i.wheel,onClick:i.elementClick,onInput:i.elementChange,onPaste:i.handlePaste,onKeyDown:i.elementKeyDown,onChange:w.noop,value:p,placeholder:d,name:l},m,{ref:function(e){return i._element=e}})),i.props.children,i.props.spinners&&v.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:i.spinnersMouseDown},v.createElement(y.Button,{tabIndex:-1,type:"button",className:"k-spinner-increase",icon:"arrow-n","aria-label":s.toLanguageString(k.increaseValue,k.messages[k.increaseValue]),title:s.toLanguageString(k.increaseValue,k.messages[k.increaseValue]),onClick:i.increasePart}),v.createElement(y.Button,{tabIndex:-1,type:"button",className:"k-spinner-decrease",icon:"arrow-s","aria-label":s.toLanguageString(k.decreaseValue,k.messages[k.decreaseValue]),title:s.toLanguageString(k.decreaseValue,k.messages[k.decreaseValue]),onClick:i.decreasePart})))}));return u?v.createElement(D.FloatingLabel,{label:u,editorId:h,editorValue:c,editorValid:f,editorDisabled:this.props.disabled,children:t,style:{width:this.props.width}}):t},Object.defineProperty(S.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:S.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:S.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"text",{get:function(){var e=g({},o.DateInput.defaultProps,this.props),t=e.formatPlaceholder,t=void 0===t?S.defaultProps.formatPlaceholder:t,n=e.format,n=void 0===n?S.defaultProps.format:n,i=e.value,r=e.defaultValue,r=(null===this.kendoDate?(this.kendoDate=new l.KendoDate(this.intl.bind(this),t,n),this.kendoDate.setValue(i||r||null)):(this.kendoDate.format=n,this.kendoDate.formatPlaceholder=t),void 0!==i&&this.value!==i&&this.kendoDate.setValue(i),this.kendoDate.getTextAndFormat()),n=r.text,t=r.format;return this.currentFormat=t,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?n:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"validity",{get:function(){var e=O.isInRange(this.value,this.min,this.max)&&d.isInTimeRange(this.value,this.props.minTime,this.props.maxTime),t=void 0!==this.props.validationMessage,e=(!this.required||null!==this.value)&&e,e=void 0!==this.props.valid?this.props.valid:e;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:e,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:S.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:S.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),S.prototype.intl=function(){return b.provideIntlService(this)},Object.defineProperty(S.prototype,"selection",{get:function(){var e={start:0,end:0};return e=null!==this.element&&void 0!==this.element.selectionStart?{start:this.element.selectionStart,end:this.element.selectionEnd}:e},enumerable:!0,configurable:!0}),S.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)})},S.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!s.isEqual(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},S.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{start:t=t<0?0:t,end:n}},S.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},S.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,t=t.end;if(n<t&&this.currentFormat[n]!==this.currentFormat[t-1])this.setSelection(this.selectionByIndex(0<e?n:t-1));else{for(var i=this.currentFormat[n],r=n+e;0<r&&r<this.currentFormat.length&&(this.currentFormat[r]===i||"_"===this.currentFormat[r]);)r+=e;if("_"!==this.currentFormat[r]){for(var o=r;0<=o&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[r];)o+=e;o<r&&(o+1!==n||r+1!==t)?this.setSelection({start:o+1,end:r+1}):r<o&&(r!==n||o!==t)&&this.setSelection({start:r,end:o})}}},S.prototype.modifyDateSegmentValue=function(e,t){var n,i,r;this.kendoDate&&(n=this.value,i=this.currentFormat[this.selection.start],r=this.kendoDate.symbolMap(i),r=((this.props.steps||{})[r]||1)*e,this.kendoDate.modifyPart(i,r),this.triggerChange(t,n))},S.displayName="DateInput",S.propTypes={value:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,ariaExpanded:a.oneOfType([a.bool]),onChange:a.func,validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},S.defaultProps={format:O.defaultFormat,size:"medium",rounded:"medium",fillMode:"solid",formatPlaceholder:O.defaultFormatPlaceholder,spinners:!1,disabled:!1,max:s.cloneDate(p.MAX_DATE),min:s.cloneDate(p.MIN_DATE),minTime:s.cloneDate(t.MIN_TIME),maxTime:s.cloneDate(t.MAX_TIME),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},S);function S(e){var o=n.call(this,e)||this;return o.kendoDate=null,o.paste=!1,o._element=null,o._wrapper=null,o._inputId=w.guid(),o.focus=function(){o._element&&o._element.focus()},o.setValidity=function(){o.element&&o.element.setCustomValidity&&o.element.setCustomValidity(o.validity.valid?"":o.props.validationMessage||S.defaultProps.validationMessage)},o.updateOnPaste=function(e){var t,n;o.element&&o.kendoDate&&(t=b.provideIntlService(o).parseDate(o.element.value,o.props.format)||o.value,n=o.value,o.kendoDate.setValue(t),o.triggerChange(e,n))},o.spinnersMouseDown=function(e){e.preventDefault(),o.element&&document.activeElement!==o.element&&o.element.focus({preventScroll:!0})},o.handlePaste=function(){o.paste=!0},o.elementChange=function(e){if(o.element&&o.kendoDate){if(o.paste)return o.updateOnPaste(e),void(o.paste=!1);var t=o.kendoDate.getTextAndFormat(),n=t.text,t=t.format,t=(o.currentFormat=t,o.value),i=O.approximateStringMatching(n,o.currentFormat,o.element.value,o.selection.start),n=1===i.length&&"_"===i[0][1];if(!n)for(var r=0;r<i.length;r++)o.kendoDate.parsePart(i[r][0],i[r][1]);i.length&&"_"!==i[0][0]&&o.setSelection(o.selectionBySymbol(i[0][0])),n&&o.switchDateSegment(1),o.triggerChange(e,t)}},o.elementClick=function(e){o.setSelection(o.selectionByIndex(o.selection.start))},o.nativeWheel=function(e){e.preventDefault()},o.wheel=function(e){document.activeElement===o.element&&(e.nativeEvent.deltaY<0&&o.increasePart(e),0<e.nativeEvent.deltaY&&o.decreasePart(e))},o.increasePart=function(e){o.modifyDateSegmentValue(1,e)},o.decreasePart=function(e){o.modifyDateSegmentValue(-1,e)},o.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:o.switchDateSegment(-1);break;case 38:o.modifyDateSegmentValue(1,e);break;case 39:o.switchDateSegment(1);break;case 40:o.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},o.elementOnFocus=function(e){o.wrapper&&o.wrapper.classList.add("k-focus"),o.setState({focused:!0})},o.elementOnBlur=function(e){o.wrapper&&o.wrapper.classList.remove("k-focus"),o.setState({focused:!1})},u.validatePackage(c.packageMetadata),o.state={focused:!1},o}o.DateInputWithoutContext=r,o.DateInputPropsContext=w.createPropsContext(),o.DateInput=w.withPropsContext(o.DateInputPropsContext,r),o.DateInput.displayName="KendoReactDateInput",b.registerForIntl(r),b.registerForLocalization(r)},function(e,t){e.exports=h},function(e,t,n){"use strict";function i(e){return e?e.virtualization:null}function o(e,t,n,i){return void 0===e&&(e=D.defaultProps.min),void 0===t&&(t=D.defaultProps.max),void 0!==i?null!==i&&b.isInRange(d.getDate(i),e,t)?i:null:null!==n&&b.isInRange(d.getDate(n),e,t)?n:null}var r,a,s=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||function(){return(l=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}).apply(this,arguments)},u=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),c=n(4),p=n(2),d=n(0),h=n(5),f=n(11),m=n(41),g=n(50),v=n(8),y=n(10),b=n(1),w=n(19),D=(a=u.Component,s(O,a),Object.defineProperty(O.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"min",{get:function(){return d.getDate((void 0!==this.props.min?this.props:O.defaultProps).min)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"max",{get:function(){return d.getDate((void 0!==this.props.max?this.props:O.defaultProps).max)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"bottomView",{get:function(){return y.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:O.defaultProps).bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"topView",{get:function(){return y.CalendarViewEnum[(void 0!==this.props.topView?this.props:O.defaultProps).topView]},enumerable:!0,configurable:!0}),O.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new w.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())})},O.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.didNavigationChange=!1,this.oldValue=this.value},O.prototype.render=function(){var t=this,e=(this.props._ref&&this.props._ref(this),null!==this.value&&null!==this.oldValue?!d.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue),n=b.viewInRange(this.state.activeView,y.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:O.defaultProps).bottomView],y.CalendarViewEnum[(void 0!==this.props.topView?this.props:O.defaultProps).topView]),i=o(this.min,this.max,this.value,this.value),r=i?d.getDate(i):null,e=(this.focusedDate=d.getDate(b.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),p.classNames("k-widget k-calendar k-calendar-infinite",{"k-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className)),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},n=[this.props.navigation&&u.createElement(g.Navigation,{key:0,ref:function(e){t.Navigation=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),u.createElement(m.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,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,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 u.createElement("div",l({},i,{ref:function(e){t._element=e},className:e,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),n)},O.displayName="Calendar",O.propTypes={className:c.string,defaultActiveView:c.oneOf(["month","year","decade","century"]),defaultValue:c.instanceOf(Date),disabled:c.bool,focusedDate:c.instanceOf(Date),id:c.string,ariaLabelledBy:c.string,ariaDescribedBy:c.string,max:c.instanceOf(Date),min:c.instanceOf(Date),navigation:c.bool,smoothScroll:c.bool,onBlur:c.func,onChange:c.func,onFocus:c.func,tabIndex:c.number,value:c.instanceOf(Date),weekNumber:c.bool,topView:function(e,t,n){var i=e[t],e=e.bottomView;return i&&e&&y.CalendarViewEnum[i]<y.CalendarViewEnum[e]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n "):null},bottomView:function(e,t,n){var i=e[t],e=e.topView;return i&&e&&y.CalendarViewEnum[i]>y.CalendarViewEnum[e]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},O.defaultProps={disabled:!1,min:v.MIN_DATE,max:v.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},O);function O(e){var r=a.call(this,e)||this,t=(r.cellUID=p.guid(),r.id=p.guid(),r.isActive=!1,r.didNavigationChange=!1,r.focus=function(){r._element&&r._element.focus()},r.shouldScroll=function(){return r.didNavigationChange},r.handleScroll=function(e){r.scrollSyncService&&r.scrollSyncService.sync(i(r.Navigation),i(r.calendarViewList),e)},r.handleNavigationChange=function(e){r.props.disabled||(r.didNavigationChange=!0,e=d.cloneDate(e.value),r.setState({focusedDate:e}))},r.handleViewChange=function(e){e=e.view;r.scrollSyncService.configure(e),r.setState({activeView:e})},r.handleDateChange=function(e){var t=d.cloneDate(e.value),n=d.cloneDate(e.value),i=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(i){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:n});r.bus.moveToBottom(r.state.activeView)}r.setState({value:t,focusedDate:n}),r.valueDuringOnChange=t;i=r.props.onChange;i&&(n={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r},i.call(void 0,n)),r.valueDuringOnChange=void 0}},r.handleFocus=function(e){var t;r.isActive=!0,r.calendarViewList&&(r.calendarViewList.focusActiveDate(),(t=r.props.onFocus)&&t.call(void 0,e))},r.handleBlur=function(e){var t;r.isActive=!1,r.calendarViewList&&(r.calendarViewList.blurActiveDate(),(t=r.props.onBlur)&&t.call(void 0,e))},r.handleKeyDown=function(e){if(e.keyCode===p.Keys.enter){null!==r.value&&d.isEqualDate(r.focusedDate,r.value)&&(t=b.dateInRange(r.focusedDate,r.min,r.max),i(r.calendarViewList).scrollToIndex(r.service.skip(t,r.min)));var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{t=b.dateInRange(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(d.isEqualDate(r.focusedDate,t))return;r.setState({focusedDate:t})}e.preventDefault()},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},p.validatePackage(f.packageMetadata),o(r.min,r.max,r.props.defaultValue||O.defaultProps.defaultValue,r.props.value));return r.state={value:t,activeView:b.viewInRange(y.CalendarViewEnum[e.defaultActiveView],r.bottomView,r.topView),focusedDate:b.dateInRange(e.focusedDate||t||b.getToday(),r.min,r.max)},r.dom=new w.DOMService,r.bus=new w.BusViewService(r.handleViewChange),r.navigation=new w.NavigationService(r.bus),r.oldValue=t,r}t.CalendarWithoutContext=D,t.CalendarPropsContext=p.createPropsContext(),t.Calendar=p.withPropsContext(t.CalendarPropsContext,D),t.Calendar.displayName="KendoReactCalendar",h.registerForIntl(D)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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 o,a,s=n(3),l=n(4),u=n(2),c=n(42),p=((n=o=t.ScrollDirection||(t.ScrollDirection={}))[n.Backward=0]="Backward",n[n.Forward=1]="Forward",(n={})[o.Forward]=function(t){return function(e){return e+t}},n[o.Backward]=function(t){return function(e){return e-t}},n),d=((n={})[o.Forward]=function(t){return function(e){return Math.min(e,t)}},n[o.Backward]=function(t){return function(e){return Math.max(e,t)}},n),h=((n={})[o.Forward]=function(t){return function(e){return e<t}},n[o.Backward]=function(t){return function(e){return t<e}},n),n=(a=s.Component,r(f,a),Object.defineProperty(f.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"direction",{get:function(){return(void 0!==this.props.direction?this.props:f.defaultProps).direction},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"scrollOffsetSize",{get:function(){return(void 0!==this.props.scrollOffsetSize?this.props:f.defaultProps).scrollOffsetSize},enumerable:!0,configurable:!0}),f.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},f.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},f.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},f.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},f.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},f.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},f.prototype.render=function(){var t=this,e=(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),""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset)),e="vertical"===this.direction?{height:e+"px"}:{width:e+"px"},n=u.classNames("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),i=u.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return s.createElement("div",{ref:function(e){t.scrollContainer=e},onScroll:this.handleScroll,className:n,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,s.createElement("div",{style:e,className:i}))},f.propTypes={bottomOffset:l.number.isRequired,className:l.string,direction:l.oneOf(["horizontal","vertical"]),forceScroll:l.bool,itemHeight:l.number,itemWidth:l.number,maxScrollDifference:l.number,onScroll:l.func,onScrollAction:l.func,scrollDuration:l.number,scrollOffsetSize:l.number,skip:l.number.isRequired,tabIndex:l.number,take:l.number.isRequired,topOffset:l.number.isRequired,total:l.number.isRequired,role:l.string},f.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},f);function f(e){var l=a.call(this,e)||this;return l.animationInProgress=!1,l.scrollTo=function(e){var t="vertical"===l.direction?"scrollTop":"scrollLeft";l.scrollContainer&&(l.scrollContainer[t]=e)},l.scrollToIndex=function(e){void 0!==l.scrollToIndexTimeout&&window.cancelAnimationFrame(l.scrollToIndexTimeout),l.rowHeightService&&(l.scrollToIndexTimeout=window.requestAnimationFrame(function(){l.animationInProgress=!1,l.scrollTo(l.rowHeightService.offset(e))}))},l.animateToIndex=function(e){var t,n,i,r,o,a,s;l.rowHeightService&&window&&(window.cancelAnimationFrame(l.cancelAnimation),e=l.rowHeightService.offset(e),t=l.getContainerScrollDirection(e),e=l.scrollRange(e,t),n=e.start,e=e.end,n!==e&&(i=l.scrollStep(n,e),r=p[t](i),o=d[t](e),a=h[t](r(e)),s=function(e){l.animationInProgress=!0;var t=r(e);l.scrollTo(o(t)),a(t)?l.cancelAnimation=window.requestAnimationFrame(function(){s(t)}):l.animationInProgress=!1},l.cancelAnimation=window.requestAnimationFrame(function(){s(n)})))},l.scrollToBottom=function(){l.rowHeightService&&l.scrollTo(l.rowHeightService.totalHeight()+l.props.bottomOffset)},l.scrollStep=function(e,t){var n=l.props.scrollDuration||f.defaultProps.scrollDuration;return Math.abs(t-e)/(n/17)},l.scrollRange=function(e,t){var n=l.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var i=l.containerMaxScroll(),t=t===o.Backward?1:-1,n=(r=l.props.maxScrollDifference,Math.min(Math.abs(e-n),r)),r=Math.min(e,i);return{start:Math.min(Math.max(r+t*n,0),i),end:r}},l.containerMaxScroll=function(){return l.containerScrollSize-l.containerOffsetSize},l.getContainerScrollDirection=function(e){return e<l.containerScrollPosition?o.Backward:o.Forward},l.initServices=function(e){void 0===e&&(e=l.props);var t="vertical"===l.direction?e.itemHeight:e.itemWidth;void 0!==t&&(l.rowHeightService=new c.RowHeightService(e.total,t,0),l.scrollerService.create(l.rowHeightService,e.skip,e.take,e.total,e.topOffset,l.scrollOffsetSize,l.direction))},l.getContainerProperty=function(e){return l.scrollContainer?l.scrollContainer[e]:0},l.handleScroll=function(e){var t,n,i;l.scrollContainer&&l.rowHeightService&&(t=e.target,l.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth}),i=l.rowHeightService.index(l.containerScrollPosition-l.props.topOffset),n=l.props.onScrollAction,i={index:i,target:t,scrollAction:l.scrollAction,pageAction:l.pageAction,animationInProgress:l.animationInProgress},l.props.onScroll&&l.props.onScroll.call(void 0,e),n&&n.call(void 0,i),l.scrollAction=void 0,l.pageAction=void 0)},l.handleScrollAction=function(e){l.scrollAction=e},l.handlePageAction=function(e){l.pageAction=e},l.scrollerService=new c.ScrollerService(l.handleScrollAction,l.handlePageAction),l}t.Virtualization=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.CalendarViewEnum||(t.CalendarViewEnum={}))[t.month=0]="month",t[t.year=1]="year",t[t.decade=2]="decade",t[t.century=3]="century"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),i=(t.BusViewService=i.BusViewService,n(25)),i=(t.CenturyViewService=i.CenturyViewService,n(26)),i=(t.DecadeViewService=i.DecadeViewService,n(46)),i=(t.DOMService=i.DOMService,n(27)),i=(t.MonthViewService=i.MonthViewService,n(47)),i=(t.NavigationService=i.NavigationService,n(48)),i=(t.ScrollSyncService=i.ScrollSyncService,n(49)),i=(t.WeekNamesService=i.WeekNamesService,n(28));t.YearViewService=i.YearViewService},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,n,t){"use strict";var i=this&&this.__assign||function(){return(i=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}).apply(this,arguments)},r=(Object.defineProperty(n,"__esModule",{value:!0}),t(3)),o=t(35);n.usePickerFloatingLabel=function(e){var t=r.useState(!1),n=t[0],i=t[1];return r.useEffect(function(){e.current&&i(Boolean(e.current.text))}),{editorValue:n}},n.PickerFloatingLabel=function(e){var t=n.usePickerFloatingLabel(e.dateInput);return r.createElement(o.FloatingLabel,i({},e,t))}},function(e,t,n){"use strict";function r(e){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")}var i,o,a=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(s=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}).apply(this,arguments)},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),u=n(4),c=n(0),p=n(5),d=n(23),h=n(24),f=n(10),m=n(1),g=n(19),n=(o=l.Component,a(v,o),Object.defineProperty(v.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isMonthView",{get:function(){return this.props.activeView===f.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===f.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"selectedDate",{get:function(){return(void 0!==this.props.selectedDate?this.props:v.defaultProps).selectedDate},enumerable:!0,configurable:!0}),v.prototype.render=function(){var n=this,e=(this.intl=p.provideIntlService(this),this.weekService=new g.WeekNamesService(this.intl),this.weekService.getWeekNames(this.weekNumber)),t=this.props.service.rowLength(this.weekNumber),i=this.props.service.title(this.props.viewDate),r=m.getToday(),r=m.setTime(this.props.viewDate,r),r=this.props.service.data({cellUID:this.props.cellUID,min:this.min,max:this.max,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:r});return l.createElement(l.Fragment,null,this.isMonthView&&this.isHorizontal&&l.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},l.createElement("tr",{role:"row",className:"k-calendar-tr"},e.map(function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)}))),l.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&l.createElement("tr",{role:"presentation",className:"k-calendar-tr"},l.createElement("th",{scope:"col",colSpan:t,className:"k-calendar-th"},i)),r.map(function(e,t){return l.createElement("tr",{role:"row",className:"k-calendar-tr",key:t},n.weekNumber&&n.buildWeekNumber(e,t),n.buildRow(e))})))},v.prototype.getWeekNumber=function(e){return this.weekNumber?c.weekInYear(e,this.intl.firstDay()):null},v.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},v.defaultProps={direction:"vertical",selectedDate:m.getToday(),showWeekNumbers:!1},v);function v(){var i=null!==o&&o.apply(this,arguments)||this;return i.buildWeekNumber=function(e,t){if(!i.firstDate(e))return r("week-cell-"+t);var t=i.firstDate(e),e=i.getWeekNumber(t),n="kendo-react-calendar-week-cell-"+e,t={className:"k-alt",value:e,firstDate:t};return i.props.weekCell?l.createElement(i.props.weekCell,s({},t,{key:n}),e):l.createElement(h.CalendarWeekCell,s({},t,{key:n}),e)},i.buildRow=function(e){return e.map(function(e,t){if(!e)return r(t);var t={"aria-selected":e.isSelected},n="kendo-react-calendar-cell-"+e.value.getTime(),t=s({},t,e,{isDisabled:!e.isInRange,view:i.props.activeView,onClick:i.handleClick,onMouseEnter:i.handleMouseEnter,onMouseLeave:i.handleMouseLeave});return i.props.cell?l.createElement(i.props.cell,s({},t,{key:n}),e.formattedValue):l.createElement(d.CalendarCell,s({},t,{key:n}),e.formattedValue)})},i.firstDate=function(e){e=i.firstWeekDateContext(e);return e?e.value:null},i.firstWeekDateContext=function(e){if(!i.weekNumber)return null;for(var t=0,n=e[t];!n&&t<e.length;)n=e[++t];return n},i.handleClick=function(e,t){var n=i.props.onChange;n&&(e={value:c.cloneDate(e),target:i,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,e))},i.handleMouseEnter=function(e){var t=i.props.onCellEnter;t&&t.call(void 0,c.cloneDate(e))},i.handleMouseLeave=function(e){var t=i.props.onCellLeave;t&&t.call(void 0,c.cloneDate(e))},i}t.View=n,p.registerForIntl(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=this&&this.__assign||function(){return(f=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}).apply(this,arguments)},m=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},g=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),v=n(2),n=(r=g.Component,o(a,r),a.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,t=m(t,["value"]),i=e.value,e=m(e,["value"]);return!((!n||!i||n.getTime()===i.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length===i.length){for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return}return 1}}(t,e))},a.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),i=e.isFocused,r=(e.isInRange,e.isSelected),o=e.isRangeStart,a=e.isRangeMid,s=e.isRangeEnd,l=e.isRangeSplitStart,u=e.isRangeSplitEnd,c=e.isToday,p=e.isDisabled,e=(e.view,e.value,m(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),d="end"===this.props.activeRangeEnd&&s,h="start"===this.props.activeRangeEnd&&o,a=v.classNames("k-calendar-td",{"k-range-end":s,"k-range-mid":a,"k-range-split-end":u,"k-range-split-start":l,"k-range-start":o,"k-active":h||d,"k-state-pending-focus":i,"k-selected":r||o||s,"k-today":c,"k-weekend":n,"k-disabled":p},t);return g.createElement("td",f({},e,{className:a,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),g.createElement("span",{className:"k-link"},this.props.children))},a);function a(){var i=null!==r&&r.apply(this,arguments)||this;return i.handleClick=function(e){var t=i.props,n=t.onClick,t=t.value;n&&n.call(void 0,t,e)},i.handleMouseEnter=function(){var e=i.props,t=e.onMouseEnter,e=e.value;t&&t.call(void 0,e)},i.handleMouseLeave=function(){var e=i.props,t=e.onMouseLeave,e=e.value;t&&t.call(void 0,e)},i}t.CalendarCell=n},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),u=n(2),n=(r=l.Component,o(c,r),c.prototype.render=function(){var e=this.props,t=e.className,e=(e.firstDate,s(e,["className","firstDate"]));return l.createElement("td",a({className:u.classNames("k-calendar-td",t)},e),this.props.children)},c);function c(){return null!==r&&r.apply(this,arguments)||this}t.CalendarWeekCell=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),i=n(10),y=n(1),r=[[]],o=((n={})[i.Action.Left]=function(e){return v.addDecades(e,-1)},n[i.Action.Up]=function(e){return v.addDecades(e,-5)},n[i.Action.Right]=function(e){return v.addDecades(e,1)},n[i.Action.Down]=function(e){return v.addDecades(e,5)},n[i.Action.PrevView]=function(e){return v.addCenturies(e,-1)},n[i.Action.NextView]=function(e){return v.addCenturies(e,1)},n[i.Action.FirstInView]=function(e){return v.firstDecadeOfCentury(e)},n[i.Action.LastInView]=function(e){return v.lastDecadeOfCentury(e)},n);function a(){}a.prototype.addToDate=function(e,t){return v.addCenturies(e,t)},a.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addCenturies(t,e)})},a.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?i.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return r;var n=y.range(0,4),f=v.firstDecadeOfCentury(t),m=v.lastDecadeOfCentury(t),g=y.getToday();return y.range(0,3).map(function(e){var o=v.addDecades(f,4*e);return n.map(function(e){var e=a.normalize(v.addDecades(o,e),p,c),t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&y.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):y.isInRange(d,p,c)&&a.isEqual(e,d));return y.intersects(e,f,m)?{formattedValue:a.value(e),id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isWeekend:!1,isInRange:y.isInRange(e,p,c),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&a.isEqual(e,m),isRangeSplitStart:i&&a.isEqual(e,f),isToday:a.isEqual(e,g),title:a.cellTitle(e),value:e}:null})})},a.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){y.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},a.prototype.isEqual=function(e,t){return!(!e||!t)&&v.firstYearOfDecade(e).getFullYear()===v.firstYearOfDecade(t).getFullYear()},a.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},a.prototype.isInRange=function(e,t,n){e=v.firstYearOfDecade(e).getFullYear(),t=!t||v.firstYearOfDecade(t).getFullYear()<=e,e=!n||e<=v.firstYearOfDecade(n).getFullYear();return t&&e},a.prototype.isInSameView=function(e,t){return 0===v.durationInCenturies(e,t)},a.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},a.prototype.move=function(e,t){t=o[t];return t?t(e):e},a.prototype.cellTitle=function(e){return v.firstYearOfDecade(e).getFullYear().toString()},a.prototype.navigationTitle=function(e){return e?v.firstDecadeOfCentury(e).getFullYear().toString():""},a.prototype.title=function(e){return e?v.firstDecadeOfCentury(e).getFullYear()+" - "+v.lastDecadeOfCentury(e).getFullYear():""},a.prototype.rowLength=function(e){return 4},a.prototype.skip=function(e,t){return v.durationInCenturies(t,e)},a.prototype.total=function(e,t){return v.durationInCenturies(e,t)+1},a.prototype.value=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},a.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),v.durationInCenturies(e,t)<n?v.addCenturies(e,-1):e},a.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},t.CenturyViewService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),i=n(12),r=n(13),y=n(1),o=[[]],a=((n={})[i.Action.Left]=function(e){return v.addYears(e,-1)},n[i.Action.Up]=function(e){return v.addYears(e,-5)},n[i.Action.Right]=function(e){return v.addYears(e,1)},n[i.Action.Down]=function(e){return v.addYears(e,5)},n[i.Action.PrevView]=function(e){return v.addDecades(e,-1)},n[i.Action.NextView]=function(e){return v.addDecades(e,1)},n[i.Action.FirstInView]=function(e){return v.firstYearOfDecade(e)},n[i.Action.LastInView]=function(e){return v.lastYearOfDecade(e)},n);function s(){}s.prototype.addToDate=function(e,t){return v.addDecades(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addDecades(t,e)})},s.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?r.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return o;var n=y.range(0,4),f=v.firstYearOfDecade(t),m=v.lastYearOfDecade(t),g=y.getToday();return y.range(0,3).map(function(e){var o=v.addYears(f,4*e);return n.map(function(e){var e=a.normalize(v.addYears(o,e),p,c),t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&y.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):y.isInRange(d,p,c)&&a.isEqual(e,d));return y.intersects(e,f,m)?{formattedValue:a.value(e),id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isWeekend:!1,isInRange:y.isInRange(e,p,c),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&a.isEqual(e,m),isRangeSplitStart:i&&a.isEqual(e,f),isToday:a.isEqual(e,g),title:a.cellTitle(e),value:e}:null})})},s.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){y.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},s.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},s.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},s.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},s.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},s.prototype.isInSameView=function(e,t){return 0===v.durationInDecades(e,t)},s.prototype.move=function(e,t){t=a[t];return t?t(e):e},s.prototype.cellTitle=function(e){return e.getFullYear().toString()},s.prototype.navigationTitle=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},s.prototype.title=function(e){return e?v.firstYearOfDecade(e).getFullYear()+" - "+v.lastYearOfDecade(e).getFullYear():""},s.prototype.rowLength=function(e){return 4},s.prototype.skip=function(e,t){return v.durationInDecades(t,e)},s.prototype.total=function(e,t){return v.durationInDecades(e,t)+1},s.prototype.value=function(e){return e?e.getFullYear().toString():""},s.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),v.durationInDecades(e,t)<n?v.addDecades(e,-1):e},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},t.DecadeViewService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),i=n(12),r=n(13),y=n(1),o=[[]],a=((n={})[i.Action.Left]=function(e){return v.addDays(e,-1)},n[i.Action.Up]=function(e){return v.addWeeks(e,-1)},n[i.Action.Right]=function(e){return v.addDays(e,1)},n[i.Action.Down]=function(e){return v.addWeeks(e,1)},n[i.Action.PrevView]=function(e){return v.addMonths(e,-1)},n[i.Action.NextView]=function(e){return v.addMonths(e,1)},n[i.Action.FirstInView]=function(e){return v.firstDayOfMonth(e)},n[i.Action.LastInView]=function(e){return v.lastDayOfMonth(e)},n);function s(e){this.intl=e}s.prototype.addToDate=function(e,t){return v.addMonths(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addMonths(t,e)})},s.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?r.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return o;var f=v.firstDayOfMonth(t),m=v.lastDayOfMonth(t),n=v.dayOfWeek(f,this.intl.firstDay(),-1),i=y.range(0,7),g=y.getToday();return y.range(0,6).map(function(e){var o=v.addDays(n,7*e);return i.map(function(e){e=a.normalize(v.addDays(o,e),p,c);if(e<f||m<e)return null;var t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&y.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):y.isInRange(d,p,c)&&a.isEqual(e,d));return{formattedValue:a.value(e),id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isInRange:y.isInRange(e,p,c),isWeekend:a.isWeekend(e),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitStart:i&&a.isEqual(e,f),isRangeSplitEnd:i&&a.isEqual(e,m),isToday:a.isEqual(e,g),title:a.cellTitle(e),value:e}})})},s.prototype.isEqual=function(e,t){return!(!e||!t)&&v.getDate(e).getTime()===v.getDate(t).getTime()},s.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){y.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},s.prototype.isInArray=function(e,t){return!!t.length&&v.firstDayOfMonth(t[0])<=e&&e<=v.lastDayOfMonth(t[t.length-1])},s.prototype.isInRange=function(e,t,n){e=v.getDate(e),t=!t||v.getDate(t)<=e,e=!n||e<=v.getDate(n);return t&&e},s.prototype.isInSameView=function(e,t){return 0===v.durationInMonths(e,t)},s.prototype.isRangeStart=function(e){return!e.getMonth()},s.prototype.move=function(e,t){t=a[t];return t?t(e):e},s.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},s.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},s.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},s.prototype.rowLength=function(e){return 7+(e?1:0)},s.prototype.skip=function(e,t){return v.durationInMonths(t,e)},s.prototype.total=function(e,t){return v.durationInMonths(e,t)+1},s.prototype.value=function(e){return e?e.getDate().toString():""},s.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),v.durationInMonths(e,t)<n?v.addMonths(e,-1):e},s.prototype.isWeekend=function(e){e=e.getDay();return 6===e||0===e},s.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.getDate(t):n<e&&this.isEqual(e,n)?v.getDate(n):e},s.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},t.MonthViewService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b=n(0),i=n(12),w=n(1),r=n(13),o=n(0),D=[[]],a=((n={})[i.Action.Left]=function(e){return b.addMonths(e,-1)},n[i.Action.Up]=function(e){return b.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},n[i.Action.Right]=function(e){return b.addMonths(e,1)},n[i.Action.Down]=function(e){return b.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},n[i.Action.PrevView]=function(e){return b.addYears(e,-1)},n[i.Action.NextView]=function(e){return b.addYears(e,1)},n[i.Action.FirstInView]=function(e){return b.firstMonthOfYear(e)},n[i.Action.LastInView]=function(e){return b.lastMonthOfYear(e)},n);function s(e){this._intl=e}s.prototype.addToDate=function(e,t){return b.addYears(e,t)},s.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return b.addYears(t,e)})},s.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?r.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return D;var f=this.abbrMonthNames(),m=b.firstMonthOfYear(t),g=b.lastMonthOfYear(t),v=m.getFullYear(),n=w.range(0,4),y=w.getToday();return w.range(0,3).map(function(e){var o=b.addMonths(m,4*e);return n.map(function(e){e=a.normalize(b.addMonths(o,e),p,c);if(v<e.getFullYear())return null;var t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&w.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):w.isInRange(d,p,c)&&a.isEqual(e,d));return{formattedValue:f[e.getMonth()],id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isInRange:w.isInRange(e,p,c),isWeekend:!1,isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&a.isEqual(e,g),isRangeSplitStart:i&&a.isEqual(e,m),isToday:a.isEqual(e,y),title:a.cellTitle(e),value:e}})})},s.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},s.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},s.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},s.prototype.isInRange=function(e,t,n){e=b.createDate(e.getFullYear(),e.getMonth(),1),t=!t||b.createDate(t.getFullYear(),t.getMonth(),1)<=e,e=!n||e<=b.createDate(n.getFullYear(),n.getMonth(),1);return t&&e},s.prototype.isInSameView=function(e,t){return 0===b.durationInYears(e,t)},s.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},s.prototype.move=function(e,t){t=a[t];return t?t(e):e},s.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},s.prototype.navigationTitle=function(e){return this.title(e)},s.prototype.title=function(e){return e?e.getFullYear().toString():""},s.prototype.rowLength=function(e){return 4},s.prototype.skip=function(e,t){return b.durationInYears(t,e)},s.prototype.total=function(e,t){return b.durationInYears(e,t)+1},s.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},s.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),b.durationInYears(e,t)<n?b.addYears(e,-1):e},s.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.cloneDate(t):n<e&&this.isEqual(e,n)?o.cloneDate(n):e},t.YearViewService=s},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),l=n(4),u=n(5),c=n(2),p=n(30),n=n(8),o=(r=s.Component,o(d,r),Object.defineProperty(d.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:d.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:d.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rangeLength",{get:function(){return(void 0!==this.props.rangeLength?this.props:d.defaultProps).rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),d.prototype.render=function(){var e=this.getTitle(),t=c.classNames("k-calendar-title"),t={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},t=this.props.headerTitle?s.createElement(this.props.headerTitle,a({},t),e):s.createElement(p.CalendarHeaderTitle,a({},t),e);return s.createElement("div",{className:"k-calendar-header k-hstack"},t,s.createElement("span",{className:"k-spacer"}),s.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},d.propTypes={activeView:l.number.isRequired,currentDate:l.instanceOf(Date).isRequired,max:l.instanceOf(Date).isRequired,min:l.instanceOf(Date).isRequired,rangeLength:l.number},d.defaultProps={rangeLength:1,min:n.MIN_DATE,max:n.MAX_DATE},d);function d(){var i=null!==r&&r.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.canMoveUp&&i.props.bus.moveUp(i.props.activeView,e)},i}t.Header=o,u.registerForLocalization(o)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(6)),u=n(3),n=(r=u.PureComponent,o(c,r),c.prototype.render=function(){var e=this.props,e=(e.view,s(e,["view"]));return u.createElement(l.Button,a({type:"button",fillMode:"flat"},e),this.props.children)},c);function c(){return null!==r&&r.apply(this,arguments)||this}t.CalendarHeaderTitle=n},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),s=n(4),l=n(5),u=n(2),c=n(0),p=n(7),d=n(1),n=n(8),o=(r=a.Component,o(h,r),Object.defineProperty(h.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:h.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:h.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"todayIsInRange",{get:function(){return d.isInRange(d.getToday(),c.getDate(this.min),c.getDate(this.max))},enumerable:!0,configurable:!0}),h.prototype.render=function(){this.localization=l.provideLocalizationService(this);var e=this.localization.toLanguageString(p.today,p.messages[p.today]),t=u.classNames("k-nav-today",{"k-disabled":this.props.disabled});return a.createElement("span",{className:t,onClick:this.handleClick},e)},h.propTypes={max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,onClick:s.func,disabled:s.bool},h.defaultProps={min:n.MIN_DATE,max:n.MAX_DATE},h);function h(){var t=null!==r&&r.apply(this,arguments)||this;return t.handleClick=function(e){t.todayIsInRange&&t.props.onClick&&t.props.onClick.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:d.dateInRange(d.getToday(),t.min,t.max),target:t,isTodayClick:!0})},t}t.TodayCommand=o,l.registerForLocalization(o)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),u=n(2),n=(r=l.Component,o(c,r),c.prototype.render=function(){var e=this.props,t=e.isRangeStart,e=(e.value,e.text,s(e,["isRangeStart","value","text"]));return l.createElement("li",a({},e,{onClick:this.handleClick}),l.createElement("span",{className:u.classNames({"k-calendar-navigation-marker":t})},this.props.children))},c);function c(){var i=null!==r&&r.apply(this,arguments)||this;return i.handleClick=function(e){var t=i.props,n=t.onClick,t=t.value;n&&n.call(void 0,t,e)},i}t.CalendarNavigationItem=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Mask=function(){this.symbols=""}},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],o=e.substring(0,i+e.length-n.length),e=n.substring(0,i),a=[];if(o===e&&0<i)return a.push([t[i-1],e[i-1]]),a;if(0===o.indexOf(e)&&(0===e.length||t[e.length-1]!==t[e.length])){var s="";1===e.length&&a.push([t[0],e[0]]);for(var l=e.length;l<o.length;l++)t[l]!==s&&"_"!==t[l]&&(s=t[l],a.push([s,""]));return a}if(0!==e.indexOf(o)&&"_"!==t[i-1])return" "===e[e.length-1]||e[e.length-1]===r?[[t[i-1],"_"]]:[[t[i-1],e[i-1]]];for(var u=t[0],l=Math.max(0,o.length-1);l<t.length;l++)if("_"!==t[l]){u=t[l];break}return[[u,e[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-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(6);t.ToggleButton=n.Button},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(2);t.PickerWrap=r.forwardRef(function(e,t){var n=e._ref,i=r.useRef(null),t=(r.useImperativeHandle(t,function(){return i.current}),r.useImperativeHandle(n,function(){return i.current}),r.useMemo(function(){return o.classNames(e.className,"k-picker-wrap")},[e.className]));return r.createElement("span",{ref:i,id:e.id,style:e.style,className:t,tabIndex:e.tabIndex},e.children)})},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(s=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o,a,l=n(3),u=n(4),c=n(0),p=n(2),d=n(5),h=n(7),f=n(56),m=n(1),g=n(20),v=n(9),y=n(6),b=new RegExp(g.TIME_PART.hour+"|"+g.TIME_PART.minute+"|"+g.TIME_PART.second+"|"+g.TIME_PART.dayperiod+"|literal"),g=((n=o=t.Direction||(t.Direction={}))[n.Left=0]="Left",n[n.Right=1]="Right",a=l.Component,r(w,a),Object.defineProperty(w.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"value",{get:function(){return v.timeInRange(this.snapTime(c.cloneDate(this.props.value||m.MIDNIGHT_DATE)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"intl",{get:function(){return d.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"min",{get:function(){return this.snapTime(this.props.min||w.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"max",{get:function(){return this.snapTime(this.props.max||w.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"steps",{get:function(){return this.props.steps||w.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"boundRange",{get:function(){return(void 0!==this.props.boundRange?this.props:w.defaultProps).boundRange},enumerable:!0,configurable:!0}),w.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},w.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},w.prototype.render=function(){var n=this,e=this.props,t=e.format,i=e.smoothScroll,r=e.onNowClick,o=e.className,a=e.disabled,e=(this.snapTime=v.snapTime(v.generateSnappers(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(t||w.defaultProps.format).filter(this.timeFormatFilter),p.classNames({"k-disabled":a},o,"k-time-part")),t=(this.timeLists=[],d.provideLocalizationService(this)),o=t.toLanguageString(h.selectNow,h.messages[h.selectNow]);return l.createElement("div",{className:e},l.createElement("div",{className:"k-time-header"},l.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&l.createElement(y.Button,s({type:"button",ref:function(e){n._nowButton=e},className:"k-time-now",fillMode:"flat",themeColor:"primary",title:o},{"aria-label":o},{onClick:r,tabIndex:a?-1:0}),t.toLanguageString(h.now,h.messages[h.now]))),l.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},l.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map(function(e,t){return"literal"!==e.type?l.createElement("div",{key:t,className:p.classNames("k-time-list-wrapper",{"k-focus":t===n.state.activeListIndex}),role:"presentation",tabIndex:-1},l.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},n.intl.dateFieldName(e)),l.createElement(f.TimeList,{min:n.min,max:n.max,boundRange:n.boundRange,part:e,step:e.type?n.steps[e.type]:1,smoothScroll:i,ref:function(e){e&&n.timeLists.push(e)},id:t,onFocus:function(){n.handleListFocus(t)},onBlur:n.handleListBlur,onChange:n.handleChange,value:n.value,disabled:a,show:n.props.show})):l.createElement("div",{key:t,className:"k-time-separator"},e.pattern)})))},w.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},w.prototype.hasActiveButton=function(){return this._nowButton&&document.activeElement===this._nowButton.element},w.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)},w.propTypes={cancelButton:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},w.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:m.MIN_TIME,max:m.MAX_TIME,steps:{},boundRange:!1},w);function w(e){var r=a.call(this,e)||this;return r.timeLists=[],r.focus=function(t){Promise.resolve().then(function(){var e=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&e&&e.element&&e.focus(t)})},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){n=1<=t&&n[t-1];return n&&"literal"===e.type?b.test(n.type||""):b.test(e.type||"")},r.focusList=function(t){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map(function(e){return t===o.Right?e.next:e.prev}).map(function(e){return e&&e.element&&e.element.focus({preventScroll:!0})})},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&&v.isInTimeRange(v.getNow(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case p.Keys.left:return e.preventDefault(),void r.focusList(o.Left);case p.Keys.right:return e.preventDefault(),void r.focusList(o.Right);default:return}},r.handleListBlur=function(){r.nextTick(function(){r.setState({activeListIndex:-1})})},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleChange=function(e){var t=r.props.onChange;t&&t.call(void 0,e)},r.snapTime=v.snapTime(v.generateSnappers(r.props.steps,r.props.min||w.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}t.TimePart=g,d.registerForIntl(g),d.registerForLocalization(g)},function(e,t,n){"use strict";function f(e,t,n){return void 0===e&&(e=u.defaultProps.min),void 0===t&&(t=u.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&I.isInRange(O.getDate(n),e,t)?O.getDate(n):null}function m(t,n,e){return void 0===t&&(t=u.defaultProps.min),void 0===n&&(n=u.defaultProps.max),Array.isArray(e)?e.filter(function(e){return I.isInRange(e,t,n)}).map(function(e){return O.getDate(e)}):null}function g(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?S.EMPTY_SELECTIONRANGE:e}function v(e,t,n){return e||t&&t[0]||n&&n.start}var i,s,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=this&&this.__assign||function(){return(y=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}).apply(this,arguments)},b=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),o=n(4),w=n(5),D=n(2),O=n(0),k=n(6),S=n(10),P=n(29),a=n(8),_=n(7),l=n(19),I=n(1),C=n(64),M=n(31),u=(s=b.Component,r(c,s),Object.defineProperty(c.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"focusedDate",{get:function(){return O.cloneDate(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"min",{get:function(){return O.getDate((void 0!==this.props.min?this.props:c.defaultProps).min)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"max",{get:function(){return O.getDate((void 0!==this.props.max?this.props:c.defaultProps).max)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bottomView",{get:function(){return S.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:c.defaultProps).bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"topView",{get:function(){return S.CalendarViewEnum[(void 0!==this.props.topView?this.props:c.defaultProps).topView]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"activeRange",{get:function(){return(void 0!==this.props.activeRangeEnd?this.props:this).activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"todayIsInRange",{get:function(){return I.isInRange(I.getToday(),O.getDate(this.min),O.getDate(this.max))},enumerable:!0,configurable:!0}),c.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},c.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=f(this.min,this.max,this.value);this.calculateFocusFromValue=Boolean(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||C.HorizontalViewList.defaultProps.views},c.prototype.render=function(){var t=this,e=(this.props._ref&&this.props._ref(this),this.intl=w.provideIntlService(this),this.localization=w.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView),I.viewInRange(this.state.activeView,this.bottomView,this.topView)),n=(this.service=this.bus.service(e,this.intl),this.selectedDate=f(this.min,this.max,this.value),this.selectedMultiple=m(this.min,this.max,this.value),this.selectedRange=g(this.value),v(this.selectedDate,this.selectedMultiple,this.selectedRange)),n=(this._focusedDate=I.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max),D.classNames("k-widget k-calendar k-calendar-range",{"k-disabled":this.props.disabled},this.props.className)),i=this.rangeWithFocused(this.selectedRange,this.focusedDate),r={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},o=this.localization.toLanguageString(_.prevView,_.messages[_.prevView]),a=this.localization.toLanguageString(_.nextView,_.messages[_.nextView]),s=!this.canNavigate(S.Action.PrevView),l=!this.canNavigate(S.Action.NextView),u={"aria-disabled":s},c={"aria-disabled":l},p=this.lastView!==e,d=this.dates&&this.service.isInArray(this.focusedDate,this.dates),h=this.lastViewsCount!==this.props.views,d=(d&&!p&&!h||(this.dates=this.service.datesList(this.focusedDate,this.props.views||C.HorizontalViewList.defaultProps.views)),O.cloneDate(this.dates&&this.dates[0]?this.dates[0]:I.getToday()));return b.createElement("div",y({ref:function(e){t._element=e},className:n,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,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},r),b.createElement(P.Header,{key:".kendo.calendar.header."+d.getTime(),activeView:e,currentDate:d,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:b.createElement(b.Fragment,null,b.createElement(k.Button,y({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",fillMode:"flat",title:o,disabled:s,onClick:this.handlePrevButtonClick},u)),b.createElement(M.TodayCommand,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),b.createElement(k.Button,y({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",fillMode:"flat",title:a,disabled:l,onClick:this.handleNextButtonClick},c)))}),b.createElement(C.HorizontalViewList,{ref:function(e){t.calendarViewList=e},dates:this.dates,activeView:e,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:i,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}))},c.displayName="MultiViewCalendar",c.propTypes={activeRangeEnd:o.oneOf(["start","end"]),allowReverse:o.bool,bottomView:o.oneOf(["month","year","decade","century"]),className:o.string,defaultActiveView:o.oneOf(["month","year","decade","century"]),defaultValue:o.oneOfType([I.nullable(o.instanceOf(Date)),o.arrayOf(o.instanceOf(Date)),o.shape({start:I.nullable(o.instanceOf(Date)),end:I.nullable(o.instanceOf(Date))})]),disabled:o.bool,focusedDate:o.instanceOf(Date),id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,max:o.instanceOf(Date),min:o.instanceOf(Date),mode:o.oneOf(["single","multiple","range"]),onBlur:o.func,onChange:o.func,onFocus:o.func,tabIndex:o.number,topView:o.oneOf(["month","year","decade","century"]),value:o.oneOfType([I.nullable(o.instanceOf(Date)),o.arrayOf(o.instanceOf(Date)),o.shape({start:I.nullable(o.instanceOf(Date).isRequired),end:I.nullable(o.instanceOf(Date).isRequired)})]),views:function(e,t,n){e=e[t];return void 0!==e&&e<1?new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'"):null},weekNumber:o.bool},c.defaultProps={disabled:!1,min:a.MIN_DATE,max:a.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},c);function c(e){var a=s.call(this,e)||this;a.selectedDate=null,a.selectedMultiple=null,a.selectedRange=S.EMPTY_SELECTIONRANGE,a.cellUID=D.guid(),a.activeRangeEnd="start",a.wrapperID=D.guid(),a.isActive=!1,a.calculateFocusFromValue=!0,a.focus=function(){a._element&&a._element.focus()},a.clampRange=function(e){return{start:e,end:null}},a.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&a.isActive?t:e.end}},a.generateRange=function(e,t){var n=t.end,i=t.start,t=null!==t.start&&e.getTime()<=t.start.getTime();return!a.props.allowReverse&&t?{start:e,end:a.selectedRange.start}:"end"!==a.activeRange?{start:e,end:n}:{start:i||a.selectedDate,end:e}},a.canNavigate=function(e){if(!a.service)return!1;e=a.service.move(a.focusedDate,e);return a.min<=e&&e<=a.max||a.service.isInSameView(e,a.min)||a.service.isInSameView(e,a.max)},a.isListInRange=function(e){return a.min<e[0]&&a.max>e[Math.max(0,(a.props.views||c.defaultProps.views)-1)]},a.navigate=function(e){a.calculateFocusFromValue=!1;e=a.move(e);a.setState({focusedDate:e})},a.move=function(e){return a.clampDate(a.service.move(a.focusedDate,e))},a.clampDate=function(e){return I.dateInRange(e,a.min,a.max)},a.shouldAutoCorrect=function(e,t){var n=t.end,t=t.start;return"end"!==a.activeRange?null!==n&&n<e:null!==t&&e<t},a.handleCellEnter=function(e){"range"===a.props.mode&&(a.calculateFocusFromValue=!1,a.setState({focusedDate:e}))},a.handleMouseDown=function(e){e.preventDefault()},a.handleClick=function(e){a._element&&a._element.focus({preventScroll:!0})},a.handleFocus=function(e){var t;a.isActive=!0,a.calendarViewList&&(a.calendarViewList.focusActiveDate(),(t=a.props.onFocus)&&t.call(void 0,e))},a.handleBlur=function(e){var t;a.isActive=!1,a.calendarViewList&&(a.calendarViewList.blurActiveDate(),(t=a.props.onBlur)&&t.call(void 0,e))},a.handleTodayClick=function(e){a.todayIsInRange&&a.handleDateChange.call(void 0,e,!0)},a.handlePrevButtonClick=function(){a.navigate(S.Action.PrevView)},a.handleNextButtonClick=function(){a.navigate(S.Action.NextView)},a.handleKeyDown=function(e){if(e.keyCode===D.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:a.focusedDate,target:a};a.handleDateChange.call(void 0,t)}else{t=I.dateInRange(a.navigation.move(a.focusedDate,a.navigation.action(e),a.state.activeView,a.service,e),a.min,a.max);if(O.isEqualDate(a.focusedDate,t))return;a.calculateFocusFromValue=!1,a.setState({focusedDate:t})}e.preventDefault()},a.handleViewChange=function(e){e=e.view;a.calculateFocusFromValue=!1,a.setState({activeView:e})},a.handleDateChange=function(n){var e=O.cloneDate(n.value),t=a.bus.canMoveDown(a.state.activeView);if(!a.props.disabled){if(t){if(!n.isTodayClick)return a.bus.moveDown(a.state.activeView,n.syntheticEvent),void a.setState({focusedDate:e});a.bus.moveToBottom(a.state.activeView)}switch(a.calculateFocusFromValue=!0,a.props.mode){case"single":o=O.cloneDate(n.value);break;case"multiple":var i,r,o=Array.isArray(a.selectedMultiple)?(i=a.selectedMultiple.slice(),r=-1,i.forEach(function(e,t){O.isEqualDate(e,n.value)&&(r=t)}),-1!==r?i.splice(r,1):i.push(O.cloneDate(n.value)),i.slice()):a.selectedDate?[O.cloneDate(a.selectedDate),O.cloneDate(n.value)]:[O.cloneDate(n.value)];break;case"range":o=null!==a.selectedRange.start&&null!==a.selectedRange.end&&"start"===a.activeRange?a.clampRange(n.value):a.generateRange(n.value,a.selectedRange),a.activeRangeEnd="end"!==a.activeRange?"end":"start";break;default:o=O.cloneDate(n.value)}a.valueDuringOnChange=o,a.setState({value:o,focusedDate:e}),a.valueDuringOnChange=o;t=a.props.onChange;t&&(e={syntheticEvent:n.syntheticEvent,nativeEvent:n.nativeEvent,value:o,target:a},t.call(void 0,e)),a.valueDuringOnChange=void 0}};var t=void 0!==e.value?e.value:e.defaultValue||c.defaultProps.defaultValue,n=f(a.min,a.max,t),i=m(a.min,a.max,t),r=g(t),i=v(n,i,r),o=I.viewInRange(S.CalendarViewEnum[e.defaultActiveView],a.bottomView,a.topView),e=I.dateInRange(e.focusedDate||i||I.getToday(),a.min,a.max);return a.state={value:t,activeView:o,focusedDate:e},a.activeRangeEnd=(null!==r.start||null!==n)&&null===r.end?"end":"start",a.bus=new l.BusViewService(a.handleViewChange),a.navigation=new l.NavigationService(a.bus),a.calculateFocusFromValue=!1,a.lastView=o,a.lastViewsCount=a.props.views||C.HorizontalViewList.defaultProps.views,a}t.MultiViewCalendarWithoutContext=u,t.MultiViewCalendarPropsContext=D.createPropsContext(),t.MultiViewCalendar=D.withPropsContext(t.MultiViewCalendarPropsContext,u),t.MultiViewCalendar.displayName="KendoReactMultiViewCalendar",w.registerForIntl(u),w.registerForLocalization(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(16),r=(t.Calendar=r.Calendar,t.CalendarPropsContext=r.CalendarPropsContext,n(14)),r=(t.DateInput=r.DateInput,t.DateInputPropsContext=r.DateInputPropsContext,n(53)),r=(t.DatePicker=r.DatePicker,t.DatePickerPropsContext=r.DatePickerPropsContext,n(54)),r=(t.TimePicker=r.TimePicker,t.TimePickerPropsContext=r.TimePickerPropsContext,n(39)),r=(t.MultiViewCalendar=r.MultiViewCalendar,t.MultiViewCalendarPropsContext=r.MultiViewCalendarPropsContext,n(65)),r=(t.DateRangePicker=r.DateRangePicker,t.DateRangePickerPropsContext=r.DateRangePickerPropsContext,n(23)),r=(t.CalendarCell=r.CalendarCell,n(24)),r=(t.CalendarWeekCell=r.CalendarWeekCell,n(30)),r=(t.CalendarHeaderTitle=r.CalendarHeaderTitle,n(32)),r=(t.CalendarNavigationItem=r.CalendarNavigationItem,n(10)),r=(t.CalendarViewEnum=r.CalendarViewEnum,n(66)),r=(t.DateTimePicker=r.DateTimePicker,t.DateTimePickerPropsContext=r.DateTimePickerPropsContext,n(36)),r=(t.ToggleButton=r.ToggleButton,n(37)),o=(t.PickerWrap=r.PickerWrap,t);for(i in o)a(i,o[i])},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),c=n(2),p=n(0),s=n(5),d=n(17),l=n(22),h=n(29),f=n(1),m=n(10),g=n(31),n=(r=u.Component,o(v,r),Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"weekNames",{get:function(){this.intl=s.provideIntlService(this);var e=f.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===m.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"take",{get:function(){return(void 0!==this.props.take?this.props:v.defaultProps).take},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"todayIsInRange",{get:function(){return f.isInRange(f.getToday(),p.getDate(this.props.min),p.getDate(this.props.max))},enumerable:!0,configurable:!0}),v.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},v.prototype.render=function(){var t=this,e=(this.calculateHeights(),this.lastView!==this.props.activeView),n=f.dateInRange(this.props.focusedDate,this.props.min,this.props.max),e=e?this.props.service.skip(n,this.props.min):this.state.skip,i=this.props.service.total(this.props.min,this.props.max),r=this.getTake(e,i),o=this.props.service.addToDate(this.props.min,e),a=this.props.service.addToDate(this.props.min,this.state.index),s=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),l=this.props.activeView!==this.lastView,l=(this.animateToIndex=!l,!l&&p.isEqualDate(this.lastFocus,n)&&!this.shouldScroll&&this.props.shouldScroll&&!this.props.shouldScroll()||(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n,c.classNames("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===m.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===m.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===m.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===m.CalendarViewEnum.century})),n=this.buildDates(s,this.props.service.datesList(o,r)),o=u.createElement(u.Fragment,null,u.createElement(h.Header,{key:"calendar-view-list-header",currentDate:a,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:u.createElement(u.Fragment,null,u.createElement(g.TodayCommand,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===m.CalendarViewEnum.month&&this.buildMonthView(s,this.weekNames),u.createElement(d.Virtualization,{key:"calendar-view-list-content",skip:e,take:this.take,total:i,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:n}));return u.createElement("div",{ref:function(e){t._element=e},className:l},this.props.dom.didCalculate?o:null)},v.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},v.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},v);function v(e){var i=r.call(this,e)||this;return i.isActive=!1,i.animateToIndex=!0,i.shouldScroll=!1,i.focusActiveDate=function(){var e,t;i._element&&(e=i._element.querySelector("td.k-focus"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-focus"))&&e.classList.remove("k-focus"),i.isActive=!1)},i.handleVirtualizationMount=function(e){i.virtualization=e,i.virtualization&&i.table&&(i.table.style.transform="translateY("+i.viewOffset+"px)",e=f.dateInRange(i.props.focusedDate,i.props.min,i.props.max),e=i.props.service.skip(e,i.props.min),i.virtualization.scrollToIndex(e))},i.buildMonthView=function(e,t){return u.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},u.createElement("colgroup",null,e.map(function(e,t){return u.createElement("col",{key:t})})),u.createElement("thead",{className:"k-calendar-thead"},u.createElement("tr",{className:"k-calendar-tr"},t.map(function(e,t){return u.createElement("th",{key:t,className:"k-calendar-th"},e)}))))},i.buildDates=function(e,t){var n=i.props.cellUID;return u.createElement("table",{className:"k-calendar-table",ref:function(e){return i.table=e}},u.createElement("colgroup",null,e.map(function(e,t){return u.createElement("col",{key:t})})),t.map(function(e){return u.createElement(l.View,{ref:function(e){i.calendarView||(i.calendarView=e)},key:e.getTime(),activeView:i.props.activeView,viewDate:e,min:i.props.min,max:i.props.max,cellUID:n,focusedDate:i.props.focusedDate,cell:i.props.cell,selectedDate:i.props.value,showWeekNumbers:i.weekNumber,onChange:i.handleDateChange,bus:i.props.bus,service:i.props.service,weekCell:i.props.weekCell})}))},i.calculateHeights=function(){var e;i.props.dom&&(e=i.props.activeView===m.CalendarViewEnum.month?i.props.dom.scrollableContentHeight:i.props.dom.scrollableYearContentHeight,i.bottomOffset=e-i.props.dom.viewHeight(i.props.activeView),i.viewOffset=-1*i.props.dom.headerHeight,i.viewHeight=i.props.dom.viewHeight(i.props.activeView)||1)},i.getTake=function(e,t){return Math.min(t-e,i.take)},i.handleScrollAction=function(e){var t=e.index,n=e.scrollAction,e=e.pageAction,e=(e||i.state).skip;i.state.index===t&&i.state.skip===e||i.setState({index:t,skip:e}),i.table&&n&&(t="translateY("+n.offset+"px)",i.table.style.transform=t)},i.handleTodayClick=function(e){i.shouldScroll=!0,i.handleDateChange.call(void 0,e,!0)},i.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=i.props.onChange;n&&(e={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:p.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,e))},i.lastView=i.props.activeView,i.lastFocus=i.props.focusedDate,i.state={skip:i.props.service.skip(i.props.focusedDate,i.props.min),index:i.props.service.skip(i.props.focusedDate,i.props.min)},i}t.ViewList=n,s.registerForIntl(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),i=(t.RowHeightService=i.RowHeightService,n(44));t.PageAction=i.PageAction,t.ScrollAction=i.ScrollAction,t.ScrollerService=i.ScrollerService},function(e,t,n){"use strict";function i(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,r=0;r<e;r++)this.offsets.push(i),i+=t,this.heights.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.height=function(e){return this.heights[e]},i.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},i.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},i.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},i.prototype.offset=function(e){return this.offsets[e]},i.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},i.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,n.slice(0,e+1).concat(n.slice(e+1).map(function(e){return e+i})))},t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function s(e){return Math.max(e,0)}function l(e){this.offset=e}function u(e){this.skip=e}t.ScrollAction=l;t.PageAction=u,r.prototype.create=function(e,t,n,i,r,o,a){void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a="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=o,this.direction=a;e=this.rowsForHeight(r),n=s(t-e);this.onScrollAction(new l(this.rowOffset(n))),this.onPageAction(new u(n))},r.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,i=e.offsetHeight,e=e.offsetWidth,n="vertical"===this.direction?n:t,t="vertical"===this.direction?i:e;this.lastScrollTop!==n&&(i=this.lastScrollTop>=n,this.lastScrollTop=n,e=this.rowHeightService.index(s(n-this.topOffset)),n=this.rowHeightService.index(s(n+t-this.bottomOffset)),!i&&n>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,this.onScrollAction(new l(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new u(this.firstLoaded))),i&&e<=this.firstLoaded&&(t=Math.floor(.3*this.take),this.firstLoaded=s(e-t),this.onScrollAction(new l(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new u(this.firstLoaded))))},r.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},r.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))};var i=r;function r(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}t.ScrollerService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),r=n(26),o=n(27),a=n(28),s=n(18),l=((n={})[s.CalendarViewEnum.month]=o.MonthViewService,n[s.CalendarViewEnum.year]=a.YearViewService,n[s.CalendarViewEnum.decade]=r.DecadeViewService,n[s.CalendarViewEnum.century]=i.CenturyViewService,n);function u(e){this.bottom=s.CalendarViewEnum.month,this.top=s.CalendarViewEnum.century,this.onViewChanged=e}u.prototype.configure=function(e,t){this.bottom=e,this.top=t},u.prototype.service=function(e,t){return new l[""+e](t)},u.prototype.moveDown=function(e,t){this.move(e,-1,t)},u.prototype.moveUp=function(e,t){this.move(e,1,t)},u.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},u.prototype.canMoveDown=function(e){return this.bottom<e},u.prototype.canMoveUp=function(e){return e<this.top},u.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},u.prototype.move=function(e,t,n){t=this.clamp(void 0!==(t=s.CalendarViewEnum[s.CalendarViewEnum[e+t]])?t:e);t!==e&&this.onViewChanged({view:t},n)},t.BusViewService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),k=n(1),S=n(2);function r(){this.didCalculate=!1}r.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},r.prototype.calculateHeights=function(e){var t,l,n,i,u,c,p,d,h,f,m,g,v,r,o,a,s,y,b,w,D,O=this;S.canUseDOM&&(l=k.domContainerFactory("div"),n=k.domContainerFactory("ul"),i=k.domContainerFactory("li"),u=k.domContainerFactory("td"),c=k.domContainerFactory("th"),p=k.domContainerFactory("tr"),d=k.domContainerFactory("tbody"),h=k.domContainerFactory("thead"),f=k.domContainerFactory("table"),m=function(){return l('\n <span class="k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title">\n <span className="k-button-text">March 2017</span>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack"><span class="k-nav-today">TODAY</span></span>\n ',"k-calendar-header k-hstack")},g=function(e,t){return new Array(e).fill("1").map(t)},v=function(e){return l(e,"k-content k-calendar-content k-scrollable")},r=function(e){return e.querySelector(".k-scrollable")},a=(y=function(e,i,r){var o,a=e.cells,s=e.rows;return function(){return S.canUseDOM?(o||(t=s,n=void 0===a?1:a,t=f([d([p([u("1","k-calendar-td k-alt")])].concat(g(t,function(){return p(g(n,function(e){return u('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=i,o=l(r?[m(),f([h([p([c("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-table k-calendar-weekdays"),v([t,t])]:[m(),v([t,t])],e,{left:"-10000px",position:"absolute"})),o):null;var e,t,n}})({cells:7,rows:6},"k-calendar-view k-calendar-monthview k-vstack",!0),s=y({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!(o=function(e){var t=r(e);return t.className=t.className+" k-scrollable-horizontal",e})),y=y({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),b=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},w=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},D=function(e){return e.querySelector("tbody")},this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(a(),function(e){var t=D(e);O.calendarHeight=b(e),O.monthViewHeight=b(t),O.headerHeight=b(t.children[0]),O.scrollableContentHeight=b(r(e))}),this.batch(o(a()),function(e){var t=D(e);O.calendarWidth=w(e),O.monthViewWidth=w(t),O.scrollableContentWidth=w(r(e))}),this.batch(s(),function(e){O.yearViewHeight=b(D(e)),O.scrollableYearContentHeight=b(r(e))}),this.batch(o(s()),function(e){O.yearViewWidth=w(D(e))}),this.batch(y(),function(e){O.decadeViewHeight=b(D(e)),O.centuryViewHeight=O.decadeViewHeight}),this.batch(o(y()),function(e){O.decadeViewWidth=w(D(e)),O.centuryViewWidth=O.decadeViewWidth}),this.batch(S.canUseDOM?t=t||l([v([n([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null,function(e){O.navigationItemHeight=b(e.querySelector("li"))}))},r.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},r.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},r.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}},r.prototype.batch=function(e,t){var n=this.hostContainer||document.body,e=n.appendChild(e);t(e),n.removeChild(e)},t.DOMService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i={33:o.Action.PrevView,34:o.Action.NextView,35:o.Action.LastInView,36:o.Action.FirstInView,37:o.Action.Left,38:o.Action.Up,39:o.Action.Right,40:o.Action.Down,"meta+38":o.Action.UpperView,"meta+40":o.Action.LowerView};function r(e){this.bus=e}r.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return i[e]},r.prototype.move=function(e,t,n,i,r){return i?t===o.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,r),e):t===o.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,r),e):i.move(e,t):e},t.NavigationService=r},function(e,t,n){"use strict";function i(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=e,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=e,function(e){return e*t})},i.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)}n.target===this.view.element&&(this.navScrolled?this.navScrolled=!1:(this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)))}},i.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},i.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},i.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},t.ScrollSyncService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);function r(e){this.intl=e}r.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},t.WeekNamesService=r},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),l=n(4),u=n(0),c=n(32),p=n(1),d=n(17),n=(o=s.Component,r(h,o),Object.defineProperty(h.prototype,"take",{get:function(){return(void 0!==this.props.take?this.props:h.defaultProps).take},enumerable:!0,configurable:!0}),h.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0},h.prototype.render=function(){var t=this,e=(this.calculateHeights(),this.lastView!==this.props.activeView),n=p.dateInRange(this.props.focusedDate,this.props.min,this.props.max),e=e?this.props.service.skip(n,this.props.min):this.state.skip,i=this.props.service.total(this.props.min,this.props.max),r=this.getTake(e,i),o=this.props.service.addToDate(this.props.min,e),o=this.props.service.datesList(o,r),r=(this.props.activeView===this.lastView&&u.isEqual(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min)),s.createElement(d.Virtualization,{skip:e,take:this.take,total:i,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},s.createElement("ul",{ref:function(e){t.list=e},className:"k-reset"},o.map(function(e){return t.buildNavigationItem(e)}))));return s.createElement("div",{className:"k-calendar-navigation"},s.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?r:null)},h.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},h.propTypes={activeView:l.number.isRequired,focusedDate:l.instanceOf(Date).isRequired,max:l.instanceOf(Date).isRequired,min:l.instanceOf(Date).isRequired,onChange:l.func,take:l.number},h.defaultProps={take:30},h);function h(e){var r=o.call(this,e)||this,e=(r.topOffset=0,r.handleVirtualizationMount=function(e){r.virtualization=e,r.virtualization&&r.list&&(r.list.style.transform="translateY("+r.topOffset+"px)",e=p.dateInRange(r.props.focusedDate,r.props.min,r.props.max),e=r.props.service.skip(e,r.props.min),r.virtualization.scrollToIndex(e))},r.buildNavigationItem=function(e){var t=r.props.service.navigationTitle(e),n=r.props.service.isRangeStart(e),i="kendo-react-calendar-nav-item-"+e.getTime(),e={text:t,value:e,isRangeStart:n,view:r.props.activeView,onClick:r.handleDateChange};return r.props.navigationItem?s.createElement(r.props.navigationItem,a({},e,{key:i}),t):s.createElement(c.CalendarNavigationItem,a({},e,{key:i}),t)},r.calculateHeights=function(){var e=r.props.dom.calendarHeight;r.itemHeight=r.props.dom.navigationItemHeight||1,r.maxViewHeight=r.props.dom.monthViewHeight,r.topOffset=(e-r.itemHeight)/2,r.bottomOffset=e-r.itemHeight},r.handleDateChange=function(e,t){var n=r.props.onChange;n&&(e={value:u.cloneDate(e),target:r,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,e))},r.handleScrollAction=function(e){var t=e.scrollAction,e=e.pageAction,e=(e||r.state).skip;r.state.skip!==e&&r.setState({skip:e}),r.list&&t&&(e="translateY("+t.offset+"px)",r.list.style.transform=e)},r.lastView=r.props.activeView,r.lastFocus=r.props.focusedDate,r.props.service.skip(r.props.focusedDate,r.props.min)),t=r.props.service.total(r.props.min,r.props.max);return r.state={skip:0<e-r.getTake(e,t)?e:0},r}t.Navigation=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),i=(t.KendoDate=i.KendoDate,n(33));t.Mask=i.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),s=n(33),i=n(34);function r(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=f.getDate(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}Object.defineProperty(r.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),r.prototype.setValue=function(e){e?f.isEqual(e,this._value)||(this._value=f.cloneDate(e),this.modifyExisting(!0)):(this._value=f.getDate(new Date),this.modifyExisting(!1))},r.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)},r.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return f.cloneDate(this.value)},r.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},r.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)},r.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}},r.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}},r.prototype.modifyPart=function(e,t){var n=f.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=f.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},r.prototype.parsePart=function(e,t){if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var n=this.intl.formatDate(this.value,this.format),i=this.dateFormatString(this.value,this.format),r=i.symbols,o=!1,a="",s="",l="",u=0;u<n.length;u++)r[u]===e?(s+=this.getExisting(e)?n[u]:"0",o=!0):o?l+=n[u]:a+=n[u];for(var c=null,p=this.matchMonth(t);0<s.length&&"0"===s.charAt(0);)s=s.slice(1);for(4<=s.length&&(s=""),u=0;u<2;u++){var d=s+t,h=parseInt(d,10);if((c=this.intl.parseDate(a+d+l,this.format))||isNaN(h)||isNaN(parseInt(t,10))||("M"!==e||p||-1<(h=h-1)&&h<12&&((c=f.cloneDate(this.value)).setMonth(h),c.getMonth()!==h&&(c=f.lastDayOfMonth(f.addMonths(c,-1)))),"y"===e&&(c=f.createDate(parseInt(d,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&&c.getDate()!==this.value.getDate()&&(c=f.lastDayOfMonth(f.addMonths(c,-1))))),c)return this._value=c,this.setExisting(e,!0),{value:this.value};s=""}return p&&(c=this.intl.parseDate(a+p+l,this.format))?(this._value=c,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(i.partMap,e)?null:((i={})[e]=!0,i),this.setExisting(e,!1)),{value:null})},r.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(i.dateSymbolMap,{})[e]},r.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},r.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},r.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},r.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""},r.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[]},r.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],r=[],o=0;o<n.length;o++)for(var a=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<a;)i.push(this.symbols[n[o].pattern[0]]||"_"),r.push(n[o]),a--;t=new s.Mask;return t.symbols=i.join(""),t.partMap=r,t},r.prototype.merge=function(e,t){for(var n="",i="",r=t.symbols,o=r.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(r[o])||this.getExisting(r[o]))n=e[o]+n,i=r[o]+i;else{for(var a=r[o];0<=o&&a===r[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=r[o]+i}return{text:n,format:i}},r.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},t.KendoDate=r},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),V=this&&this.__assign||function(){return(V=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}).apply(this,arguments)},N=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},R=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),s=n(15),A=n(0),F=n(2),l=n(11),u=n(14),c=n(16),p=n(1),d=n(1),j=n(7),L=n(5),h=n(36),f=n(37),H=n(21),n=(r=R.Component,o(B,r),Object.defineProperty(B.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?A.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:B.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:B.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dateInputComp",{get:function(){return this.props.dateInput||B.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||B.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"calendarComp",{get:function(){return this.props.calendar||B.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"popupComp",{get:function(){return this.props.popup||B.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||B.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"validity",{get:function(){var e=d.isInDateRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,e=(!this.required||null!==this.value)&&e,e=void 0!==this.props.valid?this.props.valid:e;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:e,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:B.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:B.defaultProps).required},enumerable:!0,configurable:!0}),B.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},B.prototype.componentDidUpdate=function(){this._calendar&&this._calendar.element&&this.show&&!this.prevShow&&this._calendar.element.focus({preventScroll:!0}),this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},B.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},B.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?B.defaultProps.size:t,t=e.rounded,o=void 0===t?B.defaultProps.rounded:t,t=e.fillMode,a=void 0===t?B.defaultProps.fillMode:t,t=e.disabled,n=e.tabIndex,s=e.title,l=e.id,u=e.format,c=e.formatPlaceholder,p=e.min,d=e.max,h=e.weekNumber,f=e.focusedDate,m=e.className,g=e.width,v=e.name,y=e.validationMessage,b=e.required,w=e.validityStyles,D=e.ariaLabelledBy,O=e.ariaDescribedBy,e=e.ariaLabel,k=this.props.popupSettings,S=k.popupClass,k=N(k,["popupClass"]),P=this.show,_=this.value,I=_&&A.getDate(_),C=!this.validityStyles||this.validity.valid,S=F.classNames("k-calendar-container k-group k-reset",S),M={disabled:t,format:u,formatPlaceholder:c,id:l,ariaLabelledBy:D,ariaDescribedBy:O,ariaLabel:e,max:d,min:p,name:v,onChange:this.handleInputValueChange,required:b,tabIndex:P?-1:n,title:s,valid:this.validity.valid,validationMessage:y,validityStyles:w,value:_,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},E=V({show:P,anchor:this._element,className:S,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},k),T={disabled:t,value:I,min:p,max:d,weekNumber:h,focusedDate:f,onChange:this.handleCalendarValueChange},x=L.provideLocalizationService(this).toLanguageString(j.toggleCalendar,j.messages[j.toggleCalendar]),u=R.createElement(F.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t,n=e.onFocus,e=e.onBlur;return R.createElement("span",{role:"group","aria-expanded":i.show,ref:function(e){i._element=e},className:F.classNames("k-input","k-datepicker",((t={})["k-input-"+(F.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-"+(F.kendoThemeMaps.roundedMap[o]||o)]=o,t["k-input-"+a]=a,t["k-invalid"]=!C,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),m),onKeyDown:i.handleKeyDown,style:{width:g},onFocus:n,onBlur:e},R.createElement(i.dateInputComp,V({_ref:i._dateInput},M)),R.createElement(i.toggleButtonComp,{tabIndex:-1,type:"button",icon:"calendar",title:x,className:"k-input-button",rounded:null,onClick:i.handleIconClick,"aria-label":x,onMouseDown:i.handleIconMouseDown}),R.createElement(i.popupComp,V({},E),R.createElement(i.calendarComp,V({_ref:i.setCalendarRef},T))))});return this.props.label?R.createElement(H.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:C,editorDisabled:this.props.disabled,children:u,style:{width:this.props.width}}):u},B.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},B.prototype.mergeTime=function(e){return this.value&&e?p.setTime(e,this.value):e},B.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},B.displayName="DatePicker",B.propTypes={className:a.string,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel: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,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},B.defaultProps={defaultShow:!1,defaultValue:null,dateInput:u.DateInput,calendar:c.Calendar,toggleButton:h.ToggleButton,popup:s.Popup,pickerWrap:f.PickerWrap,disabled:!1,format:"d",max:p.MAX_DATE,min:p.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},B);function B(e){var i=r.call(this,e)||this;return i._popupId=F.guid(),i._element=null,i._dateInput=R.createRef(),i._calendar=null,i.shouldFocusDateInput=!1,i.focus=function(){i.dateInput&&i.dateInput.focus()},i.setCalendarRef=function(e){i._calendar=e},i.nextValue=function(e,t){return(void 0!==e.value?e:t).value},i.nextShow=function(e,t){return(void 0!==e.show?e: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:A.cloneDate(e||void 0),show:!1}),i.valueDuringOnChange=e,i.showDuringOnChange=!1,i.shouldFocusDateInput=!0;e=i.props.onChange;e&&e.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(){i.setState({focused:!0})},i.handleBlur=function(){i.setState({focused:!1}),i.setShow(!1)},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===F.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==F.Keys.up&&n!==F.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===F.Keys.up,i.setShow(n===F.Keys.down))},F.validatePackage(l.packageMetadata),i.state={value:i.props.defaultValue||B.defaultProps.defaultValue,show:i.props.defaultShow||B.defaultProps.defaultShow,focused:!1},i}t.DatePickerWithoutContext=n,t.DatePickerPropsContext=F.createPropsContext(),t.DatePicker=F.withPropsContext(t.DatePickerPropsContext,n),t.DatePicker.displayName="KendoReactDatePicker",L.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=this&&this.__assign||function(){return(E=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}).apply(this,arguments)},T=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},x=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),V=n(15),s=n(0),N=n(2),R=n(5),l=n(2),u=n(11),A=n(7),c=n(14),F=n(55),p=n(1),d=n(9),j=n(21),L=n(6),n=(r=x.Component,o(H,r),Object.defineProperty(H.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?s.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),i=d.isInRange(e,t,n),r=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&i,i=void 0!==this.props.valid?this.props.valid:i;return{customError:r,rangeOverflow:d.isBiggerThanMax(e,n),rangeUnderflow:d.isSmallerThanMin(e,t),valid:i,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:H.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:H.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"popupSettings",{get:function(){return this.props.popupSettings||H.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:H.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:H.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInputComp",{get:function(){return this.props.dateInput||H.defaultProps.dateInput},enumerable:!0,configurable:!0}),H.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},H.prototype.componentDidUpdate=function(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},H.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?H.defaultProps.size:t,t=e.rounded,o=void 0===t?H.defaultProps.rounded:t,t=e.fillMode,a=void 0===t?H.defaultProps.fillMode:t,t=e.disabled,n=e.tabIndex,s=e.title,l=e.id,u=e.className,c=e.format,p=e.formatPlaceholder,d=e.smoothScroll,h=e.width,f=e.name,m=e.steps,g=e.cancelButton,v=e.nowButton,y=e.validationMessage,b=e.required,w=e.validityStyles,D=e.ariaLabelledBy,e=e.ariaDescribedBy,O=this.popupSettings,k=O.popupClass,O=T(O,["popupClass"]),S=!this.validityStyles||this.validity.valid,k=N.classNames("k-group k-reset",k),P={disabled:t,format:c,formatPlaceholder:p,id:l,ariaLabelledBy:D,ariaDescribedBy:e,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:f,onChange:this.handleInputValueChange,required:b,steps:m,tabIndex:this.show?-1:n,title:s,valid:this.validity.valid,validationMessage:y,validityStyles:w,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},_=E({show:this.show,animate:null!==this.element,anchor:this.element,className:k,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},O),I=x.createElement(F.TimeSelector,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:g,disabled:t,nowButton:v,format:c,min:this.min,max:this.max,steps:m,smoothScroll:d,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),p=R.provideLocalizationService(this),C=p.toLanguageString(A.toggleClock,A.messages[A.toggleClock]),M=p.toLanguageString(A.toggleTimeSelector,A.messages[A.toggleTimeSelector]),D=x.createElement(N.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t,n=e.onFocus,e=e.onBlur;return x.createElement("div",{ref:function(e){i._element=e},className:N.classNames("k-input","k-timepicker",((t={})["k-input-"+(N.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-"+(N.kendoThemeMaps.roundedMap[o]||o)]=o,t["k-input-"+a]=a,t["k-invalid"]=!S,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),u),onKeyDown:i.handleKeyDown,style:{width:h},onFocus:n,onBlur:e},x.createElement(i.dateInputComp,E({_ref:i._dateInput},P)),x.createElement(L.Button,E({tabIndex:-1,type:"button",icon:"clock",onMouseDown:i.handleIconMouseDown,onClick:i.handleIconClick,title:M,"aria-label":M,className:"k-input-button",rounded:null},{"aria-controls":i._popupId,"aria-label":C})),i.props.popup?x.createElement(i.props.popup,E({},_),I):x.createElement(V.Popup,E({},_),I))});return this.props.label?x.createElement(j.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:S,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},H.prototype.normalizeTime=function(e){return p.setTime(p.MIDNIGHT_DATE,e)},H.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},H.prototype.mergeTime=function(e){return this.value&&e?p.setTime(this.value,e):e},H.displayName="TimePicker",H.propTypes={className:a.string,cancelButton:a.bool,nowButton:a.bool,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy: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,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},H.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:p.MAX_TIME,min:p.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:c.DateInput,size:"medium",rounded:"medium",fillMode:"solid"},H);function H(e){var i=r.call(this,e)||this;return i._popupId=N.guid(),i._element=null,i._dateInput=x.createRef(),i._timeSelector=null,i.shouldFocusDateInput=!1,i.focus=function(){i.dateInput&&i.dateInput.focus()},i.setTimeSelectorRef=function(e){i._timeSelector=e},i.nextValue=function(e,t){return(void 0!==e.value?e:t).value},i.nextShow=function(e,t){return(void 0!==e.show?e:t).show},i.handleInputValueChange=function(e){var t=i.mergeTime(e.value);i.handleValueChange(E({},e,{value:t}))},i.handleValueChange=function(e){i.setState({value:s.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(){i.setState({focused:!0})},i.handleBlur=function(){i.setState({focused:!1}),i.setShow(!1)},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===N.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==N.Keys.up&&n!==N.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===N.Keys.up,i.setShow(n===N.Keys.down))},l.validatePackage(u.packageMetadata),i.state={value:i.props.defaultValue||H.defaultProps.defaultValue,show:i.props.defaultShow||H.defaultProps.defaultShow,focused:!1},i.normalizeTime=i.normalizeTime.bind(i),i.setShow=i.setShow.bind(i),i.mergeTime=i.mergeTime.bind(i),i}t.TimePickerWithoutContext=n,t.TimePickerPropsContext=N.createPropsContext(),t.TimePicker=N.withPropsContext(t.TimePickerPropsContext,n),t.TimePicker.displayName="KendoReactTimePicker",R.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=this&&this.__assign||function(){return(f=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}).apply(this,arguments)},m=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),s=n(0),g=n(2),v=n(5),y=n(7),l=n(1),u=n(9),b=n(38),w=n(6),n=((n=t.Direction||(t.Direction={}))[n.Left=0]="Left",n[n.Right=1]="Right",r=m.Component,o(c,r),Object.defineProperty(c.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?s.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"intl",{get:function(){return v.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"current",{get:function(){return null!==this.state.current?s.cloneDate(this.state.current):null},enumerable:!0,configurable:!0}),c.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},c.prototype.render=function(){var t=this,e=this.props,n=e.format,i=e.cancelButton,r=e.disabled,o=e.tabIndex,a=e.className,s=e.smoothScroll,l=e.min,u=e.max,c=e.boundRange,p=e.nowButton,e=e.steps,d=v.provideLocalizationService(this),h=d.toLanguageString(y.timePickerCancel,y.messages[y.timePickerCancel]),d=d.toLanguageString(y.timePickerSet,y.messages[y.timePickerSet]);return m.createElement("div",{ref:function(e){t._element=e},tabIndex:r?void 0:o||0,className:g.classNames("k-timeselector k-reset",a,{"k-disabled":r}),onKeyDown:this.handleKeyDown},m.createElement(b.TimePart,{ref:function(e){t.timePart=e},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:s,min:l,max:u,boundRange:c,disabled:r,nowButton:p,steps:e,show:this.props.show}),m.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},i&&m.createElement(w.Button,f({type:"button",ref:function(e){t._cancelButton=e},className:"k-time-cancel",onClick:this.handleReject,title:h},{"aria-label":h}),h),m.createElement(w.Button,f({type:"button",ref:function(e){t._acceptButton=e},className:"k-time-accept",themeColor:"primary",onClick:this.handleAccept,title:d},{"aria-label":d}),d)))},c.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},c.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},c.propTypes={cancelButton:a.bool,className:a.string,disabled:a.bool,format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),max:a.instanceOf(Date),min:a.instanceOf(Date),nowButton:a.bool,steps:a.shape({hour:a.number,minute:a.number,second:a.number}),smoothScroll:a.bool,tabIndex:a.number,value:a.instanceOf(Date),show:a.bool},c.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:l.MIN_TIME,max:l.MAX_TIME,boundRange:!1},c);function c(e){var n=r.call(this,e)||this;return n.focusActiveList=function(){n.timePart&&n.timePart.focus({preventScroll:!0})},n.handleKeyDown=function(e){return e.keyCode!==g.Keys.enter?void 0:void(n.hasActiveButton()||n.handleAccept(e))},n.handleAccept=function(e){var t=n.mergeValue(s.cloneDate(n.value||u.getNow()),n.timePart?n.timePart.value:n.current),t=(n.setState({value:t}),n.valueDuringOnChange=t,n.props.onChange);t&&t.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:n.value,target:n}),n.valueDuringOnChange=void 0},n.handleReject=function(e){n.setState({current:n.value});var t=n.props.onReject;t&&t.call(void 0,e)},n.handleNowClick=function(e){var t=n.mergeValue(s.cloneDate(n.value||u.getNow()),u.getNow()),t=(n.setState({current:t,value:t}),n.valueDuringOnChange=t,n.props.onChange);t&&t.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:n.value,target:n}),n.valueDuringOnChange=void 0},n.handleChange=function(e){n.setState({current:e})},n.dateFormatParts=n.intl.splitDateFormat(n.props.format||c.defaultProps.format),n.mergeValue=u.valueMerger(u.generateGetters(n.dateFormatParts)),n.hasActiveButton=n.hasActiveButton.bind(n),n.state={current:n.props.value||l.MIDNIGHT_DATE,value:n.props.value||c.defaultProps.value},n}t.TimeSelector=n,v.registerForIntl(n),v.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o,a=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),l=n(4),u=n(0),c=n(2),p=n(5),d=n(17),h=n(57),f=n(58),n=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=((r={})[h.TIME_PART.dayperiod]=f.DayPeriodService,r[h.TIME_PART.hour]=f.HoursService,r[h.TIME_PART.minute]=f.MinutesService,r[h.TIME_PART.second]=f.SecondsService,r),h=(o=s.Component,a(v,o),Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"min",{get:function(){return this.props.min||v.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return this.props.max||v.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):v.defaultProps.step},enumerable:!0,configurable:!0}),v.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())})},v.prototype.componentDidUpdate=function(){var e;this.virtualization&&(e=this.service.selectedIndex(this.props.value),this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0)},v.prototype.render=function(){var e,t,n,i=this;if(this.props.part.type&&g[this.props.part.type])return this.calculateHeights(),this.intl=p.provideIntlService(this),this.service=new g[this.props.part.type](this.intl),this.configureServices(),e=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",t=this.service.total(this.props.value),n=s.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},e.map(function(e,t){return s.createElement("li",{key:t,className:"k-item",onClick:function(){i.handleChange(e)}},s.createElement("span",null,e.text))})),s.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(e){i._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:n,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(e){i.virtualization=e},role:"presentation",skip:0,tabIndex:-1,take:t,topOffset:this.topOffset,total:t}):s.createElement("div",{className:"k-time-container"},n))},v.propTypes={id:l.number,max:l.instanceOf(Date),min:l.instanceOf(Date),part:function(e,t,n){e=e[t];if(e&&g[e.type])return null;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){e=e[t];if(void 0!==e&&e<=0)throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n "+t+" cannot be less than 1.\n ");return null},value:l.instanceOf(Date),smoothScroll:l.bool,show:l.bool},v.defaultProps={boundRange:!1,max:n.MAX_TIME,min:n.MIDNIGHT_DATE,step:1,smoothScroll:!0},v);function v(e){var r=o.call(this,e)||this;return r.animateToIndex=!1,r.focus=function(e){Promise.resolve().then(function(){r.element&&r.element.focus(e)})},r.itemOffset=function(e){if(!r.virtualization)return-1;var t=r.service.selectedIndex(r.props.value),n=r.virtualization.activeIndex(),i=r.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);if(t===n&&e<2)return i;t=n<t;return t&&e>=r.bottomThreshold||!t&&e>r.topThreshold?r.virtualization.itemOffset(n+1):i},r.calculateHeights=function(){r.dom.didCalculate&&(r.itemHeight=r.dom.itemHeight,r.listHeight=r.dom.timeListHeight,r.topOffset=(r.listHeight-r.itemHeight)/2,r.bottomOffset=r.listHeight-r.itemHeight,r.topThreshold=.05*r.itemHeight,r.bottomThreshold=.95*r.itemHeight)},r.configureServices=function(e){var e=void 0===e?r.props:e,t=e.min,n=e.max,e=e.value,t=r.service.limitRange(t||r.min,n||r.max,e||r.props.value),n=t[0],e=t[1];r.service.configure(r.serviceSettings({min:n,max:e}))},r.serviceSettings=function(e){var t={boundRange:r.props.boundRange||v.defaultProps.boundRange,insertUndividedMax:!1,min:u.cloneDate(r.min),max:u.cloneDate(r.max),part:r.props.part,step:r.step},t=Object.assign({},t,e);return t.boundRange="hour"!==t.part.type||r.props.boundRange||v.defaultProps.boundRange,t},r.handleScrollAction=function(e){var t=e.target,e=e.animationInProgress;r.virtualization&&t&&!e&&(r.animateToIndex=!1,e=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),t=r.service.data(r.props.value)[e],r.handleChange(t))},r.handleFocus=function(e){var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleMouseOver=function(){r._element&&document&&document.activeElement!==r._element&&r.props.show&&r._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode,t=(t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault(),(m[e.keyCode]||c.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value)));t&&r.handleChange(t)},r.handleChange=function(e){var t,e=r.service.apply(r.props.value,e.value);r.props.value.getTime()!==e.getTime()&&(r.setState({value:e}),(t=r.props.onChange)&&t.call(void 0,e))},r.dom=new f.DOMService,r}t.TimeList=h,p.registerForIntl(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(20);t.TIME_PART=n.TIME_PART},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),i=(t.DayPeriodService=i.DayPeriodService,n(60)),i=(t.DOMService=i.DOMService,n(61)),i=(t.HoursService=i.HoursService,n(62)),i=(t.MinutesService=i.MinutesService,n(63));t.SecondsService=i.SecondsService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){return(e=i.cloneDate(e)).setHours(t),e}function a(e){return null!==e&&e<12}var i=n(0);function r(e){this.intl=e}r.prototype.apply=function(e,t){var n=e.getHours(),i=a(n),t=a(t.getHours());if(i&&t||!i&&!t)return e;var i=this.normalizedRange(),r=i[0],i=i[1],i=void 0===i?24:i;return o(e,Math.min(Math.max(r,n+(t?-12:12)),i||24))},r.prototype.configure=function(e){var t=e.min,t=void 0===t?this.min:t,n=e.max,n=void 0===n?this.max:n,e=e.part,e=void 0===e?this.part:e;this.min=t,this.max=n,this.part=e},r.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n=[],i=this.normalizedRange(),r=i[0],i=i[1],t=this.intl.dateFormatNames(t);return a(r)&&n.push({text:t.am,value:o(this.min,r)}),null!==i&&(!i||11<i)&&n.push({text:t.pm,value:o(this.min,Math.max(12,i))}),this.min.getHours()!==r?n.reverse():n},r.prototype.isRangeChanged=function(e,t){return!1},r.prototype.limitRange=function(e,t,n){return[e,t]},r.prototype.total=function(){var e=this.normalizedRange(),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},r.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},r.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())},r.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},t.DayPeriodService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(2);function i(){this.didCalculate=!1}i.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},i.prototype.calculateHeights=function(e){var t,n,i,r;a.canUseDOM&&(i=o.domContainerFactory("div"),n=o.domContainerFactory("span"),r=o.domContainerFactory("ul"),t=o.domContainerFactory("li"),n=i([n("minute","k-title"),i([i([r([t("<span>02</span>","k-item")],"k-reset")],"k-content k-calendar-content k-scrollable k-time-container")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),r=(i=e&&e.querySelector(".k-time-container")||document.body).appendChild(n),this.timeListHeight=r.querySelector(".k-scrollable").offsetHeight,this.itemHeight=r.querySelector("li").offsetHeight,i.removeChild(r),this.didCalculate=!0)},t.DOMService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e%24}function i(e,t){return o(24+e-t)}function r(n){return function(e,t){return t&&a.getDate(e).getTime()!==a.getDate(t).getTime()?l.setHours(e,n):e}}var a=n(0),s=n(1),l=n(9),u=r(0),c=r(23);function p(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}p.prototype.apply=function(e,t){return l.setHours(e,t.getHours())},p.prototype.configure=function(e){var t=this,n=e.boundRange,n=void 0===n?this.boundRange:n,i=e.insertUndividedMax,i=void 0===i?this.insertUndividedMax:i,r=e.min,r=void 0===r?this.min:r,o=e.max,o=void 0===o?this.max:o,a=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=n,this.insertUndividedMax=i,this.toListItem=function(e){e=l.setHours(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,a.pattern),value:e}},this.min=r,this.max=o,this.step=e},p.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],r=(t=r,n=this.step,l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(t+e*n))}));return this.addLast(r),e&&this.addMissing(r,e),r},p.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},p.prototype.limitRange=function(e,t,n){return this.boundRange?[u(e,n),c(t,n)]:[e,t]},p.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},p.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},p.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},p.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},p.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},p.prototype.countFromMin=function(e){var e=this.range(e),t=e[0],e=e[1];return Math.floor(i(e,t)/this.step)+1},p.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},p.prototype.isLastMissing=function(e){return this.isMissing(l.setHours(this.max,this.lastHour(e)))},p.prototype.divideByStep=function(e){return i(e.getHours(),this.min.getHours())/this.step},p.prototype.lastHour=function(e){return this.range(e)[1]},p.prototype.range=function(e){var e=this.limitRange(this.min,this.max,e),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},t.HoursService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e%60}function i(e,t){return o(60+e-t)}function r(n){return function(e,t){return t&&e.getHours()!==t.getHours()?l.setMinutes(e,n):e}}var a=n(0),s=n(1),l=n(9),u=r(0),c=r(59);function p(e){this.intl=e,this.insertUndividedMax=!1}p.prototype.apply=function(e,t){return l.setMinutes(e,t.getMinutes())},p.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,r=e.max,r=void 0===r?this.max:r,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=l.setMinutes(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=r,this.step=e},p.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],r=(t=r,n=this.step,l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(t+e*n))}));return this.addLast(r),e&&this.addMissing(r,e),r},p.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},p.prototype.limitRange=function(e,t,n){return[u(e,n),c(t,n)]},p.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},p.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},p.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},p.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},p.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},p.prototype.countFromMin=function(e){var e=this.range(e),t=e[0],e=e[1];return Math.floor(i(e,t)/this.step)+1},p.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},p.prototype.isLastMissing=function(e){return this.isMissing(l.setMinutes(this.max,this.lastMinute(e)))},p.prototype.divideByStep=function(e){return i(e.getMinutes(),this.min.getMinutes())/this.step},p.prototype.lastMinute=function(e){return this.range(e)[1]},p.prototype.range=function(e){var e=this.limitRange(this.min,this.max,e),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},t.MinutesService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e%60}function i(e,t){return o(60+e-t)}function r(n){return function(e,t){return!t||e.getMinutes()===t.getMinutes()&&e.getHours()===t.getHours()?e:l.setSeconds(e,n)}}var a=n(0),s=n(1),l=n(9),u=r(0),c=r(59);function p(e){this.intl=e,this.insertUndividedMax=!1}p.prototype.apply=function(e,t){return l.setSeconds(e,t.getSeconds())},p.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,r=e.max,r=void 0===r?this.max:r,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=l.setSeconds(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=r,this.step=e},p.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],r=(t=r,n=this.step,l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(t+e*n))}));return this.addLast(r),e&&this.addMissing(r,e),r},p.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},p.prototype.limitRange=function(e,t,n){return[u(e,n),c(t,n)]},p.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},p.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},p.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},p.prototype.divideByStep=function(e){return i(e.getSeconds(),this.min.getSeconds())/this.step},p.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},p.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},p.prototype.countFromMin=function(e){var e=this.range(e),t=e[0],e=e[1];return Math.floor(i(e,t)/this.step)+1},p.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},p.prototype.isLastMissing=function(e){return this.isMissing(l.setSeconds(this.max,this.lastSecond(e)))},p.prototype.lastSecond=function(e){return this.range(e)[1]},p.prototype.range=function(e){var e=this.limitRange(this.min,this.max,e),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},t.SecondsService=p},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),s=n(22),l=n(10),u=n(2),c=n(0),n=n(8),o=(r=a.Component,o(p,r),Object.defineProperty(p.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===l.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:p.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:p.defaultProps).max},enumerable:!0,configurable:!0}),p.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},p.prototype.render=function(){var t=this,n=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,e=u.classNames("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===l.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===l.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===l.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===l.CalendarViewEnum.century});return a.createElement("div",{ref:function(e){t._element=e},className:e},this.props.dates.map(function(e){return a.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:e.getTime()},a.createElement(s.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:n,selectedDate:t.props.value,showWeekNumbers:t.weekNumber,onChange:t.handleDateChange,onCellEnter:t.props.onCellEnter,cell:t.props.cell,weekCell:t.props.weekCell}))}))},p.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:n.MIN_DATE,max:n.MAX_DATE},p);function p(e){var i=r.call(this,e)||this;return i.isActive=!1,i.focusActiveDate=function(){var e,t;i._element&&(e=i._element.querySelector("td.k-focus"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-focus"))&&e.classList.remove("k-focus"),i.isActive=!1)},i.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}},i.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=i.props.onChange;n&&(e={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:c.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,e))},i}t.HorizontalViewList=o},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(u=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}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),p=n(15),s=n(0),d=n(2),h=n(5),l=n(2),f=n(11),m=n(14),g=n(39),v=n(10),y=n(8),b=n(7),w=n(6),n=n(1),o=(r=c.Component,o(D,r),Object.defineProperty(D.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"calendar",{get:function(){return this._calendar},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:this.state).value)||v.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:D.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:D.defaultProps).max},enumerable:!0,configurable:!0}),D.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},D.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},D.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},D.prototype.render=function(){var t=this,e=this.value||v.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,r=d.classNames("k-daterangepicker",{"k-disabled":this.props.disabled},this.props.className),o=h.provideLocalizationService(this),a=o.toLanguageString(b.start,b.messages[b.start]),s=o.toLanguageString(b.end,b.messages[b.end]),o=o.toLanguageString(b.separator,b.messages[b.separator]),a=u({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:e.start,onChange:this.handleStartChange}),s=u({label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:e.end,onChange:this.handleEndChange}),l=u({animate:null!==this._element,anchor:this._element,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),e=u({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}),e=this.props.calendar?c.createElement(this.props.calendar,u({},e)):c.createElement(g.MultiViewCalendar,u({},e,{ref:this.setCalendarRef})),n=c.createElement(w.Button,u({className:"k-select",fillMode:"flat",title:h.provideLocalizationService(this).toLanguageString(b.swapStartEnd,b.messages[b.swapStartEnd]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+i,"aria-label":h.provideLocalizationService(this).toLanguageString(b.swapStartEnd,b.messages[b.swapStartEnd])}),c.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return c.createElement("span",{ref:function(e){t._element=e},className:r,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},this.props.startDateInput?c.createElement(this.props.startDateInput,u({},a)):c.createElement(m.DateInput,u({},a,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?n:o,this.props.endDateInput?c.createElement(this.props.endDateInput,u({},s)):c.createElement(m.DateInput,u({},s,{ref:this._endDateInput})),this.props.popup?c.createElement(this.props.popup,u({},l),e):c.createElement(p.Popup,u({},l),e))},D.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({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0}))},D.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},D.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},D.displayName="DateRangePicker",D.propTypes={allowReverse:a.bool,calendarSettings:a.any,className:a.string,defaultShow:a.bool,defaultValue:a.shape({start:n.nullable(a.instanceOf(Date).isRequired),end:n.nullable(a.instanceOf(Date).isRequired)}),disabled:a.bool,endDateInputSettings:a.shape(m.DateInputWithoutContext.propTypes),focusedDate:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),id:a.string,ariaLabelledBy:a.string,ariaDescribedBy: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:n.nullable(a.instanceOf(Date).isRequired),end:n.nullable(a.instanceOf(Date).isRequired)})},D.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:v.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:y.MAX_DATE,min:y.MIN_DATE,swapButton:!1},D);function D(e){var i=r.call(this,e)||this;return i._element=null,i._calendar=null,i._startDateInput=c.createRef(),i._endDateInput=c.createRef(),i._popupId=d.guid(),i._startInputId=d.guid(),i._endInputId=d.guid(),i.shouldFocusDateInput=!1,i.shouldFocusCalendar=!1,i.focus=function(){i.startDateInput&&i.startDateInput.focus()},i.setCalendarRef=function(e){i._calendar=e},i.focusCalendarElement=function(){i._calendar&&i._calendar.element&&i._calendar.element.focus({preventScroll:!0})},i.calculateValue=function(e,t){return(void 0!==e.value?e:t).value||v.EMPTY_SELECTIONRANGE},i.calculateShow=function(e,t){return(void 0!==e.show?e:t).show},i.handleReverseClick=function(e){var t={start:i.value.end,end:i.value.start},e={syntheticEvent:e,nativeEvent:e.nativeEvent};i.handleChange(t,e)},i.handleReverseMouseDown=function(e){e.preventDefault()},i.handleFocus=function(e){clearTimeout(i.nextTickId),i.shouldFocusDateInput||i.setShow(!0),i.startDateInput&&i.startDateInput.element&&i.startDateInput.element.classList.add("k-focus"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.add("k-focus");var t=i.props.onFocus;t&&t.call(void 0,e)},i.handleBlur=function(e){i.nextTick(function(){i.startDateInput&&i.startDateInput.element&&i.startDateInput.element.classList.remove("k-focus"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.remove("k-focus"),i.setShow(!1)});var t=i.props.onBlur;t&&t.call(void 0,e)},i.handleEndChange=function(e){var t={start:i.value.start,end:s.cloneDate(e.value||void 0)};i.handleChange(t,e)},i.handleStartChange=function(e){var t={start:s.cloneDate(e.value||void 0),end:i.value.end};i.handleChange(t,e)},i.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||v.EMPTY_SELECTIONRANGE;e=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==i.value.end?e:i.value.start,end:null!==i.value.start?e:i.value.end}},i.handleCalendarChange=function(e){var t=i.extractRangeFromValue(e);i.handleChange(t,e)},i.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===d.Keys.esc?(e.preventDefault(),i.shouldFocusDateInput=!0,i.setShow(!1)):n&&t===d.Keys.down?(e.preventDefault(),i.shouldFocusCalendar=!0,i.setShow(!0)):t===d.Keys.tab&&i.show&&i._calendar&&i._calendar.element&&i.endDateInput&&i.endDateInput.element&&document&&document.activeElement===i.endDateInput.element&&(e.preventDefault(),i.focusCalendarElement())},i.handleChange=function(e,t){i.setState({value:e}),i.valueDuringOnChange=e;e=i.props.onChange;e&&(t={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:i.value,show:i.show,target:i},e.call(void 0,t)),i.valueDuringOnChange=void 0},l.validatePackage(f.packageMetadata),i.state={show:i.props.show||i.props.defaultShow||D.defaultProps.defaultShow,value:i.props.value||i.props.defaultValue||D.defaultProps.defaultValue},i.nextTick=i.nextTick.bind(i),i.setShow=i.setShow.bind(i),i.focusCalendarElement=i.focusCalendarElement.bind(i),i.focusDateInputElement=i.focusDateInputElement.bind(i),i}t.DateRangePickerWithoutContext=o,t.DateRangePickerPropsContext=d.createPropsContext(),t.DateRangePicker=d.withPropsContext(t.DateRangePickerPropsContext,o),t.DateRangePicker.displayName="KendoReactDateRangePicker",h.registerForLocalization(o)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=this&&this.__assign||function(){return(T=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}).apply(this,arguments)},x=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),V=n(15),s=n(0),N=n(2),l=n(14),u=n(2),R=n(6),c=n(11),p=n(1),A=n(7),F=n(5),j=n(67),d=n(9),h=n(8),L=n(21),n=(r=x.Component,o(H,r),Object.defineProperty(H.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?s.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:H.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:H.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validity",{get:function(){var e=p.isInDateRange(this.value,this.min,this.max)&&d.isInTimeRange(this.value,this.props.minTime||h.MIN_TIME,this.props.maxTime||p.MAX_TIME),t=void 0!==this.props.validationMessage,e=(!this.required||null!==this.value)&&e,e=void 0!==this.props.valid?this.props.valid:e;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:e,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:H.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:H.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInputComp",{get:function(){return this.props.dateInput||H.defaultProps.dateInput},enumerable:!0,configurable:!0}),H.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},H.prototype.componentDidUpdate=function(){var e=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),e&&!this.show&&this.shouldFocusDateInput&&e.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},H.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},H.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?H.defaultProps.size:t,t=e.rounded,o=void 0===t?H.defaultProps.rounded:t,t=e.fillMode,a=void 0===t?H.defaultProps.fillMode:t,s=e.disabled,t=e.tabIndex,n=e.title,l=e.id,u=e.format,c=e.formatPlaceholder,p=e.min,d=e.max,h=e.weekNumber,f=e.focusedDate,m=e.className,g=e.width,v=e.name,y=e.validationMessage,b=e.required,w=e.validityStyles,D=e.cancelButton,O=e.minTime,k=e.maxTime,S=e.ariaLabelledBy,P=e.ariaDescribedBy,_=e.popup,I=void 0===_?V.Popup:_,C=e.calendar,M=!this.validityStyles||this.validity.valid,E={id:l,ariaLabelledBy:S,ariaDescribedBy:P,format:u,formatPlaceholder:c,disabled:s,title:n,validityStyles:w,validationMessage:y,required:b,min:p,max:d,minTime:O,maxTime:k,name:v,tabIndex:this.show?-1:t,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},_=x.createElement(N.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},function(e){var t,n=e.onFocus,e=e.onBlur;return x.createElement("div",{ref:function(e){i._element=e},className:N.classNames("k-input","k-datetimepicker",((t={})["k-input-"+(N.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-"+(N.kendoThemeMaps.roundedMap[o]||o)]=o,t["k-input-"+a]=a,t["k-invalid"]=!M,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),m),onKeyDown:i.handleKeyDown,style:{width:g},onFocus:n,onBlur:e},x.createElement(i.dateInputComp,T({_ref:i._dateInput},E)),x.createElement(R.Button,T({tabIndex:-1,type:"button",icon:"calendar",onMouseDown:i.handleIconMouseDown,onClick:i.handleDateIconClick,title:F.provideLocalizationService(i).toLanguageString(A.toggleDateTimeSelector,A.messages[A.toggleDateTimeSelector]),className:"k-input-button",rounded:null},{"aria-controls":i._popupId,"aria-label":F.provideLocalizationService(i).toLanguageString(A.toggleDateTimeSelector,A.messages[A.toggleDateTimeSelector])})),x.createElement(I,{show:i.show,animate:null!==i.element,anchor:i.element,className:"k-datetime-container k-group k-reset",id:i._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},x.createElement(j.DateTimeSelector,{ref:function(e){i._dateTimeSelector=e},cancelButton:D,steps:i.props.steps,value:i.value,onChange:i.handleValueChange,onReject:i.handleReject,disabled:s,weekNumber:h,min:i.min,max:i.max,minTime:O,maxTime:k,focusedDate:f,format:u,calendar:C})))});return this.props.label?x.createElement(L.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:M,editorDisabled:this.props.disabled,children:_,style:{width:this.props.width}}):_},H.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},H.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},H.displayName="DateTimePicker",H.propTypes={className:a.string,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy: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,cancelButton:a.bool,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},H.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:p.MAX_DATE,min:p.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:l.DateInput,size:"medium",rounded:"medium",fillMode:"solid"},H);function H(e){var i=r.call(this,e)||this;return i._popupId=N.guid(),i._element=null,i._dateInput=x.createRef(),i._dateTimeSelector=null,i.shouldFocusDateInput=!1,i.prevShow=!1,i.focus=function(){var e=i.dateInputElement();e&&e.focus()},i.handleReject=function(){i.shouldFocusDateInput=!0,i.setShow(!1)},i.handleValueChange=function(e){i.setState({value:s.cloneDate(e.value||void 0),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(){i.setState({focused:!0})},i.handleBlur=function(){i.setState({focused:!1}),i.setShow(!1)},i.handleDateIconClick=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===N.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==N.Keys.up&&n!==N.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===N.Keys.up,i.setShow(n===N.Keys.down))},i.dateInputElement=function(){return i.dateInput&&i.dateInput.element||i.element&&i.element.querySelector(".k-dateinput > input.k-input-inner")},u.validatePackage(c.packageMetadata),i.state={value:i.props.defaultValue||H.defaultProps.defaultValue,show:i.props.defaultShow||H.defaultProps.defaultShow,focused:!1},i}t.DateTimePickerWithoutContext=n,t.DateTimePickerPropsContext=N.createPropsContext(),t.DateTimePicker=N.withPropsContext(t.DateTimePickerPropsContext,n),t.DateTimePicker.displayName="KendoReactDateTimePicker",F.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(h=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}).apply(this,arguments)},f=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),m=n(5),g=n(7),v=n(6),y=n(16),b=n(38),w=n(1),a=n(0),D=n(2),s=n(8),l=n(9),n=(r=f.Component,o(u,r),Object.defineProperty(u.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"timePart",{get:function(){return this._timePart},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!0,configurable:!0}),u.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},u.prototype.render=function(){var t=this,e=this.props,n=e.disabled,i=e.cancelButton,r=e.min,o=e.max,a=e.weekNumber,s=e.focusedDate,e=e.format,l=D.classNames({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-disabled":n},"k-datetime-wrap"),u=m.provideLocalizationService(this),c=u.toLanguageString(g.date,g.messages[g.date]),p=u.toLanguageString(g.time,g.messages[g.time]),d=u.toLanguageString(g.dateTimePickerCancel,g.messages[g.dateTimePickerCancel]),u=u.toLanguageString(g.dateTimePickerSet,g.messages[g.dateTimePickerSet]),r={min:r,max:o,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return f.createElement("div",{onKeyDown:this.handleKeyDown,className:l,tabIndex:-1},f.createElement("div",{className:"k-datetime-buttongroup"},f.createElement(v.ButtonGroup,{width:"100%"},f.createElement(v.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},c),f.createElement(v.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},p))),f.createElement("div",{className:"k-datetime-selector"},f.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(e){return t._calendarWrap=e}},this.props.calendar?f.createElement(this.props.calendar,h({},r)):f.createElement(y.Calendar,h({ref:function(e){t._calendar=e}},r))),f.createElement("div",{className:"k-datetime-time-wrap"},f.createElement(b.TimePart,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(e){t._timePart=e},min:this.minTime||w.MIN_TIME,max:this.maxTime||w.MAX_TIME,steps:this.props.steps,value:this.state.timeValue,format:e,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),f.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},i&&f.createElement(v.Button,h({type:"button",ref:function(e){t._cancelButton=e},className:"k-time-cancel",onClick:this.handleReject,title:d},{"aria-label":d}),d),f.createElement(v.Button,h({type:"button",themeColor:"primary",ref:function(e){t._acceptButton=e},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:u},{"aria-label":u}),u)))},Object.defineProperty(u.prototype,"minTime",{get:function(){return void 0!==this.props.minTime?this.props.minTime:this.normalizeRange(this.props.min,this.state.dateValue)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maxTime",{get:function(){return void 0!==this.props.maxTime?this.props.maxTime:this.normalizeRange(this.props.max,this.state.dateValue)},enumerable:!0,configurable:!0}),u.prototype.normalizeRange=function(e,t){return a.isEqualDate(e,t||w.getToday())?e:null},u.prototype.hasActiveButton=function(){return!!this._acceptButton&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},u.prototype.mergeTime=function(e,t){return e&&t?w.setTime(t,e):t},u.prototype.mergeDate=function(e,t){return e?w.setTime(e||w.getToday(),t):t},u);function u(e){var i=r.call(this,e)||this;return i._calendarWrap=null,i.focus=function(t){Promise.resolve().then(function(){"time"===i.state.tab&&i._timePart&&i._timePart.focus(t);var e=i.calendarElement();"date"===i.state.tab&&e&&e.focus(t)})},i.calendarElement=function(){return i._calendar&&i._calendar.element||i._calendarWrap&&i._calendarWrap.querySelector(".k-widget.k-calendar")},i.move=function(e){"right"===e&&"time"===i.state.tab||"left"===e&&"date"===i.state.tab||(e="left"===e?"date":"time",i.shouldFocusPart=!0,i.setState({tab:e}))},i.handleReject=function(e){i.setState({dateValue:i.props.value,timeValue:i.props.value||s.MIDNIGHT_DATE});var t=i.mergeDate(i.props.value,i.props.value||s.MIDNIGHT_DATE);i.props.onReject&&(e={nativeEvent:e.nativeEvent,syntheticEvent:e,target:i,value:t},i.props.onReject.call(void 0,e))},i.handleAccept=function(e,t){i.state.dateValue&&i.state.timeValue&&i.hasDateValue&&(t=i.mergeDate(i.state.dateValue,t||i.state.timeValue),i.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:t,target:i}))},i.handleNowClick=function(e){i.setState({timeValue:l.getNow()}),i.handleAccept(e,l.getNow())},i.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),i.setState({dateValue:e.value,tab:"time"}),i.shouldFocusPart=!0},i.handleTimeListContainerChange=function(e){i.setState({timeValue:e})},i.handleDateClick=function(e){e.stopPropagation(),i.move("left")},i.handleTimeClick=function(e){e.stopPropagation(),i.move("right")},i.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;switch(t){case D.Keys.enter:return void(!i.hasActiveButton()&&i.hasDateValue&&i.handleAccept(e));case D.Keys.left:return n?void i.move("left"):void 0;case D.Keys.right:return n?void i.move("right"):void 0;default:return}},i.handleTimePartMount=function(e){i.setState({timeValue:e})},i.state={tab:"date",dateValue:i.props.value,timeValue:i.props.value||s.MIDNIGHT_DATE},i}t.DateTimeSelector=n,m.registerForLocalization(n)}],i={},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=40)}}});
|
|
1
|
+
System.register("@progress/kendo-react-dateinputs",["react","prop-types","@progress/kendo-date-math","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-labels","@progress/kendo-react-intl","@progress/kendo-react-popup"],function(a){var o,s,l,u,c,p,d,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){d=t(e)},function(e){h=t(e)}],execute:function(){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}var n,i;n=[function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return null!=e}var r=n(0),o=n(0),a=n(13);t.isEqualRange=function(e,t){var e=e||a.EMPTY_SELECTIONRANGE,n=e.start,e=e.end,t=t||a.EMPTY_SELECTIONRANGE,i=t.start,t=t.end;return null!==n&&null!==e&&null!==i&&null!==t&&r.isEqual(n,i)&&r.isEqual(e,t)},t.nullable=function(o){function e(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];return null===t[n]?null:(e?o.isRequired:o).apply(void 0,[t,n].concat(i))}var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t},t.viewInRange=function(e,t,n){return void 0===t||void 0===n||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);t.isValidRange=function(e,t){return!i(e)||!i(t)||e<=t},t.setTime=function(e,t){e=r.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},t.getToday=function(){return o.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&e<t||n&&n<e)},t.isInDateRange=function(e,t,n){return null===e||!(t&&o.getDate(t)>o.getDate(e)||n&&o.getDate(n)<o.getDate(e))},t.isInSelectionRange=function(e,t){var t=t||a.EMPTY_SELECTIONRANGE,n=t.start,t=t.end;return!(!n||!t)&&n<e&&e<t},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.intersects=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},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?r.cloneDate(t):n&&n<e?r.cloneDate(n):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}}},function(e,t){e.exports=c},function(e,t){e.exports=o},function(e,t){e.exports=s},function(e,t){e.exports=d},function(e,t){e.exports=u},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.start="daterangepicker.start",t.end="daterangepicker.end",t.separator="daterangepicker.separator",t.toggleDateTimeSelector="datetimepicker.toggleDateTimeSelector",t.now="timepicker.now",t.selectNow="timepicker.selectNow",t.timePickerCancel="timepicker.cancel",t.timePickerSet="timepicker.set",t.toggleTimeSelector="timepicker.toggleTimeSelector",t.toggleClock="timepicker.toggleClock",t.date="datetimepicker.date",t.time="datetimepicker.time",t.dateTimePickerCancel="datetimepicker.cancel",t.dateTimePickerSet="datetimepicker.set",t.messages=((i={})[t.today]="TODAY",i[t.now]="NOW",i[t.timePickerSet]="Set",i[t.timePickerCancel]="Cancel",i[t.date]="Date",i[t.time]="Time",i[t.dateTimePickerCancel]="Cancel",i[t.dateTimePickerSet]="Set",i[t.start]="Start",i[t.end]="End",i[t.separator]=" ",i[t.selectNow]="Select Now",i[t.toggleTimeSelector]="Toggle TimeSelector",i[t.toggleClock]="Toggle Clock",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[t.toggleDateTimeSelector]="Toggle date-time selector",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});function i(n){return function(e,t){e=s.cloneDate(e);return e[n](t),e}}function a(e,t,n){return{candidateValue:u.setTime(u.MIDNIGHT_DATE,e),maxValue:s.addDays(u.setTime(u.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:u.setTime(u.MIDNIGHT_DATE,t)}}var r,o,s=n(0),l=n(20),u=n(1),n=[{type:l.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:l.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:l.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:l.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(r=n,function(e){return r.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t}),t.generateSnappers=(o=n,function(n,s){return o.map(function(e){var i,r,o,a,t=Math.floor(n[e.type]);return t?(i=e.getter,r=t,o=s,a=e.type,function(e){var t=i(e),n=i(o);return"hour"===a?t-(t-n)%r:e.getTime()<=o.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=s.cloneDate(e);return t.setHours.apply(t,n.map(function(e){return e(t)})),t}},t.setHours=i("setHours"),t.setMinutes=i("setMinutes"),t.setSeconds=i("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};t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=a(e,t,n),r=i.candidateValue,o=i.minValue,i=i.maxValue;return r<o?u.setTime(e,t):i<r?u.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;e=a(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue;return n<=t&&t<=e},t.isInRange=function(e,t,n){if(null===e)return!0;e=a(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue;return n<=t&&t<=e},t.isSmallerThanMin=function(e,t){if(null===e||null===t)return!1;e=u.setTime(u.MIDNIGHT_DATE,e),t=u.setTime(u.MIDNIGHT_DATE,t);return e.getTime()<t.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;e=u.setTime(u.MIDNIGHT_DATE,e);return u.setTime(u.MIDNIGHT_DATE,t).getTime()<e.getHours()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),i=(t.Action=i.Action,n(18)),i=(t.CalendarViewEnum=i.CalendarViewEnum,n(13));t.EMPTY_SELECTIONRANGE=i.EMPTY_SELECTIONRANGE},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1652189022,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.Action||(t.Action={}))[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView",t[t.LowerView=8]="LowerView",t[t.UpperView=9]="UpperView"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,o,t){"use strict";var i,n,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__assign||function(){return(g=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}).apply(this,arguments)},v=(Object.defineProperty(o,"__esModule",{value:!0}),t(3)),a=t(4),s=t(0),y=t(6),b=t(5),l=t(51),w=t(2),D=t(35),u=t(2),c=t(11),O=t(34),p=t(1),k=t(7),d=t(9),t=t(8),r=(n=v.Component,r(S,n),S.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},S.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},S.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},S.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?S.defaultProps.size:t,t=e.fillMode,o=void 0===t?S.defaultProps.fillMode:t,t=e.rounded,a=void 0===t?S.defaultProps.rounded:t,s=(this.props._ref&&(this.props._ref.current=this),b.provideLocalizationService(this)),e=g({},S.defaultProps,this.props),t=e.min,n=e.max,l=e.name,u=e.label,e=e.id,c=this.text,p=c===this.props.placeholder?"":c,d=c===this.props.placeholder?c:void 0,h=e||this._inputId,f=!this.validityStyles||this.validity.valid,m={"aria-valuemin":null===t?void 0:t.getTime(),"aria-valuemax":null===n?void 0:n.getTime(),"aria-valuetext":p},e=(null!==this.value&&(m["aria-valuenow"]=this.value.getTime()),O.wrapperClasses.slice()),t=(this.props.className&&e.push(this.props.className),v.createElement(w.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},function(e){var t,n=e.onFocus,e=e.onBlur;return v.createElement("span",{ref:function(e){i._wrapper=e},style:u?void 0:{width:i.props.width},dir:i.props.dir,className:w.classNames("k-dateinput","k-input",((t={})["k-input-"+(w.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-input-"+o]=o,t["k-rounded-"+(w.kendoThemeMaps.roundedMap[a]||a)]=a,t["k-invalid"]=!f,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),i.props.className),onFocus:n,onBlur:e},v.createElement("input",g({role:"spinbutton",tabIndex:i.props.tabIndex,disabled:i.props.disabled,title:void 0!==i.props.title?i.props.title:c,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input-inner",id:h,"aria-label":i.props.ariaLabel,"aria-labelledby":i.props.ariaLabelledBy,"aria-describedby":i.props.ariaDescribedBy,"aria-expanded":i.props.ariaExpanded,"aria-haspopup":i.props.ariaHasPopup,onWheel:i.wheel,onClick:i.elementClick,onInput:i.elementChange,onPaste:i.handlePaste,onKeyDown:i.elementKeyDown,onChange:w.noop,value:p,placeholder:d,name:l},m,{ref:function(e){return i._element=e}})),i.props.children,i.props.spinners&&v.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:i.spinnersMouseDown},v.createElement(y.Button,{tabIndex:-1,type:"button",className:"k-spinner-increase",icon:"arrow-n","aria-label":s.toLanguageString(k.increaseValue,k.messages[k.increaseValue]),title:s.toLanguageString(k.increaseValue,k.messages[k.increaseValue]),onClick:i.increasePart}),v.createElement(y.Button,{tabIndex:-1,type:"button",className:"k-spinner-decrease",icon:"arrow-s","aria-label":s.toLanguageString(k.decreaseValue,k.messages[k.decreaseValue]),title:s.toLanguageString(k.decreaseValue,k.messages[k.decreaseValue]),onClick:i.decreasePart})))}));return u?v.createElement(D.FloatingLabel,{label:u,editorId:h,editorValue:c,editorValid:f,editorDisabled:this.props.disabled,children:t,style:{width:this.props.width}}):t},Object.defineProperty(S.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:S.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:S.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"text",{get:function(){var e=g({},o.DateInput.defaultProps,this.props),t=e.formatPlaceholder,t=void 0===t?S.defaultProps.formatPlaceholder:t,n=e.format,n=void 0===n?S.defaultProps.format:n,i=e.value,r=e.defaultValue,r=(null===this.kendoDate?(this.kendoDate=new l.KendoDate(this.intl.bind(this),t,n),this.kendoDate.setValue(i||r||null)):(this.kendoDate.format=n,this.kendoDate.formatPlaceholder=t),void 0!==i&&this.value!==i&&this.kendoDate.setValue(i),this.kendoDate.getTextAndFormat()),n=r.text,t=r.format;return this.currentFormat=t,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?n:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"validity",{get:function(){var e=O.isInRange(this.value,this.min,this.max)&&d.isInTimeRange(this.value,this.props.minTime,this.props.maxTime),t=void 0!==this.props.validationMessage,e=(!this.required||null!==this.value)&&e,e=void 0!==this.props.valid?this.props.valid:e;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:e,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:S.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:S.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),S.prototype.intl=function(){return b.provideIntlService(this)},Object.defineProperty(S.prototype,"selection",{get:function(){var e={start:0,end:0};return e=null!==this.element&&void 0!==this.element.selectionStart?{start:this.element.selectionStart,end:this.element.selectionEnd}:e},enumerable:!0,configurable:!0}),S.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)})},S.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!s.isEqual(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},S.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{start:t=t<0?0:t,end:n}},S.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},S.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,t=t.end;if(n<t&&this.currentFormat[n]!==this.currentFormat[t-1])this.setSelection(this.selectionByIndex(0<e?n:t-1));else{for(var i=this.currentFormat[n],r=n+e;0<r&&r<this.currentFormat.length&&(this.currentFormat[r]===i||"_"===this.currentFormat[r]);)r+=e;if("_"!==this.currentFormat[r]){for(var o=r;0<=o&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[r];)o+=e;o<r&&(o+1!==n||r+1!==t)?this.setSelection({start:o+1,end:r+1}):r<o&&(r!==n||o!==t)&&this.setSelection({start:r,end:o})}}},S.prototype.modifyDateSegmentValue=function(e,t){var n,i,r;this.kendoDate&&(n=this.value,i=this.currentFormat[this.selection.start],r=this.kendoDate.symbolMap(i),r=((this.props.steps||{})[r]||1)*e,this.kendoDate.modifyPart(i,r),this.triggerChange(t,n))},S.displayName="DateInput",S.propTypes={value:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,ariaExpanded:a.oneOfType([a.bool]),onChange:a.func,validationMessage:a.string,required:a.bool,validate:a.bool,valid:a.bool,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},S.defaultProps={format:O.defaultFormat,size:"medium",rounded:"medium",fillMode:"solid",formatPlaceholder:O.defaultFormatPlaceholder,spinners:!1,disabled:!1,max:s.cloneDate(p.MAX_DATE),min:s.cloneDate(p.MIN_DATE),minTime:s.cloneDate(t.MIN_TIME),maxTime:s.cloneDate(t.MAX_TIME),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},S);function S(e){var o=n.call(this,e)||this;return o.kendoDate=null,o.paste=!1,o._element=null,o._wrapper=null,o._inputId=w.guid(),o.focus=function(){o._element&&o._element.focus()},o.setValidity=function(){o.element&&o.element.setCustomValidity&&o.element.setCustomValidity(o.validity.valid?"":o.props.validationMessage||S.defaultProps.validationMessage)},o.updateOnPaste=function(e){var t,n;o.element&&o.kendoDate&&(t=b.provideIntlService(o).parseDate(o.element.value,o.props.format)||o.value,n=o.value,o.kendoDate.setValue(t),o.triggerChange(e,n))},o.spinnersMouseDown=function(e){e.preventDefault(),o.element&&document.activeElement!==o.element&&o.element.focus({preventScroll:!0})},o.handlePaste=function(){o.paste=!0},o.elementChange=function(e){if(o.element&&o.kendoDate){if(o.paste)return o.updateOnPaste(e),void(o.paste=!1);var t=o.kendoDate.getTextAndFormat(),n=t.text,t=t.format,t=(o.currentFormat=t,o.value),i=O.approximateStringMatching(n,o.currentFormat,o.element.value,o.selection.start),n=1===i.length&&"_"===i[0][1];if(!n)for(var r=0;r<i.length;r++)o.kendoDate.parsePart(i[r][0],i[r][1]);i.length&&"_"!==i[0][0]&&o.setSelection(o.selectionBySymbol(i[0][0])),n&&o.switchDateSegment(1),o.triggerChange(e,t)}},o.elementClick=function(e){o.setSelection(o.selectionByIndex(o.selection.start))},o.nativeWheel=function(e){e.preventDefault()},o.wheel=function(e){document.activeElement===o.element&&(e.nativeEvent.deltaY<0&&o.increasePart(e),0<e.nativeEvent.deltaY&&o.decreasePart(e))},o.increasePart=function(e){o.modifyDateSegmentValue(1,e)},o.decreasePart=function(e){o.modifyDateSegmentValue(-1,e)},o.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:o.switchDateSegment(-1);break;case 38:o.modifyDateSegmentValue(1,e);break;case 39:o.switchDateSegment(1);break;case 40:o.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},o.elementOnFocus=function(e){o.wrapper&&o.wrapper.classList.add("k-focus"),o.setState({focused:!0})},o.elementOnBlur=function(e){o.wrapper&&o.wrapper.classList.remove("k-focus"),o.setState({focused:!1})},u.validatePackage(c.packageMetadata),o.state={focused:!1},o}o.DateInputWithoutContext=r,o.DateInputPropsContext=w.createPropsContext(),o.DateInput=w.withPropsContext(o.DateInputPropsContext,r),o.DateInput.displayName="KendoReactDateInput",b.registerForIntl(r),b.registerForLocalization(r)},function(e,t){e.exports=h},function(e,t,n){"use strict";function i(e){return e?e.virtualization:null}function o(e,t,n,i){return void 0===e&&(e=D.defaultProps.min),void 0===t&&(t=D.defaultProps.max),void 0!==i?null!==i&&b.isInRange(d.getDate(i),e,t)?i:null:null!==n&&b.isInRange(d.getDate(n),e,t)?n:null}var r,a,s=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||function(){return(l=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}).apply(this,arguments)},u=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),c=n(4),p=n(2),d=n(0),h=n(5),f=n(11),m=n(41),g=n(50),v=n(8),y=n(10),b=n(1),w=n(19),D=(a=u.Component,s(O,a),Object.defineProperty(O.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"min",{get:function(){return d.getDate((void 0!==this.props.min?this.props:O.defaultProps).min)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"max",{get:function(){return d.getDate((void 0!==this.props.max?this.props:O.defaultProps).max)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"bottomView",{get:function(){return y.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:O.defaultProps).bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"topView",{get:function(){return y.CalendarViewEnum[(void 0!==this.props.topView?this.props:O.defaultProps).topView]},enumerable:!0,configurable:!0}),O.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new w.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())})},O.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.didNavigationChange=!1,this.oldValue=this.value},O.prototype.render=function(){var t=this,e=(this.props._ref&&this.props._ref(this),null!==this.value&&null!==this.oldValue?!d.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue),n=b.viewInRange(this.state.activeView,y.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:O.defaultProps).bottomView],y.CalendarViewEnum[(void 0!==this.props.topView?this.props:O.defaultProps).topView]),i=o(this.min,this.max,this.value,this.value),r=i?d.getDate(i):null,e=(this.focusedDate=d.getDate(b.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),p.classNames("k-widget k-calendar k-calendar-infinite",{"k-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className)),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},n=[this.props.navigation&&u.createElement(g.Navigation,{key:0,ref:function(e){t.Navigation=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem}),u.createElement(m.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,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,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 u.createElement("div",l({},i,{ref:function(e){t._element=e},className:e,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,role:"grid",tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick}),n)},O.displayName="Calendar",O.propTypes={className:c.string,defaultActiveView:c.oneOf(["month","year","decade","century"]),defaultValue:c.instanceOf(Date),disabled:c.bool,focusedDate:c.instanceOf(Date),id:c.string,ariaLabelledBy:c.string,ariaDescribedBy:c.string,max:c.instanceOf(Date),min:c.instanceOf(Date),navigation:c.bool,smoothScroll:c.bool,onBlur:c.func,onChange:c.func,onFocus:c.func,tabIndex:c.number,value:c.instanceOf(Date),weekNumber:c.bool,topView:function(e,t,n){var i=e[t],e=e.bottomView;return i&&e&&y.CalendarViewEnum[i]<y.CalendarViewEnum[e]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n "):null},bottomView:function(e,t,n){var i=e[t],e=e.topView;return i&&e&&y.CalendarViewEnum[i]>y.CalendarViewEnum[e]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},O.defaultProps={disabled:!1,min:v.MIN_DATE,max:v.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},O);function O(e){var r=a.call(this,e)||this,t=(r.cellUID=p.guid(),r.id=p.guid(),r.isActive=!1,r.didNavigationChange=!1,r.focus=function(){r._element&&r._element.focus()},r.shouldScroll=function(){return r.didNavigationChange},r.handleScroll=function(e){r.scrollSyncService&&r.scrollSyncService.sync(i(r.Navigation),i(r.calendarViewList),e)},r.handleNavigationChange=function(e){r.props.disabled||(r.didNavigationChange=!0,e=d.cloneDate(e.value),r.setState({focusedDate:e}))},r.handleViewChange=function(e){e=e.view;r.scrollSyncService.configure(e),r.setState({activeView:e})},r.handleDateChange=function(e){var t=d.cloneDate(e.value),n=d.cloneDate(e.value),i=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(i){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:n});r.bus.moveToBottom(r.state.activeView)}r.setState({value:t,focusedDate:n}),r.valueDuringOnChange=t;i=r.props.onChange;i&&(n={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r},i.call(void 0,n)),r.valueDuringOnChange=void 0}},r.handleFocus=function(e){var t;r.isActive=!0,r.calendarViewList&&(r.calendarViewList.focusActiveDate(),(t=r.props.onFocus)&&t.call(void 0,e))},r.handleBlur=function(e){var t;r.isActive=!1,r.calendarViewList&&(r.calendarViewList.blurActiveDate(),(t=r.props.onBlur)&&t.call(void 0,e))},r.handleKeyDown=function(e){if(e.keyCode===p.Keys.enter){null!==r.value&&d.isEqualDate(r.focusedDate,r.value)&&(t=b.dateInRange(r.focusedDate,r.min,r.max),i(r.calendarViewList).scrollToIndex(r.service.skip(t,r.min)));var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{t=b.dateInRange(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(d.isEqualDate(r.focusedDate,t))return;r.setState({focusedDate:t})}e.preventDefault()},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},p.validatePackage(f.packageMetadata),o(r.min,r.max,r.props.defaultValue||O.defaultProps.defaultValue,r.props.value));return r.state={value:t,activeView:b.viewInRange(y.CalendarViewEnum[e.defaultActiveView],r.bottomView,r.topView),focusedDate:b.dateInRange(e.focusedDate||t||b.getToday(),r.min,r.max)},r.dom=new w.DOMService,r.bus=new w.BusViewService(r.handleViewChange),r.navigation=new w.NavigationService(r.bus),r.oldValue=t,r}t.CalendarWithoutContext=D,t.CalendarPropsContext=p.createPropsContext(),t.Calendar=p.withPropsContext(t.CalendarPropsContext,D),t.Calendar.displayName="KendoReactCalendar",h.registerForIntl(D)},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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 o,a,s=n(3),l=n(4),u=n(2),c=n(42),p=((n=o=t.ScrollDirection||(t.ScrollDirection={}))[n.Backward=0]="Backward",n[n.Forward=1]="Forward",(n={})[o.Forward]=function(t){return function(e){return e+t}},n[o.Backward]=function(t){return function(e){return e-t}},n),d=((n={})[o.Forward]=function(t){return function(e){return Math.min(e,t)}},n[o.Backward]=function(t){return function(e){return Math.max(e,t)}},n),h=((n={})[o.Forward]=function(t){return function(e){return e<t}},n[o.Backward]=function(t){return function(e){return t<e}},n),n=(a=s.Component,r(f,a),Object.defineProperty(f.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"direction",{get:function(){return(void 0!==this.props.direction?this.props:f.defaultProps).direction},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"scrollOffsetSize",{get:function(){return(void 0!==this.props.scrollOffsetSize?this.props:f.defaultProps).scrollOffsetSize},enumerable:!0,configurable:!0}),f.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},f.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},f.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},f.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},f.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},f.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},f.prototype.render=function(){var t=this,e=(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),""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset)),e="vertical"===this.direction?{height:e+"px"}:{width:e+"px"},n=u.classNames("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),i=u.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return s.createElement("div",{ref:function(e){t.scrollContainer=e},onScroll:this.handleScroll,className:n,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,s.createElement("div",{style:e,className:i}))},f.propTypes={bottomOffset:l.number.isRequired,className:l.string,direction:l.oneOf(["horizontal","vertical"]),forceScroll:l.bool,itemHeight:l.number,itemWidth:l.number,maxScrollDifference:l.number,onScroll:l.func,onScrollAction:l.func,scrollDuration:l.number,scrollOffsetSize:l.number,skip:l.number.isRequired,tabIndex:l.number,take:l.number.isRequired,topOffset:l.number.isRequired,total:l.number.isRequired,role:l.string},f.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},f);function f(e){var l=a.call(this,e)||this;return l.animationInProgress=!1,l.scrollTo=function(e){var t="vertical"===l.direction?"scrollTop":"scrollLeft";l.scrollContainer&&(l.scrollContainer[t]=e)},l.scrollToIndex=function(e){void 0!==l.scrollToIndexTimeout&&window.cancelAnimationFrame(l.scrollToIndexTimeout),l.rowHeightService&&(l.scrollToIndexTimeout=window.requestAnimationFrame(function(){l.animationInProgress=!1,l.scrollTo(l.rowHeightService.offset(e))}))},l.animateToIndex=function(e){var t,n,i,r,o,a,s;l.rowHeightService&&window&&(window.cancelAnimationFrame(l.cancelAnimation),e=l.rowHeightService.offset(e),t=l.getContainerScrollDirection(e),e=l.scrollRange(e,t),n=e.start,e=e.end,n!==e&&(i=l.scrollStep(n,e),r=p[t](i),o=d[t](e),a=h[t](r(e)),s=function(e){l.animationInProgress=!0;var t=r(e);l.scrollTo(o(t)),a(t)?l.cancelAnimation=window.requestAnimationFrame(function(){s(t)}):l.animationInProgress=!1},l.cancelAnimation=window.requestAnimationFrame(function(){s(n)})))},l.scrollToBottom=function(){l.rowHeightService&&l.scrollTo(l.rowHeightService.totalHeight()+l.props.bottomOffset)},l.scrollStep=function(e,t){var n=l.props.scrollDuration||f.defaultProps.scrollDuration;return Math.abs(t-e)/(n/17)},l.scrollRange=function(e,t){var n=l.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var i=l.containerMaxScroll(),t=t===o.Backward?1:-1,n=(r=l.props.maxScrollDifference,Math.min(Math.abs(e-n),r)),r=Math.min(e,i);return{start:Math.min(Math.max(r+t*n,0),i),end:r}},l.containerMaxScroll=function(){return l.containerScrollSize-l.containerOffsetSize},l.getContainerScrollDirection=function(e){return e<l.containerScrollPosition?o.Backward:o.Forward},l.initServices=function(e){void 0===e&&(e=l.props);var t="vertical"===l.direction?e.itemHeight:e.itemWidth;void 0!==t&&(l.rowHeightService=new c.RowHeightService(e.total,t,0),l.scrollerService.create(l.rowHeightService,e.skip,e.take,e.total,e.topOffset,l.scrollOffsetSize,l.direction))},l.getContainerProperty=function(e){return l.scrollContainer?l.scrollContainer[e]:0},l.handleScroll=function(e){var t,n,i;l.scrollContainer&&l.rowHeightService&&(t=e.target,l.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth}),i=l.rowHeightService.index(l.containerScrollPosition-l.props.topOffset),n=l.props.onScrollAction,i={index:i,target:t,scrollAction:l.scrollAction,pageAction:l.pageAction,animationInProgress:l.animationInProgress},l.props.onScroll&&l.props.onScroll.call(void 0,e),n&&n.call(void 0,i),l.scrollAction=void 0,l.pageAction=void 0)},l.handleScrollAction=function(e){l.scrollAction=e},l.handlePageAction=function(e){l.pageAction=e},l.scrollerService=new c.ScrollerService(l.handleScrollAction,l.handlePageAction),l}t.Virtualization=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.CalendarViewEnum||(t.CalendarViewEnum={}))[t.month=0]="month",t[t.year=1]="year",t[t.decade=2]="decade",t[t.century=3]="century"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),i=(t.BusViewService=i.BusViewService,n(25)),i=(t.CenturyViewService=i.CenturyViewService,n(26)),i=(t.DecadeViewService=i.DecadeViewService,n(46)),i=(t.DOMService=i.DOMService,n(27)),i=(t.MonthViewService=i.MonthViewService,n(47)),i=(t.NavigationService=i.NavigationService,n(48)),i=(t.ScrollSyncService=i.ScrollSyncService,n(49)),i=(t.WeekNamesService=i.WeekNamesService,n(28));t.YearViewService=i.YearViewService},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,n,t){"use strict";var i=this&&this.__assign||function(){return(i=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}).apply(this,arguments)},r=(Object.defineProperty(n,"__esModule",{value:!0}),t(3)),o=t(35);n.usePickerFloatingLabel=function(e){var t=r.useState(!1),n=t[0],i=t[1];return r.useEffect(function(){e.current&&i(Boolean(e.current.text))}),{editorValue:n}},n.PickerFloatingLabel=function(e){var t=n.usePickerFloatingLabel(e.dateInput);return r.createElement(o.FloatingLabel,i({},e,t))}},function(e,t,n){"use strict";function r(e){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")}var i,o,a=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(s=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}).apply(this,arguments)},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),u=n(4),c=n(0),p=n(5),d=n(23),h=n(24),f=n(10),m=n(1),g=n(19),n=(o=l.Component,a(v,o),Object.defineProperty(v.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isMonthView",{get:function(){return this.props.activeView===f.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===f.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"selectedDate",{get:function(){return(void 0!==this.props.selectedDate?this.props:v.defaultProps).selectedDate},enumerable:!0,configurable:!0}),v.prototype.render=function(){var n=this,e=(this.intl=p.provideIntlService(this),this.weekService=new g.WeekNamesService(this.intl),this.weekService.getWeekNames(this.weekNumber)),t=this.props.service.rowLength(this.weekNumber),i=this.props.service.title(this.props.viewDate),r=m.getToday(),r=m.setTime(this.props.viewDate,r),r=this.props.service.data({cellUID:this.props.cellUID,min:this.min,max:this.max,focusedDate:this.props.focusedDate,isActiveView:!this.props.bus.canMoveDown(this.props.activeView),selectedDate:this.selectedDate,selectionRange:this.props.selectionRange,viewDate:r});return l.createElement(l.Fragment,null,this.isMonthView&&this.isHorizontal&&l.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},l.createElement("tr",{role:"row",className:"k-calendar-tr"},e.map(function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)}))),l.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&l.createElement("tr",{role:"presentation",className:"k-calendar-tr"},l.createElement("th",{scope:"col",colSpan:t,className:"k-calendar-th"},i)),r.map(function(e,t){return l.createElement("tr",{role:"row",className:"k-calendar-tr",key:t},n.weekNumber&&n.buildWeekNumber(e,t),n.buildRow(e))})))},v.prototype.getWeekNumber=function(e){return this.weekNumber?c.weekInYear(e,this.intl.firstDay()):null},v.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},v.defaultProps={direction:"vertical",selectedDate:m.getToday(),showWeekNumbers:!1},v);function v(){var i=null!==o&&o.apply(this,arguments)||this;return i.buildWeekNumber=function(e,t){if(!i.firstDate(e))return r("week-cell-"+t);var t=i.firstDate(e),e=i.getWeekNumber(t),n="kendo-react-calendar-week-cell-"+e,t={className:"k-alt",value:e,firstDate:t};return i.props.weekCell?l.createElement(i.props.weekCell,s({},t,{key:n}),e):l.createElement(h.CalendarWeekCell,s({},t,{key:n}),e)},i.buildRow=function(e){return e.map(function(e,t){if(!e)return r(t);var t={"aria-selected":e.isSelected},n="kendo-react-calendar-cell-"+e.value.getTime(),t=s({},t,e,{isDisabled:!e.isInRange,view:i.props.activeView,onClick:i.handleClick,onMouseEnter:i.handleMouseEnter,onMouseLeave:i.handleMouseLeave});return i.props.cell?l.createElement(i.props.cell,s({},t,{key:n}),e.formattedValue):l.createElement(d.CalendarCell,s({},t,{key:n}),e.formattedValue)})},i.firstDate=function(e){e=i.firstWeekDateContext(e);return e?e.value:null},i.firstWeekDateContext=function(e){if(!i.weekNumber)return null;for(var t=0,n=e[t];!n&&t<e.length;)n=e[++t];return n},i.handleClick=function(e,t){var n=i.props.onChange;n&&(e={value:c.cloneDate(e),target:i,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,e))},i.handleMouseEnter=function(e){var t=i.props.onCellEnter;t&&t.call(void 0,c.cloneDate(e))},i.handleMouseLeave=function(e){var t=i.props.onCellLeave;t&&t.call(void 0,c.cloneDate(e))},i}t.View=n,p.registerForIntl(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=this&&this.__assign||function(){return(f=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}).apply(this,arguments)},m=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},g=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),v=n(2),n=(r=g.Component,o(a,r),a.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,t=m(t,["value"]),i=e.value,e=m(e,["value"]);return!((!n||!i||n.getTime()===i.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length===i.length){for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return}return 1}}(t,e))},a.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),i=e.isFocused,r=(e.isInRange,e.isSelected),o=e.isRangeStart,a=e.isRangeMid,s=e.isRangeEnd,l=e.isRangeSplitStart,u=e.isRangeSplitEnd,c=e.isToday,p=e.isDisabled,e=(e.view,e.value,m(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),d="end"===this.props.activeRangeEnd&&s,h="start"===this.props.activeRangeEnd&&o,a=v.classNames("k-calendar-td",{"k-range-end":s,"k-range-mid":a,"k-range-split-end":u,"k-range-split-start":l,"k-range-start":o,"k-active":h||d,"k-state-pending-focus":i,"k-selected":r||o||s,"k-today":c,"k-weekend":n,"k-disabled":p},t);return g.createElement("td",f({},e,{className:a,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),g.createElement("span",{className:"k-link"},this.props.children))},a);function a(){var i=null!==r&&r.apply(this,arguments)||this;return i.handleClick=function(e){var t=i.props,n=t.onClick,t=t.value;n&&n.call(void 0,t,e)},i.handleMouseEnter=function(){var e=i.props,t=e.onMouseEnter,e=e.value;t&&t.call(void 0,e)},i.handleMouseLeave=function(){var e=i.props,t=e.onMouseLeave,e=e.value;t&&t.call(void 0,e)},i}t.CalendarCell=n},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),u=n(2),n=(r=l.Component,o(c,r),c.prototype.render=function(){var e=this.props,t=e.className,e=(e.firstDate,s(e,["className","firstDate"]));return l.createElement("td",a({className:u.classNames("k-calendar-td",t)},e),this.props.children)},c);function c(){return null!==r&&r.apply(this,arguments)||this}t.CalendarWeekCell=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),i=n(10),y=n(1),r=[[]],o=((n={})[i.Action.Left]=function(e){return v.addDecades(e,-1)},n[i.Action.Up]=function(e){return v.addDecades(e,-5)},n[i.Action.Right]=function(e){return v.addDecades(e,1)},n[i.Action.Down]=function(e){return v.addDecades(e,5)},n[i.Action.PrevView]=function(e){return v.addCenturies(e,-1)},n[i.Action.NextView]=function(e){return v.addCenturies(e,1)},n[i.Action.FirstInView]=function(e){return v.firstDecadeOfCentury(e)},n[i.Action.LastInView]=function(e){return v.lastDecadeOfCentury(e)},n);function a(){}a.prototype.addToDate=function(e,t){return v.addCenturies(e,t)},a.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addCenturies(t,e)})},a.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?i.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return r;var n=y.range(0,4),f=v.firstDecadeOfCentury(t),m=v.lastDecadeOfCentury(t),g=y.getToday();return y.range(0,3).map(function(e){var o=v.addDecades(f,4*e);return n.map(function(e){var e=a.normalize(v.addDecades(o,e),p,c),t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&y.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):y.isInRange(d,p,c)&&a.isEqual(e,d));return y.intersects(e,f,m)?{formattedValue:a.value(e),id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isWeekend:!1,isInRange:y.isInRange(e,p,c),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&a.isEqual(e,m),isRangeSplitStart:i&&a.isEqual(e,f),isToday:a.isEqual(e,g),title:a.cellTitle(e),value:e}:null})})},a.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){y.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},a.prototype.isEqual=function(e,t){return!(!e||!t)&&v.firstYearOfDecade(e).getFullYear()===v.firstYearOfDecade(t).getFullYear()},a.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},a.prototype.isInRange=function(e,t,n){e=v.firstYearOfDecade(e).getFullYear(),t=!t||v.firstYearOfDecade(t).getFullYear()<=e,e=!n||e<=v.firstYearOfDecade(n).getFullYear();return t&&e},a.prototype.isInSameView=function(e,t){return 0===v.durationInCenturies(e,t)},a.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},a.prototype.move=function(e,t){t=o[t];return t?t(e):e},a.prototype.cellTitle=function(e){return v.firstYearOfDecade(e).getFullYear().toString()},a.prototype.navigationTitle=function(e){return e?v.firstDecadeOfCentury(e).getFullYear().toString():""},a.prototype.title=function(e){return e?v.firstDecadeOfCentury(e).getFullYear()+" - "+v.lastDecadeOfCentury(e).getFullYear():""},a.prototype.rowLength=function(e){return 4},a.prototype.skip=function(e,t){return v.durationInCenturies(t,e)},a.prototype.total=function(e,t){return v.durationInCenturies(e,t)+1},a.prototype.value=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},a.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),v.durationInCenturies(e,t)<n?v.addCenturies(e,-1):e},a.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},t.CenturyViewService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),i=n(12),r=n(13),y=n(1),o=[[]],a=((n={})[i.Action.Left]=function(e){return v.addYears(e,-1)},n[i.Action.Up]=function(e){return v.addYears(e,-5)},n[i.Action.Right]=function(e){return v.addYears(e,1)},n[i.Action.Down]=function(e){return v.addYears(e,5)},n[i.Action.PrevView]=function(e){return v.addDecades(e,-1)},n[i.Action.NextView]=function(e){return v.addDecades(e,1)},n[i.Action.FirstInView]=function(e){return v.firstYearOfDecade(e)},n[i.Action.LastInView]=function(e){return v.lastYearOfDecade(e)},n);function s(){}s.prototype.addToDate=function(e,t){return v.addDecades(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addDecades(t,e)})},s.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?r.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return o;var n=y.range(0,4),f=v.firstYearOfDecade(t),m=v.lastYearOfDecade(t),g=y.getToday();return y.range(0,3).map(function(e){var o=v.addYears(f,4*e);return n.map(function(e){var e=a.normalize(v.addYears(o,e),p,c),t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&y.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):y.isInRange(d,p,c)&&a.isEqual(e,d));return y.intersects(e,f,m)?{formattedValue:a.value(e),id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isWeekend:!1,isInRange:y.isInRange(e,p,c),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&a.isEqual(e,m),isRangeSplitStart:i&&a.isEqual(e,f),isToday:a.isEqual(e,g),title:a.cellTitle(e),value:e}:null})})},s.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){y.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},s.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},s.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},s.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},s.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},s.prototype.isInSameView=function(e,t){return 0===v.durationInDecades(e,t)},s.prototype.move=function(e,t){t=a[t];return t?t(e):e},s.prototype.cellTitle=function(e){return e.getFullYear().toString()},s.prototype.navigationTitle=function(e){return e?v.firstYearOfDecade(e).getFullYear().toString():""},s.prototype.title=function(e){return e?v.firstYearOfDecade(e).getFullYear()+" - "+v.lastYearOfDecade(e).getFullYear():""},s.prototype.rowLength=function(e){return 4},s.prototype.skip=function(e,t){return v.durationInDecades(t,e)},s.prototype.total=function(e,t){return v.durationInDecades(e,t)+1},s.prototype.value=function(e){return e?e.getFullYear().toString():""},s.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),v.durationInDecades(e,t)<n?v.addDecades(e,-1):e},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.cloneDate(t):n<e&&this.isEqual(e,n)?v.cloneDate(n):e},t.DecadeViewService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=n(0),i=n(12),r=n(13),y=n(1),o=[[]],a=((n={})[i.Action.Left]=function(e){return v.addDays(e,-1)},n[i.Action.Up]=function(e){return v.addWeeks(e,-1)},n[i.Action.Right]=function(e){return v.addDays(e,1)},n[i.Action.Down]=function(e){return v.addWeeks(e,1)},n[i.Action.PrevView]=function(e){return v.addMonths(e,-1)},n[i.Action.NextView]=function(e){return v.addMonths(e,1)},n[i.Action.FirstInView]=function(e){return v.firstDayOfMonth(e)},n[i.Action.LastInView]=function(e){return v.lastDayOfMonth(e)},n);function s(e){this.intl=e}s.prototype.addToDate=function(e,t){return v.addMonths(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return v.addMonths(t,e)})},s.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?r.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return o;var f=v.firstDayOfMonth(t),m=v.lastDayOfMonth(t),n=v.dayOfWeek(f,this.intl.firstDay(),-1),i=y.range(0,7),g=y.getToday();return y.range(0,6).map(function(e){var o=v.addDays(n,7*e);return i.map(function(e){e=a.normalize(v.addDays(o,e),p,c);if(e<f||m<e)return null;var t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&y.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):y.isInRange(d,p,c)&&a.isEqual(e,d));return{formattedValue:a.value(e),id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isInRange:y.isInRange(e,p,c),isWeekend:a.isWeekend(e),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitStart:i&&a.isEqual(e,f),isRangeSplitEnd:i&&a.isEqual(e,m),isToday:a.isEqual(e,g),title:a.cellTitle(e),value:e}})})},s.prototype.isEqual=function(e,t){return!(!e||!t)&&v.getDate(e).getTime()===v.getDate(t).getTime()},s.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){y.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},s.prototype.isInArray=function(e,t){return!!t.length&&v.firstDayOfMonth(t[0])<=e&&e<=v.lastDayOfMonth(t[t.length-1])},s.prototype.isInRange=function(e,t,n){e=v.getDate(e),t=!t||v.getDate(t)<=e,e=!n||e<=v.getDate(n);return t&&e},s.prototype.isInSameView=function(e,t){return 0===v.durationInMonths(e,t)},s.prototype.isRangeStart=function(e){return!e.getMonth()},s.prototype.move=function(e,t){t=a[t];return t?t(e):e},s.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},s.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},s.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},s.prototype.rowLength=function(e){return 7+(e?1:0)},s.prototype.skip=function(e,t){return v.durationInMonths(t,e)},s.prototype.total=function(e,t){return v.durationInMonths(e,t)+1},s.prototype.value=function(e){return e?e.getDate().toString():""},s.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),v.durationInMonths(e,t)<n?v.addMonths(e,-1):e},s.prototype.isWeekend=function(e){e=e.getDay();return 6===e||0===e},s.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?v.getDate(t):n<e&&this.isEqual(e,n)?v.getDate(n):e},s.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},t.MonthViewService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b=n(0),i=n(12),w=n(1),r=n(13),o=n(0),D=[[]],a=((n={})[i.Action.Left]=function(e){return b.addMonths(e,-1)},n[i.Action.Up]=function(e){return b.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},n[i.Action.Right]=function(e){return b.addMonths(e,1)},n[i.Action.Down]=function(e){return b.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},n[i.Action.PrevView]=function(e){return b.addYears(e,-1)},n[i.Action.NextView]=function(e){return b.addYears(e,1)},n[i.Action.FirstInView]=function(e){return b.firstMonthOfYear(e)},n[i.Action.LastInView]=function(e){return b.lastMonthOfYear(e)},n);function s(e){this._intl=e}s.prototype.addToDate=function(e,t){return b.addYears(e,t)},s.prototype.datesList=function(t,e){return w.range(0,e).map(function(e){return b.addYears(t,e)})},s.prototype.data=function(e){var a=this,s=e.cellUID,l=e.focusedDate,u=e.isActiveView,c=e.max,p=e.min,d=e.selectedDate,t=e.selectionRange,h=void 0===t?r.EMPTY_SELECTIONRANGE:t,t=e.viewDate;if(!t)return D;var f=this.abbrMonthNames(),m=b.firstMonthOfYear(t),g=b.lastMonthOfYear(t),v=m.getFullYear(),n=w.range(0,4),y=w.getToday();return w.range(0,3).map(function(e){var o=b.addMonths(m,4*e);return n.map(function(e){e=a.normalize(b.addMonths(o,e),p,c);if(v<e.getFullYear())return null;var t=a.isEqual(e,h.start),n=a.isEqual(e,h.end),i=!t&&!n&&w.isInSelectionRange(e,h),r=u&&(Array.isArray(d)?a.isSelectedFromArray(e,d,p,c):w.isInRange(d,p,c)&&a.isEqual(e,d));return{formattedValue:f[e.getMonth()],id:""+s+e.getTime(),isFocused:a.isEqual(e,l),isSelected:r,isInRange:w.isInRange(e,p,c),isWeekend:!1,isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&a.isEqual(e,g),isRangeSplitStart:i&&a.isEqual(e,m),isToday:a.isEqual(e,y),title:a.cellTitle(e),value:e}})})},s.prototype.isSelectedFromArray=function(t,e,n,i){var r=this,o=!1;return e.forEach(function(e){w.isInRange(t,n,i)&&r.isEqual(t,e)&&(o=!0)}),o},s.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},s.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},s.prototype.isInRange=function(e,t,n){e=b.createDate(e.getFullYear(),e.getMonth(),1),t=!t||b.createDate(t.getFullYear(),t.getMonth(),1)<=e,e=!n||e<=b.createDate(n.getFullYear(),n.getMonth(),1);return t&&e},s.prototype.isInSameView=function(e,t){return 0===b.durationInYears(e,t)},s.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},s.prototype.move=function(e,t){t=a[t];return t?t(e):e},s.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},s.prototype.navigationTitle=function(e){return this.title(e)},s.prototype.title=function(e){return e?e.getFullYear().toString():""},s.prototype.rowLength=function(e){return 4},s.prototype.skip=function(e,t){return b.durationInYears(t,e)},s.prototype.total=function(e,t){return b.durationInYears(e,t)+1},s.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},s.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),b.durationInYears(e,t)<n?b.addYears(e,-1):e},s.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.cloneDate(t):n<e&&this.isEqual(e,n)?o.cloneDate(n):e},t.YearViewService=s},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),l=n(4),u=n(5),c=n(2),p=n(30),n=n(8),o=(r=s.Component,o(d,r),Object.defineProperty(d.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:d.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:d.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rangeLength",{get:function(){return(void 0!==this.props.rangeLength?this.props:d.defaultProps).rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),d.prototype.render=function(){var e=this.getTitle(),t=c.classNames("k-calendar-title"),t={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},t=this.props.headerTitle?s.createElement(this.props.headerTitle,a({},t),e):s.createElement(p.CalendarHeaderTitle,a({},t),e);return s.createElement("div",{className:"k-calendar-header k-hstack"},t,s.createElement("span",{className:"k-spacer"}),s.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},d.propTypes={activeView:l.number.isRequired,currentDate:l.instanceOf(Date).isRequired,max:l.instanceOf(Date).isRequired,min:l.instanceOf(Date).isRequired,rangeLength:l.number},d.defaultProps={rangeLength:1,min:n.MIN_DATE,max:n.MAX_DATE},d);function d(){var i=null!==r&&r.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.canMoveUp&&i.props.bus.moveUp(i.props.activeView,e)},i}t.Header=o,u.registerForLocalization(o)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(6)),u=n(3),n=(r=u.PureComponent,o(c,r),c.prototype.render=function(){var e=this.props,e=(e.view,s(e,["view"]));return u.createElement(l.Button,a({type:"button",fillMode:"flat"},e),this.props.children)},c);function c(){return null!==r&&r.apply(this,arguments)||this}t.CalendarHeaderTitle=n},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),s=n(4),l=n(5),u=n(2),c=n(0),p=n(7),d=n(1),n=n(8),o=(r=a.Component,o(h,r),Object.defineProperty(h.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:h.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:h.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"todayIsInRange",{get:function(){return d.isInRange(d.getToday(),c.getDate(this.min),c.getDate(this.max))},enumerable:!0,configurable:!0}),h.prototype.render=function(){this.localization=l.provideLocalizationService(this);var e=this.localization.toLanguageString(p.today,p.messages[p.today]),t=u.classNames("k-nav-today",{"k-disabled":this.props.disabled});return a.createElement("span",{className:t,onClick:this.handleClick},e)},h.propTypes={max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,onClick:s.func,disabled:s.bool},h.defaultProps={min:n.MIN_DATE,max:n.MAX_DATE},h);function h(){var t=null!==r&&r.apply(this,arguments)||this;return t.handleClick=function(e){t.todayIsInRange&&t.props.onClick&&t.props.onClick.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:d.dateInRange(d.getToday(),t.min,t.max),target:t,isTodayClick:!0})},t}t.TodayCommand=o,l.registerForLocalization(o)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},l=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),u=n(2),n=(r=l.Component,o(c,r),c.prototype.render=function(){var e=this.props,t=e.isRangeStart,e=(e.value,e.text,s(e,["isRangeStart","value","text"]));return l.createElement("li",a({},e,{onClick:this.handleClick}),l.createElement("span",{className:u.classNames({"k-calendar-navigation-marker":t})},this.props.children))},c);function c(){var i=null!==r&&r.apply(this,arguments)||this;return i.handleClick=function(e){var t=i.props,n=t.onClick,t=t.value;n&&n.call(void 0,t,e)},i}t.CalendarNavigationItem=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Mask=function(){this.symbols=""}},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],o=e.substring(0,i+e.length-n.length),e=n.substring(0,i),a=[];if(o===e&&0<i)return a.push([t[i-1],e[i-1]]),a;if(0===o.indexOf(e)&&(0===e.length||t[e.length-1]!==t[e.length])){var s="";1===e.length&&a.push([t[0],e[0]]);for(var l=e.length;l<o.length;l++)t[l]!==s&&"_"!==t[l]&&(s=t[l],a.push([s,""]));return a}if(0!==e.indexOf(o)&&"_"!==t[i-1])return" "===e[e.length-1]||e[e.length-1]===r?[[t[i-1],"_"]]:[[t[i-1],e[i-1]]];for(var u=t[0],l=Math.max(0,o.length-1);l<t.length;l++)if("_"!==t[l]){u=t[l];break}return[[u,e[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-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(6);t.ToggleButton=n.Button},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(2);t.PickerWrap=r.forwardRef(function(e,t){var n=e._ref,i=r.useRef(null),t=(r.useImperativeHandle(t,function(){return i.current}),r.useImperativeHandle(n,function(){return i.current}),r.useMemo(function(){return o.classNames(e.className,"k-picker-wrap")},[e.className]));return r.createElement("span",{ref:i,id:e.id,style:e.style,className:t,tabIndex:e.tabIndex},e.children)})},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(s=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o,a,l=n(3),u=n(4),c=n(0),p=n(2),d=n(5),h=n(7),f=n(56),m=n(1),g=n(20),v=n(9),y=n(6),b=new RegExp(g.TIME_PART.hour+"|"+g.TIME_PART.minute+"|"+g.TIME_PART.second+"|"+g.TIME_PART.dayperiod+"|literal"),g=((n=o=t.Direction||(t.Direction={}))[n.Left=0]="Left",n[n.Right=1]="Right",a=l.Component,r(w,a),Object.defineProperty(w.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"value",{get:function(){return v.timeInRange(this.snapTime(c.cloneDate(this.props.value||m.MIDNIGHT_DATE)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"intl",{get:function(){return d.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"min",{get:function(){return this.snapTime(this.props.min||w.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"max",{get:function(){return this.snapTime(this.props.max||w.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"steps",{get:function(){return this.props.steps||w.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"boundRange",{get:function(){return(void 0!==this.props.boundRange?this.props:w.defaultProps).boundRange},enumerable:!0,configurable:!0}),w.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},w.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},w.prototype.render=function(){var n=this,e=this.props,t=e.format,i=e.smoothScroll,r=e.onNowClick,o=e.className,a=e.disabled,e=(this.snapTime=v.snapTime(v.generateSnappers(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(t||w.defaultProps.format).filter(this.timeFormatFilter),p.classNames({"k-disabled":a},o,"k-time-part")),t=(this.timeLists=[],d.provideLocalizationService(this)),o=t.toLanguageString(h.selectNow,h.messages[h.selectNow]);return l.createElement("div",{className:e},l.createElement("div",{className:"k-time-header"},l.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&l.createElement(y.Button,s({type:"button",ref:function(e){n._nowButton=e},className:"k-time-now",fillMode:"flat",themeColor:"primary",title:o},{"aria-label":o},{onClick:r,tabIndex:a?-1:0}),t.toLanguageString(h.now,h.messages[h.now]))),l.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},l.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map(function(e,t){return"literal"!==e.type?l.createElement("div",{key:t,className:p.classNames("k-time-list-wrapper",{"k-focus":t===n.state.activeListIndex}),role:"presentation",tabIndex:-1},l.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},n.intl.dateFieldName(e)),l.createElement(f.TimeList,{min:n.min,max:n.max,boundRange:n.boundRange,part:e,step:e.type?n.steps[e.type]:1,smoothScroll:i,ref:function(e){e&&n.timeLists.push(e)},id:t,onFocus:function(){n.handleListFocus(t)},onBlur:n.handleListBlur,onChange:n.handleChange,value:n.value,disabled:a,show:n.props.show})):l.createElement("div",{key:t,className:"k-time-separator"},e.pattern)})))},w.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},w.prototype.hasActiveButton=function(){return this._nowButton&&document.activeElement===this._nowButton.element},w.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)},w.propTypes={cancelButton:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},w.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:m.MIN_TIME,max:m.MAX_TIME,steps:{},boundRange:!1},w);function w(e){var r=a.call(this,e)||this;return r.timeLists=[],r.focus=function(t){Promise.resolve().then(function(){var e=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&e&&e.element&&e.focus(t)})},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){n=1<=t&&n[t-1];return n&&"literal"===e.type?b.test(n.type||""):b.test(e.type||"")},r.focusList=function(t){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map(function(e){return t===o.Right?e.next:e.prev}).map(function(e){return e&&e.element&&e.element.focus({preventScroll:!0})})},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&&v.isInTimeRange(v.getNow(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case p.Keys.left:return e.preventDefault(),void r.focusList(o.Left);case p.Keys.right:return e.preventDefault(),void r.focusList(o.Right);default:return}},r.handleListBlur=function(){r.nextTick(function(){r.setState({activeListIndex:-1})})},r.handleListFocus=function(e){clearTimeout(r.nextTickId),r.setState({activeListIndex:e})},r.handleChange=function(e){var t=r.props.onChange;t&&t.call(void 0,e)},r.snapTime=v.snapTime(v.generateSnappers(r.props.steps,r.props.min||w.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}t.TimePart=g,d.registerForIntl(g),d.registerForLocalization(g)},function(e,t,n){"use strict";function f(e,t,n){return void 0===e&&(e=u.defaultProps.min),void 0===t&&(t=u.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&I.isInRange(O.getDate(n),e,t)?O.getDate(n):null}function m(t,n,e){return void 0===t&&(t=u.defaultProps.min),void 0===n&&(n=u.defaultProps.max),Array.isArray(e)?e.filter(function(e){return I.isInRange(e,t,n)}).map(function(e){return O.getDate(e)}):null}function g(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?S.EMPTY_SELECTIONRANGE:e}function v(e,t,n){return e||t&&t[0]||n&&n.start}var i,s,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=this&&this.__assign||function(){return(y=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}).apply(this,arguments)},b=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),o=n(4),w=n(5),D=n(2),O=n(0),k=n(6),S=n(10),P=n(29),a=n(8),_=n(7),l=n(19),I=n(1),C=n(64),M=n(31),u=(s=b.Component,r(c,s),Object.defineProperty(c.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"focusedDate",{get:function(){return O.cloneDate(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"min",{get:function(){return O.getDate((void 0!==this.props.min?this.props:c.defaultProps).min)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"max",{get:function(){return O.getDate((void 0!==this.props.max?this.props:c.defaultProps).max)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bottomView",{get:function(){return S.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:c.defaultProps).bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"topView",{get:function(){return S.CalendarViewEnum[(void 0!==this.props.topView?this.props:c.defaultProps).topView]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"activeRange",{get:function(){return(void 0!==this.props.activeRangeEnd?this.props:this).activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"todayIsInRange",{get:function(){return I.isInRange(I.getToday(),O.getDate(this.min),O.getDate(this.max))},enumerable:!0,configurable:!0}),c.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},c.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=f(this.min,this.max,this.value);this.calculateFocusFromValue=Boolean(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||C.HorizontalViewList.defaultProps.views},c.prototype.render=function(){var t=this,e=(this.props._ref&&this.props._ref(this),this.intl=w.provideIntlService(this),this.localization=w.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView),I.viewInRange(this.state.activeView,this.bottomView,this.topView)),n=(this.service=this.bus.service(e,this.intl),this.selectedDate=f(this.min,this.max,this.value),this.selectedMultiple=m(this.min,this.max,this.value),this.selectedRange=g(this.value),v(this.selectedDate,this.selectedMultiple,this.selectedRange)),n=(this._focusedDate=I.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max),D.classNames("k-widget k-calendar k-calendar-range",{"k-disabled":this.props.disabled},this.props.className)),i=this.rangeWithFocused(this.selectedRange,this.focusedDate),r={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},o=this.localization.toLanguageString(_.prevView,_.messages[_.prevView]),a=this.localization.toLanguageString(_.nextView,_.messages[_.nextView]),s=!this.canNavigate(S.Action.PrevView),l=!this.canNavigate(S.Action.NextView),u={"aria-disabled":s},c={"aria-disabled":l},p=this.lastView!==e,d=this.dates&&this.service.isInArray(this.focusedDate,this.dates),h=this.lastViewsCount!==this.props.views,d=(d&&!p&&!h||(this.dates=this.service.datesList(this.focusedDate,this.props.views||C.HorizontalViewList.defaultProps.views)),O.cloneDate(this.dates&&this.dates[0]?this.dates[0]:I.getToday()));return b.createElement("div",y({ref:function(e){t._element=e},className:n,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,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},r),b.createElement(P.Header,{key:".kendo.calendar.header."+d.getTime(),activeView:e,currentDate:d,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:b.createElement(b.Fragment,null,b.createElement(k.Button,y({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",fillMode:"flat",title:o,disabled:s,onClick:this.handlePrevButtonClick},u)),b.createElement(M.TodayCommand,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),b.createElement(k.Button,y({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",fillMode:"flat",title:a,disabled:l,onClick:this.handleNextButtonClick},c)))}),b.createElement(C.HorizontalViewList,{ref:function(e){t.calendarViewList=e},dates:this.dates,activeView:e,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:i,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}))},c.displayName="MultiViewCalendar",c.propTypes={activeRangeEnd:o.oneOf(["start","end"]),allowReverse:o.bool,bottomView:o.oneOf(["month","year","decade","century"]),className:o.string,defaultActiveView:o.oneOf(["month","year","decade","century"]),defaultValue:o.oneOfType([I.nullable(o.instanceOf(Date)),o.arrayOf(o.instanceOf(Date)),o.shape({start:I.nullable(o.instanceOf(Date)),end:I.nullable(o.instanceOf(Date))})]),disabled:o.bool,focusedDate:o.instanceOf(Date),id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,max:o.instanceOf(Date),min:o.instanceOf(Date),mode:o.oneOf(["single","multiple","range"]),onBlur:o.func,onChange:o.func,onFocus:o.func,tabIndex:o.number,topView:o.oneOf(["month","year","decade","century"]),value:o.oneOfType([I.nullable(o.instanceOf(Date)),o.arrayOf(o.instanceOf(Date)),o.shape({start:I.nullable(o.instanceOf(Date).isRequired),end:I.nullable(o.instanceOf(Date).isRequired)})]),views:function(e,t,n){e=e[t];return void 0!==e&&e<1?new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'"):null},weekNumber:o.bool},c.defaultProps={disabled:!1,min:a.MIN_DATE,max:a.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},c);function c(e){var a=s.call(this,e)||this;a.selectedDate=null,a.selectedMultiple=null,a.selectedRange=S.EMPTY_SELECTIONRANGE,a.cellUID=D.guid(),a.activeRangeEnd="start",a.wrapperID=D.guid(),a.isActive=!1,a.calculateFocusFromValue=!0,a.focus=function(){a._element&&a._element.focus()},a.clampRange=function(e){return{start:e,end:null}},a.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&a.isActive?t:e.end}},a.generateRange=function(e,t){var n=t.end,i=t.start,t=null!==t.start&&e.getTime()<=t.start.getTime();return!a.props.allowReverse&&t?{start:e,end:a.selectedRange.start}:"end"!==a.activeRange?{start:e,end:n}:{start:i||a.selectedDate,end:e}},a.canNavigate=function(e){if(!a.service)return!1;e=a.service.move(a.focusedDate,e);return a.min<=e&&e<=a.max||a.service.isInSameView(e,a.min)||a.service.isInSameView(e,a.max)},a.isListInRange=function(e){return a.min<e[0]&&a.max>e[Math.max(0,(a.props.views||c.defaultProps.views)-1)]},a.navigate=function(e){a.calculateFocusFromValue=!1;e=a.move(e);a.setState({focusedDate:e})},a.move=function(e){return a.clampDate(a.service.move(a.focusedDate,e))},a.clampDate=function(e){return I.dateInRange(e,a.min,a.max)},a.shouldAutoCorrect=function(e,t){var n=t.end,t=t.start;return"end"!==a.activeRange?null!==n&&n<e:null!==t&&e<t},a.handleCellEnter=function(e){"range"===a.props.mode&&(a.calculateFocusFromValue=!1,a.setState({focusedDate:e}))},a.handleMouseDown=function(e){e.preventDefault()},a.handleClick=function(e){a._element&&a._element.focus({preventScroll:!0})},a.handleFocus=function(e){var t;a.isActive=!0,a.calendarViewList&&(a.calendarViewList.focusActiveDate(),(t=a.props.onFocus)&&t.call(void 0,e))},a.handleBlur=function(e){var t;a.isActive=!1,a.calendarViewList&&(a.calendarViewList.blurActiveDate(),(t=a.props.onBlur)&&t.call(void 0,e))},a.handleTodayClick=function(e){a.todayIsInRange&&a.handleDateChange.call(void 0,e,!0)},a.handlePrevButtonClick=function(){a.navigate(S.Action.PrevView)},a.handleNextButtonClick=function(){a.navigate(S.Action.NextView)},a.handleKeyDown=function(e){if(e.keyCode===D.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:a.focusedDate,target:a};a.handleDateChange.call(void 0,t)}else{t=I.dateInRange(a.navigation.move(a.focusedDate,a.navigation.action(e),a.state.activeView,a.service,e),a.min,a.max);if(O.isEqualDate(a.focusedDate,t))return;a.calculateFocusFromValue=!1,a.setState({focusedDate:t})}e.preventDefault()},a.handleViewChange=function(e){e=e.view;a.calculateFocusFromValue=!1,a.setState({activeView:e})},a.handleDateChange=function(n){var e=O.cloneDate(n.value),t=a.bus.canMoveDown(a.state.activeView);if(!a.props.disabled){if(t){if(!n.isTodayClick)return a.bus.moveDown(a.state.activeView,n.syntheticEvent),void a.setState({focusedDate:e});a.bus.moveToBottom(a.state.activeView)}switch(a.calculateFocusFromValue=!0,a.props.mode){case"single":o=O.cloneDate(n.value);break;case"multiple":var i,r,o=Array.isArray(a.selectedMultiple)?(i=a.selectedMultiple.slice(),r=-1,i.forEach(function(e,t){O.isEqualDate(e,n.value)&&(r=t)}),-1!==r?i.splice(r,1):i.push(O.cloneDate(n.value)),i.slice()):a.selectedDate?[O.cloneDate(a.selectedDate),O.cloneDate(n.value)]:[O.cloneDate(n.value)];break;case"range":o=null!==a.selectedRange.start&&null!==a.selectedRange.end&&"start"===a.activeRange?a.clampRange(n.value):a.generateRange(n.value,a.selectedRange),a.activeRangeEnd="end"!==a.activeRange?"end":"start";break;default:o=O.cloneDate(n.value)}a.valueDuringOnChange=o,a.setState({value:o,focusedDate:e}),a.valueDuringOnChange=o;t=a.props.onChange;t&&(e={syntheticEvent:n.syntheticEvent,nativeEvent:n.nativeEvent,value:o,target:a},t.call(void 0,e)),a.valueDuringOnChange=void 0}};var t=void 0!==e.value?e.value:e.defaultValue||c.defaultProps.defaultValue,n=f(a.min,a.max,t),i=m(a.min,a.max,t),r=g(t),i=v(n,i,r),o=I.viewInRange(S.CalendarViewEnum[e.defaultActiveView],a.bottomView,a.topView),e=I.dateInRange(e.focusedDate||i||I.getToday(),a.min,a.max);return a.state={value:t,activeView:o,focusedDate:e},a.activeRangeEnd=(null!==r.start||null!==n)&&null===r.end?"end":"start",a.bus=new l.BusViewService(a.handleViewChange),a.navigation=new l.NavigationService(a.bus),a.calculateFocusFromValue=!1,a.lastView=o,a.lastViewsCount=a.props.views||C.HorizontalViewList.defaultProps.views,a}t.MultiViewCalendarWithoutContext=u,t.MultiViewCalendarPropsContext=D.createPropsContext(),t.MultiViewCalendar=D.withPropsContext(t.MultiViewCalendarPropsContext,u),t.MultiViewCalendar.displayName="KendoReactMultiViewCalendar",w.registerForIntl(u),w.registerForLocalization(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(16),r=(t.Calendar=r.Calendar,t.CalendarPropsContext=r.CalendarPropsContext,n(14)),r=(t.DateInput=r.DateInput,t.DateInputPropsContext=r.DateInputPropsContext,n(53)),r=(t.DatePicker=r.DatePicker,t.DatePickerPropsContext=r.DatePickerPropsContext,n(54)),r=(t.TimePicker=r.TimePicker,t.TimePickerPropsContext=r.TimePickerPropsContext,n(39)),r=(t.MultiViewCalendar=r.MultiViewCalendar,t.MultiViewCalendarPropsContext=r.MultiViewCalendarPropsContext,n(65)),r=(t.DateRangePicker=r.DateRangePicker,t.DateRangePickerPropsContext=r.DateRangePickerPropsContext,n(23)),r=(t.CalendarCell=r.CalendarCell,n(24)),r=(t.CalendarWeekCell=r.CalendarWeekCell,n(30)),r=(t.CalendarHeaderTitle=r.CalendarHeaderTitle,n(32)),r=(t.CalendarNavigationItem=r.CalendarNavigationItem,n(10)),r=(t.CalendarViewEnum=r.CalendarViewEnum,n(66)),r=(t.DateTimePicker=r.DateTimePicker,t.DateTimePickerPropsContext=r.DateTimePickerPropsContext,n(36)),r=(t.ToggleButton=r.ToggleButton,n(37)),o=(t.PickerWrap=r.PickerWrap,t);for(i in o)a(i,o[i])},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),c=n(2),p=n(0),s=n(5),d=n(17),l=n(22),h=n(29),f=n(1),m=n(10),g=n(31),n=(r=u.Component,o(v,r),Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"weekNames",{get:function(){this.intl=s.provideIntlService(this);var e=f.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===m.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"take",{get:function(){return(void 0!==this.props.take?this.props:v.defaultProps).take},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"todayIsInRange",{get:function(){return f.isInRange(f.getToday(),p.getDate(this.props.min),p.getDate(this.props.max))},enumerable:!0,configurable:!0}),v.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},v.prototype.render=function(){var t=this,e=(this.calculateHeights(),this.lastView!==this.props.activeView),n=f.dateInRange(this.props.focusedDate,this.props.min,this.props.max),e=e?this.props.service.skip(n,this.props.min):this.state.skip,i=this.props.service.total(this.props.min,this.props.max),r=this.getTake(e,i),o=this.props.service.addToDate(this.props.min,e),a=this.props.service.addToDate(this.props.min,this.state.index),s=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),l=this.props.activeView!==this.lastView,l=(this.animateToIndex=!l,!l&&p.isEqualDate(this.lastFocus,n)&&!this.shouldScroll&&this.props.shouldScroll&&!this.props.shouldScroll()||(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n,c.classNames("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===m.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===m.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===m.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===m.CalendarViewEnum.century})),n=this.buildDates(s,this.props.service.datesList(o,r)),o=u.createElement(u.Fragment,null,u.createElement(h.Header,{key:"calendar-view-list-header",currentDate:a,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:u.createElement(u.Fragment,null,u.createElement(g.TodayCommand,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===m.CalendarViewEnum.month&&this.buildMonthView(s,this.weekNames),u.createElement(d.Virtualization,{key:"calendar-view-list-content",skip:e,take:this.take,total:i,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:n}));return u.createElement("div",{ref:function(e){t._element=e},className:l},this.props.dom.didCalculate?o:null)},v.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},v.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},v);function v(e){var i=r.call(this,e)||this;return i.isActive=!1,i.animateToIndex=!0,i.shouldScroll=!1,i.focusActiveDate=function(){var e,t;i._element&&(e=i._element.querySelector("td.k-focus"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-focus"))&&e.classList.remove("k-focus"),i.isActive=!1)},i.handleVirtualizationMount=function(e){i.virtualization=e,i.virtualization&&i.table&&(i.table.style.transform="translateY("+i.viewOffset+"px)",e=f.dateInRange(i.props.focusedDate,i.props.min,i.props.max),e=i.props.service.skip(e,i.props.min),i.virtualization.scrollToIndex(e))},i.buildMonthView=function(e,t){return u.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},u.createElement("colgroup",null,e.map(function(e,t){return u.createElement("col",{key:t})})),u.createElement("thead",{className:"k-calendar-thead"},u.createElement("tr",{className:"k-calendar-tr"},t.map(function(e,t){return u.createElement("th",{key:t,className:"k-calendar-th"},e)}))))},i.buildDates=function(e,t){var n=i.props.cellUID;return u.createElement("table",{className:"k-calendar-table",ref:function(e){return i.table=e}},u.createElement("colgroup",null,e.map(function(e,t){return u.createElement("col",{key:t})})),t.map(function(e){return u.createElement(l.View,{ref:function(e){i.calendarView||(i.calendarView=e)},key:e.getTime(),activeView:i.props.activeView,viewDate:e,min:i.props.min,max:i.props.max,cellUID:n,focusedDate:i.props.focusedDate,cell:i.props.cell,selectedDate:i.props.value,showWeekNumbers:i.weekNumber,onChange:i.handleDateChange,bus:i.props.bus,service:i.props.service,weekCell:i.props.weekCell})}))},i.calculateHeights=function(){var e;i.props.dom&&(e=i.props.activeView===m.CalendarViewEnum.month?i.props.dom.scrollableContentHeight:i.props.dom.scrollableYearContentHeight,i.bottomOffset=e-i.props.dom.viewHeight(i.props.activeView),i.viewOffset=-1*i.props.dom.headerHeight,i.viewHeight=i.props.dom.viewHeight(i.props.activeView)||1)},i.getTake=function(e,t){return Math.min(t-e,i.take)},i.handleScrollAction=function(e){var t=e.index,n=e.scrollAction,e=e.pageAction,e=(e||i.state).skip;i.state.index===t&&i.state.skip===e||i.setState({index:t,skip:e}),i.table&&n&&(t="translateY("+n.offset+"px)",i.table.style.transform=t)},i.handleTodayClick=function(e){i.shouldScroll=!0,i.handleDateChange.call(void 0,e,!0)},i.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=i.props.onChange;n&&(e={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:p.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,e))},i.lastView=i.props.activeView,i.lastFocus=i.props.focusedDate,i.state={skip:i.props.service.skip(i.props.focusedDate,i.props.min),index:i.props.service.skip(i.props.focusedDate,i.props.min)},i}t.ViewList=n,s.registerForIntl(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),i=(t.RowHeightService=i.RowHeightService,n(44));t.PageAction=i.PageAction,t.ScrollAction=i.ScrollAction,t.ScrollerService=i.ScrollerService},function(e,t,n){"use strict";function i(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,r=0;r<e;r++)this.offsets.push(i),i+=t,this.heights.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.height=function(e){return this.heights[e]},i.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},i.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},i.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},i.prototype.offset=function(e){return this.offsets[e]},i.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},i.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,n.slice(0,e+1).concat(n.slice(e+1).map(function(e){return e+i})))},t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function s(e){return Math.max(e,0)}function l(e){this.offset=e}function u(e){this.skip=e}t.ScrollAction=l;t.PageAction=u,r.prototype.create=function(e,t,n,i,r,o,a){void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a="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=o,this.direction=a;e=this.rowsForHeight(r),n=s(t-e);this.onScrollAction(new l(this.rowOffset(n))),this.onPageAction(new u(n))},r.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,i=e.offsetHeight,e=e.offsetWidth,n="vertical"===this.direction?n:t,t="vertical"===this.direction?i:e;this.lastScrollTop!==n&&(i=this.lastScrollTop>=n,this.lastScrollTop=n,e=this.rowHeightService.index(s(n-this.topOffset)),n=this.rowHeightService.index(s(n+t-this.bottomOffset)),!i&&n>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,this.onScrollAction(new l(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new u(this.firstLoaded))),i&&e<=this.firstLoaded&&(t=Math.floor(.3*this.take),this.firstLoaded=s(e-t),this.onScrollAction(new l(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new u(this.firstLoaded))))},r.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},r.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))};var i=r;function r(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}t.ScrollerService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),r=n(26),o=n(27),a=n(28),s=n(18),l=((n={})[s.CalendarViewEnum.month]=o.MonthViewService,n[s.CalendarViewEnum.year]=a.YearViewService,n[s.CalendarViewEnum.decade]=r.DecadeViewService,n[s.CalendarViewEnum.century]=i.CenturyViewService,n);function u(e){this.bottom=s.CalendarViewEnum.month,this.top=s.CalendarViewEnum.century,this.onViewChanged=e}u.prototype.configure=function(e,t){this.bottom=e,this.top=t},u.prototype.service=function(e,t){return new l[""+e](t)},u.prototype.moveDown=function(e,t){this.move(e,-1,t)},u.prototype.moveUp=function(e,t){this.move(e,1,t)},u.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},u.prototype.canMoveDown=function(e){return this.bottom<e},u.prototype.canMoveUp=function(e){return e<this.top},u.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},u.prototype.move=function(e,t,n){t=this.clamp(void 0!==(t=s.CalendarViewEnum[s.CalendarViewEnum[e+t]])?t:e);t!==e&&this.onViewChanged({view:t},n)},t.BusViewService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),k=n(1),S=n(2);function r(){this.didCalculate=!1}r.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},r.prototype.calculateHeights=function(e){var t,l,n,i,u,c,p,d,h,f,m,g,v,r,o,a,s,y,b,w,D,O=this;S.canUseDOM&&(l=k.domContainerFactory("div"),n=k.domContainerFactory("ul"),i=k.domContainerFactory("li"),u=k.domContainerFactory("td"),c=k.domContainerFactory("th"),p=k.domContainerFactory("tr"),d=k.domContainerFactory("tbody"),h=k.domContainerFactory("thead"),f=k.domContainerFactory("table"),m=function(){return l('\n <span class="k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title">\n <span className="k-button-text">March 2017</span>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack"><span class="k-nav-today">TODAY</span></span>\n ',"k-calendar-header k-hstack")},g=function(e,t){return new Array(e).fill("1").map(t)},v=function(e){return l(e,"k-content k-calendar-content k-scrollable")},r=function(e){return e.querySelector(".k-scrollable")},a=(y=function(e,i,r){var o,a=e.cells,s=e.rows;return function(){return S.canUseDOM?(o||(t=s,n=void 0===a?1:a,t=f([d([p([u("1","k-calendar-td k-alt")])].concat(g(t,function(){return p(g(n,function(e){return u('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=i,o=l(r?[m(),f([h([p([c("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-table k-calendar-weekdays"),v([t,t])]:[m(),v([t,t])],e,{left:"-10000px",position:"absolute"})),o):null;var e,t,n}})({cells:7,rows:6},"k-calendar-view k-calendar-monthview k-vstack",!0),s=y({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!(o=function(e){var t=r(e);return t.className=t.className+" k-scrollable-horizontal",e})),y=y({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),b=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},w=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},D=function(e){return e.querySelector("tbody")},this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(a(),function(e){var t=D(e);O.calendarHeight=b(e),O.monthViewHeight=b(t),O.headerHeight=b(t.children[0]),O.scrollableContentHeight=b(r(e))}),this.batch(o(a()),function(e){var t=D(e);O.calendarWidth=w(e),O.monthViewWidth=w(t),O.scrollableContentWidth=w(r(e))}),this.batch(s(),function(e){O.yearViewHeight=b(D(e)),O.scrollableYearContentHeight=b(r(e))}),this.batch(o(s()),function(e){O.yearViewWidth=w(D(e))}),this.batch(y(),function(e){O.decadeViewHeight=b(D(e)),O.centuryViewHeight=O.decadeViewHeight}),this.batch(o(y()),function(e){O.decadeViewWidth=w(D(e)),O.centuryViewWidth=O.decadeViewWidth}),this.batch(S.canUseDOM?t=t||l([v([n([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null,function(e){O.navigationItemHeight=b(e.querySelector("li"))}))},r.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},r.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},r.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}},r.prototype.batch=function(e,t){var n=this.hostContainer||document.body,e=n.appendChild(e);t(e),n.removeChild(e)},t.DOMService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i={33:o.Action.PrevView,34:o.Action.NextView,35:o.Action.LastInView,36:o.Action.FirstInView,37:o.Action.Left,38:o.Action.Up,39:o.Action.Right,40:o.Action.Down,"meta+38":o.Action.UpperView,"meta+40":o.Action.LowerView};function r(e){this.bus=e}r.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return i[e]},r.prototype.move=function(e,t,n,i,r){return i?t===o.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,r),e):t===o.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,r),e):i.move(e,t):e},t.NavigationService=r},function(e,t,n){"use strict";function i(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=e,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=e,function(e){return e*t})},i.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)}n.target===this.view.element&&(this.navScrolled?this.navScrolled=!1:(this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)))}},i.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},i.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},i.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},t.ScrollSyncService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);function r(e){this.intl=e}r.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},t.WeekNamesService=r},function(e,t,n){"use strict";var i,o,r=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(a=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}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),l=n(4),u=n(0),c=n(32),p=n(1),d=n(17),n=(o=s.Component,r(h,o),Object.defineProperty(h.prototype,"take",{get:function(){return(void 0!==this.props.take?this.props:h.defaultProps).take},enumerable:!0,configurable:!0}),h.prototype.componentDidUpdate=function(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0},h.prototype.render=function(){var t=this,e=(this.calculateHeights(),this.lastView!==this.props.activeView),n=p.dateInRange(this.props.focusedDate,this.props.min,this.props.max),e=e?this.props.service.skip(n,this.props.min):this.state.skip,i=this.props.service.total(this.props.min,this.props.max),r=this.getTake(e,i),o=this.props.service.addToDate(this.props.min,e),o=this.props.service.datesList(o,r),r=(this.props.activeView===this.lastView&&u.isEqual(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min)),s.createElement(d.Virtualization,{skip:e,take:this.take,total:i,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},s.createElement("ul",{ref:function(e){t.list=e},className:"k-reset"},o.map(function(e){return t.buildNavigationItem(e)}))));return s.createElement("div",{className:"k-calendar-navigation"},s.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?r:null)},h.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},h.propTypes={activeView:l.number.isRequired,focusedDate:l.instanceOf(Date).isRequired,max:l.instanceOf(Date).isRequired,min:l.instanceOf(Date).isRequired,onChange:l.func,take:l.number},h.defaultProps={take:30},h);function h(e){var r=o.call(this,e)||this,e=(r.topOffset=0,r.handleVirtualizationMount=function(e){r.virtualization=e,r.virtualization&&r.list&&(r.list.style.transform="translateY("+r.topOffset+"px)",e=p.dateInRange(r.props.focusedDate,r.props.min,r.props.max),e=r.props.service.skip(e,r.props.min),r.virtualization.scrollToIndex(e))},r.buildNavigationItem=function(e){var t=r.props.service.navigationTitle(e),n=r.props.service.isRangeStart(e),i="kendo-react-calendar-nav-item-"+e.getTime(),e={text:t,value:e,isRangeStart:n,view:r.props.activeView,onClick:r.handleDateChange};return r.props.navigationItem?s.createElement(r.props.navigationItem,a({},e,{key:i}),t):s.createElement(c.CalendarNavigationItem,a({},e,{key:i}),t)},r.calculateHeights=function(){var e=r.props.dom.calendarHeight;r.itemHeight=r.props.dom.navigationItemHeight||1,r.maxViewHeight=r.props.dom.monthViewHeight,r.topOffset=(e-r.itemHeight)/2,r.bottomOffset=e-r.itemHeight},r.handleDateChange=function(e,t){var n=r.props.onChange;n&&(e={value:u.cloneDate(e),target:r,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,e))},r.handleScrollAction=function(e){var t=e.scrollAction,e=e.pageAction,e=(e||r.state).skip;r.state.skip!==e&&r.setState({skip:e}),r.list&&t&&(e="translateY("+t.offset+"px)",r.list.style.transform=e)},r.lastView=r.props.activeView,r.lastFocus=r.props.focusedDate,r.props.service.skip(r.props.focusedDate,r.props.min)),t=r.props.service.total(r.props.min,r.props.max);return r.state={skip:0<e-r.getTake(e,t)?e:0},r}t.Navigation=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),i=(t.KendoDate=i.KendoDate,n(33));t.Mask=i.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),s=n(33),i=n(34);function r(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=f.getDate(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}Object.defineProperty(r.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),r.prototype.setValue=function(e){e?f.isEqual(e,this._value)||(this._value=f.cloneDate(e),this.modifyExisting(!0)):(this._value=f.getDate(new Date),this.modifyExisting(!1))},r.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)},r.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return f.cloneDate(this.value)},r.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},r.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)},r.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}},r.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}},r.prototype.modifyPart=function(e,t){var n=f.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=f.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},r.prototype.parsePart=function(e,t){if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var n=this.intl.formatDate(this.value,this.format),i=this.dateFormatString(this.value,this.format),r=i.symbols,o=!1,a="",s="",l="",u=0;u<n.length;u++)r[u]===e?(s+=this.getExisting(e)?n[u]:"0",o=!0):o?l+=n[u]:a+=n[u];for(var c=null,p=this.matchMonth(t);0<s.length&&"0"===s.charAt(0);)s=s.slice(1);for(4<=s.length&&(s=""),u=0;u<2;u++){var d=s+t,h=parseInt(d,10);if((c=this.intl.parseDate(a+d+l,this.format))||isNaN(h)||isNaN(parseInt(t,10))||("M"!==e||p||-1<(h=h-1)&&h<12&&((c=f.cloneDate(this.value)).setMonth(h),c.getMonth()!==h&&(c=f.lastDayOfMonth(f.addMonths(c,-1)))),"y"===e&&(c=f.createDate(parseInt(d,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&&c.getDate()!==this.value.getDate()&&(c=f.lastDayOfMonth(f.addMonths(c,-1))))),c)return this._value=c,this.setExisting(e,!0),{value:this.value};s=""}return p&&(c=this.intl.parseDate(a+p+l,this.format))?(this._value=c,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(i.partMap,e)?null:((i={})[e]=!0,i),this.setExisting(e,!1)),{value:null})},r.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(i.dateSymbolMap,{})[e]},r.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},r.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},r.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},r.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""},r.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[]},r.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],r=[],o=0;o<n.length;o++)for(var a=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<a;)i.push(this.symbols[n[o].pattern[0]]||"_"),r.push(n[o]),a--;t=new s.Mask;return t.symbols=i.join(""),t.partMap=r,t},r.prototype.merge=function(e,t){for(var n="",i="",r=t.symbols,o=r.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(r[o])||this.getExisting(r[o]))n=e[o]+n,i=r[o]+i;else{for(var a=r[o];0<=o&&a===r[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=r[o]+i}return{text:n,format:i}},r.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},t.KendoDate=r},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),V=this&&this.__assign||function(){return(V=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}).apply(this,arguments)},N=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},R=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),s=n(15),A=n(0),F=n(2),l=n(11),u=n(14),c=n(16),p=n(1),d=n(1),j=n(7),L=n(5),h=n(36),f=n(37),H=n(21),n=(r=R.Component,o(B,r),Object.defineProperty(B.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?A.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:B.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:B.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"dateInputComp",{get:function(){return this.props.dateInput||B.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||B.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"calendarComp",{get:function(){return this.props.calendar||B.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"popupComp",{get:function(){return this.props.popup||B.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||B.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"validity",{get:function(){var e=d.isInDateRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,e=(!this.required||null!==this.value)&&e,e=void 0!==this.props.valid?this.props.valid:e;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:e,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:B.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:B.defaultProps).required},enumerable:!0,configurable:!0}),B.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},B.prototype.componentDidUpdate=function(){this._calendar&&this._calendar.element&&this.show&&!this.prevShow&&this._calendar.element.focus({preventScroll:!0}),this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},B.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},B.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?B.defaultProps.size:t,t=e.rounded,o=void 0===t?B.defaultProps.rounded:t,t=e.fillMode,a=void 0===t?B.defaultProps.fillMode:t,t=e.disabled,n=e.tabIndex,s=e.title,l=e.id,u=e.format,c=e.formatPlaceholder,p=e.min,d=e.max,h=e.weekNumber,f=e.focusedDate,m=e.className,g=e.width,v=e.name,y=e.validationMessage,b=e.required,w=e.validityStyles,D=e.ariaLabelledBy,O=e.ariaDescribedBy,e=e.ariaLabel,k=this.props.popupSettings,S=k.popupClass,k=N(k,["popupClass"]),P=this.show,_=this.value,I=_&&A.getDate(_),C=!this.validityStyles||this.validity.valid,S=F.classNames("k-calendar-container k-group k-reset",S),M={disabled:t,format:u,formatPlaceholder:c,id:l,ariaLabelledBy:D,ariaDescribedBy:O,ariaLabel:e,max:d,min:p,name:v,onChange:this.handleInputValueChange,required:b,tabIndex:P?-1:n,title:s,valid:this.validity.valid,validationMessage:y,validityStyles:w,value:_,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},E=V({show:P,anchor:this._element,className:S,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},k),T={disabled:t,value:I,min:p,max:d,weekNumber:h,focusedDate:f,onChange:this.handleCalendarValueChange},x=L.provideLocalizationService(this).toLanguageString(j.toggleCalendar,j.messages[j.toggleCalendar]),u=R.createElement(F.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t,n=e.onFocus,e=e.onBlur;return R.createElement("span",{role:"group","aria-expanded":i.show,ref:function(e){i._element=e},className:F.classNames("k-input","k-datepicker",((t={})["k-input-"+(F.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-"+(F.kendoThemeMaps.roundedMap[o]||o)]=o,t["k-input-"+a]=a,t["k-invalid"]=!C,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),m),onKeyDown:i.handleKeyDown,style:{width:g},onFocus:n,onBlur:e},R.createElement(i.dateInputComp,V({_ref:i._dateInput},M)),R.createElement(i.toggleButtonComp,{tabIndex:-1,type:"button",icon:"calendar",title:x,className:"k-input-button",rounded:null,onClick:i.handleIconClick,"aria-label":x,onMouseDown:i.handleIconMouseDown}),R.createElement(i.popupComp,V({},E),R.createElement(i.calendarComp,V({_ref:i.setCalendarRef},T))))});return this.props.label?R.createElement(H.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:C,editorDisabled:this.props.disabled,children:u,style:{width:this.props.width}}):u},B.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},B.prototype.mergeTime=function(e){return this.value&&e?p.setTime(e,this.value):e},B.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},B.displayName="DatePicker",B.propTypes={className:a.string,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel: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,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},B.defaultProps={defaultShow:!1,defaultValue:null,dateInput:u.DateInput,calendar:c.Calendar,toggleButton:h.ToggleButton,popup:s.Popup,pickerWrap:f.PickerWrap,disabled:!1,format:"d",max:p.MAX_DATE,min:p.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},B);function B(e){var i=r.call(this,e)||this;return i._popupId=F.guid(),i._element=null,i._dateInput=R.createRef(),i._calendar=null,i.shouldFocusDateInput=!1,i.focus=function(){i.dateInput&&i.dateInput.focus()},i.setCalendarRef=function(e){i._calendar=e},i.nextValue=function(e,t){return(void 0!==e.value?e:t).value},i.nextShow=function(e,t){return(void 0!==e.show?e: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:A.cloneDate(e||void 0),show:!1}),i.valueDuringOnChange=e,i.showDuringOnChange=!1,i.shouldFocusDateInput=!0;e=i.props.onChange;e&&e.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(){i.setState({focused:!0})},i.handleBlur=function(){i.setState({focused:!1}),i.setShow(!1)},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===F.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==F.Keys.up&&n!==F.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===F.Keys.up,i.setShow(n===F.Keys.down))},F.validatePackage(l.packageMetadata),i.state={value:i.props.defaultValue||B.defaultProps.defaultValue,show:i.props.defaultShow||B.defaultProps.defaultShow,focused:!1},i}t.DatePickerWithoutContext=n,t.DatePickerPropsContext=F.createPropsContext(),t.DatePicker=F.withPropsContext(t.DatePickerPropsContext,n),t.DatePicker.displayName="KendoReactDatePicker",L.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=this&&this.__assign||function(){return(E=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}).apply(this,arguments)},T=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},x=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),V=n(15),s=n(0),N=n(2),R=n(5),l=n(2),u=n(11),A=n(7),c=n(14),F=n(55),p=n(1),d=n(9),j=n(21),L=n(6),n=(r=x.Component,o(H,r),Object.defineProperty(H.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?s.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),i=d.isInRange(e,t,n),r=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&i,i=void 0!==this.props.valid?this.props.valid:i;return{customError:r,rangeOverflow:d.isBiggerThanMax(e,n),rangeUnderflow:d.isSmallerThanMin(e,t),valid:i,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:H.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:H.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"popupSettings",{get:function(){return this.props.popupSettings||H.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:H.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:H.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInputComp",{get:function(){return this.props.dateInput||H.defaultProps.dateInput},enumerable:!0,configurable:!0}),H.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},H.prototype.componentDidUpdate=function(){this._timeSelector&&this.show&&!this.prevShow?this._timeSelector.focusActiveList():this.dateInput&&this.dateInput.element&&!this.show&&this.shouldFocusDateInput&&this.dateInput.element.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},H.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?H.defaultProps.size:t,t=e.rounded,o=void 0===t?H.defaultProps.rounded:t,t=e.fillMode,a=void 0===t?H.defaultProps.fillMode:t,t=e.disabled,n=e.tabIndex,s=e.title,l=e.id,u=e.className,c=e.format,p=e.formatPlaceholder,d=e.smoothScroll,h=e.width,f=e.name,m=e.steps,g=e.cancelButton,v=e.nowButton,y=e.validationMessage,b=e.required,w=e.validityStyles,D=e.ariaLabelledBy,e=e.ariaDescribedBy,O=this.popupSettings,k=O.popupClass,O=T(O,["popupClass"]),S=!this.validityStyles||this.validity.valid,k=N.classNames("k-group k-reset",k),P={disabled:t,format:c,formatPlaceholder:p,id:l,ariaLabelledBy:D,ariaDescribedBy:e,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:f,onChange:this.handleInputValueChange,required:b,steps:m,tabIndex:this.show?-1:n,title:s,valid:this.validity.valid,validationMessage:y,validityStyles:w,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},_=E({show:this.show,animate:null!==this.element,anchor:this.element,className:k,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},O),I=x.createElement(F.TimeSelector,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:g,disabled:t,nowButton:v,format:c,min:this.min,max:this.max,steps:m,smoothScroll:d,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),p=R.provideLocalizationService(this),C=p.toLanguageString(A.toggleClock,A.messages[A.toggleClock]),M=p.toLanguageString(A.toggleTimeSelector,A.messages[A.toggleTimeSelector]),D=x.createElement(N.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t,n=e.onFocus,e=e.onBlur;return x.createElement("div",{ref:function(e){i._element=e},className:N.classNames("k-input","k-timepicker",((t={})["k-input-"+(N.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-"+(N.kendoThemeMaps.roundedMap[o]||o)]=o,t["k-input-"+a]=a,t["k-invalid"]=!S,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),u),onKeyDown:i.handleKeyDown,style:{width:h},onFocus:n,onBlur:e},x.createElement(i.dateInputComp,E({_ref:i._dateInput},P)),x.createElement(L.Button,E({tabIndex:-1,type:"button",icon:"clock",onMouseDown:i.handleIconMouseDown,onClick:i.handleIconClick,title:M,"aria-label":M,className:"k-input-button",rounded:null},{"aria-controls":i._popupId,"aria-label":C})),i.props.popup?x.createElement(i.props.popup,E({},_),I):x.createElement(V.Popup,E({},_),I))});return this.props.label?x.createElement(j.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:S,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},H.prototype.normalizeTime=function(e){return p.setTime(p.MIDNIGHT_DATE,e)},H.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},H.prototype.mergeTime=function(e){return this.value&&e?p.setTime(this.value,e):e},H.displayName="TimePicker",H.propTypes={className:a.string,cancelButton:a.bool,nowButton:a.bool,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy: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,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},H.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:p.MAX_TIME,min:p.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:c.DateInput,size:"medium",rounded:"medium",fillMode:"solid"},H);function H(e){var i=r.call(this,e)||this;return i._popupId=N.guid(),i._element=null,i._dateInput=x.createRef(),i._timeSelector=null,i.shouldFocusDateInput=!1,i.focus=function(){i.dateInput&&i.dateInput.focus()},i.setTimeSelectorRef=function(e){i._timeSelector=e},i.nextValue=function(e,t){return(void 0!==e.value?e:t).value},i.nextShow=function(e,t){return(void 0!==e.show?e:t).show},i.handleInputValueChange=function(e){var t=i.mergeTime(e.value);i.handleValueChange(E({},e,{value:t}))},i.handleValueChange=function(e){i.setState({value:s.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(){i.setState({focused:!0})},i.handleBlur=function(){i.setState({focused:!1}),i.setShow(!1)},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===N.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==N.Keys.up&&n!==N.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===N.Keys.up,i.setShow(n===N.Keys.down))},l.validatePackage(u.packageMetadata),i.state={value:i.props.defaultValue||H.defaultProps.defaultValue,show:i.props.defaultShow||H.defaultProps.defaultShow,focused:!1},i.normalizeTime=i.normalizeTime.bind(i),i.setShow=i.setShow.bind(i),i.mergeTime=i.mergeTime.bind(i),i}t.TimePickerWithoutContext=n,t.TimePickerPropsContext=N.createPropsContext(),t.TimePicker=N.withPropsContext(t.TimePickerPropsContext,n),t.TimePicker.displayName="KendoReactTimePicker",R.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=this&&this.__assign||function(){return(f=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}).apply(this,arguments)},m=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),s=n(0),g=n(2),v=n(5),y=n(7),l=n(1),u=n(9),b=n(38),w=n(6),n=((n=t.Direction||(t.Direction={}))[n.Left=0]="Left",n[n.Right=1]="Right",r=m.Component,o(c,r),Object.defineProperty(c.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?s.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"intl",{get:function(){return v.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"current",{get:function(){return null!==this.state.current?s.cloneDate(this.state.current):null},enumerable:!0,configurable:!0}),c.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},c.prototype.render=function(){var t=this,e=this.props,n=e.format,i=e.cancelButton,r=e.disabled,o=e.tabIndex,a=e.className,s=e.smoothScroll,l=e.min,u=e.max,c=e.boundRange,p=e.nowButton,e=e.steps,d=v.provideLocalizationService(this),h=d.toLanguageString(y.timePickerCancel,y.messages[y.timePickerCancel]),d=d.toLanguageString(y.timePickerSet,y.messages[y.timePickerSet]);return m.createElement("div",{ref:function(e){t._element=e},tabIndex:r?void 0:o||0,className:g.classNames("k-timeselector k-reset",a,{"k-disabled":r}),onKeyDown:this.handleKeyDown},m.createElement(b.TimePart,{ref:function(e){t.timePart=e},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:s,min:l,max:u,boundRange:c,disabled:r,nowButton:p,steps:e,show:this.props.show}),m.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},i&&m.createElement(w.Button,f({type:"button",ref:function(e){t._cancelButton=e},className:"k-time-cancel",onClick:this.handleReject,title:h},{"aria-label":h}),h),m.createElement(w.Button,f({type:"button",ref:function(e){t._acceptButton=e},className:"k-time-accept",themeColor:"primary",onClick:this.handleAccept,title:d},{"aria-label":d}),d)))},c.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},c.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},c.propTypes={cancelButton:a.bool,className:a.string,disabled:a.bool,format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),max:a.instanceOf(Date),min:a.instanceOf(Date),nowButton:a.bool,steps:a.shape({hour:a.number,minute:a.number,second:a.number}),smoothScroll:a.bool,tabIndex:a.number,value:a.instanceOf(Date),show:a.bool},c.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:l.MIN_TIME,max:l.MAX_TIME,boundRange:!1},c);function c(e){var n=r.call(this,e)||this;return n.focusActiveList=function(){n.timePart&&n.timePart.focus({preventScroll:!0})},n.handleKeyDown=function(e){return e.keyCode!==g.Keys.enter?void 0:void(n.hasActiveButton()||n.handleAccept(e))},n.handleAccept=function(e){var t=n.mergeValue(s.cloneDate(n.value||u.getNow()),n.timePart?n.timePart.value:n.current),t=(n.setState({value:t}),n.valueDuringOnChange=t,n.props.onChange);t&&t.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:n.value,target:n}),n.valueDuringOnChange=void 0},n.handleReject=function(e){n.setState({current:n.value});var t=n.props.onReject;t&&t.call(void 0,e)},n.handleNowClick=function(e){var t=n.mergeValue(s.cloneDate(n.value||u.getNow()),u.getNow()),t=(n.setState({current:t,value:t}),n.valueDuringOnChange=t,n.props.onChange);t&&t.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:n.value,target:n}),n.valueDuringOnChange=void 0},n.handleChange=function(e){n.setState({current:e})},n.dateFormatParts=n.intl.splitDateFormat(n.props.format||c.defaultProps.format),n.mergeValue=u.valueMerger(u.generateGetters(n.dateFormatParts)),n.hasActiveButton=n.hasActiveButton.bind(n),n.state={current:n.props.value||l.MIDNIGHT_DATE,value:n.props.value||c.defaultProps.value},n}t.TimeSelector=n,v.registerForIntl(n),v.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o,a=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),l=n(4),u=n(0),c=n(2),p=n(5),d=n(17),h=n(57),f=n(58),n=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=((r={})[h.TIME_PART.dayperiod]=f.DayPeriodService,r[h.TIME_PART.hour]=f.HoursService,r[h.TIME_PART.minute]=f.MinutesService,r[h.TIME_PART.second]=f.SecondsService,r),h=(o=s.Component,a(v,o),Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"min",{get:function(){return this.props.min||v.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return this.props.max||v.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):v.defaultProps.step},enumerable:!0,configurable:!0}),v.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())})},v.prototype.componentDidUpdate=function(){var e;this.virtualization&&(e=this.service.selectedIndex(this.props.value),this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0)},v.prototype.render=function(){var e,t,n,i=this;if(this.props.part.type&&g[this.props.part.type])return this.calculateHeights(),this.intl=p.provideIntlService(this),this.service=new g[this.props.part.type](this.intl),this.configureServices(),e=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",t=this.service.total(this.props.value),n=s.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},e.map(function(e,t){return s.createElement("li",{key:t,className:"k-item",onClick:function(){i.handleChange(e)}},s.createElement("span",null,e.text))})),s.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(e){i._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:n,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(e){i.virtualization=e},role:"presentation",skip:0,tabIndex:-1,take:t,topOffset:this.topOffset,total:t}):s.createElement("div",{className:"k-time-container"},n))},v.propTypes={id:l.number,max:l.instanceOf(Date),min:l.instanceOf(Date),part:function(e,t,n){e=e[t];if(e&&g[e.type])return null;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){e=e[t];if(void 0!==e&&e<=0)throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n "+t+" cannot be less than 1.\n ");return null},value:l.instanceOf(Date),smoothScroll:l.bool,show:l.bool},v.defaultProps={boundRange:!1,max:n.MAX_TIME,min:n.MIDNIGHT_DATE,step:1,smoothScroll:!0},v);function v(e){var r=o.call(this,e)||this;return r.animateToIndex=!1,r.focus=function(e){Promise.resolve().then(function(){r.element&&r.element.focus(e)})},r.itemOffset=function(e){if(!r.virtualization)return-1;var t=r.service.selectedIndex(r.props.value),n=r.virtualization.activeIndex(),i=r.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);if(t===n&&e<2)return i;t=n<t;return t&&e>=r.bottomThreshold||!t&&e>r.topThreshold?r.virtualization.itemOffset(n+1):i},r.calculateHeights=function(){r.dom.didCalculate&&(r.itemHeight=r.dom.itemHeight,r.listHeight=r.dom.timeListHeight,r.topOffset=(r.listHeight-r.itemHeight)/2,r.bottomOffset=r.listHeight-r.itemHeight,r.topThreshold=.05*r.itemHeight,r.bottomThreshold=.95*r.itemHeight)},r.configureServices=function(e){var e=void 0===e?r.props:e,t=e.min,n=e.max,e=e.value,t=r.service.limitRange(t||r.min,n||r.max,e||r.props.value),n=t[0],e=t[1];r.service.configure(r.serviceSettings({min:n,max:e}))},r.serviceSettings=function(e){var t={boundRange:r.props.boundRange||v.defaultProps.boundRange,insertUndividedMax:!1,min:u.cloneDate(r.min),max:u.cloneDate(r.max),part:r.props.part,step:r.step},t=Object.assign({},t,e);return t.boundRange="hour"!==t.part.type||r.props.boundRange||v.defaultProps.boundRange,t},r.handleScrollAction=function(e){var t=e.target,e=e.animationInProgress;r.virtualization&&t&&!e&&(r.animateToIndex=!1,e=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),t=r.service.data(r.props.value)[e],r.handleChange(t))},r.handleFocus=function(e){var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleMouseOver=function(){r._element&&document&&document.activeElement!==r._element&&r.props.show&&r._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode,t=(t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault(),(m[e.keyCode]||c.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value)));t&&r.handleChange(t)},r.handleChange=function(e){var t,e=r.service.apply(r.props.value,e.value);r.props.value.getTime()!==e.getTime()&&(r.setState({value:e}),(t=r.props.onChange)&&t.call(void 0,e))},r.dom=new f.DOMService,r}t.TimeList=h,p.registerForIntl(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(20);t.TIME_PART=n.TIME_PART},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),i=(t.DayPeriodService=i.DayPeriodService,n(60)),i=(t.DOMService=i.DOMService,n(61)),i=(t.HoursService=i.HoursService,n(62)),i=(t.MinutesService=i.MinutesService,n(63));t.SecondsService=i.SecondsService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){return(e=i.cloneDate(e)).setHours(t),e}function a(e){return null!==e&&e<12}var i=n(0);function r(e){this.intl=e}r.prototype.apply=function(e,t){var n=e.getHours(),i=a(n),t=a(t.getHours());if(i&&t||!i&&!t)return e;var i=this.normalizedRange(),r=i[0],i=i[1],i=void 0===i?24:i;return o(e,Math.min(Math.max(r,n+(t?-12:12)),i||24))},r.prototype.configure=function(e){var t=e.min,t=void 0===t?this.min:t,n=e.max,n=void 0===n?this.max:n,e=e.part,e=void 0===e?this.part:e;this.min=t,this.max=n,this.part=e},r.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n=[],i=this.normalizedRange(),r=i[0],i=i[1],t=this.intl.dateFormatNames(t);return a(r)&&n.push({text:t.am,value:o(this.min,r)}),null!==i&&(!i||11<i)&&n.push({text:t.pm,value:o(this.min,Math.max(12,i))}),this.min.getHours()!==r?n.reverse():n},r.prototype.isRangeChanged=function(e,t){return!1},r.prototype.limitRange=function(e,t,n){return[e,t]},r.prototype.total=function(){var e=this.normalizedRange(),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},r.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},r.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())},r.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},t.DayPeriodService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(2);function i(){this.didCalculate=!1}i.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},i.prototype.calculateHeights=function(e){var t,n,i,r;a.canUseDOM&&(i=o.domContainerFactory("div"),n=o.domContainerFactory("span"),r=o.domContainerFactory("ul"),t=o.domContainerFactory("li"),n=i([n("minute","k-title"),i([i([r([t("<span>02</span>","k-item")],"k-reset")],"k-content k-calendar-content k-scrollable k-time-container")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),r=(i=e&&e.querySelector(".k-time-container")||document.body).appendChild(n),this.timeListHeight=r.querySelector(".k-scrollable").offsetHeight,this.itemHeight=r.querySelector("li").offsetHeight,i.removeChild(r),this.didCalculate=!0)},t.DOMService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e%24}function i(e,t){return o(24+e-t)}function r(n){return function(e,t){return t&&a.getDate(e).getTime()!==a.getDate(t).getTime()?l.setHours(e,n):e}}var a=n(0),s=n(1),l=n(9),u=r(0),c=r(23);function p(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}p.prototype.apply=function(e,t){return l.setHours(e,t.getHours())},p.prototype.configure=function(e){var t=this,n=e.boundRange,n=void 0===n?this.boundRange:n,i=e.insertUndividedMax,i=void 0===i?this.insertUndividedMax:i,r=e.min,r=void 0===r?this.min:r,o=e.max,o=void 0===o?this.max:o,a=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=n,this.insertUndividedMax=i,this.toListItem=function(e){e=l.setHours(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,a.pattern),value:e}},this.min=r,this.max=o,this.step=e},p.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],r=(t=r,n=this.step,l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(t+e*n))}));return this.addLast(r),e&&this.addMissing(r,e),r},p.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},p.prototype.limitRange=function(e,t,n){return this.boundRange?[u(e,n),c(t,n)]:[e,t]},p.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},p.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},p.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},p.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},p.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},p.prototype.countFromMin=function(e){var e=this.range(e),t=e[0],e=e[1];return Math.floor(i(e,t)/this.step)+1},p.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},p.prototype.isLastMissing=function(e){return this.isMissing(l.setHours(this.max,this.lastHour(e)))},p.prototype.divideByStep=function(e){return i(e.getHours(),this.min.getHours())/this.step},p.prototype.lastHour=function(e){return this.range(e)[1]},p.prototype.range=function(e){var e=this.limitRange(this.min,this.max,e),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},t.HoursService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e%60}function i(e,t){return o(60+e-t)}function r(n){return function(e,t){return t&&e.getHours()!==t.getHours()?l.setMinutes(e,n):e}}var a=n(0),s=n(1),l=n(9),u=r(0),c=r(59);function p(e){this.intl=e,this.insertUndividedMax=!1}p.prototype.apply=function(e,t){return l.setMinutes(e,t.getMinutes())},p.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,r=e.max,r=void 0===r?this.max:r,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=l.setMinutes(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=r,this.step=e},p.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],r=(t=r,n=this.step,l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(t+e*n))}));return this.addLast(r),e&&this.addMissing(r,e),r},p.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},p.prototype.limitRange=function(e,t,n){return[u(e,n),c(t,n)]},p.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},p.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},p.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},p.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},p.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},p.prototype.countFromMin=function(e){var e=this.range(e),t=e[0],e=e[1];return Math.floor(i(e,t)/this.step)+1},p.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},p.prototype.isLastMissing=function(e){return this.isMissing(l.setMinutes(this.max,this.lastMinute(e)))},p.prototype.divideByStep=function(e){return i(e.getMinutes(),this.min.getMinutes())/this.step},p.prototype.lastMinute=function(e){return this.range(e)[1]},p.prototype.range=function(e){var e=this.limitRange(this.min,this.max,e),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},t.MinutesService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e%60}function i(e,t){return o(60+e-t)}function r(n){return function(e,t){return!t||e.getMinutes()===t.getMinutes()&&e.getHours()===t.getHours()?e:l.setSeconds(e,n)}}var a=n(0),s=n(1),l=n(9),u=r(0),c=r(59);function p(e){this.intl=e,this.insertUndividedMax=!1}p.prototype.apply=function(e,t){return l.setSeconds(e,t.getSeconds())},p.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,r=e.max,r=void 0===r?this.max:r,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=l.setSeconds(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=r,this.step=e},p.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],r=(t=r,n=this.step,l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(t+e*n))}));return this.addLast(r),e&&this.addMissing(r,e),r},p.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},p.prototype.limitRange=function(e,t,n){return[u(e,n),c(t,n)]},p.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},p.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},p.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},p.prototype.divideByStep=function(e){return i(e.getSeconds(),this.min.getSeconds())/this.step},p.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},p.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},p.prototype.countFromMin=function(e){var e=this.range(e),t=e[0],e=e[1];return Math.floor(i(e,t)/this.step)+1},p.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},p.prototype.isLastMissing=function(e){return this.isMissing(l.setSeconds(this.max,this.lastSecond(e)))},p.prototype.lastSecond=function(e){return this.range(e)[1]},p.prototype.range=function(e){var e=this.limitRange(this.min,this.max,e),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},t.SecondsService=p},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),s=n(22),l=n(10),u=n(2),c=n(0),n=n(8),o=(r=a.Component,o(p,r),Object.defineProperty(p.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===l.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:p.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:p.defaultProps).max},enumerable:!0,configurable:!0}),p.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},p.prototype.render=function(){var t=this,n=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,e=u.classNames("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===l.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===l.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===l.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===l.CalendarViewEnum.century});return a.createElement("div",{ref:function(e){t._element=e},className:e},this.props.dates.map(function(e){return a.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:e.getTime()},a.createElement(s.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:n,selectedDate:t.props.value,showWeekNumbers:t.weekNumber,onChange:t.handleDateChange,onCellEnter:t.props.onCellEnter,cell:t.props.cell,weekCell:t.props.weekCell}))}))},p.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:n.MIN_DATE,max:n.MAX_DATE},p);function p(e){var i=r.call(this,e)||this;return i.isActive=!1,i.focusActiveDate=function(){var e,t;i._element&&(e=i._element.querySelector("td.k-focus"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-focus"))&&e.classList.remove("k-focus"),i.isActive=!1)},i.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}},i.handleDateChange=function(e,t){void 0===t&&(t=!1);var n=i.props.onChange;n&&(e={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:c.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,e))},i}t.HorizontalViewList=o},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(u=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}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),p=n(15),s=n(0),d=n(2),h=n(5),l=n(2),f=n(11),m=n(14),g=n(39),v=n(10),y=n(8),b=n(7),w=n(6),n=n(1),o=(r=c.Component,o(D,r),Object.defineProperty(D.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"calendar",{get:function(){return this._calendar},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:this.state).value)||v.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:D.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:D.defaultProps).max},enumerable:!0,configurable:!0}),D.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},D.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},D.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},D.prototype.render=function(){var t=this,e=this.value||v.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,r=d.classNames("k-daterangepicker",{"k-disabled":this.props.disabled},this.props.className),o=h.provideLocalizationService(this),a=o.toLanguageString(b.start,b.messages[b.start]),s=o.toLanguageString(b.end,b.messages[b.end]),o=o.toLanguageString(b.separator,b.messages[b.separator]),a=u({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:e.start,onChange:this.handleStartChange}),s=u({label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:e.end,onChange:this.handleEndChange}),l=u({animate:null!==this._element,anchor:this._element,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),e=u({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}),e=this.props.calendar?c.createElement(this.props.calendar,u({},e)):c.createElement(g.MultiViewCalendar,u({},e,{ref:this.setCalendarRef})),n=c.createElement(w.Button,u({className:"k-select",fillMode:"flat",title:h.provideLocalizationService(this).toLanguageString(b.swapStartEnd,b.messages[b.swapStartEnd]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+i,"aria-label":h.provideLocalizationService(this).toLanguageString(b.swapStartEnd,b.messages[b.swapStartEnd])}),c.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return c.createElement("span",{ref:function(e){t._element=e},className:r,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},this.props.startDateInput?c.createElement(this.props.startDateInput,u({},a)):c.createElement(m.DateInput,u({},a,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?n:o,this.props.endDateInput?c.createElement(this.props.endDateInput,u({},s)):c.createElement(m.DateInput,u({},s,{ref:this._endDateInput})),this.props.popup?c.createElement(this.props.popup,u({},l),e):c.createElement(p.Popup,u({},l),e))},D.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({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0}))},D.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},D.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},D.displayName="DateRangePicker",D.propTypes={allowReverse:a.bool,calendarSettings:a.any,className:a.string,defaultShow:a.bool,defaultValue:a.shape({start:n.nullable(a.instanceOf(Date).isRequired),end:n.nullable(a.instanceOf(Date).isRequired)}),disabled:a.bool,endDateInputSettings:a.shape(m.DateInputWithoutContext.propTypes),focusedDate:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),id:a.string,ariaLabelledBy:a.string,ariaDescribedBy: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:n.nullable(a.instanceOf(Date).isRequired),end:n.nullable(a.instanceOf(Date).isRequired)})},D.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:v.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:y.MAX_DATE,min:y.MIN_DATE,swapButton:!1},D);function D(e){var i=r.call(this,e)||this;return i._element=null,i._calendar=null,i._startDateInput=c.createRef(),i._endDateInput=c.createRef(),i._popupId=d.guid(),i._startInputId=d.guid(),i._endInputId=d.guid(),i.shouldFocusDateInput=!1,i.shouldFocusCalendar=!1,i.focus=function(){i.startDateInput&&i.startDateInput.focus()},i.setCalendarRef=function(e){i._calendar=e},i.focusCalendarElement=function(){i._calendar&&i._calendar.element&&i._calendar.element.focus({preventScroll:!0})},i.calculateValue=function(e,t){return(void 0!==e.value?e:t).value||v.EMPTY_SELECTIONRANGE},i.calculateShow=function(e,t){return(void 0!==e.show?e:t).show},i.handleReverseClick=function(e){var t={start:i.value.end,end:i.value.start},e={syntheticEvent:e,nativeEvent:e.nativeEvent};i.handleChange(t,e)},i.handleReverseMouseDown=function(e){e.preventDefault()},i.handleFocus=function(e){clearTimeout(i.nextTickId),i.shouldFocusDateInput||i.setShow(!0),i.startDateInput&&i.startDateInput.element&&i.startDateInput.element.classList.add("k-focus"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.add("k-focus");var t=i.props.onFocus;t&&t.call(void 0,e)},i.handleBlur=function(e){i.nextTick(function(){i.startDateInput&&i.startDateInput.element&&i.startDateInput.element.classList.remove("k-focus"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.remove("k-focus"),i.setShow(!1)});var t=i.props.onBlur;t&&t.call(void 0,e)},i.handleEndChange=function(e){var t={start:i.value.start,end:s.cloneDate(e.value||void 0)};i.handleChange(t,e)},i.handleStartChange=function(e){var t={start:s.cloneDate(e.value||void 0),end:i.value.end};i.handleChange(t,e)},i.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||v.EMPTY_SELECTIONRANGE;e=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==i.value.end?e:i.value.start,end:null!==i.value.start?e:i.value.end}},i.handleCalendarChange=function(e){var t=i.extractRangeFromValue(e);i.handleChange(t,e)},i.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===d.Keys.esc?(e.preventDefault(),i.shouldFocusDateInput=!0,i.setShow(!1)):n&&t===d.Keys.down?(e.preventDefault(),i.shouldFocusCalendar=!0,i.setShow(!0)):t===d.Keys.tab&&i.show&&i._calendar&&i._calendar.element&&i.endDateInput&&i.endDateInput.element&&document&&document.activeElement===i.endDateInput.element&&(e.preventDefault(),i.focusCalendarElement())},i.handleChange=function(e,t){i.setState({value:e}),i.valueDuringOnChange=e;e=i.props.onChange;e&&(t={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:i.value,show:i.show,target:i},e.call(void 0,t)),i.valueDuringOnChange=void 0},l.validatePackage(f.packageMetadata),i.state={show:i.props.show||i.props.defaultShow||D.defaultProps.defaultShow,value:i.props.value||i.props.defaultValue||D.defaultProps.defaultValue},i.nextTick=i.nextTick.bind(i),i.setShow=i.setShow.bind(i),i.focusCalendarElement=i.focusCalendarElement.bind(i),i.focusDateInputElement=i.focusDateInputElement.bind(i),i}t.DateRangePickerWithoutContext=o,t.DateRangePickerPropsContext=d.createPropsContext(),t.DateRangePicker=d.withPropsContext(t.DateRangePickerPropsContext,o),t.DateRangePicker.displayName="KendoReactDateRangePicker",h.registerForLocalization(o)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=this&&this.__assign||function(){return(T=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}).apply(this,arguments)},x=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),a=n(4),V=n(15),s=n(0),N=n(2),l=n(14),u=n(2),R=n(6),c=n(11),p=n(1),A=n(7),F=n(5),j=n(67),d=n(9),h=n(8),L=n(21),n=(r=x.Component,o(H,r),Object.defineProperty(H.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:(void 0!==this.props.value?this.props:this.state).value;return null!==e?s.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:(void 0!==this.props.show?this.props:this.state).show},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:H.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:H.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validity",{get:function(){var e=p.isInDateRange(this.value,this.min,this.max)&&d.isInTimeRange(this.value,this.props.minTime||h.MIN_TIME,this.props.maxTime||p.MAX_TIME),t=void 0!==this.props.validationMessage,e=(!this.required||null!==this.value)&&e,e=void 0!==this.props.valid?this.props.valid:e;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:e,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:H.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:H.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"dateInputComp",{get:function(){return this.props.dateInput||H.defaultProps.dateInput},enumerable:!0,configurable:!0}),H.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},H.prototype.componentDidUpdate=function(){var e=this.dateInputElement();this._dateTimeSelector&&this.show&&!this.prevShow&&this._dateTimeSelector.focus({preventScroll:!0}),e&&!this.show&&this.shouldFocusDateInput&&e.focus({preventScroll:!0}),this.prevShow=this.show,this.shouldFocusDateInput=!1},H.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},H.prototype.render=function(){var i=this,e=this.props,t=e.size,r=void 0===t?H.defaultProps.size:t,t=e.rounded,o=void 0===t?H.defaultProps.rounded:t,t=e.fillMode,a=void 0===t?H.defaultProps.fillMode:t,s=e.disabled,t=e.tabIndex,n=e.title,l=e.id,u=e.format,c=e.formatPlaceholder,p=e.min,d=e.max,h=e.weekNumber,f=e.focusedDate,m=e.className,g=e.width,v=e.name,y=e.validationMessage,b=e.required,w=e.validityStyles,D=e.cancelButton,O=e.minTime,k=e.maxTime,S=e.ariaLabelledBy,P=e.ariaDescribedBy,_=e.popup,I=void 0===_?V.Popup:_,C=e.calendar,M=!this.validityStyles||this.validity.valid,E={id:l,ariaLabelledBy:S,ariaDescribedBy:P,format:u,formatPlaceholder:c,disabled:s,title:n,validityStyles:w,validationMessage:y,required:b,min:p,max:d,minTime:O,maxTime:k,name:v,tabIndex:this.show?-1:t,valid:this.validity.valid,value:this.value,onChange:this.handleValueChange,steps:this.props.steps,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show,size:null,fillMode:null,rounded:null},_=x.createElement(N.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},function(e){var t,n=e.onFocus,e=e.onBlur;return x.createElement("div",{ref:function(e){i._element=e},className:N.classNames("k-input","k-datetimepicker",((t={})["k-input-"+(N.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-"+(N.kendoThemeMaps.roundedMap[o]||o)]=o,t["k-input-"+a]=a,t["k-invalid"]=!M,t["k-required"]=i.required,t["k-disabled"]=i.props.disabled,t),m),onKeyDown:i.handleKeyDown,style:{width:g},onFocus:n,onBlur:e},x.createElement(i.dateInputComp,T({_ref:i._dateInput},E)),x.createElement(R.Button,T({tabIndex:-1,type:"button",icon:"calendar",onMouseDown:i.handleIconMouseDown,onClick:i.handleDateIconClick,title:F.provideLocalizationService(i).toLanguageString(A.toggleDateTimeSelector,A.messages[A.toggleDateTimeSelector]),className:"k-input-button",rounded:null},{"aria-controls":i._popupId,"aria-label":F.provideLocalizationService(i).toLanguageString(A.toggleDateTimeSelector,A.messages[A.toggleDateTimeSelector])})),x.createElement(I,{show:i.show,animate:null!==i.element,anchor:i.element,className:"k-datetime-container k-group k-reset",id:i._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},x.createElement(j.DateTimeSelector,{ref:function(e){i._dateTimeSelector=e},cancelButton:D,steps:i.props.steps,value:i.value,onChange:i.handleValueChange,onReject:i.handleReject,disabled:s,weekNumber:h,min:i.min,max:i.max,minTime:O,maxTime:k,focusedDate:f,format:u,calendar:C})))});return this.props.label?x.createElement(L.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:M,editorDisabled:this.props.disabled,children:_,style:{width:this.props.width}}):_},H.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},H.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},H.displayName="DateTimePicker",H.propTypes={className:a.string,defaultShow:a.bool,defaultValue:a.instanceOf(Date),disabled:a.bool,focusedDate:a.instanceOf(Date),format:a.oneOfType([a.string,a.shape({skeleton:a.string,pattern:a.string,date:a.oneOf(["short","medium","long","full"]),time:a.oneOf(["short","medium","long","full"]),datetime:a.oneOf(["short","medium","long","full"]),era:a.oneOf(["narrow","short","long"]),year:a.oneOf(["numeric","2-digit"]),month:a.oneOf(["numeric","2-digit","narrow","short","long"]),day:a.oneOf(["numeric","2-digit"]),weekday:a.oneOf(["narrow","short","long"]),hour:a.oneOf(["numeric","2-digit"]),hour12:a.bool,minute:a.oneOf(["numeric","2-digit"]),second:a.oneOf(["numeric","2-digit"]),timeZoneName:a.oneOf(["short","long"])})]),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,ariaLabelledBy:a.string,ariaDescribedBy: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,cancelButton:a.bool,size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","flat","outline"])},H.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:p.MAX_DATE,min:p.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:l.DateInput,size:"medium",rounded:"medium",fillMode:"solid"},H);function H(e){var i=r.call(this,e)||this;return i._popupId=N.guid(),i._element=null,i._dateInput=x.createRef(),i._dateTimeSelector=null,i.shouldFocusDateInput=!1,i.prevShow=!1,i.focus=function(){var e=i.dateInputElement();e&&e.focus()},i.handleReject=function(){i.shouldFocusDateInput=!0,i.setShow(!1)},i.handleValueChange=function(e){i.setState({value:s.cloneDate(e.value||void 0),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(){i.setState({focused:!0})},i.handleBlur=function(){i.setState({focused:!1}),i.setShow(!1)},i.handleDateIconClick=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===N.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==N.Keys.up&&n!==N.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===N.Keys.up,i.setShow(n===N.Keys.down))},i.dateInputElement=function(){return i.dateInput&&i.dateInput.element||i.element&&i.element.querySelector(".k-dateinput > input.k-input-inner")},u.validatePackage(c.packageMetadata),i.state={value:i.props.defaultValue||H.defaultProps.defaultValue,show:i.props.defaultShow||H.defaultProps.defaultShow,focused:!1},i}t.DateTimePickerWithoutContext=n,t.DateTimePickerPropsContext=N.createPropsContext(),t.DateTimePicker=N.withPropsContext(t.DateTimePickerPropsContext,n),t.DateTimePicker.displayName="KendoReactDateTimePicker",F.registerForLocalization(n)},function(e,t,n){"use strict";var i,r,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},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||function(){return(h=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}).apply(this,arguments)},f=(Object.defineProperty(t,"__esModule",{value:!0}),n(3)),m=n(5),g=n(7),v=n(6),y=n(16),b=n(38),w=n(1),a=n(0),D=n(2),s=n(8),l=n(9),n=(r=f.Component,o(u,r),Object.defineProperty(u.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"timePart",{get:function(){return this._timePart},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!0,configurable:!0}),u.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},u.prototype.render=function(){var t=this,e=this.props,n=e.disabled,i=e.cancelButton,r=e.min,o=e.max,a=e.weekNumber,s=e.focusedDate,e=e.format,l=D.classNames({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-disabled":n},"k-datetime-wrap"),u=m.provideLocalizationService(this),c=u.toLanguageString(g.date,g.messages[g.date]),p=u.toLanguageString(g.time,g.messages[g.time]),d=u.toLanguageString(g.dateTimePickerCancel,g.messages[g.dateTimePickerCancel]),u=u.toLanguageString(g.dateTimePickerSet,g.messages[g.dateTimePickerSet]),r={min:r,max:o,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return f.createElement("div",{onKeyDown:this.handleKeyDown,className:l,tabIndex:-1},f.createElement("div",{className:"k-datetime-buttongroup"},f.createElement(v.ButtonGroup,{width:"100%"},f.createElement(v.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},c),f.createElement(v.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},p))),f.createElement("div",{className:"k-datetime-selector"},f.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(e){return t._calendarWrap=e}},this.props.calendar?f.createElement(this.props.calendar,h({},r)):f.createElement(y.Calendar,h({ref:function(e){t._calendar=e}},r))),f.createElement("div",{className:"k-datetime-time-wrap"},f.createElement(b.TimePart,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(e){t._timePart=e},min:this.minTime||w.MIN_TIME,max:this.maxTime||w.MAX_TIME,steps:this.props.steps,value:this.state.timeValue,format:e,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),f.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},i&&f.createElement(v.Button,h({type:"button",ref:function(e){t._cancelButton=e},className:"k-time-cancel",onClick:this.handleReject,title:d},{"aria-label":d}),d),f.createElement(v.Button,h({type:"button",themeColor:"primary",ref:function(e){t._acceptButton=e},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:u},{"aria-label":u}),u)))},Object.defineProperty(u.prototype,"minTime",{get:function(){return void 0!==this.props.minTime?this.props.minTime:this.normalizeRange(this.props.min,this.state.dateValue)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maxTime",{get:function(){return void 0!==this.props.maxTime?this.props.maxTime:this.normalizeRange(this.props.max,this.state.dateValue)},enumerable:!0,configurable:!0}),u.prototype.normalizeRange=function(e,t){return a.isEqualDate(e,t||w.getToday())?e:null},u.prototype.hasActiveButton=function(){return!!this._acceptButton&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},u.prototype.mergeTime=function(e,t){return e&&t?w.setTime(t,e):t},u.prototype.mergeDate=function(e,t){return e?w.setTime(e||w.getToday(),t):t},u);function u(e){var i=r.call(this,e)||this;return i._calendarWrap=null,i.focus=function(t){Promise.resolve().then(function(){"time"===i.state.tab&&i._timePart&&i._timePart.focus(t);var e=i.calendarElement();"date"===i.state.tab&&e&&e.focus(t)})},i.calendarElement=function(){return i._calendar&&i._calendar.element||i._calendarWrap&&i._calendarWrap.querySelector(".k-widget.k-calendar")},i.move=function(e){"right"===e&&"time"===i.state.tab||"left"===e&&"date"===i.state.tab||(e="left"===e?"date":"time",i.shouldFocusPart=!0,i.setState({tab:e}))},i.handleReject=function(e){i.setState({dateValue:i.props.value,timeValue:i.props.value||s.MIDNIGHT_DATE});var t=i.mergeDate(i.props.value,i.props.value||s.MIDNIGHT_DATE);i.props.onReject&&(e={nativeEvent:e.nativeEvent,syntheticEvent:e,target:i,value:t},i.props.onReject.call(void 0,e))},i.handleAccept=function(e,t){i.state.dateValue&&i.state.timeValue&&i.hasDateValue&&(t=i.mergeDate(i.state.dateValue,t||i.state.timeValue),i.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:t,target:i}))},i.handleNowClick=function(e){i.setState({timeValue:l.getNow()}),i.handleAccept(e,l.getNow())},i.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),i.setState({dateValue:e.value,tab:"time"}),i.shouldFocusPart=!0},i.handleTimeListContainerChange=function(e){i.setState({timeValue:e})},i.handleDateClick=function(e){e.stopPropagation(),i.move("left")},i.handleTimeClick=function(e){e.stopPropagation(),i.move("right")},i.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;switch(t){case D.Keys.enter:return void(!i.hasActiveButton()&&i.hasDateValue&&i.handleAccept(e));case D.Keys.left:return n?void i.move("left"):void 0;case D.Keys.right:return n?void i.move("right"):void 0;default:return}},i.handleTimePartMount=function(e){i.setState({timeValue:e})},i.state={tab:"date",dateValue:i.props.value,timeValue:i.props.value||s.MIDNIGHT_DATE},i}t.DateTimeSelector=n,m.registerForLocalization(n)}],i={},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=40)}}});
|