@progress/kendo-react-dateinputs 4.9.0 → 4.9.1-dev.202109160844

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
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactDateinputs=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactDateinputs=t(e.PropTypes,e.React,e.KendoDateMath,e.KendoReactIntl,e.KendoLicensing,e.ReactDOM)}(window,(function(e,t,n,r,o,i){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserSupportService",(function(){return o})),n.d(t,"canUseDOM",(function(){return i})),n.d(t,"canUseRef",(function(){return a})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return l})),n.d(t,"clone",(function(){return u})),n.d(t,"cloneObject",(function(){return c})),n.d(t,"cloneValue",(function(){return p})),n.d(t,"cloneArray",(function(){return d})),n.d(t,"Draggable",(function(){return E})),n.d(t,"focusFirstFocusableChild",(function(){return x})),n.d(t,"FormComponent",(function(){return P})),n.d(t,"getTabIndex",(function(){return I})),n.d(t,"getter",(function(){return j})),n.d(t,"guid",(function(){return V})),n.d(t,"Keys",(function(){return R})),n.d(t,"noop",(function(){return A})),n.d(t,"getScrollbarWidth",(function(){return F})),n.d(t,"setScrollbarWidth",(function(){return L})),n.d(t,"setter",(function(){return z})),n.d(t,"mapTree",(function(){return U})),n.d(t,"mapTreeItem",(function(){return Y})),n.d(t,"extendDataItem",(function(){return W})),n.d(t,"getItemPath",(function(){return G})),n.d(t,"validatePackage",(function(){return Z})),n.d(t,"hasRelativeStackingContext",(function(){return $})),n.d(t,"dispatchEvent",(function(){return J})),n.d(t,"AsyncFocusBlur",(function(){return te})),n.d(t,"useDir",(function(){return ne})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return re})),n.d(t,"useRtl",(function(){return oe})),n.d(t,"useMouse",(function(){return ie})),n.d(t,"useCustomComponent",(function(){return ae})),n.d(t,"Icon",(function(){return ce})),n.d(t,"SvgIcon",(function(){return fe})),n.d(t,"Typography",(function(){return Ee}));var r=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),i=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),a=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?s.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},l=function(e){return e?new Date(e.getTime()):null};function u(e){var t={};return c(e,t),t}function c(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=p(r,t[n])}}function p(e,t){if(Array.isArray(e))return d(e);if(e instanceof Date)return l(e);if(e&&"object"==typeof e){var n=t||{};return c(e,n),n}return e}function d(e){return e.map((function(e){return p(e,void 0)}))}var h=n(1),f=n(0),m=function(e,t){return function(n){return t(e(n))}},v=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},g=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},y=function(){},b=function(e){return e.preventDefault()},w=/touch/;function k(e){return e.type.match(w)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var O=function(e){var t=this,n=e.press;void 0===n&&(n=y);var r=e.drag;void 0===r&&(r=y);var o=e.release;void 0===o&&(o=y);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=m(k,n),this._dragHandler=m(k,r),this._releaseHandler=m(k,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(v(t.document,"mousemove",t._mousemove),v(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){g(t.document,"mousemove",t._mousemove),g(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(v(t.document,"pointermove",t._pointermove),v(t.document,"pointerup",t._pointerup),v(t.document,"pointercancel",t._pointerup),v(t.document,"contextmenu",b),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(g(t.document,"pointermove",t._pointermove),g(t.document,"pointerup",t._pointerup),g(t.document,"pointercancel",t._pointerup),g(t.document,"contextmenu",b),t._releaseHandler(e))}},D={document:{configurable:!0}};O.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},D.document.get=function(){return this._element?this._element.ownerDocument:document},O.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},O.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?v(e,"pointerdown",this._pointerdown):(v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend)))},O.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return g(e,"pointerdown",this._pointerdown),g(this.document,"pointermove",this._pointermove),g(this.document,"pointerup",this._pointerup),g(this.document,"contextmenu",b),void g(this.document,"pointercancel",this._pointerup);g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend))},O.prototype._usePointers=function(){return!this._mouseOnly&&O.supportPointerEvent()},O.prototype.update=function(e){var t=e.press;void 0===t&&(t=y);var n=e.drag;void 0===n&&(n=y);var r=e.release;void 0===r&&(r=y);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=m(k,t),this._dragHandler=m(k,n),this._releaseHandler=m(k,r),this._mouseOnly=o},O.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(O.prototype,D),O.default=O;var _,S=O,C=(_=function(e,t){return(_=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}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new S({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.childRef=function(e){var n=t.props.childRef;t.element=e,n&&"function"==typeof n&&n(e)},t}return C(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return h.cloneElement(h.Children.only(this.props.children),{ref:this.childRef})},t.propTypes={children:f.element.isRequired},t}(h.Component),x=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},P=function(){},I=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},M=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function T(e){var t=[];return e.replace(M,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var N={};function j(e){if(N[e])return N[e];var t=T(e);return N[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},N[e]}N.undefined=function(){};var V=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},R={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},A=function(){},F=function(){return!(!i||!document.body)&&(new o).scrollbarWidth},L=function(){if(!i||!document.body)return!1;var e=(new o).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},B={undefined:function(e){return e}},H=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function z(e){if(B[e])return B[e];var t=T(e);return B[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||H(t[a+1],r);o[t[i]]=n},B[e]}var K=function(){return(K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function q(e,t,n){var r;return n?K({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var U=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=q(t,n).map((function(t){return e(t,n,r)}));return r(q(t,n,o))}return r(t)}(e,t,n)})).slice()},Y=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],u=r(s[l]);s.splice(l,1,u)},W=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},G=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},X=n(22);function Z(e){if(void 0!==X)X.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var $=function(e){if(!i)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function J(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function Q(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,o=e.onSyncBlur,i=h.useRef(!1),a=h.useRef(0),s=h.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=h.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),r&&r.call.apply(r,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,r]),u=h.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o&&o.call.apply(o,[void 0].concat(e)),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,s,n,o]);return h.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var ee=function(){return(ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},te=function(e){var t=e.children,n=Q({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,ee({},n))};function ne(e,t,n){var r=h.useState(t),o=r[0],i=r[1];return h.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}function re(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,i=h.useMemo((function(){return new S({press:n,drag:r,release:o})}),[]);h.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),h.useEffect((function(){i.update({press:n,drag:r,release:o})}),[n,r,o])}function oe(e,t,n){var r=h.useState(t),o=r[0],i=r[1];return h.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var ie=function(e,t,n){void 0===n&&(n={});var r=h.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),o=h.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:h.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:o,onMouseDown:r,onDoubleClick:h.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:h.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:h.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:h.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:h.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:h.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},ae=function(e){return h.isValidElement(e)?[e.type,e.props]:[e,{}]},se={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ce=h.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,l=e.style,u=ue(e,["className","name","themeColor","size","flip","style"]),c=h.useRef(null),p=h.useRef(null);h.useImperativeHandle(c,(function(){return{element:p.current}})),h.useImperativeHandle(t,(function(){return c.current}));var d=h.useMemo((function(){return o||pe.themeColor}),[o]),f=h.useMemo((function(){return i||pe.size}),[i]),m=h.useMemo((function(){return a||pe.flip}),[a]),v=h.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},se[f],n)}),[r,d,f,m,n]),g=ie(e,c);return h.createElement("span",le({ref:p},u,g,{className:v,style:l,role:"presentation"}))}));ce.propTypes={style:f.object,classNames:f.string,name:f.string,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var pe={size:"default",themeColor:"inherit",flip:"default"};ce.displayName="KendoIcon";var de=function(){return(de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},fe=h.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,l=e.size,u=e.style,c=e.svgStyle,p=e.themeColor,d=e.viewBox,f=he(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=h.useRef(null);h.useImperativeHandle(t,(function(){return{element:m.current}}));var v=h.useMemo((function(){return i?i.name:me.icon}),[i]),g=h.useMemo((function(){return p||me.themeColor}),[p]),y=h.useMemo((function(){return l||me.size}),[l]),b=h.useMemo((function(){return a||me.flip}),[a]),w=h.useMemo((function(){return d||me.viewBox}),[d]),k=h.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},se[y],r)}),[v,g,y,b,r]),O=h.useMemo((function(){return e.width&&e.height?de({width:e.width,height:e.height},u):e.width?de({width:e.width,height:e.width},u):e.height?de({width:e.height,height:e.height},u):de({},u)}),[e.width,e.height,u]);return h.createElement("span",{className:k,style:O,ref:m},h.createElement("svg",de({className:o,style:c,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},f),i?void 0:n))}));fe.propTypes={style:f.object,classNames:f.string,children:f.any,icon:f.object,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var me={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};fe.displayName="KendoSvgIcon";var ve={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ge={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ye={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},be={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},we={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ke={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Oe={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},De={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},_e=function(){return(_e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Ce=function(e){var t=h.forwardRef((function(t,n){var r=t.className,o=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,l=t.themeColor,u=t.margin,c=Se(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=h.useRef(null),d=h.useRef(null);h.useImperativeHandle(p,(function(){return{element:d.current,props:t}})),h.useImperativeHandle(n,(function(){return p.current}));var f=e,m=function(){if(void 0!==u){if("string"==typeof u)return[ye[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-"+u];if("object"==typeof u){var e=[];return Object.keys(u).forEach((function(t){var n,r;null!==u[t]&&void 0!==u[t]&&e.push((n=t,r=u[t],""+we[n]+("string"==typeof r?be[r]:r)))})),e.join(" ")}}};return h.createElement(f,_e({ref:d,className:["k-"+("p"===e?"paragraph":e),ve[o],ge[i],ke[a],Oe[s],De[l],m(),r].filter((function(e){return void 0!==e})).join(" ")},c),t.children)}));return t.propTypes={style:f.object,className:f.string,fontSize:f.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:f.oneOf(["light","normal","bold"]),margin:f.oneOfType([f.number,f.object,f.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:f.oneOf(["left","right","center","justify"]),textTransform:f.oneOf(["lowercase","uppercase","capitalize"]),themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Ee={h1:Ce("h1"),h2:Ce("h2"),h3:Ce("h3"),h4:Ce("h4"),h5:Ce("h5"),h6:Ce("h6"),p:Ce("p"),code:Ce("code"),pre:Ce("pre")}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(3),i=n(13);t.isEqualRange=function(e,t){var n=e||i.EMPTY_SELECTIONRANGE,o=n.start,a=n.end,s=t||i.EMPTY_SELECTIONRANGE,l=s.start,u=s.end;return null!==o&&null!==a&&null!==l&&null!==u&&(r.isEqual(o,l)&&r.isEqual(a,u))},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);var a=function(e){return null!=e};t.isValidRange=function(e,t){return!a(e)||!a(t)||e<=t},t.setTime=function(e,t){var n=r.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.getToday=function(){return o.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&t>e||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 n=t||i.EMPTY_SELECTIONRANGE,r=n.start,o=n.end;return!(!r||!o)&&(r<e&&e<o)},t.range=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},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&&e>n?r.cloneDate(n):e:e},t.domContainerFactory=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var o=document.createElement(e);return o.className=n,Object.keys(r).map((function(e){return o.style[e]=r[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r;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=((r={})[t.today]="TODAY",r[t.now]="NOW",r[t.timePickerSet]="Set",r[t.timePickerCancel]="Cancel",r[t.date]="Date",r[t.time]="Time",r[t.dateTimePickerCancel]="Cancel",r[t.dateTimePickerSet]="Set",r[t.start]="Start",r[t.end]="End",r[t.separator]=" ",r[t.selectNow]="Select Now",r[t.toggleTimeSelector]="Toggle TimeSelector",r[t.toggleClock]="Toggle Clock",r[t.increaseValue]="Increase value",r[t.decreaseValue]="Decrease value",r[t.toggleCalendar]="Toggle calendar",r[t.prevView]="Navigate to previous view",r[t.nextView]="Navigate to next view",r[t.swapStartEnd]="Swap start and end values",r[t.toggleDateTimeSelector]="Toggle date-time selector",r)},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupPropsContext",(function(){return se}));var r=n(1),o=n(41),i=n(0),a=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),u="bottom",c="center",p="middle",d="left",h="right",f="top",m=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=o.horizontal,d=o.vertical,f=i.horizontal||0,m=i.vertical||0,v=t.top,g=t.left;return s===u&&(v+=t.height),s!==c&&s!==p||(v+=Math.round(t.height/2)),d===u&&(v-=r.height,m*=-1),d!==c&&d!==p||(v-=Math.round(r.height/2),m*=-1),a===h&&(g+=t.width),a!==c&&a!==p||(g+=Math.round(t.width/2)),l===h&&(g-=r.width,f*=-1),l!==c&&l!==p||(g-=Math.round(r.width/2),f*=-1),{top:v+m,left:g+f}};function v(e){return e.ownerDocument||e.document||e}var g=function(e){return v(e).defaultView},y=function(e){return v(e).documentElement},b=0;function w(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function k(e){var t=g(e),n=y(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=w()),r}var O=function(e){if(!e.getBoundingClientRect){var t=k(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},D=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||y(e)},_=function(e){return D(e)===e.ownerDocument.body},S=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function E(e){var t=y(e),n=g(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var x=function(e){return e===(e.ownerDocument||{}).body?E(e):{x:e.scrollLeft,y:e.scrollTop}};var P=function(e,t){var n=g(e),r=n.getComputedStyle(e),o=S(e),i=t||D(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var u=n.getComputedStyle(i);(l=S(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},I=function(e,t){return e?x(e):function(e){var t=D(e);return t?x(t):{x:0,y:0}}(t)};var M="fit",T="flip",N=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},j=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===c||a===p)&&!(i===c||i===p)){var u=i===f||i===d;t<0&&u?t+(s=n+r+l)+n>o&&(s=0):t>=0&&!u&&(t+n>o&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},V=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,u=r.left,c=r.height,p=r.width,d=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.horizontal===T,b=i.vertical===T;i.vertical===M&&(g+=N(l,c,d)),i.horizontal===M&&(v+=N(u,p,h)),b&&(g+=j({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=j({margin:f,offset:u,size:p,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var w=y&&0!==v,k=b&&0!==g;return{flipped:w||k,flip:{horizontal:w,vertical:k},offset:{left:v,top:g}}},R=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},A=function(e,t){for(var n,r,o=C(e),i=t;i&&(n=R(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var F,L=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},B=/auto|scroll/,H=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},z=Object(l.hasRelativeStackingContext)(),K="fit",q="flip",U="left",Y="center",W="right",G="bottom",X="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.offset,a=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,i):this.relativeRect(t,n,i);return this._dom.align({anchorAlign:r,anchorRect:a,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var r=this._dom,o=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(L(r.offset(e),n),r.stackingElementOffset(t)),i=r.stackingElementScroll(t),a=r.addScroll(o,i),s=this.elementScrollPosition(e,t),l=r.removeScroll(a,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return L(this._dom.position(e,t),n)},e}(),$=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return m(e)},e.prototype.boundingOffset=function(e){return O(e)},e.prototype.getWindow=function(){return l.canUseDOM?window:null},e.prototype.isBodyOffset=function(e){return _(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?S(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,r=t.top;e.style.left="0px",e.style.top="0px";var o=S(e);return e.style.left=n,e.style.top=r,o},e.prototype.position=function(e,t){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?D(t):null,o=P(e,r),i=o.top,a=o.left,s=o.height,l=o.width,u=I(r,e),c=u.x,p=u.y,d=e.ownerDocument,h=r===d.body||r===d.documentElement?1:n;return{top:i+p*h,left:a+c*h,height:s,width:l}}(e,A(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),r=t,o=this.isBodyOffset(e),i=n.top,a=n.left,o&&(a=0,i=0),{top:i+r.top,left:a+r.left,height:n.height,width:n.width};var n,r,o,i,a},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return V(e)},e.prototype.scrollPosition=function(e){return E(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!l.canUseDOM)return t;for(var n=e.parentElement;n;)B.test(H(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?S(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!z)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return k(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!l.canUseDOM)return null;var n=A(e,t);if(!n)return null;var r=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}(e,t)},e.prototype.zoomLevel=function(){return l.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),J=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,r=e.anchor,o=e.currentLocation,i=e.element,a=e.anchorAlign,s=e.elementAlign,l=e.collisions,u=this._dom,c=e.viewPort||u.stackingElementViewPort(i)||u.windowViewPort(i),p=L(u.offset(r),o),d=(t=u.staticOffset(i),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(i,d),f=u.restrictToView({anchorAlign:a,anchorRect:p,collisions:l,elementAlign:s,elementRect:h,viewPort:c});return{flipped:f.flipped,offset:u.addOffset(d,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1631616351,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"},ee=(F=function(e,t){return(F=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}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ne(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}var re,oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(re||(re={}));var ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:re.hidden,previous:re.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:re.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=e.firstElementChild,u=getComputedStyle(l),c=u.width,p=u.height;l.style.position="absolute",l.style.width=c,l.style.height=p;var d=n._alignService.alignElement({anchor:s,element:l,elementAlign:o,anchorAlign:r,offset:a}),h=n._positionService.positionElement({anchor:s,anchorAlign:r,collisions:i,element:l,currentLocation:d,elementAlign:o});h.offset&&(e.style.top=h.offset.top+"px",e.style.left=h.offset.left+"px",l.style.position="",l.style.width="",l.style.height=""),n._flipped=h.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){!function(e,t,n,r,o){if(0===n)return o();var i="k-slide-"+t+"-"+r,l=i+"-active",u=function(){e.removeEventListener("transitionend",u),a(e),o()};e.addEventListener("transitionend",u);var c=e.ownerDocument;if(c){var p=c.defaultView;if(p){var d=function(){a(e),e.classList.add(i),p.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?p.requestAnimationFrame(d):d()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,r)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===re.hiding&&n.state.previous===re.shown&&n.setState({current:re.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},Object(l.validatePackage)(Q),n._domService=new $,n._alignService=new Z(n._domService),n._positionService=new J(n._domService),n.reposition=function(e,t,n){var r,o,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),r=null,a=e.apply(o,i),r||(o=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(l,c)),a}}(n.reposition.bind(n),1e3/60),n}return ee(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,u=e.popupClass,c=e.style,p=e.offset,d=e.contentKey,h=te({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:u,style:c,offset:p,contentKey:d}});return e.show?t.current===re.hidden||t.current===re.hiding?te({},h,{current:re.showing,previous:t.current}):t.current===re.showing?te({},h,{current:re.shown,previous:t.current}):t.current!==re.shown||ne(p,t.props.offset)&&ne(o,t.props.anchorAlign)&&ne(i,t.props.appendTo)&&ne(a,t.props.collision)&&ne(s,t.props.popupAlign)&&ne(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?h:te({},h,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},h,{current:re.hidden,previous:t.current}):te({},h,{current:re.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===re.showing&&this._popup?this.show(this._popup):this.state.current===re.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===re.reposition&&this.state.previous===re.shown?this.setState({current:re.shown,previous:this.state.current}):this.state.current===re.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===re.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,s=t.show,u=t.id,c=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===re.reposition&&this.state.previous===re.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:"absolute"},this.props.style||{}),d=this.state.current===re.hiding;if((s||d)&&c){var h=r.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:p},r.createElement("div",{className:Object(l.classNames)(a,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n));return o.createPortal(h,c)}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:re.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.string,id:i.string,popupClass:i.string,collision:i.shape({horizontal:i.oneOf([K,q]),vertical:i.oneOf([K,q])}),anchorAlign:i.shape({horizontal:i.oneOf([U,Y,W]),vertical:i.oneOf([X,Y,G])}),popupAlign:i.shape({horizontal:i.oneOf([U,Y,W]),vertical:i.oneOf([X,Y,G])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})])},t.defaultProps={collision:{horizontal:K,vertical:q},anchorAlign:{horizontal:U,vertical:G},popupAlign:{horizontal:U,vertical:X},offset:oe,animate:!0,show:!1},t}(r.Component),ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},se=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(se).call(void 0,e);return r.createElement(ie,ae({ref:t},n))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(19),a=n(4),s=function(e){return function(t,n){var r=o.cloneDate(t);return r[e](n),r}},l=[{type:i.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:i.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:i.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:i.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(r=l,function(e){return r.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(e)))}),t.generateSnappers=function(e){return function(t,n){return e.map((function(e){var r=Math.floor(t[e.type]);return r?function(e,t,n,r){return function(o){var i=e(o),a=e(n);return"hour"===r?i-(i-a)%t:o.getTime()<=n.getTime()&&0!==i&&i<=a?Math.ceil(i/t)*t:i-i%t}}(e.getter,r,n,e.type):e.getter}))}}(l),t.valueMerger=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},t.snapTime=function(e){return function(t){var n=o.cloneDate(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},t.setHours=s("setHours"),t.setMinutes=s("setMinutes"),t.setSeconds=s("setSeconds"),t.getNow=function(){return new Date},t.range=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r};var u=function(e,t,n){return{candidateValue:a.setTime(a.MIDNIGHT_DATE,e),maxValue:o.addDays(a.setTime(a.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:a.setTime(a.MIDNIGHT_DATE,t)}};t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var r=u(e,t,n),o=r.candidateValue,i=r.minValue,s=r.maxValue;return o<i?a.setTime(e,t):o>s?a.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var r=u(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},t.isInRange=function(e,t,n){if(null===e)return!0;var r=u(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},t.isSmallerThanMin=function(e,t){if(null===e||null===t)return!1;var n=a.setTime(a.MIDNIGHT_DATE,e),r=a.setTime(a.MIDNIGHT_DATE,t);return n.getTime()<r.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;var n=a.setTime(a.MIDNIGHT_DATE,e);return a.setTime(a.MIDNIGHT_DATE,t).getTime()<n.getHours()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.Action=r.Action;var o=n(17);t.CalendarViewEnum=o.CalendarViewEnum;var i=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:1631616500,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}),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(t.Action||(t.Action={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(5),c=n(53),p=n(2),d=n(40),h=n(2),f=n(11),m=n(35),v=n(4),g=n(6),y=n(9),b=n(8),w=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.paste=!1,r._element=null,r._wrapper=null,r._inputId=p.guid(),r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=u.provideIntlService(r).parseDate(r.element.value,r.props.format)||r.value,n=r.value;r.kendoDate.setValue(t),r.triggerChange(e,n)}},r.spinnersMouseDown=function(e){e.preventDefault(),r.element&&document.activeElement!==r.element&&r.element.focus({preventScroll:!0})},r.handlePaste=function(){r.paste=!0},r.elementChange=function(e){if(r.element&&r.kendoDate){if(r.paste)return r.updateOnPaste(e),void(r.paste=!1);var t=r.kendoDate.getTextAndFormat(),n=t.text,o=t.format;r.currentFormat=o;var i=r.value,a=m.approximateStringMatching(n,r.currentFormat,r.element.value,r.selection.start),s=1===a.length&&"_"===a[0][1];if(!s)for(var l=0;l<a.length;l++)r.kendoDate.parsePart(a[l][0],a[l][1]);a.length&&"_"!==a[0][0]&&r.setSelection(r.selectionBySymbol(a[0][0])),s&&r.switchDateSegment(1),r.triggerChange(e,i)}},r.elementClick=function(e){r.setSelection(r.selectionByIndex(r.selection.start))},r.nativeWheel=function(e){e.preventDefault()},r.wheel=function(e){document.activeElement===r.element&&(e.nativeEvent.deltaY<0&&r.increasePart(e),e.nativeEvent.deltaY>0&&r.decreasePart(e))},r.increasePart=function(e){r.modifyDateSegmentValue(1,e)},r.decreasePart=function(e){r.modifyDateSegmentValue(-1,e)},r.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:r.switchDateSegment(-1);break;case 38:r.modifyDateSegmentValue(1,e);break;case 39:r.switchDateSegment(1);break;case 40:r.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},r.elementOnFocus=function(e){r.wrapper&&r.wrapper.classList.add("k-state-focused"),r.setState({focused:!0})},r.elementOnBlur=function(e){r.wrapper&&r.wrapper.classList.remove("k-state-focused"),r.setState({focused:!1})},h.validatePackage(f.packageMetadata),r.state={focused:!1},r}return o(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused&&this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var n=u.provideLocalizationService(this),r=i({},t.defaultProps,this.props),o=r.min,s=r.max,l=r.name,c=r.label,h=r.id,f=this.text,v=f===this.props.placeholder?"":f,y=f===this.props.placeholder?f:void 0,b=h||this._inputId,w=!this.validityStyles||this.validity.valid,k={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===s?void 0:s.getTime(),"aria-valuetext":v};null!==this.value&&(k["aria-valuenow"]=this.value.getTime());var O=m.wrapperClasses.slice();this.props.className&&O.push(this.props.className);var D=a.createElement(p.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var r=t.onFocus,o=t.onBlur;return a.createElement("span",{style:c?void 0:{width:e.props.width},dir:e.props.dir,className:O.join(" "),onFocus:r,onBlur:o},a.createElement("span",{className:p.classNames("k-dateinput-wrap",{"k-state-disabled":e.props.disabled,"k-state-invalid":!w}),ref:function(t){e._wrapper=t}},a.createElement("input",i({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:f,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:b,"aria-labelledby":e.props.ariaLabelledBy,"aria-describedby":e.props.ariaDescribedBy,"aria-expanded":e.props.ariaExpanded,"aria-haspopup":e.props.ariaHasPopup,onWheel:e.wheel,onClick:e.elementClick,onInput:e.elementChange,onPaste:e.handlePaste,onKeyDown:e.elementKeyDown,onChange:p.noop,value:v,placeholder:y,name:l},k,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&a.createElement("span",{className:"k-select",onMouseDown:e.spinnersMouseDown},a.createElement("span",{className:"k-link k-link-increase","aria-label":n.toLanguageString(g.increaseValue,g.messages[g.increaseValue]),title:n.toLanguageString(g.increaseValue,g.messages[g.increaseValue]),onClick:e.increasePart},a.createElement("span",{className:"k-icon k-i-arrow-n"})),a.createElement("span",{className:"k-link k-link-decrease","aria-label":n.toLanguageString(g.decreaseValue,g.messages[g.decreaseValue]),title:n.toLanguageString(g.decreaseValue,g.messages[g.decreaseValue]),onClick:e.decreasePart},a.createElement("span",{className:"k-icon k-i-arrow-s"})))))}));return c?a.createElement(d.FloatingLabel,{label:c,editorId:b,editorValue:f,editorValid:w,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=i({},t.defaultProps,this.props),n=e.formatPlaceholder,r=e.format,o=e.value,a=e.defaultValue;null===this.kendoDate?(this.kendoDate=new c.KendoDate(this.intl.bind(this),n,r),this.kendoDate.setValue(o||a||null)):(this.kendoDate.format=r,this.kendoDate.formatPlaceholder=n),void 0!==o&&this.value!==o&&this.kendoDate.setValue(o);var s=this.kendoDate.getTextAndFormat(),l=s.text,u=s.format;return this.currentFormat=u,null===e.placeholder||this.state.focused||this.kendoDate.hasValue()?l:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=m.isInRange(this.value,this.min,this.max)&&y.isInTimeRange(this.value,this.props.minTime,this.props.maxTime),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),t.prototype.intl=function(){return u.provideIntlService(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),t.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)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!l.isEqual(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.propTypes={value:s.instanceOf(Date),format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),formatPlaceholder:s.oneOfType([s.oneOf(["wide","narrow","short","formatPattern"]),s.shape({year:s.string,month:s.string,day:s.string,hour:s.string,minute:s.string,second:s.string})]),width:s.oneOfType([s.string,s.number]),tabIndex:s.number,title:s.string,steps:s.shape({year:s.number,month:s.number,day:s.number,hour:s.number,minute:s.number,second:s.number}),min:s.instanceOf(Date),max:s.instanceOf(Date),disabled:s.bool,spinners:s.bool,name:s.string,dir:s.string,label:s.string,id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,ariaExpanded:s.oneOfType([s.bool,s.string]),onChange:s.func,validationMessage:s.string,required:s.bool,validate:s.bool,valid:s.bool},t.defaultProps={format:m.defaultFormat,formatPlaceholder:m.defaultFormatPlaceholder,spinners:!1,disabled:!1,max:l.cloneDate(v.MAX_DATE),min:l.cloneDate(v.MIN_DATE),minTime:l.cloneDate(b.MIN_TIME),maxTime:l.cloneDate(b.MAX_TIME),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(a.Component);t.DateInput=w,u.registerForIntl(w),u.registerForLocalization(w)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(2),u=n(3),c=n(5),p=n(2),d=n(11),h=n(43),f=n(52),m=n(8),v=n(10),g=n(4),y=n(18),b=function(e){return e?e.virtualization:null},w=function(e,t,n,r){return void 0===e&&(e=k.defaultProps.min),void 0===t&&(t=k.defaultProps.max),void 0!==r?null!==r&&g.isInRange(u.getDate(r),e,t)?r:null:null!==n&&g.isInRange(u.getDate(n),e,t)?n:null},k=function(e){function t(n){var r=e.call(this,n)||this;r.cellUID=l.guid(),r.id=l.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(b(r.Navigation),b(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=u.cloneDate(e.value);r.setState({focusedDate:t})}},r.handleViewChange=function(e){var t=e.view;r.scrollSyncService.configure(t),r.setState({activeView:t})},r.handleDateChange=function(e){var t=u.cloneDate(e.value),n=u.cloneDate(e.value),o=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(o){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;var i=r.props.onChange;if(i){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r};i.call(void 0,a)}r.valueDuringOnChange=void 0}},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleKeyDown=function(e){if(e.keyCode===l.Keys.enter){if(null!==r.value&&u.isEqualDate(r.focusedDate,r.value)){var t=g.dateInRange(r.focusedDate,r.min,r.max);b(r.calendarViewList).scrollToIndex(r.service.skip(t,r.min))}var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,n)}else{var o=g.dateInRange(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(u.isEqualDate(r.focusedDate,o))return;r.setState({focusedDate:o})}e.preventDefault()},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},p.validatePackage(d.packageMetadata);var o=w(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:g.viewInRange(v.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),focusedDate:g.dateInRange(n.focusedDate||o||g.getToday(),r.min,r.max)},r.dom=new y.DOMService,r.bus=new y.BusViewService(r.handleViewChange),r.navigation=new y.NavigationService(r.bus),r.oldValue=o,r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return u.getDate(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return u.getDate(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return v.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return v.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new y.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())}))},t.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},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this);var n=null!==this.value&&null!==this.oldValue?!u.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,r=g.viewInRange(this.state.activeView,v.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],v.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=w(this.min,this.max,this.value,this.value),s=o?u.getDate(o):null;this.focusedDate=u.getDate(g.dateInRange(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=c.provideIntlService(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var p=l.classNames("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),d={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},m=[this.props.navigation&&a.createElement(f.Navigation,{key:0,ref:function(t){e.Navigation=t},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}),a.createElement(h.ViewList,{key:1,ref:function(t){e.calendarViewList=t},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:s,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return a.createElement("div",i({},d,{ref:function(t){e._element=t},className:p,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}),m)},t.propTypes={className:s.string,defaultActiveView:s.oneOf(["month","year","decade","century"]),defaultValue:s.instanceOf(Date),disabled:s.bool,focusedDate:s.instanceOf(Date),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,max:s.instanceOf(Date),min:s.instanceOf(Date),navigation:s.bool,smoothScroll:s.bool,onBlur:s.func,onChange:s.func,onFocus:s.func,tabIndex:s.number,value:s.instanceOf(Date),weekNumber:s.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&v.CalendarViewEnum[r]<v.CalendarViewEnum[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n "):null},bottomView:function(e,t,n){var r=e[t],o=e.topView;return r&&o&&v.CalendarViewEnum[r]>v.CalendarViewEnum[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},t.defaultProps={disabled:!1,min:m.MIN_DATE,max:m.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(a.Component);t.Calendar=k,c.registerForIntl(k)},function(e,t,n){"use strict";var r,o,i,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)});Object.defineProperty(t,"__esModule",{value:!0});var l,u=n(1),c=n(0),p=n(2),d=n(44);!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(l=t.ScrollDirection||(t.ScrollDirection={}));var h=((o={})[l.Forward]=function(e){return function(t){return t+e}},o[l.Backward]=function(e){return function(t){return t-e}},o),f=((i={})[l.Forward]=function(e){return function(t){return Math.min(t,e)}},i[l.Backward]=function(e){return function(t){return Math.max(t,e)}},i),m=((a={})[l.Forward]=function(e){return function(t){return t<e}},a[l.Backward]=function(e){return function(t){return t>e}},a),v=function(e){function t(n){var r=e.call(this,n)||this;return r.animationInProgress=!1,r.scrollTo=function(e){var t="vertical"===r.direction?"scrollTop":"scrollLeft";r.scrollContainer&&(r.scrollContainer[t]=e)},r.scrollToIndex=function(e){void 0!==r.scrollToIndexTimeout&&window.cancelAnimationFrame(r.scrollToIndexTimeout),r.rowHeightService&&(r.scrollToIndexTimeout=window.requestAnimationFrame((function(){r.animationInProgress=!1,r.scrollTo(r.rowHeightService.offset(e))})))},r.animateToIndex=function(e){if(r.rowHeightService&&window){window.cancelAnimationFrame(r.cancelAnimation);var t=r.rowHeightService.offset(e),n=r.getContainerScrollDirection(t),o=r.scrollRange(t,n),i=o.start,a=o.end;if(i!==a){var s=r.scrollStep(i,a),l=h[n](s),u=f[n](a),c=m[n](l(a)),p=function(e){r.animationInProgress=!0;var t=l(e);r.scrollTo(u(t)),c(t)?r.cancelAnimation=window.requestAnimationFrame((function(){p(t)})):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame((function(){p(i)}))}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var o=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(o/17)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var o,i,a,s=r.containerMaxScroll(),u=t===l.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference,Math.min(Math.abs(i-o),a)),p=Math.min(e,s);return{start:Math.min(Math.max(p+u*c,0),s),end:p}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?l.Backward:l.Forward},r.initServices=function(e){void 0===e&&(e=r.props);var t="vertical"===r.direction?e.itemHeight:e.itemWidth;void 0!==t&&(r.rowHeightService=new d.RowHeightService(e.total,t,0),r.scrollerService.create(r.rowHeightService,e.skip,e.take,e.total,e.topOffset,r.scrollOffsetSize,r.direction))},r.getContainerProperty=function(e){return r.scrollContainer?r.scrollContainer[e]:0},r.handleScroll=function(e){if(r.scrollContainer&&r.rowHeightService){var t=e.target;r.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=r.rowHeightService.index(r.containerScrollPosition-r.props.topOffset),o=r.props.onScrollAction,i={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};r.props.onScroll&&r.props.onScroll.call(void 0,e),o&&o.call(void 0,i),r.scrollAction=void 0,r.pageAction=void 0}},r.handleScrollAction=function(e){r.scrollAction=e},r.handlePageAction=function(e){r.pageAction=e},r.scrollerService=new d.ScrollerService(r.handleScrollAction,r.handlePageAction),r}return s(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:t.defaultProps.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:t.defaultProps.scrollOffsetSize},enumerable:!0,configurable:!0}),t.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},t.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},t.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},t.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),o=r+this.rowHeightService.height(e);return r>=t&&o<=n},t.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},t.prototype.render=function(){var e=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var t=""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:t+"px"}:{width:t+"px"},r=p.classNames("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=p.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return u.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,u.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:c.number.isRequired,className:c.string,direction:c.oneOf(["horizontal","vertical"]),forceScroll:c.bool,itemHeight:c.number,itemWidth:c.number,maxScrollDifference:c.number,onScroll:c.func,onScrollAction:c.func,scrollDuration:c.number,scrollOffsetSize:c.number,skip:c.number.isRequired,tabIndex:c.number,take:c.number.isRequired,topOffset:c.number.isRequired,total:c.number.isRequired,role:c.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(u.Component);t.Virtualization=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(t.CalendarViewEnum||(t.CalendarViewEnum={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(47);t.BusViewService=r.BusViewService;var o=n(26);t.CenturyViewService=o.CenturyViewService;var i=n(27);t.DecadeViewService=i.DecadeViewService;var a=n(48);t.DOMService=a.DOMService;var s=n(28);t.MonthViewService=s.MonthViewService;var l=n(49);t.NavigationService=l.NavigationService;var u=n(50);t.ScrollSyncService=u.ScrollSyncService;var c=n(51);t.WeekNamesService=c.WeekNamesService;var p=n(29);t.YearViewService=p.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,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(40);t.usePickerFloatingLabel=function(e){var t=o.useState(!1),n=t[0],r=t[1];return o.useEffect((function(){e.current&&r(Boolean(e.current.text))})),{editorValue:n}},t.PickerFloatingLabel=function(e){var n=t.usePickerFloatingLabel(e.dateInput);return o.createElement(i.FloatingLabel,r({},e,n))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return B})),n.d(t,"ToolbarItem",(function(){return z})),n.d(t,"ToolbarSeparator",(function(){return q})),n.d(t,"ToolbarSpacer",(function(){return U})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return T})),n.d(t,"SplitButtonItem",(function(){return D})),n.d(t,"DropDownButton",(function(){return A})),n.d(t,"DropDownButtonItem",(function(){return j})),n.d(t,"Chip",(function(){return ie})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return ye})),n.d(t,"FloatingActionButtonItem",(function(){return ce}));var r,o=n(1),i=n(0),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1631616372,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"},l=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',u=["button"+l,".k-button-group > button"+l,".k-dropdown > .k-dropdown-wrap"+l,".k-colorpicker > .k-picker-wrap"+l],c={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},p=(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)}),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},f=c;var m=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},Object(a.validatePackage)(s),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,i=n.look,s=n.primary,l=n.togglable,u=n.icon,c=n.iconClass,p=n.imageUrl,m=n.imageAlt,v=n.className,g=(n.onClick,h(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),y=void 0!==u||void 0!==c||void 0!==p,b=void 0!==r,w={className:Object(a.classNames)([f.button],((e={})[f[""+i]]="default"!==i,e[f.primary]=s,e[f["state-disabled"]]=this.props.disabled,e[f["state-selected"]]=this.state.selected,e[f["button-icon"]]=!b&&y,e[f["button-icontext"]]=b&&y,e),[f[""+this.props.dir]],v),onClick:this.handleClick,role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},k=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,i=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-image",alt:i,src:t});if(n){var s=Object(a.classNames)("k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:s})}return r?o.createElement("span",{role:"presentation",className:r}):null}({icon:u,iconClass:c,imageUrl:p,imageAlt:m});return o.createElement("button",d({},w,g,{ref:function(e){return t._element=e}}),k,r)},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,look:i.oneOf(["default","flat","outline","clear"]),primary:i.bool,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(o.Component),v=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},y=c,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(a.validatePackage)(s),n}return v(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.classNames)([y["button-group"]],((e={})[y["state-disabled"]]=this.props.disabled,e[y["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",g({ref:function(e){t._element=e}},i,{className:r}),n)},t.prototype.mapButtons=function(e){var t=this,n=o.Children.count(e),r=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return o.Children.map(e,(function(e,i){return o.isValidElement(e)?t.renderButton(e,i,i===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var i,s=Object(a.classNames)(e.props.className,((i={})[y["group-start"]]=r?n:0===t,i[y["group-end"]]=r?0===t:n,i)),l=g({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=g({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==u?{disabled:u}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,c,e.props.children):o.cloneElement(e,c)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(o.Component),w=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return w(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,r=e.id,i=e.onDown,s=e.render,l=o.createElement("li",{id:r,className:Object(a.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:i,onPointerDown:i,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==s?s.call(void 0,l,this.props):l},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,r=e.index,i=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),a=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&o.createElement(i,{item:t,itemIndex:r})||[s&&o.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&o.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),a]},t}(o.Component),O=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(o.Component),_=function(e,t,n,r){if(n)return e;switch(t){case a.Keys.enter:case a.Keys.space:case a.Keys.esc:return-1;case a.Keys.up:case a.Keys.left:return Math.max(0,e-1);case a.Keys.down:case a.Keys.right:return Math.min(r-1,e+1);default:return e}},S=n(7);function C(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function E(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var x,P,I=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=c,T=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.guid=Object(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=void 0;if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(r={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,r.opened))):n.opened&&e.keyCode===a.Keys.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=_(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},n.onItemClick=function(e,t){var r=n.opened;r&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),r&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return I(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===D})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return o.createElement("div",{className:Object(a.classNames)("k-widget","k-split-button","k-button-group",[M[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),o.createElement(m,{icon:"arrow-s",disabled:s||void 0,tabIndex:-1,look:this.props.look,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(a.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||C(e),popupAlign:n.popupAlign||E(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(k,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:a,index:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),N=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,selected:i.bool,disabled:i.bool,render:i.any},t}(o.Component),V=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.guid=Object(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=R({},n.state);if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===a.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=_(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return V(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===j})).map((function(e){return e.props})),o.createElement("div",{className:Object(a.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.state.focused&&this.element&&this.element.focus()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||Object(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||C(e),popupAlign:n.popupAlign||E(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(k,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:a,key:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,primary:i.bool,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),F=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r.offsetHeight=0,r.offsetWidth=0,r.buttons=[],r.focusedSelector=r.selectors.map((function(e){return e+":focus"})).join(","),r.setTabIndex=function(e){var n=r.props.tabIndex,o=void 0===n?t.defaultProps.tabIndex:n;r.buttons.forEach((function(t,n){t.tabIndex=n===e?o:-1}))},r.onKeyDown=function(e){var t=e.target;if((e.keyCode===a.Keys.left||e.keyCode===a.Keys.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===a.Keys.left?r.focusButton(n,n-1):r.focusButton(n,n+1)}},r.onWindowResize=function(e){var t=r.element;if(t){var n=t.offsetWidth,o=t.offsetHeight;if(r.offsetWidth!==n||r.offsetHeight!==o){r.offsetWidth=n,r.offsetHeight=o;var i={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,L({target:r},i,{nativeEvent:e}))}}},Object(a.validatePackage)(s),r}return F(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||u},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return o.createElement("div",{className:Object(a.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var r=this.props.tabIndex,o=void 0===r?t.defaultProps.tabIndex:r,i=this.buttons[n];if(i){i.tabIndex=o,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(o.Component),H=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return H(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return o.createElement("span",{className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:i.string},t}(o.PureComponent),K=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){return o.createElement(z,{className:"k-separator"})},t}(o.PureComponent),U=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var i=o.useMemo((function(){return Object(a.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));U.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(x||(x={})),function(e){e.toggle="toggle",e.remove="remove"}(P||(P={}));var Y;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Y||(Y={}));var W;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(W||(W={}));var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=o.createContext([null,function(e){}]),Z=o.createContext([null,function(e){}]),$=o.createContext([null,function(e){}]),J=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.selection){case x.single:switch(t.type){case P.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case P.remove:return t.payload===e?null:e;default:return e}case x.multiple:switch(t.type){case P.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case P.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case x.none:return null;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},Q=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case Y.next:return n===t.items.length-1?e:t.items[n+1];case Y.prev:return 0===n?e:t.items[n-1];case Y.current:return t.payload;case Y.reset:return null;default:return e}}(t.payload,G({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.type){case W.add:break;case W.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case W.reorder:break;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},te=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ie}),[e.chip,ie]),u=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var c=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),p=J(e.value||e.defaultValue,{selection:u,state:e.value},c),d=p[0],h=p[1],f=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),m=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},f),v=m[0],g=m[1],y=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),b=o.useMemo((function(){return e.data||v}),[e.data,v]),w=o.useMemo((function(){return e.value||d}),[e.value,d]),k=o.useMemo((function(){return b.reduce(y,[])}),[b,y]),O=Q({items:k}),D=O[0],_=O[1],S=Object(a.useMouse)(e,n);return o.createElement(X.Provider,{value:[w,h]},o.createElement(Z.Provider,{value:[D,_]},o.createElement($.Provider,{value:[b,g]},o.createElement("div",G({ref:r},S,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===u,"k-selection-multiple":"multiple"===u,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),b.map((function(t){return o.createElement(l,{role:"option",dataItem:t,key:t[e.valueField||re.valueField],text:t[e.textField||re.textField],value:t[e.valueField||re.valueField]})}))))))})),ne={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string},re={chip:ie,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};te.displayName="KendoReactChipList",te.propTypes=ne,te.defaultProps=re;var oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ie=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useContext(X),u=l[0],c=l[1],p=o.useContext(Z),d=p[0],h=p[1],f=o.useContext($)[1],m=o.useMemo((function(){return e.selected||(Array.isArray(u)?u.some((function(t){return t===e.value})):u===e.value)}),[e.selected,e.value,u]),v=o.useMemo((function(){return d===e.value}),[e.value,d]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){v&&r.current&&r.current.focus()}),[v]);var y=o.useCallback((function(t){c({type:P.toggle,payload:e.value,event:t}),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onClick,c,e.value]),b=o.useCallback((function(t){e.removable&&(f({type:W.remove,payload:e.value,event:t}),h({type:Y.reset,payload:e.value,event:t}),c({type:P.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,f,h,c]),w=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:h({type:Y.prev,payload:e.value,event:t});break;case a.Keys.right:h({type:Y.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:P.toggle,payload:e.value,event:t});break;case a.Keys.delete:b(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,h,c,b]),k=o.useCallback((function(t){h({payload:e.value,type:Y.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,h]),O=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),D=Object(a.useMouse)(e,n,{onClick:y});return o.createElement("div",oe({},D,{role:e.role,id:e.value,style:e.style,ref:r,dir:i,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip",{"k-rtl":"rtl"===i,"k-chip-disabled":e.disabled,"k-chip-selected":m,"k-chip-focused":v,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outlined"===g,"k-chip-filled":"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:k,onBlur:O,onKeyDown:w}),o.createElement("span",{className:"k-selected-icon-wrapper"},m&&o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||se.selectedIcon)})),e.icon&&o.createElement("span",{className:"k-icon k-chip-icon "+e.icon}),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-remove-icon",onClick:b},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),ae={id:i.string,text:i.string,value:i.any,type:i.oneOf(["none","success","warning","error","info"]),dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,look:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string},se={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"filled",removeIcon:"k-i-close-circle",dir:"ltr"};ie.displayName="KendoReactChip",ie.propTypes=ae,ie.defaultProps=se;var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ce=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,i=e.text,s=e.icon,l=e.style,u=e.id,c=e.focused,p=e.tabIndex,d=e.index,h=e.dataItem,f=e.item,m=e.onDown,v=e.onClick,g=ue(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=o.useRef(null),b=o.useCallback((function(){y.current&&y.current.focus()}),[]),w=o.useCallback((function(){return{element:y.current,focus:b}}),[b]);o.useImperativeHandle(t,w);var k=o.useCallback((function(e){v&&void 0!==d&&!r&&v(e,d)}),[v,d]),O=o.useMemo((function(){return Object(a.classNames)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),D=f;return o.createElement("li",le({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(a.getTabIndex)(p,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:k,onMouseDown:m,onPointerDown:m},g),D?o.createElement(D,{itemIndex:d,item:h}):o.createElement(o.Fragment,null,i&&o.createElement("span",{className:"k-fab-item-text"},i),s&&o.createElement("span",{className:Object(a.classNames)("k-fab-item-icon k-icon k-i-"+s)})))}));ce.propTypes={className:i.string,style:i.object,children:i.any,disabled:i.bool,focused:i.bool,index:i.number,icon:i.string,text:i.string,tabIndex:i.number,customProp:i.any},ce.displayName="KendoFloatingActionButtonItem";var pe=function(e){return"number"==typeof e?e+"px":e},de=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},fe=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},me=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ye=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=e.align,r=void 0===n?be.align:n,i=e.alignOffset,l=e.className,u=e.disabled,c=e.icon,p=e.iconClass,d=e.id,h=e.items,f=e.item,m=e.text,v=e.positionMode,g=void 0===v?be.positionMode:v,y=e.shape,b=void 0===y?be.shape:y,w=e.size,k=void 0===w?be.size:w,O=e.style,D=e.themeColor,_=void 0===D?be.themeColor:D,C=e.tabIndex,E=e.accessKey,x=e.popupSettings,P=void 0===x?{}:x,I=e.onClick,M=e.onItemClick,T=e.onFocus,N=e.onBlur,j=e.onKeyDown,V=e.onOpen,R=e.onClose,A=ge(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),F=o.useRef(null),L=o.useRef(null),B=o.useRef(null),H=o.useRef(null),z=o.useCallback((function(){L.current&&L.current.focus()}),[]),K=o.useCallback((function(){return{element:L.current,focus:z}}),[z]);o.useImperativeHandle(F,K),o.useImperativeHandle(t,(function(){return F.current}));var q=o.useState(!1),U=q[0],Y=q[1],W=o.useState(!1),G=W[0],X=W[1],Z=o.useState(-1),$=Z[0],J=Z[1],Q=o.useMemo((function(){return Object(a.guid)()}),[]),ee=Object(a.useDir)(L,e.dir),te="rtl"===ee,ne=o.useMemo((function(){return Object(a.guid)()}),[]);o.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?pe(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+pe(n.x)+")":"50%",l=n&&void 0!==n.y?pe(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+pe(n.y)+")":"50%";e.current.style.setProperty(fe(t,r),"center"===o?s:a),e.current.style.setProperty(me(t),"middle"===i?u:l),r&&("top"!==i&&"bottom"!==i||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===o&&e.current.style.setProperty("left","unset"))}}(L,r,i,te)}),[L,r,i,te]),o.useEffect((function(){G&&L&&L.current&&L.current.focus()}),[G,L]);var re=o.useCallback((function(e,t){h&&Object(a.dispatchEvent)(t?V:R,e,K(),void 0)}),[V,R,h]),oe=o.useCallback((function(e){e.target&&!u&&(!h&&I?Object(a.dispatchEvent)(I,e,K(),void 0):(Y(!U),X(!0),J(U?-1:0),re(e,!U)))}),[Y,X,J,I,re,U,h,u]),ie=o.useCallback((function(e){X(!0),J(U?0:-1),T&&Object(a.dispatchEvent)(T,e,K(),void 0)}),[T,X,J]),ae=o.useCallback((function(e){X(!1),Y(!1),J(-1),Object(a.dispatchEvent)(N,e,K(),void 0),U&&re(e,!1)}),[N,X,Y,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){h&&(h[t].disabled||Object(a.dispatchEvent)(M,e,K(),{itemProps:h[t],itemIndex:t}))}),[M]),ue=o.useCallback((function(e,t){e.target&&h&&(J(t),Y(!1),le(e,t),re(e,!1))}),[J,Y,le,re]),ye=o.useCallback((function(e){document.activeElement===L.current&&e.preventDefault()}),[L,document.activeElement]),we=o.useCallback((function(e){var t=$,n=h?h.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case a.Keys.enter:case a.Keys.space:t>=0&&le(e,t),e.preventDefault(),Y(!U),J(U?-1:0);break;case a.Keys.esc:e.preventDefault(),Y(!1),J(-1);break;case a.Keys.home:e.preventDefault(),J(0);break;case a.Keys.end:e.preventDefault(),J(n);break;case a.Keys.down:case a.Keys.right:e.preventDefault(),t<n&&!o&&J(t+1),t>0&&o&&J(t-1);break;case a.Keys.up:case a.Keys.left:e.preventDefault(),t>0&&!o&&J(t-1),t<n&&o&&J(t+1)}Object(a.dispatchEvent)(j,e,K(),void 0)}),[j,$,J,te,Y]),ke=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+_,"k-fab-"+b,{"k-fab-sm":"small"===k,"k-fab-md":"medium"===k,"k-fab-lg":"large"===k,"k-state-disabled":u,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":G},"k-"+r.vertical+"-"+r.horizontal,l)}),[_,k,b,u,g,r,G,l]),Oe=h&&h.map((function(e,t){return o.createElement(ce,ve({},e,{key:t,index:t,id:ne+"-"+t,disabled:u||e.disabled,focused:$===t,dataItem:e,item:f,className:Object(a.classNames)(e.className,(n=ee||"ltr",i=r.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===i?"end":"start"])),onClick:ue,onDown:ye}));var n,i})),De=c&&!m,_e=(L.current?L.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",ve({ref:L,id:d||Q,role:h?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":h?U:void 0,"aria-haspopup":!!h,"aria-label":(m||"")+" floatingactionbutton","aria-owns":h?ne:void 0,"aria-activedescendant":$>=0&&h?ne+"-"+$:void 0,tabIndex:Object(a.getTabIndex)(C,u),accessKey:E,dir:ee,disabled:u,className:ke,style:O,onClick:oe,onMouseDown:se,onFocus:ie,onBlur:ae,onKeyDown:we},A),c?o.createElement("span",{role:"presentation",className:Object(a.classNames)("k-fab-icon k-icon k-i-"+c)}):p?o.createElement("span",{role:"presentation",className:p}):null,m&&o.createElement("span",{className:"k-fab-text"},m)),o.createElement(S.Popup,{ref:H,anchor:L.current,show:U,animate:P.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",P.popupClass),anchorAlign:P.anchorAlign||de(r,te),popupAlign:P.popupAlign||he(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:B,role:"menu","aria-labelledby":d,id:ne,className:Object(a.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:De?_e:void 0,paddingRight:De?_e:void 0}},Oe)))}));ye.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf(["rectangle","rounded","pill"]),size:i.oneOf(["small","medium","large"]),themeColor:i.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var be={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};ye.displayName="KendoFloatingActionButton"},function(e,t){e.exports=o},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(5),c=n(24),p=n(25),d=n(10),h=n(4),f=n(18),m=function(e){return a.createElement("td",{key:e,className:"k-calendar-td"}," ")},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return m("week-cell-"+n);var r=t.firstDate(e),o=t.getWeekNumber(r),s="kendo-react-calendar-week-cell-"+o,l={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?a.createElement(t.props.weekCell,i({},l,{key:s}),o):a.createElement(p.CalendarWeekCell,i({},l,{key:s}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return m(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-"+e.value.getTime(),s=i({},r,e,{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?a.createElement(t.props.cell,i({},s,{key:o}),e.formattedValue):a.createElement(c.CalendarCell,i({},s,{key:o}),e.formattedValue)}))},t.firstDate=function(e){var n=t.firstWeekDateContext(e);return n?n.value:null},t.firstWeekDateContext=function(e){if(!t.weekNumber)return null;for(var n=0,r=e[n];!r&&n<e.length;)r=e[++n];return r},t.handleClick=function(e,n){var r=t.props.onChange;if(r){var o={value:l.cloneDate(e),target:t,nativeEvent:n&&n.nativeEvent,syntheticEvent:n};r.call(void 0,o)}},t.handleMouseEnter=function(e){var n=t.props.onCellEnter;n&&n.call(void 0,l.cloneDate(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,l.cloneDate(e))},t}return o(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===d.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.intl=u.provideIntlService(this),this.weekService=new f.WeekNamesService(this.intl);var t=this.weekService.getWeekNames(this.weekNumber),n=this.props.service.rowLength(this.weekNumber),r=this.props.service.title(this.props.viewDate),o=h.getToday(),i=h.setTime(this.props.viewDate,o),s=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:i});return a.createElement(a.Fragment,null,this.isMonthView&&this.isHorizontal&&a.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},a.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return a.createElement("th",{key:t,className:"k-calendar-th"},e)})))),a.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&a.createElement("tr",{role:"presentation",className:"k-calendar-tr"},a.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),s.map((function(t,n){return a.createElement("tr",{role:"row",className:"k-calendar-tr",key:n},e.weekNumber&&e.buildWeekNumber(t,n),e.buildRow(t))}))))},t.prototype.getWeekNumber=function(e){return this.weekNumber?l.weekInYear(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:s.oneOf(["start","end",null]),activeView:s.number.isRequired,cellUID:s.string.isRequired,direction:s.oneOf(["horizontal","vertical"]),focusedDate:s.instanceOf(Date).isRequired,max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,onChange:s.func,selectedDate:s.oneOfType([s.instanceOf(Date),s.arrayOf(s.instanceOf(Date))]),showWeekNumbers:s.bool,viewDate:s.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:h.getToday(),showWeekNumbers:!1},t}(a.Component);t.View=v,u.registerForIntl(v)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t.handleMouseEnter=function(){var e=t.props,n=e.onMouseEnter,r=e.value;n&&n.call(void 0,r)},t.handleMouseLeave=function(){var e=t.props,n=e.onMouseLeave,r=e.value;n&&n.call(void 0,r)},t}return o(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=a(t,["value"]),o=e.value,i=a(e,["value"]);return!((!(n&&o)||n.getTime()===o.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}(r,i))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=(e.isInRange,e.isSelected),u=e.isRangeStart,c=e.isRangeMid,p=e.isRangeEnd,d=e.isRangeSplitStart,h=e.isRangeSplitEnd,f=e.isToday,m=e.isDisabled,v=(e.view,e.value,a(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),g="end"===this.props.activeRangeEnd&&p,y="start"===this.props.activeRangeEnd&&u,b=l.classNames("k-calendar-td",{"k-range-end":p,"k-range-mid":c,"k-range-split-end":h,"k-range-split-start":d,"k-range-start":u,"k-state-active":y||g,"k-state-pending-focus":r,"k-state-selected":o||u||p,"k-today":f,"k-weekend":n,"k-state-disabled":m},t);return s.createElement("td",i({},v,{className:b,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),s.createElement("span",{className:"k-link"},this.props.children))},t}(s.Component);t.CalendarCell=u},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(2),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,a(e,["className","firstDate"]));return s.createElement("td",i({className:l.classNames("k-calendar-td",t)},n),this.props.children)},t}(s.Component);t.CalendarWeekCell=u},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(10),a=n(4),s=[[]],l=((r={})[i.Action.Left]=function(e){return o.addDecades(e,-1)},r[i.Action.Up]=function(e){return o.addDecades(e,-5)},r[i.Action.Right]=function(e){return o.addDecades(e,1)},r[i.Action.Down]=function(e){return o.addDecades(e,5)},r[i.Action.PrevView]=function(e){return o.addCenturies(e,-1)},r[i.Action.NextView]=function(e){return o.addCenturies(e,1)},r[i.Action.FirstInView]=function(e){return o.firstDecadeOfCentury(e)},r[i.Action.LastInView]=function(e){return o.lastDecadeOfCentury(e)},r),u=function(){function e(){}return e.prototype.addToDate=function(e,t){return o.addCenturies(e,t)},e.prototype.datesList=function(e,t){return a.range(0,t).map((function(t){return o.addCenturies(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,l=e.isActiveView,u=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?i.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return s;var m=a.range(0,5),v=o.firstDecadeOfCentury(f),g=o.lastDecadeOfCentury(f),y=a.getToday();return a.range(0,2).map((function(e){var i=o.addDecades(v,5*e);return m.map((function(e){var s=t.normalize(o.addDecades(i,e),c,u),d=t.isEqual(s,h.start),f=t.isEqual(s,h.end),m=!d&&!f&&a.isInSelectionRange(s,h),b=l&&(Array.isArray(p)?t.isSelectedFromArray(s,p,c,u):a.isInRange(p,c,u)&&t.isEqual(s,p));return{formattedValue:t.value(s),id:""+n+s.getTime(),isFocused:t.isEqual(s,r),isSelected:b,isWeekend:!1,isInRange:a.isInRange(s,c,u),isRangeStart:d,isRangeMid:m,isRangeEnd:f,isRangeSplitEnd:m&&t.isEqual(s,g),isRangeSplitStart:m&&t.isEqual(s,v),isToday:t.isEqual(s,y),title:t.cellTitle(s),value:s}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){a.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&o.firstYearOfDecade(e).getFullYear()===o.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var r=o.firstYearOfDecade(e).getFullYear(),i=!t||o.firstYearOfDecade(t).getFullYear()<=r,a=!n||r<=o.firstYearOfDecade(n).getFullYear();return i&&a},e.prototype.isInSameView=function(e,t){return 0===o.durationInCenturies(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=l[t];return n?n(e):e},e.prototype.cellTitle=function(e){return o.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?o.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?o.firstDecadeOfCentury(e).getFullYear()+" - "+o.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return o.durationInCenturies(t,e)},e.prototype.total=function(e,t){return o.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?o.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInCenturies(e,t)<n?o.addCenturies(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.cloneDate(t):e>n&&this.isEqual(e,n)?o.cloneDate(n):e},e}();t.CenturyViewService=u},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(12),a=n(13),s=n(4),l=[[]],u=((r={})[i.Action.Left]=function(e){return o.addYears(e,-1)},r[i.Action.Up]=function(e){return o.addYears(e,-5)},r[i.Action.Right]=function(e){return o.addYears(e,1)},r[i.Action.Down]=function(e){return o.addYears(e,5)},r[i.Action.PrevView]=function(e){return o.addDecades(e,-1)},r[i.Action.NextView]=function(e){return o.addDecades(e,1)},r[i.Action.FirstInView]=function(e){return o.firstYearOfDecade(e)},r[i.Action.LastInView]=function(e){return o.lastYearOfDecade(e)},r),c=function(){function e(){}return e.prototype.addToDate=function(e,t){return o.addDecades(e,t)},e.prototype.datesList=function(e,t){return s.range(0,t).map((function(t){return o.addDecades(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,i=e.isActiveView,u=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?a.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return l;var m=s.range(0,5),v=o.firstYearOfDecade(f),g=o.lastYearOfDecade(f),y=s.getToday();return s.range(0,2).map((function(e){var a=o.addYears(v,5*e);return m.map((function(e){var l=t.normalize(o.addYears(a,e),c,u),d=t.isEqual(l,h.start),f=t.isEqual(l,h.end),m=!d&&!f&&s.isInSelectionRange(l,h),b=i&&(Array.isArray(p)?t.isSelectedFromArray(l,p,c,u):s.isInRange(p,c,u)&&t.isEqual(l,p));return{formattedValue:t.value(l),id:""+n+l.getTime(),isFocused:t.isEqual(l,r),isSelected:b,isWeekend:!1,isInRange:s.isInRange(l,c,u),isRangeStart:d,isRangeMid:m,isRangeEnd:f,isRangeSplitEnd:m&&t.isEqual(l,g),isRangeSplitStart:m&&t.isEqual(l,v),isToday:t.isEqual(l,y),title:t.cellTitle(l),value:l}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){s.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var r=e.getFullYear(),o=!t||t.getFullYear()<=r,i=!n||r<=n.getFullYear();return o&&i},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===o.durationInDecades(e,t)},e.prototype.move=function(e,t){var n=u[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?o.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?o.firstYearOfDecade(e).getFullYear()+" - "+o.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return o.durationInDecades(t,e)},e.prototype.total=function(e,t){return o.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInDecades(e,t)<n?o.addDecades(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.cloneDate(t):e>n&&this.isEqual(e,n)?o.cloneDate(n):e},e}();t.DecadeViewService=c},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(12),a=n(13),s=n(4),l=[[]],u=((r={})[i.Action.Left]=function(e){return o.addDays(e,-1)},r[i.Action.Up]=function(e){return o.addWeeks(e,-1)},r[i.Action.Right]=function(e){return o.addDays(e,1)},r[i.Action.Down]=function(e){return o.addWeeks(e,1)},r[i.Action.PrevView]=function(e){return o.addMonths(e,-1)},r[i.Action.NextView]=function(e){return o.addMonths(e,1)},r[i.Action.FirstInView]=function(e){return o.firstDayOfMonth(e)},r[i.Action.LastInView]=function(e){return o.lastDayOfMonth(e)},r),c=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return o.addMonths(e,t)},e.prototype.datesList=function(e,t){return s.range(0,t).map((function(t){return o.addMonths(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,i=e.isActiveView,u=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?a.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return l;var m=o.firstDayOfMonth(f),v=o.lastDayOfMonth(f),g=o.dayOfWeek(m,this.intl.firstDay(),-1),y=s.range(0,7),b=s.getToday();return s.range(0,6).map((function(e){var a=o.addDays(g,7*e);return y.map((function(e){var l=t.normalize(o.addDays(a,e),c,u);if(l<m||l>v)return null;var d=t.isEqual(l,h.start),f=t.isEqual(l,h.end),g=!d&&!f&&s.isInSelectionRange(l,h),y=i&&(Array.isArray(p)?t.isSelectedFromArray(l,p,c,u):s.isInRange(p,c,u)&&t.isEqual(l,p));return{formattedValue:t.value(l),id:""+n+l.getTime(),isFocused:t.isEqual(l,r),isSelected:y,isInRange:s.isInRange(l,c,u),isWeekend:t.isWeekend(l),isRangeStart:d,isRangeMid:g,isRangeEnd:f,isRangeSplitStart:g&&t.isEqual(l,m),isRangeSplitEnd:g&&t.isEqual(l,v),isToday:t.isEqual(l,b),title:t.cellTitle(l),value:l}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&o.getDate(e).getTime()===o.getDate(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){s.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&o.firstDayOfMonth(t[0])<=e&&e<=o.lastDayOfMonth(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=o.getDate(e),i=!t||o.getDate(t)<=r,a=!n||r<=o.getDate(n);return i&&a},e.prototype.isInSameView=function(e,t){return 0===o.durationInMonths(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=u[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return o.durationInMonths(t,e)},e.prototype.total=function(e,t){return o.durationInMonths(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInMonths(e,t)<n?o.addMonths(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.getDate(t):e>n&&this.isEqual(e,n)?o.getDate(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}();t.MonthViewService=c},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(12),a=n(4),s=n(13),l=n(3),u=[[]],c=((r={})[i.Action.Left]=function(e){return o.addMonths(e,-1)},r[i.Action.Up]=function(e){return o.addMonths(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},r[i.Action.Right]=function(e){return o.addMonths(e,1)},r[i.Action.Down]=function(e){return o.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},r[i.Action.PrevView]=function(e){return o.addYears(e,-1)},r[i.Action.NextView]=function(e){return o.addYears(e,1)},r[i.Action.FirstInView]=function(e){return o.firstMonthOfYear(e)},r[i.Action.LastInView]=function(e){return o.lastMonthOfYear(e)},r),p=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return o.addYears(e,t)},e.prototype.datesList=function(e,t){return a.range(0,t).map((function(t){return o.addYears(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,i=e.isActiveView,l=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?s.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return u;var m=this.abbrMonthNames(),v=o.firstMonthOfYear(f),g=o.lastMonthOfYear(f),y=v.getFullYear(),b=a.range(0,5),w=a.getToday();return a.range(0,3).map((function(e){var s=o.addMonths(v,5*e);return b.map((function(e){var u=t.normalize(o.addMonths(s,e),c,l);if(y<u.getFullYear())return null;var d=t.isEqual(u,h.start),f=t.isEqual(u,h.end),b=!d&&!f&&a.isInSelectionRange(u,h),k=i&&(Array.isArray(p)?t.isSelectedFromArray(u,p,c,l):a.isInRange(p,c,l)&&t.isEqual(u,p));return{formattedValue:m[u.getMonth()],id:""+n+u.getTime(),isFocused:t.isEqual(u,r),isSelected:k,isInRange:a.isInRange(u,c,l),isWeekend:!1,isRangeStart:d,isRangeMid:b,isRangeEnd:f,isRangeSplitEnd:b&&t.isEqual(u,g),isRangeSplitStart:b&&t.isEqual(u,v),isToday:t.isEqual(u,w),title:t.cellTitle(u),value:u}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){a.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var r=o.createDate(e.getFullYear(),e.getMonth(),1),i=!t||o.createDate(t.getFullYear(),t.getMonth(),1)<=r,a=!n||r<=o.createDate(n.getFullYear(),n.getMonth(),1);return i&&a},e.prototype.isInSameView=function(e,t){return 0===o.durationInYears(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=c[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return o.durationInYears(t,e)},e.prototype.total=function(e,t){return o.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInYears(e,t)<n?o.addYears(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?l.cloneDate(t):e>n&&this.isEqual(e,n)?l.cloneDate(n):e},e}();t.YearViewService=p},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(5),u=n(2),c=n(31),p=n(8),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTitle=function(){if(!t.props.currentDate)return"";var e=t.rangeLength-1,n=t.props.service.title(t.props.currentDate),r=t.props.service.addToDate(t.props.currentDate,e);return e<1||!t.props.service.isInRange(r,t.min,t.max)?n:n+" - "+t.props.service.title(r)},t.handleTitleClick=function(e){t.canMoveUp&&t.props.bus.moveUp(t.props.activeView,e)},t}return o(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.getTitle(),t=u.classNames("k-calendar-title"),n={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},r=this.props.headerTitle?a.createElement(this.props.headerTitle,i({},n),e):a.createElement(c.CalendarHeaderTitle,i({},n),e);return a.createElement("div",{className:"k-calendar-header"},r,a.createElement("span",{className:"k-spacer"}),a.createElement("span",{className:"k-calendar-nav"},this.props.commands))},t.propTypes={activeView:s.number.isRequired,currentDate:s.instanceOf(Date).isRequired,max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,rangeLength:s.number},t.defaultProps={rangeLength:1,min:p.MIN_DATE,max:p.MAX_DATE},t}(a.Component);t.Header=d,l.registerForLocalization(d)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(21),l=n(1),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,a(e,["view"]));return l.createElement(s.Button,i({type:"button",look:"flat"},t),this.props.children)},t}(l.PureComponent);t.CalendarHeaderTitle=u},function(e,t,n){"use strict";var r,o=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(5),l=n(2),u=n(3),c=n(6),p=n(4),d=n(8),h=function(e){function t(){var t=null!==e&&e.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:p.dateInRange(p.getToday(),t.min,t.max),target:t,isTodayClick:!0})},t}return o(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return p.isInRange(p.getToday(),u.getDate(this.min),u.getDate(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=s.provideLocalizationService(this);var e=this.localization.toLanguageString(c.today,c.messages[c.today]),t=l.classNames("k-nav-today",{"k-state-disabled":this.props.disabled});return i.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onClick:a.func,disabled:a.bool},t.defaultProps={min:d.MIN_DATE,max:d.MAX_DATE},t}(i.Component);t.TodayCommand=h,s.registerForLocalization(h)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,a(e,["isRangeStart","value","text"]));return s.createElement("li",i({},n,{onClick:this.handleClick}),s.createElement("span",{className:l.classNames({"k-calendar-navigation-marker":t})},this.props.children))},t}(s.Component);t.CalendarNavigationItem=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){this.symbols=""};t.Mask=r},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,r){var o=e[r+e.length-n.length],i=e.substring(0,r+e.length-n.length),a=n.substring(0,r),s=[];if(i===a&&r>0)return s.push([t[r-1],a[r-1]]),s;if(0===i.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){var l="";1===a.length&&s.push([t[0],a[0]]);for(var u=a.length;u<i.length;u++)t[u]!==l&&"_"!==t[u]&&(l=t[u],s.push([l,""]));return s}if(0===a.indexOf(i)||"_"===t[r-1]){var c=t[0];for(u=Math.max(0,i.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,a[r-1]]]}return" "===a[a.length-1]||a[a.length-1]===o?[[t[r-1],"_"]]:[[t[r-1],a[r-1]]]},t.dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},t.isInRange=function(e,t,n){return null===e||!(t&&t>e||n&&n<e)},t.invalidClasses=["k-state-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2);t.ToggleButton=r.forwardRef((function(e,t){var n=o.classNames("k-select",e.className);return r.createElement("a",{ref:t,id:e.id,role:"button",style:e.style,className:n,tabIndex:e.tabIndex,title:e.title,"aria-label":e.title,onMouseDown:e.onMouseDown,onClick:e.onClick,onMouseUp:e.onMouseUp},e.children)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2);t.PickerWrap=r.forwardRef((function(e,t){var n=e._ref,i=r.useRef(null);r.useImperativeHandle(t,(function(){return i.current})),r.useImperativeHandle(n,(function(){return i.current}));var a=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:a,tabIndex:e.tabIndex},e.children)}))},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(1),l=n(0),u=n(3),c=n(2),p=n(5),d=n(6),h=n(58),f=n(4),m=n(19),v=n(9),g=new RegExp(m.TIME_PART.hour+"|"+m.TIME_PART.minute+"|"+m.TIME_PART.second+"|"+m.TIME_PART.dayperiod+"|literal");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(a=t.Direction||(t.Direction={}));var y=function(e){function t(n){var r=e.call(this,n)||this;return r.timeLists=[],r.focus=function(e){Promise.resolve().then((function(){var t=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&t&&t.element&&t.focus(e)}))},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){var r=t>=1&&n[t-1];return r&&r&&"literal"===e.type?g.test(r.type||""):g.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===a.Right?t.next:t.prev})).map((function(e){return e&&e.element&&e.element.focus({preventScroll:!0})}))},r.listReducer=function(e,t,n,o){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:o[n+1]||t,prev:o[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 c.Keys.left:return e.preventDefault(),void r.focusList(a.Left);case c.Keys.right:return e.preventDefault(),void r.focusList(a.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||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return v.timeInRange(this.snapTime(u.cloneDate(this.props.value||f.MIDNIGHT_DATE)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return p.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.snapTime(this.props.min||t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.snapTime(this.props.max||t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this.props.steps||t.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"boundRange",{get:function(){return void 0!==this.props.boundRange?this.props.boundRange:t.defaultProps.boundRange},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},t.prototype.render=function(){var e=this,n=this.props,r=n.format,o=n.smoothScroll,a=n.onNowClick,l=n.className,u=n.disabled;this.snapTime=v.snapTime(v.generateSnappers(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var f=c.classNames({"k-state-disabled":u},l,"k-time-part");this.timeLists=[];var m=p.provideLocalizationService(this),g=m.toLanguageString(d.selectNow,d.messages[d.selectNow]);return s.createElement("div",{className:f},s.createElement("div",{className:"k-time-header"},s.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&s.createElement("button",i({type:"button",ref:function(t){e._nowButton=t},className:"k-button k-flat k-time-now",title:g},{"aria-label":g},{onClick:a,tabIndex:u?-1:0}),m.toLanguageString(d.now,d.messages[d.now]))),s.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},s.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?s.createElement("div",{key:n,className:c.classNames("k-time-list-wrapper",{"k-state-focused":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},s.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),s.createElement(h.TimeList,{min:e.min,max:e.max,boundRange:e.boundRange,part:t,step:t.type?e.steps[t.type]:1,smoothScroll:o,ref:function(t){t&&e.timeLists.push(t)},id:n,onFocus:function(){e.handleListFocus(n)},onBlur:e.handleListBlur,onChange:e.handleChange,value:e.value,disabled:u})):s.createElement("div",{key:n,className:"k-time-separator"},t.pattern)}))))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return document.activeElement===this._nowButton},t.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},t.propTypes={cancelButton:l.bool,disabled:l.bool,format:l.oneOfType([l.string,l.shape({skeleton:l.string,pattern:l.string,date:l.oneOf(["short","medium","long","full"]),time:l.oneOf(["short","medium","long","full"]),datetime:l.oneOf(["short","medium","long","full"]),era:l.oneOf(["narrow","short","long"]),year:l.oneOf(["numeric","2-digit"]),month:l.oneOf(["numeric","2-digit","narrow","short","long"]),day:l.oneOf(["numeric","2-digit"]),weekday:l.oneOf(["narrow","short","long"]),hour:l.oneOf(["numeric","2-digit"]),hour12:l.bool,minute:l.oneOf(["numeric","2-digit"]),second:l.oneOf(["numeric","2-digit"]),timeZoneName:l.oneOf(["short","long"])})]),max:l.instanceOf(Date),min:l.instanceOf(Date),nowButton:l.bool,steps:l.shape({hour:l.number,minute:l.number,second:l.number}),smoothScroll:l.bool,tabIndex:l.number,value:l.instanceOf(Date)},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:f.MIN_TIME,max:f.MAX_TIME,steps:{},boundRange:!1},t}(s.Component);t.TimePart=y,p.registerForIntl(y),p.registerForLocalization(y)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(5),u=n(2),c=n(3),p=n(21),d=n(10),h=n(30),f=n(8),m=n(6),v=n(18),g=n(4),y=n(66),b=n(32),w=function(e,t,n){return void 0===e&&(e=_.defaultProps.min),void 0===t&&(t=_.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&g.isInRange(c.getDate(n),e,t)?c.getDate(n):null},k=function(e,t,n){return void 0===e&&(e=_.defaultProps.min),void 0===t&&(t=_.defaultProps.max),Array.isArray(n)?n.filter((function(n){return g.isInRange(n,e,t)})).map((function(e){return c.getDate(e)})):null},O=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?d.EMPTY_SELECTIONRANGE:e},D=function(e,t,n){return e||t&&t[0]||n&&n.start},_=function(e){function t(n){var r=e.call(this,n)||this;r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=d.EMPTY_SELECTIONRANGE,r.cellUID=u.guid(),r.activeRangeEnd="start",r.wrapperID=u.guid(),r.isActive=!1,r.calculateFocusFromValue=!0,r.focus=function(){r._element&&r._element.focus()},r.clampRange=function(e){return{start:e,end:null}},r.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&r.isActive?t:e.end}},r.generateRange=function(e,t){var n=t.end,o=t.start,i=null!==t.start&&e.getTime()<=t.start.getTime();return!r.props.allowReverse&&i?{start:e,end:r.selectedRange.start}:"end"!==r.activeRange?{start:e,end:n}:{start:o||r.selectedDate,end:e}},r.canNavigate=function(e){if(!r.service)return!1;var t=r.service.move(r.focusedDate,e);return r.min<=t&&t<=r.max||r.service.isInSameView(t,r.min)||r.service.isInSameView(t,r.max)},r.isListInRange=function(e){return r.min<e[0]&&r.max>e[Math.max(0,(r.props.views||t.defaultProps.views)-1)]},r.navigate=function(e){r.calculateFocusFromValue=!1;var t=r.move(e);r.setState({focusedDate:t})},r.move=function(e){return r.clampDate(r.service.move(r.focusedDate,e))},r.clampDate=function(e){return g.dateInRange(e,r.min,r.max)},r.shouldAutoCorrect=function(e,t){var n=t.end,o=t.start;return"end"!==r.activeRange?null!==n&&e>n:null!==o&&e<o},r.handleCellEnter=function(e){"range"===r.props.mode&&(r.calculateFocusFromValue=!1,r.setState({focusedDate:e}))},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleTodayClick=function(e){r.todayIsInRange&&r.handleDateChange.call(void 0,e,!0)},r.handlePrevButtonClick=function(){r.navigate(d.Action.PrevView)},r.handleNextButtonClick=function(){r.navigate(d.Action.NextView)},r.handleKeyDown=function(e){if(e.keyCode===u.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{var n=g.dateInRange(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(c.isEqualDate(r.focusedDate,n))return;r.calculateFocusFromValue=!1,r.setState({focusedDate:n})}e.preventDefault()},r.handleViewChange=function(e){var t=e.view;r.setState({activeView:t})},r.handleDateChange=function(e){var t=c.cloneDate(e.value),n=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(n){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:t});r.bus.moveToBottom(r.state.activeView)}var o;switch(r.calculateFocusFromValue=!0,r.props.mode){case"single":o=c.cloneDate(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){c.isEqualDate(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push(c.cloneDate(e.value)),o=i.slice()}else o=r.selectedDate?[c.cloneDate(r.selectedDate),c.cloneDate(e.value)]:[c.cloneDate(e.value)];break;case"range":o=null!==r.selectedRange.start&&null!==r.selectedRange.end&&"start"===r.activeRange?r.clampRange(e.value):r.generateRange(e.value,r.selectedRange),r.activeRangeEnd="end"!==r.activeRange?"end":"start";break;default:o=c.cloneDate(e.value)}r.valueDuringOnChange=o,r.setState({value:o,focusedDate:t}),r.valueDuringOnChange=o;var s=r.props.onChange;if(s){var l={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:o,target:r};s.call(void 0,l)}r.valueDuringOnChange=void 0}};var o,i,a=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,s=w(r.min,r.max,a),l=k(r.min,r.max,a),p=O(a),h=D(s,l,p),f=g.viewInRange(d.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),m=g.dateInRange(n.focusedDate||h||g.getToday(),r.min,r.max);return r.state={value:a,activeView:f,focusedDate:m},r.activeRangeEnd=(i=s,null===(o=p).start&&null===i?"start":null===o.end?"end":"start"),r.bus=new v.BusViewService(r.handleViewChange),r.navigation=new v.NavigationService(r.bus),r.calculateFocusFromValue=!1,r.lastView=f,r.lastViewsCount=r.props.views||y.HorizontalViewList.defaultProps.views,r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedDate",{get:function(){return c.cloneDate(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return c.getDate(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return c.getDate(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return d.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return d.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return g.isInRange(g.getToday(),c.getDate(this.min),c.getDate(this.max))},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},t.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=w(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||y.HorizontalViewList.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=l.provideIntlService(this),this.localization=l.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView);var t=g.viewInRange(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=w(this.min,this.max,this.value),this.selectedMultiple=k(this.min,this.max,this.value),this.selectedRange=O(this.value);var n=D(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=g.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=u.classNames("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),s={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},f=this.localization.toLanguageString(m.prevView,m.messages[m.prevView]),v=this.localization.toLanguageString(m.nextView,m.messages[m.nextView]),_=!this.canNavigate(d.Action.PrevView),S=!this.canNavigate(d.Action.NextView),C={"aria-disabled":_},E={"aria-disabled":S},x=this.lastView!==t,P=this.dates&&this.service.isInArray(this.focusedDate,this.dates),I=this.lastViewsCount!==this.props.views;(!P||x||I)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||y.HorizontalViewList.defaultProps.views));var M=c.cloneDate(this.dates&&this.dates[0]?this.dates[0]:g.getToday());return a.createElement("div",i({ref:function(t){e._element=t},className:r,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},s),a.createElement(h.Header,{key:".kendo.calendar.header."+M.getTime(),activeView:t,currentDate:M,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:a.createElement(a.Fragment,null,a.createElement(p.Button,i({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:f,disabled:_,onClick:this.handlePrevButtonClick},C)),a.createElement(b.TodayCommand,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),a.createElement(p.Button,i({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:v,disabled:S,onClick:this.handleNextButtonClick},E)))}),a.createElement(y.HorizontalViewList,{ref:function(t){e.calendarViewList=t},dates:this.dates,activeView:t,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:o,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}))},t.propTypes={activeRangeEnd:s.oneOf(["start","end"]),allowReverse:s.bool,bottomView:s.oneOf(["month","year","decade","century"]),className:s.string,defaultActiveView:s.oneOf(["month","year","decade","century"]),defaultValue:s.oneOfType([s.instanceOf(Date),s.arrayOf(s.instanceOf(Date)),s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)})]),disabled:s.bool,focusedDate:s.instanceOf(Date),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,max:s.instanceOf(Date),min:s.instanceOf(Date),mode:s.oneOf(["single","multiple","range"]),onBlur:s.func,onChange:s.func,onFocus:s.func,tabIndex:s.number,topView:s.oneOf(["month","year","decade","century"]),value:s.oneOfType([s.instanceOf(Date),s.arrayOf(s.instanceOf(Date)),s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)})]),views:function(e,t,n){var r=e[t];return void 0!==r&&r<1?new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'"):null},weekNumber:s.bool},t.defaultProps={disabled:!1,min:f.MIN_DATE,max:f.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(a.Component);t.MultiViewCalendar=_,l.registerForIntl(_),l.registerForLocalization(_)},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return m})),n.d(t,"Label",(function(){return c})),n.d(t,"Error",(function(){return p})),n.d(t,"Hint",(function(){return d}));var r,o=n(1),i=n(0),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(5),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1631616480,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"},c=function(e){Object(a.validatePackage)(u);var t=e.id,n=e.editorId,r=e.editorRef,i=e.editorDisabled,c=e.children,p=e.editorValid,d=e.style,h=e.className,f=e.optional,m=Object(l.useLocalization)(),v=f?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=o.useCallback((function(e){if(r&&r.current&&!i){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),b=Object(a.classNames)({"k-label":!0,"k-label-empty":!c,"k-text-error":!1===p,"k-text-disabled":!0===i},h);return o.createElement("label",{id:t,htmlFor:n,onClick:y,style:d,className:b},c,g)};c.propTypes={id:i.string,editorId:i.string,editorRef:i.oneOfType([i.func,i.shape({current:i.any})]),editorValid:i.bool,editorDisabled:i.bool,style:i.object,className:i.string,optional:i.bool},c.displayName="KendoReactLabel";var p=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className);return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)};p.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},p.defaultProps={direction:"start"},p.displayName="KendoReactError";var d=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className);return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)};d.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string,editorDisabled:i.bool},d.defaultProps={direction:"start"},d.displayName="KendoReactHint";var h,f=(h=function(e,t){return(h=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}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},Object(a.validatePackage)(u),n}return f(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,i=e.editorValue,u=e.editorPlaceholder,c=e.editorValid,p=e.editorDisabled,d=e.style,h=e.id,f=e.optional,m=Object(l.provideLocalizationService)(this),v=f?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=Object(a.classNames)({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!u&&!i&&0!==i,"k-text-disabled":p,"k-rtl":"rtl"===this.props.dir},r),b=Object(a.classNames)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":p});return o.createElement("span",{className:y,onFocus:this.handleFocus,onBlur:this.handleBlur,style:d,dir:this.props.dir},this.props.children,t?n?o.createElement("label",{id:h,htmlFor:n,className:b},t,g):o.createElement("span",{id:h,className:b},t,g):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,optional:i.bool},t}(o.Component);Object(l.registerForLocalization)(m)},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15);t.Calendar=r.Calendar;var o=n(14);t.DateInput=o.DateInput;var i=n(55);t.DatePicker=i.DatePicker;var a=n(56);t.TimePicker=a.TimePicker;var s=n(39);t.MultiViewCalendar=s.MultiViewCalendar;var l=n(67);t.DateRangePicker=l.DateRangePicker;var u=n(24);t.CalendarCell=u.CalendarCell;var c=n(25);t.CalendarWeekCell=c.CalendarWeekCell;var p=n(31);t.CalendarHeaderTitle=p.CalendarHeaderTitle;var d=n(33);t.CalendarNavigationItem=d.CalendarNavigationItem;var h=n(10);t.CalendarViewEnum=h.CalendarViewEnum;var f=n(68);t.DateTimePicker=f.DateTimePicker;var m=n(36);t.ToggleButton=m.ToggleButton;var v=n(37);t.PickerWrap=v.PickerWrap},function(e,t,n){"use strict";var r,o=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(2),l=n(3),u=n(5),c=n(16),p=n(23),d=n(30),h=n(4),f=n(10),m=n(32),v=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.animateToIndex=!0,n.shouldScroll=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.table){n.table.style.transform="translateY("+n.viewOffset+"px)";var t=h.dateInRange(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildMonthView=function(e,t){return i.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},i.createElement("colgroup",null,e.map((function(e,t){return i.createElement("col",{key:t})}))),i.createElement("thead",{className:"k-calendar-thead"},i.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return i.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return i.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},i.createElement("colgroup",null,e.map((function(e,t){return i.createElement("col",{key:t})}))),t.map((function(e){return i.createElement(p.View,{ref:function(e){n.calendarView||(n.calendarView=e)},key:e.getTime(),activeView:n.props.activeView,viewDate:e,min:n.props.min,max:n.props.max,cellUID:r,focusedDate:n.props.focusedDate,cell:n.props.cell,selectedDate:n.props.value,showWeekNumbers:n.weekNumber,onChange:n.handleDateChange,bus:n.props.bus,service:n.props.service,weekCell:n.props.weekCell})})))},n.calculateHeights=function(){if(n.props.dom){var e=n.props.activeView===f.CalendarViewEnum.month?n.props.dom.scrollableContentHeight:n.props.dom.scrollableYearContentHeight;n.bottomOffset=e-n.props.dom.viewHeight(n.props.activeView),n.viewOffset=-1*n.props.dom.headerHeight,n.viewHeight=n.props.dom.viewHeight(n.props.activeView)||1}},n.getTake=function(e,t){return Math.min(t-e,n.take)},n.handleScrollAction=function(e){var t=e.index,r=e.scrollAction,o=e.pageAction,i=o?o.skip:n.state.skip;if(n.state.index===t&&n.state.skip===i||n.setState({index:t,skip:i}),n.table&&r){var a="translateY("+r.offset+"px)";n.table.style.transform=a}},n.handleTodayClick=function(e){n.shouldScroll=!0,n.handleDateChange.call(void 0,e,!0)},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:l.cloneDate(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate,n.state={skip:n.props.service.skip(n.props.focusedDate,n.props.min),index:n.props.service.skip(n.props.focusedDate,n.props.min)},n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNames",{get:function(){this.intl=u.provideIntlService(this);var e=h.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===f.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return h.isInRange(h.getToday(),l.getDate(this.props.min),l.getDate(this.props.max))},enumerable:!0,configurable:!0}),t.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},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=h.dateInRange(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),a=this.getTake(r,o),u=this.props.service.addToDate(this.props.min,r),p=this.props.service.addToDate(this.props.min,this.state.index),v=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),g=this.props.activeView!==this.lastView;this.animateToIndex=!g,(g||!l.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;var y=s.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===f.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===f.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===f.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===f.CalendarViewEnum.century}),b=this.buildDates(v,this.props.service.datesList(u,a)),w=i.createElement(i.Fragment,null,i.createElement(d.Header,{key:"calendar-view-list-header",currentDate:p,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:i.createElement(i.Fragment,null,i.createElement(m.TodayCommand,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===f.CalendarViewEnum.month&&this.buildMonthView(v,this.weekNames),i.createElement(c.Virtualization,{key:"calendar-view-list-content",skip:r,take:this.take,total:o,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:b}));return i.createElement("div",{ref:function(t){e._element=t},className:y},this.props.dom.didCalculate?w:null)},t.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},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(i.Component);t.ViewList=v,u.registerForIntl(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45);t.RowHeightService=r.RowHeightService;var o=n(46);t.PageAction=o.PageAction,t.ScrollAction=o.ScrollAction,t.ScrollerService=o.ScrollerService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var r=0,o=0;o<e;o++)this.offsets.push(r),r+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}();t.RowHeightService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return Math.max(e,0)},o=function(e){this.offset=e};t.ScrollAction=o;var i=function(e){this.skip=e};t.PageAction=i;var a=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,a,s,l,u){void 0===s&&(s=0),void 0===l&&(l=0),void 0===u&&(u="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=a,this.lastScrollTop=0,this.topOffset=s,this.bottomOffset=l,this.direction=u;var c=this.rowsForHeight(s),p=r(t-c);this.onScrollAction(new o(this.rowOffset(p))),this.onPageAction(new i(p))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,a=e.offsetHeight,s=e.offsetWidth,l="vertical"===this.direction?n:t,u="vertical"===this.direction?a:s;if(this.lastScrollTop!==l){var c=this.lastScrollTop>=l;this.lastScrollTop=l;var p=this.rowHeightService.index(r(l-this.topOffset)),d=this.rowHeightService.index(r(l+u-this.bottomOffset));if(!c&&d>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=p,this.onScrollAction(new o(this.rowOffset(p))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new i(this.firstLoaded))),c&&p<=this.firstLoaded){var h=Math.floor(.3*this.take);this.firstLoaded=r(p-h),this.onScrollAction(new o(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new i(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e}();t.ScrollerService=a},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),i=n(27),a=n(28),s=n(29),l=n(17),u=((r={})[l.CalendarViewEnum.month]=a.MonthViewService,r[l.CalendarViewEnum.year]=s.YearViewService,r[l.CalendarViewEnum.decade]=i.DecadeViewService,r[l.CalendarViewEnum.century]=o.CenturyViewService,r),c=function(){function e(e){this.bottom=l.CalendarViewEnum.month,this.top=l.CalendarViewEnum.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new u[""+e](t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var r=this.clamp(function(e,t){var n=l.CalendarViewEnum[l.CalendarViewEnum[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}();t.BusViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(4),i=n(2),a=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;if(i.canUseDOM){var n,r=o.domContainerFactory("div"),a=o.domContainerFactory("ul"),s=o.domContainerFactory("li"),l=o.domContainerFactory("td"),u=o.domContainerFactory("th"),c=o.domContainerFactory("tr"),p=o.domContainerFactory("tbody"),d=o.domContainerFactory("thead"),h=o.domContainerFactory("table"),f=function(){return r('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},m=function(e,t){return new Array(e).fill("1").map(t)},v=function(e){return r(e,"k-content k-scrollable")},g=function(){return i.canUseDOM?(n||(n=r([v([a([s("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null},y=function(e,t,n){var o,a=e.cells,s=e.rows;return function(){return i.canUseDOM?(o||(o=function(e,t,n){return r(n?[f(),h([d([c([u("MO")])])],"k-calendar-weekdays"),v([e,e])]:[f(),v([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),h([p([c([u("1")])].concat(m(e,(function(){return c(m(t,(function(e){return l('<span class="k-link">'+e+"</span>")})))}))))])}(s,a),t,n)),o):null}},b=function(e){return e.querySelector(".k-scrollable")},w=function(e){var t=b(e);return t.className=t.className+" k-scrollable-horizontal",e},k=y({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),O=y({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),D=y({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),_=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},S=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},C=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(k(),(function(e){var n=C(e);t.calendarHeight=_(e),t.monthViewHeight=_(n),t.headerHeight=_(n.children[0]),t.scrollableContentHeight=_(b(e))})),this.batch(w(k()),(function(e){var n=C(e);t.calendarWidth=S(e),t.monthViewWidth=S(n),t.scrollableContentWidth=S(b(e))})),this.batch(O(),(function(e){t.yearViewHeight=_(C(e)),t.scrollableYearContentHeight=_(b(e))})),this.batch(w(O()),(function(e){t.yearViewWidth=S(C(e))})),this.batch(D(),(function(e){t.decadeViewHeight=_(C(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(w(D()),(function(e){t.decadeViewWidth=S(C(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(g(),(function(e){t.navigationItemHeight=_(e.querySelector("li"))}))}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case r.CalendarViewEnum.month:return this["month"+n];case r.CalendarViewEnum.year:return this["year"+n];case r.CalendarViewEnum.decade:return this["decade"+n];case r.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)},e}();t.DOMService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o={33:r.Action.PrevView,34:r.Action.NextView,35:r.Action.LastInView,36:r.Action.FirstInView,37:r.Action.Left,38:r.Action.Up,39:r.Action.Right,40:r.Action.Down,"meta+38":r.Action.UpperView,"meta+40":r.Action.LowerView},i=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return o[t]},e.prototype.move=function(e,t,n,o,i){return o?t===r.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,i),e):t===r.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,i),e):o.move(e,t):e},e}();t.NavigationService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e}();t.ScrollSyncService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=r.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}();t.WeekNamesService=o},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(33),c=n(4),p=n(16),d=function(e){function t(t){var n=e.call(this,t)||this;n.topOffset=0,n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.list){n.list.style.transform="translateY("+n.topOffset+"px)";var t=c.dateInRange(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildNavigationItem=function(e){var t=n.props.service.navigationTitle(e),r=n.props.service.isRangeStart(e),o="kendo-react-calendar-nav-item-"+e.getTime(),s={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?a.createElement(n.props.navigationItem,i({},s,{key:o}),t):a.createElement(u.CalendarNavigationItem,i({},s,{key:o}),t)},n.calculateHeights=function(){var e=n.props.dom.calendarHeight;n.itemHeight=n.props.dom.navigationItemHeight||1,n.maxViewHeight=n.props.dom.monthViewHeight,n.topOffset=(e-n.itemHeight)/2,n.bottomOffset=e-n.itemHeight},n.handleDateChange=function(e,t){var r=n.props.onChange;if(r){var o={value:l.cloneDate(e),target:n,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};r.call(void 0,o)}},n.handleScrollAction=function(e){var t=e.scrollAction,r=e.pageAction,o=r?r.skip:n.state.skip;if(n.state.skip!==o&&n.setState({skip:o}),n.list&&t){var i="translateY("+t.offset+"px)";n.list.style.transform=i}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate;var r=n.props.service.skip(n.props.focusedDate,n.props.min),o=n.props.service.total(n.props.min,n.props.max);return n.state={skip:r-n.getTake(r,o)>0?r:0},n}return o(t,e),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),t.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},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=c.dateInRange(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),s=this.props.service.addToDate(this.props.min,r),u=this.props.service.datesList(s,i);this.props.activeView===this.lastView&&l.isEqual(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var d=a.createElement(p.Virtualization,{skip:r,take:this.take,total:o,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},a.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},u.map((function(t){return e.buildNavigationItem(t)}))));return a.createElement("div",{className:"k-calendar-navigation"},a.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?d:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:s.number.isRequired,focusedDate:s.instanceOf(Date).isRequired,max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,onChange:s.func,take:s.number},t.defaultProps={take:30},t}(a.Component);t.Navigation=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54);t.KendoDate=r.KendoDate;var o=n(34);t.Mask=o.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(34),i=n(35),a=function(){function e(e,t,n){this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=r.getDate(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){e?r.isEqual(e,this._value)||(this._value=r.cloneDate(e),this.modifyExisting(!0)):(this._value=r.getDate(new Date),this.modifyExisting(!1))},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return r.cloneDate(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=r.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=r.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n;if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var o=this.intl.formatDate(this.value,this.format),i=this.dateFormatString(this.value,this.format),a=i.symbols,s=!1,l="",u="",c="",p=0;p<o.length;p++)a[p]===e?(u+=this.getExisting(e)?o[p]:"0",s=!0):s?c+=o[p]:l+=o[p];for(var d=null,h=this.matchMonth(t);u.length>0&&"0"===u.charAt(0);)u=u.slice(1);u.length>=4&&(u="");for(p=0;p<2;p++){var f=u+t,m=parseInt(f,10);if(!(d=this.intl.parseDate(l+f+c,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!h){var v=m-1;v>-1&&v<12&&((d=r.cloneDate(this.value)).setMonth(v),d.getMonth()!==v&&(d=r.lastDayOfMonth(r.addMonths(d,-1))))}"y"===e&&(d=r.createDate(parseInt(f,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&d.getDate()!==this.value.getDate()&&(d=r.lastDayOfMonth(r.addMonths(d,-1))))}if(d)return this._value=d,this.setExisting(e,!0),{value:this.value};u=""}return h&&(d=this.intl.parseDate(l+h+c,this.format))?(this._value=d,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(i.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(i.dateSymbolMap,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),r=[],i=[],a=0;a<n.length;a++)for(var s=this.intl.formatDate(e,{pattern:n[a].pattern}).length;s>0;)r.push(this.symbols[n[a].pattern[0]]||"_"),i.push(n[a]),s--;var l=new o.Mask;return l.symbols=r.join(""),l.partMap=i,l},e.prototype.merge=function(e,t){for(var n="",r="",o=t.symbols,i=o.length-1;i>=0;i--)if(-1===this.knownParts.indexOf(o[i])||this.getExisting(o[i]))n=e[i]+n,r=o[i]+r;else{for(var a=o[i];i>=0&&a===o[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[i])+n;r.length<n.length;)r=o[i]+r}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}();t.KendoDate=a},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(7),c=n(3),p=n(2),d=n(2),h=n(11),f=n(14),m=n(15),v=n(4),g=n(4),y=n(6),b=n(5),w=n(36),k=n(37),O=n(20),D=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=p.guid(),r._element=null,r._wrapper=null,r._dateInput=s.createRef(),r._calendar=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){r.handleValueChange(e.value,e)},r.handleCalendarValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(t,e)},r.handleValueChange=function(e,t){r.setState({value:c.cloneDate(e||void 0),show:!1}),r.valueDuringOnChange=e,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===p.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==p.Keys.up&&n!==p.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===p.Keys.up,r.setShow(n===p.Keys.down))},d.validatePackage(h.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?c.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||t.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarComp",{get:function(){return this.props.calendar||t.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupComp",{get:function(){return this.props.popup||t.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||t.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=g.isInDateRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.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},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,l=t.id,u=t.format,d=t.formatPlaceholder,h=t.min,f=t.max,m=t.weekNumber,v=t.focusedDate,g=t.className,w=t.width,k=t.name,D=t.validationMessage,_=t.required,S=t.validityStyles,C=t.ariaLabelledBy,E=t.ariaDescribedBy,x=this.props.popupSettings,P=x.popupClass,I=a(x,["popupClass"]),M=this.show,T=this.value,N=T&&c.getDate(T),j=!this.validityStyles||this.validity.valid,V=p.classNames("k-widget k-datepicker",g),R=p.classNames("k-picker-wrap",{"k-state-invalid":!j,"k-state-disabled":n,"k-state-focused":this.state.focused}),A=p.classNames("k-calendar-container k-group k-reset",P),F={disabled:n,format:u,formatPlaceholder:d,id:l,ariaLabelledBy:C,ariaDescribedBy:E,max:f,min:h,name:k,onChange:this.handleInputValueChange,required:_,tabIndex:M?-1:r,title:o,valid:this.validity.valid,validationMessage:D,validityStyles:S,value:T,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},L=i({show:M,anchor:this._wrapper||this._element,className:A,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},I),B={disabled:n,value:N,min:h,max:f,weekNumber:m,focusedDate:v,onChange:this.handleCalendarValueChange},H=s.createElement(p.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return s.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:V,onKeyDown:e.handleKeyDown,style:{width:w},onFocus:n,onBlur:r},s.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:R},s.createElement(e.dateInputComp,i({_ref:e._dateInput},F)),s.createElement(e.toggleButtonComp,{onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:b.provideLocalizationService(e).toLanguageString(y.toggleCalendar,y.messages[y.toggleCalendar]),className:"k-select"},s.createElement("span",{className:"k-icon k-i-calendar"}))),s.createElement(e.popupComp,i({},L),s.createElement(e.calendarComp,i({_ref:e.setCalendarRef},B))))}));return this.props.label?s.createElement(O.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:j,editorDisabled:this.props.disabled,children:H,style:{width:this.props.width}}):H},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?v.setTime(e,this.value):e},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.propTypes={className:l.string,defaultShow:l.bool,defaultValue:l.instanceOf(Date),disabled:l.bool,focusedDate:l.instanceOf(Date),format:l.oneOfType([l.string,l.shape({skeleton:l.string,pattern:l.string,date:l.oneOf(["short","medium","long","full"]),time:l.oneOf(["short","medium","long","full"]),datetime:l.oneOf(["short","medium","long","full"]),era:l.oneOf(["narrow","short","long"]),year:l.oneOf(["numeric","2-digit"]),month:l.oneOf(["numeric","2-digit","narrow","short","long"]),day:l.oneOf(["numeric","2-digit"]),weekday:l.oneOf(["narrow","short","long"]),hour:l.oneOf(["numeric","2-digit"]),hour12:l.bool,minute:l.oneOf(["numeric","2-digit"]),second:l.oneOf(["numeric","2-digit"]),timeZoneName:l.oneOf(["short","long"])})]),formatPlaceholder:l.oneOfType([l.oneOf(["wide","narrow","short","formatPattern"]),l.shape({year:l.string,month:l.string,day:l.string,hour:l.string,minute:l.string,second:l.string})]),id:l.string,ariaLabelledBy:l.string,ariaDescribedBy:l.string,min:l.instanceOf(Date),max:l.instanceOf(Date),name:l.string,popupSettings:l.shape({animate:l.bool,appendTo:l.any,popupClass:l.string}),show:l.bool,tabIndex:l.number,title:l.string,value:l.instanceOf(Date),weekNumber:l.bool,width:l.oneOfType([l.number,l.string]),validationMessage:l.string,required:l.bool,validate:l.bool,valid:l.bool},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:f.DateInput,calendar:m.Calendar,toggleButton:w.ToggleButton,popup:u.Popup,pickerWrap:k.PickerWrap,disabled:!1,format:"d",max:v.MAX_DATE,min:v.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},t}(s.Component);t.DatePicker=D,b.registerForLocalization(D)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(7),c=n(3),p=n(2),d=n(5),h=n(2),f=n(11),m=n(6),v=n(14),g=n(57),y=n(4),b=n(9),w=n(20),k=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=p.guid(),r._element=null,r._wrapper=null,r._dateInput=s.createRef(),r._timeSelector=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setTimeSelectorRef=function(e){r._timeSelector=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(i({},e,{value:t}))},r.handleValueChange=function(e){r.setState({value:c.cloneDate(e.value),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleValueReject=function(e){r.setShow(!1)},r.handleIconClick=function(e){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===p.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==p.Keys.up&&n!==p.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===p.Keys.up,r.setShow(n===p.Keys.down))},h.validatePackage(f.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r.normalizeTime=r.normalizeTime.bind(r),r.setShow=r.setShow.bind(r),r.nextTick=r.nextTick.bind(r),r.mergeTime=r.mergeTime.bind(r),r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?c.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),r=b.isInRange(e,t,n),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:b.isBiggerThanMax(e,n),rangeUnderflow:b.isSmallerThanMin(e,t),valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this.props.popupSettings||t.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.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},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,l=t.id,c=t.className,h=t.format,f=t.formatPlaceholder,v=t.smoothScroll,y=t.width,b=t.name,k=t.steps,O=t.cancelButton,D=t.nowButton,_=t.validationMessage,S=t.required,C=t.validityStyles,E=t.ariaLabelledBy,x=t.ariaDescribedBy,P=this.popupSettings,I=P.popupClass,M=a(P,["popupClass"]),T=!this.validityStyles||this.validity.valid,N=p.classNames("k-widget k-timepicker",c),j=p.classNames("k-picker-wrap",{"k-state-invalid":!T,"k-state-disabled":n,"k-state-focused":this.state.focused}),V=p.classNames("k-group k-reset",I),R={disabled:n,format:h,formatPlaceholder:f,id:l,ariaLabelledBy:E,ariaDescribedBy:x,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:b,onChange:this.handleInputValueChange,required:S,steps:k,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:_,validityStyles:C,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},A=i({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:V,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},M),F=s.createElement(g.TimeSelector,{ref:this.setTimeSelectorRef,cancelButton:O,disabled:n,nowButton:D,format:h,min:this.min,max:this.max,steps:k,smoothScroll:v,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),L=d.provideLocalizationService(this),B=L.toLanguageString(m.toggleClock,m.messages[m.toggleClock]),H=L.toLanguageString(m.toggleTimeSelector,m.messages[m.toggleTimeSelector]),z=s.createElement(p.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return s.createElement("div",{ref:function(t){e._element=t},className:N,onKeyDown:e.handleKeyDown,style:{width:y},onFocus:n,onBlur:r},s.createElement("span",{ref:function(t){e._wrapper=t},className:j},s.createElement(e.dateInputComp,i({_ref:e._dateInput},R)),s.createElement("span",i({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:H,className:"k-select"},{"aria-controls":e._popupId,"aria-label":B}),s.createElement("span",{className:"k-icon k-i-clock"}))),e.props.popup?s.createElement(e.props.popup,i({},A),F):s.createElement(u.Popup,i({},A),F))}));return this.props.label?s.createElement(w.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:T,editorDisabled:this.props.disabled,children:z,style:{width:this.props.width}}):z},t.prototype.normalizeTime=function(e){return y.setTime(y.MIDNIGHT_DATE,e)},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.mergeTime=function(e){return this.value&&e?y.setTime(this.value,e):e},t.propTypes={className:l.string,cancelButton:l.bool,nowButton:l.bool,defaultShow:l.bool,defaultValue:l.instanceOf(Date),disabled:l.bool,format:l.oneOfType([l.string,l.shape({skeleton:l.string,pattern:l.string,date:l.oneOf(["short","medium","long","full"]),time:l.oneOf(["short","medium","long","full"]),datetime:l.oneOf(["short","medium","long","full"]),era:l.oneOf(["narrow","short","long"]),year:l.oneOf(["numeric","2-digit"]),month:l.oneOf(["numeric","2-digit","narrow","short","long"]),day:l.oneOf(["numeric","2-digit"]),weekday:l.oneOf(["narrow","short","long"]),hour:l.oneOf(["numeric","2-digit"]),hour12:l.bool,minute:l.oneOf(["numeric","2-digit"]),second:l.oneOf(["numeric","2-digit"]),timeZoneName:l.oneOf(["short","long"])})]),formatPlaceholder:l.oneOfType([l.oneOf(["wide","narrow","short","formatPattern"]),l.shape({year:l.string,month:l.string,day:l.string,hour:l.string,minute:l.string,second:l.string})]),id:l.string,ariaLabelledBy:l.string,ariaDescribedBy:l.string,min:l.instanceOf(Date),max:l.instanceOf(Date),name:l.string,popupSettings:l.shape({animate:l.bool,appendTo:l.any,popupClass:l.string}),show:l.bool,steps:l.shape({hour:l.number,minute:l.number,second:l.number}),smoothScroll:l.bool,tabIndex:l.number,title:l.string,value:l.instanceOf(Date),width:l.oneOfType([l.number,l.string]),validationMessage:l.string,required:l.bool,validate:l.bool,valid:l.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:y.MAX_TIME,min:y.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:v.DateInput},t}(s.Component);t.TimePicker=k,d.registerForLocalization(k)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(2),c=n(5),p=n(6),d=n(4),h=n(9),f=n(38);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(t.Direction||(t.Direction={}));var m=function(e){function t(n){var r=e.call(this,n)||this;return r.focusActiveList=function(){r.timePart&&r.timePart.focus({preventScroll:!0})},r.handleKeyDown=function(e){switch(e.keyCode){case u.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));default:return}},r.handleAccept=function(e){var t=r.mergeValue(l.cloneDate(r.value||h.getNow()),r.timePart?r.timePart.value:r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){r.setState({current:r.value});var t=r.props.onReject;t&&t.call(void 0,e)},r.handleNowClick=function(e){var t=r.mergeValue(l.cloneDate(r.value||h.getNow()),h.getNow());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){r.setState({current:e})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||t.defaultProps.format),r.mergeValue=h.valueMerger(h.generateGetters(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||d.MIDNIGHT_DATE,value:r.props.value||t.defaultProps.value},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?l.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return c.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?l.cloneDate(this.state.current):null},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.format,r=t.cancelButton,o=t.disabled,s=t.tabIndex,l=t.className,d=t.smoothScroll,h=t.min,m=t.max,v=t.boundRange,g=t.nowButton,y=t.steps,b=c.provideLocalizationService(this),w=b.toLanguageString(p.timePickerCancel,p.messages[p.timePickerCancel]),k=b.toLanguageString(p.timePickerSet,p.messages[p.timePickerSet]);return a.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:s||0,className:u.classNames("k-timeselector k-reset",l,{"k-state-disabled":o}),onKeyDown:this.handleKeyDown},a.createElement(f.TimePart,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:d,min:h,max:m,boundRange:v,disabled:o,nowButton:g,steps:y}),a.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&a.createElement("button",i({type:"button",ref:function(t){e._cancelButton=t},className:"k-button k-time-cancel",onClick:this.handleReject,title:w},{"aria-label":w}),w),a.createElement("button",i({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept k-button k-primary",onClick:this.handleAccept,title:k},{"aria-label":k}),k)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},t.propTypes={cancelButton:s.bool,className:s.string,disabled:s.bool,format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),max:s.instanceOf(Date),min:s.instanceOf(Date),nowButton:s.bool,steps:s.shape({hour:s.number,minute:s.number,second:s.number}),smoothScroll:s.bool,tabIndex:s.number,value:s.instanceOf(Date)},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:d.MIN_TIME,max:d.MAX_TIME,boundRange:!1},t}(a.Component);t.TimeSelector=m,c.registerForIntl(m),c.registerForLocalization(m)},function(e,t,n){"use strict";var r,o,i,a=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)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(3),c=n(2),p=n(5),d=n(16),h=n(59),f=n(60),m=n(4),v=((o={})[c.Keys.end]=function(e,t){return e[e.length-1]},o[c.Keys.home]=function(e,t){return e[0]},o[c.Keys.up]=function(e,t){return e[t-1]},o[c.Keys.down]=function(e,t){return e[t+1]},o),g=((i={})[h.TIME_PART.dayperiod]=f.DayPeriodService,i[h.TIME_PART.hour]=f.HoursService,i[h.TIME_PART.minute]=f.MinutesService,i[h.TIME_PART.second]=f.SecondsService,i),y=function(e){function t(n){var r=e.call(this,n)||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(),o=r.virtualization.itemOffset(n),i=Math.abs(Math.ceil(e)-o);if(t===n&&i<2)return o;var a=t>n;return a&&i>=r.bottomThreshold||!a&&i>r.topThreshold?r.virtualization.itemOffset(n+1):o},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 t=void 0===e?r.props:e,n=t.min,o=t.max,i=t.value,a=r.service.limitRange(n||r.min,o||r.max,i||r.props.value),s=a[0],l=a[1];r.service.configure(r.serviceSettings({min:s,max:l}))},r.serviceSettings=function(e){var n={boundRange:r.props.boundRange||t.defaultProps.boundRange,insertUndividedMax:!1,min:u.cloneDate(r.min),max:u.cloneDate(r.max),part:r.props.part,step:r.step},o=Object.assign({},n,e);return o.boundRange="hour"!==o.part.type||r.props.boundRange||t.defaultProps.boundRange,o},r.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(r.virtualization&&t&&!n){r.animateToIndex=!1;var o=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),i=r.service.data(r.props.value)[o];r.handleChange(i)}},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._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode;t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault();var n=(v[e.keyCode]||c.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));n&&r.handleChange(n)},r.handleChange=function(e){var t=r.service.apply(r.props.value,e.value);if(r.props.value.getTime()!==t.getTime()){r.setState({value:t});var n=r.props.onChange;n&&n.call(void 0,t)}},r.dom=new f.DOMService,r}return a(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min||t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max||t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):t.defaultProps.step},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(){if(this.virtualization){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},t.prototype.render=function(){var e=this;if(this.props.part.type&&g[this.props.part.type]){this.calculateHeights(),this.intl=p.provideIntlService(this),this.service=new g[this.props.part.type](this.intl),this.configureServices();var t=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",r=this.service.total(this.props.value),o=s.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return s.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},s.createElement("span",null,t.text))})));return s.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(t){e._element=t},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?s.createElement(d.Virtualization,{bottomOffset:this.bottomOffset,children:o,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(t){e.virtualization=t},role:"presentation",skip:0,tabIndex:-1,take:r,topOffset:this.topOffset,total:r}):s.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:l.number,max:l.instanceOf(Date),min:l.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!g[r.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ");return null},step:function(e,t,n){var r=e[t];if(void 0!==r&&r<=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},t.defaultProps={boundRange:!1,max:m.MAX_TIME,min:m.MIDNIGHT_DATE,step:1,smoothScroll:!0},t}(s.Component);t.TimeList=y,p.registerForIntl(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);t.TIME_PART=r.TIME_PART},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61);t.DayPeriodService=r.DayPeriodService;var o=n(62);t.DOMService=o.DOMService;var i=n(63);t.HoursService=i.HoursService;var a=n(64);t.MinutesService=a.MinutesService;var s=n(65);t.SecondsService=s.SecondsService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=function(e,t){var n=r.cloneDate(e);return n.setHours(t),n},i=function(e){return null!==e&&e<12},a=function(e,t,n){return!t&&!n||e>=t&&e<=n},s=function(e,t,n){return!t&&!n||e>=t||e<=n},l=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),r=i(n),a=i(t.getHours());if(r&&a||!r&&!a)return e;var s=this.normalizedRange(),l=s[0],u=s[1],c=void 0===u?24:u,p=n+(a?-12:12);return o(e,Math.min(Math.max(l,p),c||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,r=e.max,o=void 0===r?this.max:r,i=e.part,a=void 0===i?this.part:i;this.min=n,this.max=o,this.part=a},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,r=[],a=this.normalizedRange(),s=a[0],l=a[1],u=this.intl.dateFormatNames(t);return i(s)&&r.push({text:u.am,value:o(this.min,s)}),null!==(n=l)&&(!n||n>11)&&r.push({text:u.pm,value:o(this.min,Math.max(12,l))}),this.min.getHours()!==s?r.reverse():r},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?s:a)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}();t.DayPeriodService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(2),i=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(o.canUseDOM){var t=r.domContainerFactory("div"),n=r.domContainerFactory("ul"),i=r.domContainerFactory("li"),a=t([t([t([n([i("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),s=e&&e.querySelector(".k-time-container")||document.body,l=s.appendChild(a);this.timeListHeight=l.querySelector(".k-scrollable").offsetHeight,this.itemHeight=l.querySelector("li").offsetHeight,s.removeChild(l),this.didCalculate=!0}},e}();t.DOMService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(4),a=n(9),s=(r=24,function(e){return e%r}),l=function(e,t){return s(24+e-t)},u=function(e){return function(t,n){return!n||o.getDate(t).getTime()===o.getDate(n).getTime()?t:a.setHours(t,e)}},c=u(0),p=u(23),d=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return a.setHours(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,s=void 0===o?this.insertUndividedMax:o,l=e.min,u=void 0===l?this.min:l,c=e.max,p=void 0===c?this.max:c,d=e.part,h=e.step,f=void 0===h?this.step:h;this.boundRange=r,this.insertUndividedMax=s,this.toListItem=function(e){var n=a.setHours(i.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=u,this.max=p,this.step=f},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return s(t+e*n)}),l=a.range(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(l),e&&this.addMissing(l,e),l},e.prototype.isRangeChanged=function(e,t){return!o.isEqual(this.min,e)||!o.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[c(e,n),p(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(l(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(a.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return l(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getHours(),r.getHours()]},e}();t.HoursService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(4),a=n(9),s=(r=60,function(e){return e%r}),l=function(e,t){return s(60+e-t)},u=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:a.setMinutes(t,e)}},c=u(0),p=u(59),d=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return a.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,s=void 0===o?this.min:o,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.insertUndividedMax=r,this.toListItem=function(e){var n=a.setMinutes(i.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=s,this.max=u,this.step=d},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return s(t+e*n)}),l=a.range(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(l),e&&this.addMissing(l,e),l},e.prototype.isRangeChanged=function(e,t){return!o.isEqual(this.min,e)||!o.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[c(e,n),p(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(l(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(a.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return l(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getMinutes(),r.getMinutes()]},e}();t.MinutesService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(4),a=n(9),s=(r=60,function(e){return e%r}),l=function(e,t){return s(60+e-t)},u=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:a.setSeconds(t,e)}},c=u(0),p=u(59),d=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return a.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,s=void 0===o?this.min:o,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.insertUndividedMax=r,this.toListItem=function(e){var n=a.setSeconds(i.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=s,this.max=u,this.step=d},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return s(t+e*n)}),l=a.range(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(l),e&&this.addMissing(l,e),l},e.prototype.isRangeChanged=function(e,t){return!o.isEqual(this.min,e)||!o.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[c(e,n),p(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return l(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(l(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(a.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getSeconds(),r.getSeconds()]},e}();t.SecondsService=d},function(e,t,n){"use strict";var r,o=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(23),s=n(10),l=n(2),u=n(3),c=n(8),p=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.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}},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:u.cloneDate(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===s.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},t.prototype.render=function(){var e=this,t=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,n=l.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===s.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===s.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===s.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===s.CalendarViewEnum.century});return i.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return i.createElement("table",{className:"k-calendar-table k-content",key:n.getTime()},i.createElement(a.View,{bus:e.props.bus,service:e.props.service,key:n.getTime(),direction:"horizontal",activeView:e.props.activeView,cellUID:e.props.cellUID,viewDate:n,min:e.min,max:e.max,focusedDate:e.props.focusedDate,selectionRange:t,selectedDate:e.props.value,showWeekNumbers:e.weekNumber,onChange:e.handleDateChange,onCellEnter:e.props.onCellEnter,cell:e.props.cell,weekCell:e.props.weekCell}))})))},t.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:c.MIN_DATE,max:c.MAX_DATE},t}(i.Component);t.HorizontalViewList=p},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(7),u=n(3),c=n(2),p=n(5),d=n(2),h=n(11),f=n(14),m=n(39),v=n(10),g=n(8),y=n(6),b={display:"inline-block"},w=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._startDateInput=a.createRef(),r._endDateInput=a.createRef(),r._popupId=c.guid(),r._startInputId=c.guid(),r._endInputId=c.guid(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.focus=function(){r.startDateInput&&r.startDateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus({preventScroll:!0})},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||v.EMPTY_SELECTIONRANGE},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.add("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.add("k-state-focused");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick((function(){r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.remove("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.remove("k-state-focused"),r.setShow(!1)}));var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:u.cloneDate(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:u.cloneDate(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||v.EMPTY_SELECTIONRANGE;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===c.Keys.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===c.Keys.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===c.Keys.tab&&r.show&&r._calendar&&r._calendar.element&&r.endDateInput&&r.endDateInput.element&&document&&document.activeElement===r.endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var o={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,o)}r.valueDuringOnChange=void 0},d.validatePackage(h.packageMetadata),r.state={show:r.props.show||r.props.defaultShow||t.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||t.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||v.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.value||v.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=c.classNames("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),s=p.provideLocalizationService(this),u=s.toLanguageString(y.start,y.messages[y.start]),d=s.toLanguageString(y.end,y.messages[y.end]),h=s.toLanguageString(y.separator,y.messages[y.separator]),g=i({label:u,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:t.start,onChange:this.handleStartChange}),w=i({label:d,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:t.end,onChange:this.handleEndChange}),k=i({animate:null!==this._wrapper,anchor:this._wrapper,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),O=i({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings,{value:t,onChange:this.handleCalendarChange}),D=this.props.calendar?a.createElement(this.props.calendar,i({},O)):a.createElement(m.MultiViewCalendar,i({},O,{ref:this.setCalendarRef})),_=a.createElement("span",i({role:"button",className:"k-select k-button k-flat",title:p.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":p.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd])}),a.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return a.createElement("span",{ref:function(t){e._element=t},className:o,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},a.createElement("span",{ref:function(t){e._wrapper=t},className:"k-daterangepicker-wrap",style:b},this.props.startDateInput?a.createElement(this.props.startDateInput,i({},g)):a.createElement(f.DateInput,i({},g,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?_:h,this.props.endDateInput?a.createElement(this.props.endDateInput,i({},w)):a.createElement(f.DateInput,i({},w,{ref:this._endDateInput}))),this.props.popup?a.createElement(this.props.popup,i({},k),D):a.createElement(l.Popup,i({},k),D))},t.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}))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.propTypes={allowReverse:s.bool,calendarSettings:s.any,className:s.string,defaultShow:s.bool,defaultValue:s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)}),disabled:s.bool,endDateInputSettings:s.shape(f.DateInput.propTypes),focusedDate:s.instanceOf(Date),format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,max:s.instanceOf(Date),min:s.instanceOf(Date),onBlur:s.func,onChange:s.func,onFocus:s.func,popupSettings:s.any,show:s.bool,startDateInputSettings:s.any,style:s.any,swapButton:s.any,tabIndex:s.number,value:s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:v.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:g.MAX_DATE,min:g.MIN_DATE,swapButton:!1},t}(a.Component);t.DateRangePicker=w,p.registerForLocalization(w)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(7),u=n(3),c=n(2),p=n(14),d=n(2),h=n(11),f=n(4),m=n(6),v=n(5),g=n(69),y=n(9),b=n(8),w=n(20),k=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=c.guid(),r._element=null,r._wrapper=null,r._dateInput=a.createRef(),r._dateTimeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){var e=r.dateInputElement();e&&e.focus()},r.handleReject=function(){r.shouldFocusDateInput=!0,r.setShow(!1)},r.handleValueChange=function(e){r.setState({value:u.cloneDate(e.value||void 0),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleDateIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},r.dateInputElement=function(){return r.dateInput&&r.dateInput.element||r._wrapper&&r._wrapper.querySelector(".k-dateinput-wrap > input.k-input")},d.validatePackage(h.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?u.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=f.isInDateRange(this.value,this.min,this.max)&&y.isInTimeRange(this.value,this.props.minTime||b.MIN_TIME,this.props.maxTime||f.MAX_TIME),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.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},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,s=t.id,u=t.format,p=t.formatPlaceholder,d=t.min,h=t.max,f=t.weekNumber,y=t.focusedDate,b=t.className,k=t.width,O=t.name,D=t.validationMessage,_=t.required,S=t.validityStyles,C=t.cancelButton,E=t.minTime,x=t.maxTime,P=t.ariaLabelledBy,I=t.ariaDescribedBy,M=t.popup,T=void 0===M?l.Popup:M,N=t.calendar,j=!this.validityStyles||this.validity.valid,V=c.classNames("k-widget k-datetimepicker",{"k-state-invalid":!j},b),R=c.classNames("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),A={id:s,ariaLabelledBy:P,ariaDescribedBy:I,format:u,formatPlaceholder:p,disabled:n,title:o,validityStyles:S,validationMessage:D,required:_,min:d,max:h,minTime:E,maxTime:x,name:O,tabIndex:this.show?-1:r,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},F=a.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},(function(t){var r=t.onFocus,o=t.onBlur;return a.createElement("div",{ref:function(t){e._element=t},className:V,onKeyDown:e.handleKeyDown,style:{width:k},onFocus:r,onBlur:o},a.createElement("div",{ref:function(t){e._wrapper=t},className:R},a.createElement(e.dateInputComp,i({_ref:e._dateInput},A)),a.createElement("span",i({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:v.provideLocalizationService(e).toLanguageString(m.toggleDateTimeSelector,m.messages[m.toggleDateTimeSelector]),className:"k-select"},{"aria-controls":e._popupId,"aria-label":v.provideLocalizationService(e).toLanguageString(m.toggleDateTimeSelector,m.messages[m.toggleDateTimeSelector])}),a.createElement("span",{className:"k-link k-link-date"},a.createElement("span",{className:"k-icon k-i-calendar"})))),a.createElement(T,{show:e.show,animate:null!==e._wrapper,anchor:e._wrapper,className:"k-datetime-container k-group k-reset",id:e._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},a.createElement(g.DateTimeSelector,{ref:function(t){e._dateTimeSelector=t},cancelButton:C,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:f,min:e.min,max:e.max,minTime:E,maxTime:x,focusedDate:y,format:u,calendar:N})))}));return this.props.label?a.createElement(w.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:s,editorValid:j,editorDisabled:this.props.disabled,children:F,style:{width:this.props.width}}):F},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.propTypes={className:s.string,defaultShow:s.bool,defaultValue:s.instanceOf(Date),disabled:s.bool,focusedDate:s.instanceOf(Date),format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),formatPlaceholder:s.oneOfType([s.oneOf(["wide","narrow","short","formatPattern"]),s.shape({year:s.string,month:s.string,day:s.string,hour:s.string,minute:s.string,second:s.string})]),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,min:s.instanceOf(Date),max:s.instanceOf(Date),name:s.string,popupSettings:s.shape({animate:s.bool,appendTo:s.any,popupClass:s.string}),show:s.bool,tabIndex:s.number,title:s.string,value:s.instanceOf(Date),weekNumber:s.bool,width:s.oneOfType([s.number,s.string]),validationMessage:s.string,required:s.bool,validate:s.bool,valid:s.bool,cancelButton:s.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:f.MAX_DATE,min:f.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:p.DateInput},t}(a.Component);t.DateTimePicker=k,v.registerForLocalization(k)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(5),l=n(6),u=n(21),c=n(15),p=n(38),d=n(4),h=n(3),f=n(2),m=n(8),v=n(9),g=function(e){function t(t){var n=e.call(this,t)||this;return n._calendarWrap=null,n.focus=function(e){Promise.resolve().then((function(){"time"===n.state.tab&&n._timePart&&n._timePart.focus(e);var t=n.calendarElement();"date"===n.state.tab&&t&&t.focus(e)}))},n.calendarElement=function(){return n._calendar&&n._calendar.element||n._calendarWrap&&n._calendarWrap.querySelector(".k-widget.k-calendar")},n.move=function(e){if(!("right"===e&&"time"===n.state.tab||"left"===e&&"date"===n.state.tab)){var t="left"===e?"date":"time";n.shouldFocusPart=!0,n.setState({tab:t})}},n.handleReject=function(e){n.setState({dateValue:n.props.value,timeValue:n.props.value||m.MIDNIGHT_DATE});var t=n.mergeDate(n.props.value,n.props.value||m.MIDNIGHT_DATE);if(n.props.onReject){var r={nativeEvent:e.nativeEvent,syntheticEvent:e,target:n,value:t};n.props.onReject.call(void 0,r)}},n.handleAccept=function(e,t){if(n.state.dateValue&&n.state.timeValue&&n.hasDateValue){var r=n.mergeDate(n.state.dateValue,t||n.state.timeValue);n.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r,target:n})}},n.handleNowClick=function(e){n.setState({timeValue:v.getNow()}),n.handleAccept(e,v.getNow())},n.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),n.setState({dateValue:e.value,tab:"time"}),n.shouldFocusPart=!0},n.handleTimeListContainerChange=function(e){n.setState({timeValue:e})},n.handleDateClick=function(e){e.stopPropagation(),n.move("left")},n.handleTimeClick=function(e){e.stopPropagation(),n.move("right")},n.handleKeyDown=function(e){var t=e.keyCode,r=e.altKey;switch(t){case f.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case f.Keys.left:if(!r)return;return void n.move("left");case f.Keys.right:if(!r)return;return void n.move("right");default:return}},n.handleTimePartMount=function(e){n.setState({timeValue:e})},n.state={tab:"date",dateValue:n.props.value,timeValue:n.props.value||m.MIDNIGHT_DATE},n}return o(t,e),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timePart",{get:function(){return this._timePart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.cancelButton,o=t.min,h=t.max,m=t.weekNumber,v=t.focusedDate,g=t.format,y=f.classNames({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),b=f.classNames({"k-state-disabled":!this.hasDateValue},"k-time-accept k-button k-primary"),w=s.provideLocalizationService(this),k=w.toLanguageString(l.date,l.messages[l.date]),O=w.toLanguageString(l.time,l.messages[l.time]),D=w.toLanguageString(l.dateTimePickerCancel,l.messages[l.dateTimePickerCancel]),_=w.toLanguageString(l.dateTimePickerSet,l.messages[l.dateTimePickerSet]),S={min:o,max:h,weekNumber:m,focusedDate:v,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return a.createElement("div",{onKeyDown:this.handleKeyDown,className:y,tabIndex:-1},a.createElement("div",{className:"k-datetime-buttongroup"},a.createElement(u.ButtonGroup,{width:"100%"},a.createElement(u.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},k),a.createElement(u.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},O))),a.createElement("div",{className:"k-datetime-selector"},a.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?a.createElement(this.props.calendar,i({},S)):a.createElement(c.Calendar,i({ref:function(t){e._calendar=t}},S))),a.createElement("div",{className:"k-datetime-time-wrap"},a.createElement(p.TimePart,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||d.MIN_TIME,max:this.maxTime||d.MAX_TIME,steps:this.props.steps,value:this.state.timeValue,format:g,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),a.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&a.createElement("button",i({type:"button",ref:function(t){e._cancelButton=t},className:"k-button k-time-cancel",onClick:this.handleReject,title:D},{"aria-label":D}),D),a.createElement("button",i({type:"button",ref:function(t){e._acceptButton=t},className:b,onClick:this.handleAccept,title:_},{"aria-label":_}),_)))},Object.defineProperty(t.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(t.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}),t.prototype.normalizeRange=function(e,t){return h.isEqualDate(e,t||d.getToday())?e:null},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},t.prototype.mergeTime=function(e,t){return e&&t?d.setTime(t,e):t},t.prototype.mergeDate=function(e,t){return e?d.setTime(e||d.getToday(),t):t},t}(a.Component);t.DateTimeSelector=g,s.registerForLocalization(g)}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactDateinputs=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactDateinputs=t(e.PropTypes,e.React,e.KendoDateMath,e.KendoReactIntl,e.KendoLicensing,e.ReactDOM)}(window,(function(e,t,n,r,o,i){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserSupportService",(function(){return o})),n.d(t,"canUseDOM",(function(){return i})),n.d(t,"canUseRef",(function(){return a})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return l})),n.d(t,"clone",(function(){return u})),n.d(t,"cloneObject",(function(){return c})),n.d(t,"cloneValue",(function(){return p})),n.d(t,"cloneArray",(function(){return d})),n.d(t,"Draggable",(function(){return E})),n.d(t,"focusFirstFocusableChild",(function(){return x})),n.d(t,"FormComponent",(function(){return P})),n.d(t,"getTabIndex",(function(){return I})),n.d(t,"getter",(function(){return j})),n.d(t,"guid",(function(){return V})),n.d(t,"Keys",(function(){return R})),n.d(t,"noop",(function(){return A})),n.d(t,"getScrollbarWidth",(function(){return F})),n.d(t,"setScrollbarWidth",(function(){return L})),n.d(t,"setter",(function(){return z})),n.d(t,"mapTree",(function(){return U})),n.d(t,"mapTreeItem",(function(){return Y})),n.d(t,"extendDataItem",(function(){return W})),n.d(t,"getItemPath",(function(){return G})),n.d(t,"validatePackage",(function(){return Z})),n.d(t,"hasRelativeStackingContext",(function(){return $})),n.d(t,"dispatchEvent",(function(){return J})),n.d(t,"AsyncFocusBlur",(function(){return te})),n.d(t,"useDir",(function(){return ne})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return re})),n.d(t,"useRtl",(function(){return oe})),n.d(t,"useMouse",(function(){return ie})),n.d(t,"useCustomComponent",(function(){return ae})),n.d(t,"Icon",(function(){return ce})),n.d(t,"SvgIcon",(function(){return fe})),n.d(t,"Typography",(function(){return Ee}));var r=function(){return"undefined"!=typeof document?document:{}},o=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),i=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),a=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?s.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},l=function(e){return e?new Date(e.getTime()):null};function u(e){var t={};return c(e,t),t}function c(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=p(r,t[n])}}function p(e,t){if(Array.isArray(e))return d(e);if(e instanceof Date)return l(e);if(e&&"object"==typeof e){var n=t||{};return c(e,n),n}return e}function d(e){return e.map((function(e){return p(e,void 0)}))}var h=n(1),f=n(0),m=function(e,t){return function(n){return t(e(n))}},v=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},g=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},y=function(){},b=function(e){return e.preventDefault()},w=/touch/;function k(e){return e.type.match(w)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var O=function(e){var t=this,n=e.press;void 0===n&&(n=y);var r=e.drag;void 0===r&&(r=y);var o=e.release;void 0===o&&(o=y);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=m(k,n),this._dragHandler=m(k,r),this._releaseHandler=m(k,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(v(t.document,"mousemove",t._mousemove),v(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){g(t.document,"mousemove",t._mousemove),g(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(v(t.document,"pointermove",t._pointermove),v(t.document,"pointerup",t._pointerup),v(t.document,"pointercancel",t._pointerup),v(t.document,"contextmenu",b),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(g(t.document,"pointermove",t._pointermove),g(t.document,"pointerup",t._pointerup),g(t.document,"pointercancel",t._pointerup),g(t.document,"contextmenu",b),t._releaseHandler(e))}},D={document:{configurable:!0}};O.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},D.document.get=function(){return this._element?this._element.ownerDocument:document},O.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},O.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?v(e,"pointerdown",this._pointerdown):(v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend)))},O.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return g(e,"pointerdown",this._pointerdown),g(this.document,"pointermove",this._pointermove),g(this.document,"pointerup",this._pointerup),g(this.document,"contextmenu",b),void g(this.document,"pointercancel",this._pointerup);g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend))},O.prototype._usePointers=function(){return!this._mouseOnly&&O.supportPointerEvent()},O.prototype.update=function(e){var t=e.press;void 0===t&&(t=y);var n=e.drag;void 0===n&&(n=y);var r=e.release;void 0===r&&(r=y);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=m(k,t),this._dragHandler=m(k,n),this._releaseHandler=m(k,r),this._mouseOnly=o},O.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(O.prototype,D),O.default=O;var _,S=O,C=(_=function(e,t){return(_=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}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new S({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.childRef=function(e){var n=t.props.childRef;t.element=e,n&&"function"==typeof n&&n(e)},t}return C(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return h.cloneElement(h.Children.only(this.props.children),{ref:this.childRef})},t.propTypes={children:f.element.isRequired},t}(h.Component),x=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},P=function(){},I=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},M=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function T(e){var t=[];return e.replace(M,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var N={};function j(e){if(N[e])return N[e];var t=T(e);return N[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},N[e]}N.undefined=function(){};var V=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},R={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},A=function(){},F=function(){return!(!i||!document.body)&&(new o).scrollbarWidth},L=function(){if(!i||!document.body)return!1;var e=(new o).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},B={undefined:function(e){return e}},H=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function z(e){if(B[e])return B[e];var t=T(e);return B[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||H(t[a+1],r);o[t[i]]=n},B[e]}var K=function(){return(K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function q(e,t,n){var r;return n?K({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var U=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=q(t,n).map((function(t){return e(t,n,r)}));return r(q(t,n,o))}return r(t)}(e,t,n)})).slice()},Y=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],u=r(s[l]);s.splice(l,1,u)},W=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},G=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},X=n(22);function Z(e){if(void 0!==X)X.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var $=function(e){if(!i)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function J(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function Q(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,o=e.onSyncBlur,i=h.useRef(!1),a=h.useRef(0),s=h.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=h.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),r&&r.call.apply(r,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,r]),u=h.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o&&o.call.apply(o,[void 0].concat(e)),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,s,n,o]);return h.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var ee=function(){return(ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},te=function(e){var t=e.children,n=Q({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,ee({},n))};function ne(e,t,n){var r=h.useState(t),o=r[0],i=r[1];return h.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}function re(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,i=h.useMemo((function(){return new S({press:n,drag:r,release:o})}),[]);h.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),h.useEffect((function(){i.update({press:n,drag:r,release:o})}),[n,r,o])}function oe(e,t,n){var r=h.useState(t),o=r[0],i=r[1];return h.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var ie=function(e,t,n){void 0===n&&(n={});var r=h.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),o=h.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:h.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:o,onMouseDown:r,onDoubleClick:h.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:h.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:h.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:h.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:h.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:h.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},ae=function(e){return h.isValidElement(e)?[e.type,e.props]:[e,{}]},se={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ce=h.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,l=e.style,u=ue(e,["className","name","themeColor","size","flip","style"]),c=h.useRef(null),p=h.useRef(null);h.useImperativeHandle(c,(function(){return{element:p.current}})),h.useImperativeHandle(t,(function(){return c.current}));var d=h.useMemo((function(){return o||pe.themeColor}),[o]),f=h.useMemo((function(){return i||pe.size}),[i]),m=h.useMemo((function(){return a||pe.flip}),[a]),v=h.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},se[f],n)}),[r,d,f,m,n]),g=ie(e,c);return h.createElement("span",le({ref:p},u,g,{className:v,style:l,role:"presentation"}))}));ce.propTypes={style:f.object,classNames:f.string,name:f.string,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var pe={size:"default",themeColor:"inherit",flip:"default"};ce.displayName="KendoIcon";var de=function(){return(de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},fe=h.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,l=e.size,u=e.style,c=e.svgStyle,p=e.themeColor,d=e.viewBox,f=he(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=h.useRef(null);h.useImperativeHandle(t,(function(){return{element:m.current}}));var v=h.useMemo((function(){return i?i.name:me.icon}),[i]),g=h.useMemo((function(){return p||me.themeColor}),[p]),y=h.useMemo((function(){return l||me.size}),[l]),b=h.useMemo((function(){return a||me.flip}),[a]),w=h.useMemo((function(){return d||me.viewBox}),[d]),k=h.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},se[y],r)}),[v,g,y,b,r]),O=h.useMemo((function(){return e.width&&e.height?de({width:e.width,height:e.height},u):e.width?de({width:e.width,height:e.width},u):e.height?de({width:e.height,height:e.height},u):de({},u)}),[e.width,e.height,u]);return h.createElement("span",{className:k,style:O,ref:m},h.createElement("svg",de({className:o,style:c,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},f),i?void 0:n))}));fe.propTypes={style:f.object,classNames:f.string,children:f.any,icon:f.object,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var me={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};fe.displayName="KendoSvgIcon";var ve={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ge={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ye={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},be={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},we={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ke={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Oe={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},De={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},_e=function(){return(_e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Ce=function(e){var t=h.forwardRef((function(t,n){var r=t.className,o=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,l=t.themeColor,u=t.margin,c=Se(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=h.useRef(null),d=h.useRef(null);h.useImperativeHandle(p,(function(){return{element:d.current,props:t}})),h.useImperativeHandle(n,(function(){return p.current}));var f=e,m=function(){if(void 0!==u){if("string"==typeof u)return[ye[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-"+u];if("object"==typeof u){var e=[];return Object.keys(u).forEach((function(t){var n,r;null!==u[t]&&void 0!==u[t]&&e.push((n=t,r=u[t],""+we[n]+("string"==typeof r?be[r]:r)))})),e.join(" ")}}};return h.createElement(f,_e({ref:d,className:["k-"+("p"===e?"paragraph":e),ve[o],ge[i],ke[a],Oe[s],De[l],m(),r].filter((function(e){return void 0!==e})).join(" ")},c),t.children)}));return t.propTypes={style:f.object,className:f.string,fontSize:f.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:f.oneOf(["light","normal","bold"]),margin:f.oneOfType([f.number,f.object,f.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:f.oneOf(["left","right","center","justify"]),textTransform:f.oneOf(["lowercase","uppercase","capitalize"]),themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Ee={h1:Ce("h1"),h2:Ce("h2"),h3:Ce("h3"),h4:Ce("h4"),h5:Ce("h5"),h6:Ce("h6"),p:Ce("p"),code:Ce("code"),pre:Ce("pre")}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(3),i=n(13);t.isEqualRange=function(e,t){var n=e||i.EMPTY_SELECTIONRANGE,o=n.start,a=n.end,s=t||i.EMPTY_SELECTIONRANGE,l=s.start,u=s.end;return null!==o&&null!==a&&null!==l&&null!==u&&(r.isEqual(o,l)&&r.isEqual(a,u))},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);var a=function(e){return null!=e};t.isValidRange=function(e,t){return!a(e)||!a(t)||e<=t},t.setTime=function(e,t){var n=r.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.getToday=function(){return o.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&t>e||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 n=t||i.EMPTY_SELECTIONRANGE,r=n.start,o=n.end;return!(!r||!o)&&(r<e&&e<o)},t.range=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},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&&e>n?r.cloneDate(n):e:e},t.domContainerFactory=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var o=document.createElement(e);return o.className=n,Object.keys(r).map((function(e){return o.style[e]=r[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r;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=((r={})[t.today]="TODAY",r[t.now]="NOW",r[t.timePickerSet]="Set",r[t.timePickerCancel]="Cancel",r[t.date]="Date",r[t.time]="Time",r[t.dateTimePickerCancel]="Cancel",r[t.dateTimePickerSet]="Set",r[t.start]="Start",r[t.end]="End",r[t.separator]=" ",r[t.selectNow]="Select Now",r[t.toggleTimeSelector]="Toggle TimeSelector",r[t.toggleClock]="Toggle Clock",r[t.increaseValue]="Increase value",r[t.decreaseValue]="Decrease value",r[t.toggleCalendar]="Toggle calendar",r[t.prevView]="Navigate to previous view",r[t.nextView]="Navigate to next view",r[t.swapStartEnd]="Swap start and end values",r[t.toggleDateTimeSelector]="Toggle date-time selector",r)},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupPropsContext",(function(){return se}));var r=n(1),o=n(41),i=n(0),a=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),u="bottom",c="center",p="middle",d="left",h="right",f="top",m=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=o.horizontal,d=o.vertical,f=i.horizontal||0,m=i.vertical||0,v=t.top,g=t.left;return s===u&&(v+=t.height),s!==c&&s!==p||(v+=Math.round(t.height/2)),d===u&&(v-=r.height,m*=-1),d!==c&&d!==p||(v-=Math.round(r.height/2),m*=-1),a===h&&(g+=t.width),a!==c&&a!==p||(g+=Math.round(t.width/2)),l===h&&(g-=r.width,f*=-1),l!==c&&l!==p||(g-=Math.round(r.width/2),f*=-1),{top:v+m,left:g+f}};function v(e){return e.ownerDocument||e.document||e}var g=function(e){return v(e).defaultView},y=function(e){return v(e).documentElement},b=0;function w(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function k(e){var t=g(e),n=y(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=w()),r}var O=function(e){if(!e.getBoundingClientRect){var t=k(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},D=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||y(e)},_=function(e){return D(e)===e.ownerDocument.body},S=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function E(e){var t=y(e),n=g(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var x=function(e){return e===(e.ownerDocument||{}).body?E(e):{x:e.scrollLeft,y:e.scrollTop}};var P=function(e,t){var n=g(e),r=n.getComputedStyle(e),o=S(e),i=t||D(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var u=n.getComputedStyle(i);(l=S(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},I=function(e,t){return e?x(e):function(e){var t=D(e);return t?x(t):{x:0,y:0}}(t)};var M="fit",T="flip",N=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},j=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===c||a===p)&&!(i===c||i===p)){var u=i===f||i===d;t<0&&u?t+(s=n+r+l)+n>o&&(s=0):t>=0&&!u&&(t+n>o&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},V=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,u=r.left,c=r.height,p=r.width,d=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.horizontal===T,b=i.vertical===T;i.vertical===M&&(g+=N(l,c,d)),i.horizontal===M&&(v+=N(u,p,h)),b&&(g+=j({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=j({margin:f,offset:u,size:p,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var w=y&&0!==v,k=b&&0!==g;return{flipped:w||k,flip:{horizontal:w,vertical:k},offset:{left:v,top:g}}},R=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},A=function(e,t){for(var n,r,o=C(e),i=t;i&&(n=R(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var F,L=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},B=/auto|scroll/,H=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},z=Object(l.hasRelativeStackingContext)(),K="fit",q="flip",U="left",Y="center",W="right",G="bottom",X="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.offset,a=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,i):this.relativeRect(t,n,i);return this._dom.align({anchorAlign:r,anchorRect:a,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var r=this._dom,o=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(L(r.offset(e),n),r.stackingElementOffset(t)),i=r.stackingElementScroll(t),a=r.addScroll(o,i),s=this.elementScrollPosition(e,t),l=r.removeScroll(a,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return L(this._dom.position(e,t),n)},e}(),$=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return m(e)},e.prototype.boundingOffset=function(e){return O(e)},e.prototype.getWindow=function(){return l.canUseDOM?window:null},e.prototype.isBodyOffset=function(e){return _(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?S(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,r=t.top;e.style.left="0px",e.style.top="0px";var o=S(e);return e.style.left=n,e.style.top=r,o},e.prototype.position=function(e,t){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?D(t):null,o=P(e,r),i=o.top,a=o.left,s=o.height,l=o.width,u=I(r,e),c=u.x,p=u.y,d=e.ownerDocument,h=r===d.body||r===d.documentElement?1:n;return{top:i+p*h,left:a+c*h,height:s,width:l}}(e,A(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),r=t,o=this.isBodyOffset(e),i=n.top,a=n.left,o&&(a=0,i=0),{top:i+r.top,left:a+r.left,height:n.height,width:n.width};var n,r,o,i,a},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return V(e)},e.prototype.scrollPosition=function(e){return E(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!l.canUseDOM)return t;for(var n=e.parentElement;n;)B.test(H(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?S(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!z)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return k(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!l.canUseDOM)return null;var n=A(e,t);if(!n)return null;var r=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}(e,t)},e.prototype.zoomLevel=function(){return l.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),J=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,r=e.anchor,o=e.currentLocation,i=e.element,a=e.anchorAlign,s=e.elementAlign,l=e.collisions,u=this._dom,c=e.viewPort||u.stackingElementViewPort(i)||u.windowViewPort(i),p=L(u.offset(r),o),d=(t=u.staticOffset(i),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(i,d),f=u.restrictToView({anchorAlign:a,anchorRect:p,collisions:l,elementAlign:s,elementRect:h,viewPort:c});return{flipped:f.flipped,offset:u.addOffset(d,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1631780920,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"},ee=(F=function(e,t){return(F=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}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ne(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}var re,oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(re||(re={}));var ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:re.hidden,previous:re.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:re.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=e.firstElementChild,u=getComputedStyle(l),c=u.width,p=u.height;l.style.position="absolute",l.style.width=c,l.style.height=p;var d=n._alignService.alignElement({anchor:s,element:l,elementAlign:o,anchorAlign:r,offset:a}),h=n._positionService.positionElement({anchor:s,anchorAlign:r,collisions:i,element:l,currentLocation:d,elementAlign:o});h.offset&&(e.style.top=h.offset.top+"px",e.style.left=h.offset.left+"px",l.style.position="",l.style.width="",l.style.height=""),n._flipped=h.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,r){!function(e,t,n,r,o){if(0===n)return o();var i="k-slide-"+t+"-"+r,l=i+"-active",u=function(){e.removeEventListener("transitionend",u),a(e),o()};e.addEventListener("transitionend",u);var c=e.ownerDocument;if(c){var p=c.defaultView;if(p){var d=function(){a(e),e.classList.add(i),p.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?p.requestAnimationFrame(d):d()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,r)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===re.hiding&&n.state.previous===re.shown&&n.setState({current:re.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},Object(l.validatePackage)(Q),n._domService=new $,n._alignService=new Z(n._domService),n._positionService=new J(n._domService),n.reposition=function(e,t,n){var r,o,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),r=null,a=e.apply(o,i),r||(o=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(l,c)),a}}(n.reposition.bind(n),1e3/60),n}return ee(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,u=e.popupClass,c=e.style,p=e.offset,d=e.contentKey,h=te({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:u,style:c,offset:p,contentKey:d}});return e.show?t.current===re.hidden||t.current===re.hiding?te({},h,{current:re.showing,previous:t.current}):t.current===re.showing?te({},h,{current:re.shown,previous:t.current}):t.current!==re.shown||ne(p,t.props.offset)&&ne(o,t.props.anchorAlign)&&ne(i,t.props.appendTo)&&ne(a,t.props.collision)&&ne(s,t.props.popupAlign)&&ne(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?h:te({},h,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},h,{current:re.hidden,previous:t.current}):te({},h,{current:re.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===re.showing&&this._popup?this.show(this._popup):this.state.current===re.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===re.reposition&&this.state.previous===re.shown?this.setState({current:re.shown,previous:this.state.current}):this.state.current===re.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===re.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,s=t.show,u=t.id,c=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===re.reposition&&this.state.previous===re.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:"absolute"},this.props.style||{}),d=this.state.current===re.hiding;if((s||d)&&c){var h=r.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:p},r.createElement("div",{className:Object(l.classNames)(a,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n));return o.createPortal(h,c)}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:re.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.string,id:i.string,popupClass:i.string,collision:i.shape({horizontal:i.oneOf([K,q]),vertical:i.oneOf([K,q])}),anchorAlign:i.shape({horizontal:i.oneOf([U,Y,W]),vertical:i.oneOf([X,Y,G])}),popupAlign:i.shape({horizontal:i.oneOf([U,Y,W]),vertical:i.oneOf([X,Y,G])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})])},t.defaultProps={collision:{horizontal:K,vertical:q},anchorAlign:{horizontal:U,vertical:G},popupAlign:{horizontal:U,vertical:X},offset:oe,animate:!0,show:!1},t}(r.Component),ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},se=r.createContext((function(e){return e})),le=r.forwardRef((function(e,t){var n=r.useContext(se).call(void 0,e);return r.createElement(ie,ae({ref:t},n))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(19),a=n(4),s=function(e){return function(t,n){var r=o.cloneDate(t);return r[e](n),r}},l=[{type:i.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:i.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:i.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:i.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(r=l,function(e){return r.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(e)))}),t.generateSnappers=function(e){return function(t,n){return e.map((function(e){var r=Math.floor(t[e.type]);return r?function(e,t,n,r){return function(o){var i=e(o),a=e(n);return"hour"===r?i-(i-a)%t:o.getTime()<=n.getTime()&&0!==i&&i<=a?Math.ceil(i/t)*t:i-i%t}}(e.getter,r,n,e.type):e.getter}))}}(l),t.valueMerger=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},t.snapTime=function(e){return function(t){var n=o.cloneDate(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},t.setHours=s("setHours"),t.setMinutes=s("setMinutes"),t.setSeconds=s("setSeconds"),t.getNow=function(){return new Date},t.range=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r};var u=function(e,t,n){return{candidateValue:a.setTime(a.MIDNIGHT_DATE,e),maxValue:o.addDays(a.setTime(a.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:a.setTime(a.MIDNIGHT_DATE,t)}};t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var r=u(e,t,n),o=r.candidateValue,i=r.minValue,s=r.maxValue;return o<i?a.setTime(e,t):o>s?a.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var r=u(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},t.isInRange=function(e,t,n){if(null===e)return!0;var r=u(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},t.isSmallerThanMin=function(e,t){if(null===e||null===t)return!1;var n=a.setTime(a.MIDNIGHT_DATE,e),r=a.setTime(a.MIDNIGHT_DATE,t);return n.getTime()<r.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;var n=a.setTime(a.MIDNIGHT_DATE,e);return a.setTime(a.MIDNIGHT_DATE,t).getTime()<n.getHours()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.Action=r.Action;var o=n(17);t.CalendarViewEnum=o.CalendarViewEnum;var i=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:1631781061,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}),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(t.Action||(t.Action={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(5),c=n(53),p=n(2),d=n(40),h=n(2),f=n(11),m=n(35),v=n(4),g=n(6),y=n(9),b=n(8),w=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.paste=!1,r._element=null,r._wrapper=null,r._inputId=p.guid(),r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=u.provideIntlService(r).parseDate(r.element.value,r.props.format)||r.value,n=r.value;r.kendoDate.setValue(t),r.triggerChange(e,n)}},r.spinnersMouseDown=function(e){e.preventDefault(),r.element&&document.activeElement!==r.element&&r.element.focus({preventScroll:!0})},r.handlePaste=function(){r.paste=!0},r.elementChange=function(e){if(r.element&&r.kendoDate){if(r.paste)return r.updateOnPaste(e),void(r.paste=!1);var t=r.kendoDate.getTextAndFormat(),n=t.text,o=t.format;r.currentFormat=o;var i=r.value,a=m.approximateStringMatching(n,r.currentFormat,r.element.value,r.selection.start),s=1===a.length&&"_"===a[0][1];if(!s)for(var l=0;l<a.length;l++)r.kendoDate.parsePart(a[l][0],a[l][1]);a.length&&"_"!==a[0][0]&&r.setSelection(r.selectionBySymbol(a[0][0])),s&&r.switchDateSegment(1),r.triggerChange(e,i)}},r.elementClick=function(e){r.setSelection(r.selectionByIndex(r.selection.start))},r.nativeWheel=function(e){e.preventDefault()},r.wheel=function(e){document.activeElement===r.element&&(e.nativeEvent.deltaY<0&&r.increasePart(e),e.nativeEvent.deltaY>0&&r.decreasePart(e))},r.increasePart=function(e){r.modifyDateSegmentValue(1,e)},r.decreasePart=function(e){r.modifyDateSegmentValue(-1,e)},r.elementKeyDown=function(e){if(!e.altKey){switch(e.keyCode){case 37:r.switchDateSegment(-1);break;case 38:r.modifyDateSegmentValue(1,e);break;case 39:r.switchDateSegment(1);break;case 40:r.modifyDateSegmentValue(-1,e);break;default:return}e.preventDefault()}},r.elementOnFocus=function(e){r.wrapper&&r.wrapper.classList.add("k-state-focused"),r.setState({focused:!0})},r.elementOnBlur=function(e){r.wrapper&&r.wrapper.classList.remove("k-state-focused"),r.setState({focused:!1})},h.validatePackage(f.packageMetadata),r.state={focused:!1},r}return o(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused&&this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var n=u.provideLocalizationService(this),r=i({},t.defaultProps,this.props),o=r.min,s=r.max,l=r.name,c=r.label,h=r.id,f=this.text,v=f===this.props.placeholder?"":f,y=f===this.props.placeholder?f:void 0,b=h||this._inputId,w=!this.validityStyles||this.validity.valid,k={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===s?void 0:s.getTime(),"aria-valuetext":v};null!==this.value&&(k["aria-valuenow"]=this.value.getTime());var O=m.wrapperClasses.slice();this.props.className&&O.push(this.props.className);var D=a.createElement(p.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var r=t.onFocus,o=t.onBlur;return a.createElement("span",{style:c?void 0:{width:e.props.width},dir:e.props.dir,className:O.join(" "),onFocus:r,onBlur:o},a.createElement("span",{className:p.classNames("k-dateinput-wrap",{"k-state-disabled":e.props.disabled,"k-state-invalid":!w}),ref:function(t){e._wrapper=t}},a.createElement("input",i({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:f,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:b,"aria-labelledby":e.props.ariaLabelledBy,"aria-describedby":e.props.ariaDescribedBy,"aria-expanded":e.props.ariaExpanded,"aria-haspopup":e.props.ariaHasPopup,onWheel:e.wheel,onClick:e.elementClick,onInput:e.elementChange,onPaste:e.handlePaste,onKeyDown:e.elementKeyDown,onChange:p.noop,value:v,placeholder:y,name:l},k,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&a.createElement("span",{className:"k-select",onMouseDown:e.spinnersMouseDown},a.createElement("span",{className:"k-link k-link-increase","aria-label":n.toLanguageString(g.increaseValue,g.messages[g.increaseValue]),title:n.toLanguageString(g.increaseValue,g.messages[g.increaseValue]),onClick:e.increasePart},a.createElement("span",{className:"k-icon k-i-arrow-n"})),a.createElement("span",{className:"k-link k-link-decrease","aria-label":n.toLanguageString(g.decreaseValue,g.messages[g.decreaseValue]),title:n.toLanguageString(g.decreaseValue,g.messages[g.decreaseValue]),onClick:e.decreasePart},a.createElement("span",{className:"k-icon k-i-arrow-s"})))))}));return c?a.createElement(d.FloatingLabel,{label:c,editorId:b,editorValue:f,editorValid:w,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=i({},t.defaultProps,this.props),n=e.formatPlaceholder,r=e.format,o=e.value,a=e.defaultValue;null===this.kendoDate?(this.kendoDate=new c.KendoDate(this.intl.bind(this),n,r),this.kendoDate.setValue(o||a||null)):(this.kendoDate.format=r,this.kendoDate.formatPlaceholder=n),void 0!==o&&this.value!==o&&this.kendoDate.setValue(o);var s=this.kendoDate.getTextAndFormat(),l=s.text,u=s.format;return this.currentFormat=u,null===e.placeholder||this.state.focused||this.kendoDate.hasValue()?l:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=m.isInRange(this.value,this.min,this.max)&&y.isInTimeRange(this.value,this.props.minTime,this.props.maxTime),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),t.prototype.intl=function(){return u.provideIntlService(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),t.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)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!l.isEqual(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.propTypes={value:s.instanceOf(Date),format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),formatPlaceholder:s.oneOfType([s.oneOf(["wide","narrow","short","formatPattern"]),s.shape({year:s.string,month:s.string,day:s.string,hour:s.string,minute:s.string,second:s.string})]),width:s.oneOfType([s.string,s.number]),tabIndex:s.number,title:s.string,steps:s.shape({year:s.number,month:s.number,day:s.number,hour:s.number,minute:s.number,second:s.number}),min:s.instanceOf(Date),max:s.instanceOf(Date),disabled:s.bool,spinners:s.bool,name:s.string,dir:s.string,label:s.string,id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,ariaExpanded:s.oneOfType([s.bool,s.string]),onChange:s.func,validationMessage:s.string,required:s.bool,validate:s.bool,valid:s.bool},t.defaultProps={format:m.defaultFormat,formatPlaceholder:m.defaultFormatPlaceholder,spinners:!1,disabled:!1,max:l.cloneDate(v.MAX_DATE),min:l.cloneDate(v.MIN_DATE),minTime:l.cloneDate(b.MIN_TIME),maxTime:l.cloneDate(b.MAX_TIME),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(a.Component);t.DateInput=w,u.registerForIntl(w),u.registerForLocalization(w)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(2),u=n(3),c=n(5),p=n(2),d=n(11),h=n(43),f=n(52),m=n(8),v=n(10),g=n(4),y=n(18),b=function(e){return e?e.virtualization:null},w=function(e,t,n,r){return void 0===e&&(e=k.defaultProps.min),void 0===t&&(t=k.defaultProps.max),void 0!==r?null!==r&&g.isInRange(u.getDate(r),e,t)?r:null:null!==n&&g.isInRange(u.getDate(n),e,t)?n:null},k=function(e){function t(n){var r=e.call(this,n)||this;r.cellUID=l.guid(),r.id=l.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(b(r.Navigation),b(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=u.cloneDate(e.value);r.setState({focusedDate:t})}},r.handleViewChange=function(e){var t=e.view;r.scrollSyncService.configure(t),r.setState({activeView:t})},r.handleDateChange=function(e){var t=u.cloneDate(e.value),n=u.cloneDate(e.value),o=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(o){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;var i=r.props.onChange;if(i){var a={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r};i.call(void 0,a)}r.valueDuringOnChange=void 0}},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleKeyDown=function(e){if(e.keyCode===l.Keys.enter){if(null!==r.value&&u.isEqualDate(r.focusedDate,r.value)){var t=g.dateInRange(r.focusedDate,r.min,r.max);b(r.calendarViewList).scrollToIndex(r.service.skip(t,r.min))}var n={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,n)}else{var o=g.dateInRange(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(u.isEqualDate(r.focusedDate,o))return;r.setState({focusedDate:o})}e.preventDefault()},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},p.validatePackage(d.packageMetadata);var o=w(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:g.viewInRange(v.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),focusedDate:g.dateInRange(n.focusedDate||o||g.getToday(),r.min,r.max)},r.dom=new y.DOMService,r.bus=new y.BusViewService(r.handleViewChange),r.navigation=new y.NavigationService(r.bus),r.oldValue=o,r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return u.getDate(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return u.getDate(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return v.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return v.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new y.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())}))},t.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},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this);var n=null!==this.value&&null!==this.oldValue?!u.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,r=g.viewInRange(this.state.activeView,v.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],v.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=w(this.min,this.max,this.value,this.value),s=o?u.getDate(o):null;this.focusedDate=u.getDate(g.dateInRange(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=c.provideIntlService(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var p=l.classNames("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),d={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},m=[this.props.navigation&&a.createElement(f.Navigation,{key:0,ref:function(t){e.Navigation=t},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}),a.createElement(h.ViewList,{key:1,ref:function(t){e.calendarViewList=t},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:s,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return a.createElement("div",i({},d,{ref:function(t){e._element=t},className:p,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}),m)},t.propTypes={className:s.string,defaultActiveView:s.oneOf(["month","year","decade","century"]),defaultValue:s.instanceOf(Date),disabled:s.bool,focusedDate:s.instanceOf(Date),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,max:s.instanceOf(Date),min:s.instanceOf(Date),navigation:s.bool,smoothScroll:s.bool,onBlur:s.func,onChange:s.func,onFocus:s.func,tabIndex:s.number,value:s.instanceOf(Date),weekNumber:s.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&v.CalendarViewEnum[r]<v.CalendarViewEnum[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be smaller than bottomView.\n "):null},bottomView:function(e,t,n){var r=e[t],o=e.topView;return r&&o&&v.CalendarViewEnum[r]>v.CalendarViewEnum[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},t.defaultProps={disabled:!1,min:m.MIN_DATE,max:m.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(a.Component);t.Calendar=k,c.registerForIntl(k)},function(e,t,n){"use strict";var r,o,i,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)});Object.defineProperty(t,"__esModule",{value:!0});var l,u=n(1),c=n(0),p=n(2),d=n(44);!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(l=t.ScrollDirection||(t.ScrollDirection={}));var h=((o={})[l.Forward]=function(e){return function(t){return t+e}},o[l.Backward]=function(e){return function(t){return t-e}},o),f=((i={})[l.Forward]=function(e){return function(t){return Math.min(t,e)}},i[l.Backward]=function(e){return function(t){return Math.max(t,e)}},i),m=((a={})[l.Forward]=function(e){return function(t){return t<e}},a[l.Backward]=function(e){return function(t){return t>e}},a),v=function(e){function t(n){var r=e.call(this,n)||this;return r.animationInProgress=!1,r.scrollTo=function(e){var t="vertical"===r.direction?"scrollTop":"scrollLeft";r.scrollContainer&&(r.scrollContainer[t]=e)},r.scrollToIndex=function(e){void 0!==r.scrollToIndexTimeout&&window.cancelAnimationFrame(r.scrollToIndexTimeout),r.rowHeightService&&(r.scrollToIndexTimeout=window.requestAnimationFrame((function(){r.animationInProgress=!1,r.scrollTo(r.rowHeightService.offset(e))})))},r.animateToIndex=function(e){if(r.rowHeightService&&window){window.cancelAnimationFrame(r.cancelAnimation);var t=r.rowHeightService.offset(e),n=r.getContainerScrollDirection(t),o=r.scrollRange(t,n),i=o.start,a=o.end;if(i!==a){var s=r.scrollStep(i,a),l=h[n](s),u=f[n](a),c=m[n](l(a)),p=function(e){r.animationInProgress=!0;var t=l(e);r.scrollTo(u(t)),c(t)?r.cancelAnimation=window.requestAnimationFrame((function(){p(t)})):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame((function(){p(i)}))}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var o=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(o/17)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var o,i,a,s=r.containerMaxScroll(),u=t===l.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference,Math.min(Math.abs(i-o),a)),p=Math.min(e,s);return{start:Math.min(Math.max(p+u*c,0),s),end:p}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?l.Backward:l.Forward},r.initServices=function(e){void 0===e&&(e=r.props);var t="vertical"===r.direction?e.itemHeight:e.itemWidth;void 0!==t&&(r.rowHeightService=new d.RowHeightService(e.total,t,0),r.scrollerService.create(r.rowHeightService,e.skip,e.take,e.total,e.topOffset,r.scrollOffsetSize,r.direction))},r.getContainerProperty=function(e){return r.scrollContainer?r.scrollContainer[e]:0},r.handleScroll=function(e){if(r.scrollContainer&&r.rowHeightService){var t=e.target;r.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});var n=r.rowHeightService.index(r.containerScrollPosition-r.props.topOffset),o=r.props.onScrollAction,i={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};r.props.onScroll&&r.props.onScroll.call(void 0,e),o&&o.call(void 0,i),r.scrollAction=void 0,r.pageAction=void 0}},r.handleScrollAction=function(e){r.scrollAction=e},r.handlePageAction=function(e){r.pageAction=e},r.scrollerService=new d.ScrollerService(r.handleScrollAction,r.handlePageAction),r}return s(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.scrollContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return void 0!==this.props.direction?this.props.direction:t.defaultProps.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffsetSize",{get:function(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:t.defaultProps.scrollOffsetSize},enumerable:!0,configurable:!0}),t.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},t.prototype.itemIndex=function(e){return this.rowHeightService?this.rowHeightService.index(e):0},t.prototype.itemOffset=function(e){return this.rowHeightService?this.rowHeightService.offset(e):0},t.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),o=r+this.rowHeightService.height(e);return r>=t&&o<=n},t.prototype.isListScrolled=function(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this)},t.prototype.render=function(){var e=this;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var t=""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:t+"px"}:{width:t+"px"},r=p.classNames("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=p.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return u.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,u.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:c.number.isRequired,className:c.string,direction:c.oneOf(["horizontal","vertical"]),forceScroll:c.bool,itemHeight:c.number,itemWidth:c.number,maxScrollDifference:c.number,onScroll:c.func,onScrollAction:c.func,scrollDuration:c.number,scrollOffsetSize:c.number,skip:c.number.isRequired,tabIndex:c.number,take:c.number.isRequired,topOffset:c.number.isRequired,total:c.number.isRequired,role:c.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(u.Component);t.Virtualization=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(t.CalendarViewEnum||(t.CalendarViewEnum={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(47);t.BusViewService=r.BusViewService;var o=n(26);t.CenturyViewService=o.CenturyViewService;var i=n(27);t.DecadeViewService=i.DecadeViewService;var a=n(48);t.DOMService=a.DOMService;var s=n(28);t.MonthViewService=s.MonthViewService;var l=n(49);t.NavigationService=l.NavigationService;var u=n(50);t.ScrollSyncService=u.ScrollSyncService;var c=n(51);t.WeekNamesService=c.WeekNamesService;var p=n(29);t.YearViewService=p.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,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(40);t.usePickerFloatingLabel=function(e){var t=o.useState(!1),n=t[0],r=t[1];return o.useEffect((function(){e.current&&r(Boolean(e.current.text))})),{editorValue:n}},t.PickerFloatingLabel=function(e){var n=t.usePickerFloatingLabel(e.dateInput);return o.createElement(i.FloatingLabel,r({},e,n))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return B})),n.d(t,"ToolbarItem",(function(){return z})),n.d(t,"ToolbarSeparator",(function(){return q})),n.d(t,"ToolbarSpacer",(function(){return U})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return T})),n.d(t,"SplitButtonItem",(function(){return D})),n.d(t,"DropDownButton",(function(){return A})),n.d(t,"DropDownButtonItem",(function(){return j})),n.d(t,"Chip",(function(){return ie})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return ye})),n.d(t,"FloatingActionButtonItem",(function(){return ce}));var r,o=n(1),i=n(0),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1631780939,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"},l=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',u=["button"+l,".k-button-group > button"+l,".k-dropdown > .k-dropdown-wrap"+l,".k-colorpicker > .k-picker-wrap"+l],c={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},p=(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)}),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},f=c;var m=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},Object(a.validatePackage)(s),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,i=n.look,s=n.primary,l=n.togglable,u=n.icon,c=n.iconClass,p=n.imageUrl,m=n.imageAlt,v=n.className,g=(n.onClick,h(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),y=void 0!==u||void 0!==c||void 0!==p,b=void 0!==r,w={className:Object(a.classNames)([f.button],((e={})[f[""+i]]="default"!==i,e[f.primary]=s,e[f["state-disabled"]]=this.props.disabled,e[f["state-selected"]]=this.state.selected,e[f["button-icon"]]=!b&&y,e[f["button-icontext"]]=b&&y,e),[f[""+this.props.dir]],v),onClick:this.handleClick,role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},k=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass,i=e.imageAlt;if(t)return o.createElement("img",{role:"presentation",className:"k-image",alt:i,src:t});if(n){var s=Object(a.classNames)("k-icon","k-i-"+n);return o.createElement("span",{role:"presentation",className:s})}return r?o.createElement("span",{role:"presentation",className:r}):null}({icon:u,iconClass:c,imageUrl:p,imageAlt:m});return o.createElement("button",d({},w,g,{ref:function(e){return t._element=e}}),k,r)},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,look:i.oneOf(["default","flat","outline","clear"]),primary:i.bool,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(o.Component),v=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},y=c,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(a.validatePackage)(s),n}return v(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.classNames)([y["button-group"]],((e={})[y["state-disabled"]]=this.props.disabled,e[y["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return o.createElement("div",g({ref:function(e){t._element=e}},i,{className:r}),n)},t.prototype.mapButtons=function(e){var t=this,n=o.Children.count(e),r=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return o.Children.map(e,(function(e,i){return o.isValidElement(e)?t.renderButton(e,i,i===n-1,r):e}))},t.prototype.renderButton=function(e,t,n,r){var i,s=Object(a.classNames)(e.props.className,((i={})[y["group-start"]]=r?n:0===t,i[y["group-end"]]=r?0===t:n,i)),l=g({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=g({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==u?{disabled:u}:{});return o.Children.count(e.props.children)>0?o.cloneElement(e,c,e.props.children):o.cloneElement(e,c)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(o.Component),w=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return w(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,r=e.id,i=e.onDown,s=e.render,l=o.createElement("li",{id:r,className:Object(a.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:i,onPointerDown:i,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==s?s.call(void 0,l,this.props):l},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,r=e.index,i=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),a=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&o.createElement(i,{item:t,itemIndex:r})||[s&&o.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&o.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),a]},t}(o.Component),O=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(o.Component),_=function(e,t,n,r){if(n)return e;switch(t){case a.Keys.enter:case a.Keys.space:case a.Keys.esc:return-1;case a.Keys.up:case a.Keys.left:return Math.max(0,e-1);case a.Keys.down:case a.Keys.right:return Math.min(r-1,e+1);default:return e}},S=n(7);function C(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function E(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var x,P,I=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=c,T=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.guid=Object(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=void 0;if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(r={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,r.opened))):n.opened&&e.keyCode===a.Keys.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=_(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},n.onItemClick=function(e,t){var r=n.opened;r&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),r&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return I(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===D})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return o.createElement("div",{className:Object(a.classNames)("k-widget","k-split-button","k-button-group",[M[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),o.createElement(m,{icon:"arrow-s",disabled:s||void 0,tabIndex:-1,look:this.props.look,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(a.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||C(e),popupAlign:n.popupAlign||E(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(k,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,key:a,index:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),N=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,selected:i.bool,disabled:i.bool,render:i.any},t}(o.Component),V=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.guid=Object(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=R({},n.state);if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===a.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=_(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===a.Keys.up||e.keyCode===a.Keys.down||e.keyCode===a.Keys.left||e.keyCode===a.Keys.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(a.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(a.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1)},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){Object(a.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(a.validatePackage)(s),n}return V(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,r=this.props,i=r.tabIndex,s=r.disabled,l=this.state.focusedIndex;return this.buttonsData=this.props.items||o.Children.toArray(this.props.children).filter((function(e){return e&&e.type===j})).map((function(e){return e.props})),o.createElement("div",{className:Object(a.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},o.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||void 0,tabIndex:i,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":l>=0?this.guid+"-"+l:void 0},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.state.focused&&this.element&&this.element.focus()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||Object(a.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return o.createElement(S.Popup,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||C(e),popupAlign:n.popupAlign||E(e),style:e?{direction:"rtl"}:void 0},o.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,r=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return o.createElement(k,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:r,item:n,index:a,key:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,primary:i.bool,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(o.Component),F=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r.offsetHeight=0,r.offsetWidth=0,r.buttons=[],r.focusedSelector=r.selectors.map((function(e){return e+":focus"})).join(","),r.setTabIndex=function(e){var n=r.props.tabIndex,o=void 0===n?t.defaultProps.tabIndex:n;r.buttons.forEach((function(t,n){t.tabIndex=n===e?o:-1}))},r.onKeyDown=function(e){var t=e.target;if((e.keyCode===a.Keys.left||e.keyCode===a.Keys.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===a.Keys.left?r.focusButton(n,n-1):r.focusButton(n,n+1)}},r.onWindowResize=function(e){var t=r.element;if(t){var n=t.offsetWidth,o=t.offsetHeight;if(r.offsetWidth!==n||r.offsetHeight!==o){r.offsetWidth=n,r.offsetHeight=o;var i={offsetWidth:r.offsetWidth,offsetHeight:r.offsetHeight};r.props.onResize&&r.props.onResize.call(void 0,L({target:r},i,{nativeEvent:e}))}}},Object(a.validatePackage)(s),r}return F(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||u},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e=this;return o.createElement("div",{className:Object(a.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"toolbar",dir:this.props.dir,ref:function(t){return e._element=t},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var r=this.props.tabIndex,o=void 0===r?t.defaultProps.tabIndex:r,i=this.buttons[n];if(i){i.tabIndex=o,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(o.Component),H=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return H(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return o.createElement("span",{className:this.props.className,style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:i.string},t}(o.PureComponent),K=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){return o.createElement(z,{className:"k-separator"})},t}(o.PureComponent),U=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var i=o.useMemo((function(){return Object(a.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));U.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(x||(x={})),function(e){e.toggle="toggle",e.remove="remove"}(P||(P={}));var Y;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Y||(Y={}));var W;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(W||(W={}));var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=o.createContext([null,function(e){}]),Z=o.createContext([null,function(e){}]),$=o.createContext([null,function(e){}]),J=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.selection){case x.single:switch(t.type){case P.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case P.remove:return t.payload===e?null:e;default:return e}case x.multiple:switch(t.type){case P.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case P.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case x.none:return null;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},Q=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case Y.next:return n===t.items.length-1?e:t.items[n+1];case Y.prev:return 0===n?e:t.items[n-1];case Y.current:return t.payload;case Y.reset:return null;default:return e}}(t.payload,G({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.type){case W.add:break;case W.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case W.reorder:break;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},te=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ie}),[e.chip,ie]),u=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var c=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),p=J(e.value||e.defaultValue,{selection:u,state:e.value},c),d=p[0],h=p[1],f=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),m=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},f),v=m[0],g=m[1],y=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),b=o.useMemo((function(){return e.data||v}),[e.data,v]),w=o.useMemo((function(){return e.value||d}),[e.value,d]),k=o.useMemo((function(){return b.reduce(y,[])}),[b,y]),O=Q({items:k}),D=O[0],_=O[1],S=Object(a.useMouse)(e,n);return o.createElement(X.Provider,{value:[w,h]},o.createElement(Z.Provider,{value:[D,_]},o.createElement($.Provider,{value:[b,g]},o.createElement("div",G({ref:r},S,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===u,"k-selection-multiple":"multiple"===u,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),b.map((function(t){return o.createElement(l,{role:"option",dataItem:t,key:t[e.valueField||re.valueField],text:t[e.textField||re.textField],value:t[e.valueField||re.valueField]})}))))))})),ne={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string},re={chip:ie,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};te.displayName="KendoReactChipList",te.propTypes=ne,te.defaultProps=re;var oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ie=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var l=o.useContext(X),u=l[0],c=l[1],p=o.useContext(Z),d=p[0],h=p[1],f=o.useContext($)[1],m=o.useMemo((function(){return e.selected||(Array.isArray(u)?u.some((function(t){return t===e.value})):u===e.value)}),[e.selected,e.value,u]),v=o.useMemo((function(){return d===e.value}),[e.value,d]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){v&&r.current&&r.current.focus()}),[v]);var y=o.useCallback((function(t){c({type:P.toggle,payload:e.value,event:t}),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onClick,c,e.value]),b=o.useCallback((function(t){e.removable&&(f({type:W.remove,payload:e.value,event:t}),h({type:Y.reset,payload:e.value,event:t}),c({type:P.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,f,h,c]),w=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:h({type:Y.prev,payload:e.value,event:t});break;case a.Keys.right:h({type:Y.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:P.toggle,payload:e.value,event:t});break;case a.Keys.delete:b(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,h,c,b]),k=o.useCallback((function(t){h({payload:e.value,type:Y.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,h]),O=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),D=Object(a.useMouse)(e,n,{onClick:y});return o.createElement("div",oe({},D,{role:e.role,id:e.value,style:e.style,ref:r,dir:i,tabIndex:Object(a.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(a.classNames)("k-chip",{"k-rtl":"rtl"===i,"k-chip-disabled":e.disabled,"k-chip-selected":m,"k-chip-focused":v,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outlined"===g,"k-chip-filled":"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:k,onBlur:O,onKeyDown:w}),o.createElement("span",{className:"k-selected-icon-wrapper"},m&&o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||se.selectedIcon)})),e.icon&&o.createElement("span",{className:"k-icon k-chip-icon "+e.icon}),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-remove-icon",onClick:b},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),ae={id:i.string,text:i.string,value:i.any,type:i.oneOf(["none","success","warning","error","info"]),dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,look:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string},se={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"filled",removeIcon:"k-i-close-circle",dir:"ltr"};ie.displayName="KendoReactChip",ie.propTypes=ae,ie.defaultProps=se;var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ce=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,i=e.text,s=e.icon,l=e.style,u=e.id,c=e.focused,p=e.tabIndex,d=e.index,h=e.dataItem,f=e.item,m=e.onDown,v=e.onClick,g=ue(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=o.useRef(null),b=o.useCallback((function(){y.current&&y.current.focus()}),[]),w=o.useCallback((function(){return{element:y.current,focus:b}}),[b]);o.useImperativeHandle(t,w);var k=o.useCallback((function(e){v&&void 0!==d&&!r&&v(e,d)}),[v,d]),O=o.useMemo((function(){return Object(a.classNames)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),D=f;return o.createElement("li",le({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(a.getTabIndex)(p,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:k,onMouseDown:m,onPointerDown:m},g),D?o.createElement(D,{itemIndex:d,item:h}):o.createElement(o.Fragment,null,i&&o.createElement("span",{className:"k-fab-item-text"},i),s&&o.createElement("span",{className:Object(a.classNames)("k-fab-item-icon k-icon k-i-"+s)})))}));ce.propTypes={className:i.string,style:i.object,children:i.any,disabled:i.bool,focused:i.bool,index:i.number,icon:i.string,text:i.string,tabIndex:i.number,customProp:i.any},ce.displayName="KendoFloatingActionButtonItem";var pe=function(e){return"number"==typeof e?e+"px":e},de=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},fe=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},me=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ye=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=e.align,r=void 0===n?be.align:n,i=e.alignOffset,l=e.className,u=e.disabled,c=e.icon,p=e.iconClass,d=e.id,h=e.items,f=e.item,m=e.text,v=e.positionMode,g=void 0===v?be.positionMode:v,y=e.shape,b=void 0===y?be.shape:y,w=e.size,k=void 0===w?be.size:w,O=e.style,D=e.themeColor,_=void 0===D?be.themeColor:D,C=e.tabIndex,E=e.accessKey,x=e.popupSettings,P=void 0===x?{}:x,I=e.onClick,M=e.onItemClick,T=e.onFocus,N=e.onBlur,j=e.onKeyDown,V=e.onOpen,R=e.onClose,A=ge(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),F=o.useRef(null),L=o.useRef(null),B=o.useRef(null),H=o.useRef(null),z=o.useCallback((function(){L.current&&L.current.focus()}),[]),K=o.useCallback((function(){return{element:L.current,focus:z}}),[z]);o.useImperativeHandle(F,K),o.useImperativeHandle(t,(function(){return F.current}));var q=o.useState(!1),U=q[0],Y=q[1],W=o.useState(!1),G=W[0],X=W[1],Z=o.useState(-1),$=Z[0],J=Z[1],Q=o.useMemo((function(){return Object(a.guid)()}),[]),ee=Object(a.useDir)(L,e.dir),te="rtl"===ee,ne=o.useMemo((function(){return Object(a.guid)()}),[]);o.useEffect((function(){!function(e,t,n,r){var o=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?pe(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+pe(n.x)+")":"50%",l=n&&void 0!==n.y?pe(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+pe(n.y)+")":"50%";e.current.style.setProperty(fe(t,r),"center"===o?s:a),e.current.style.setProperty(me(t),"middle"===i?u:l),r&&("top"!==i&&"bottom"!==i||"start"!==o||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===o&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===o&&e.current.style.setProperty("left","unset"))}}(L,r,i,te)}),[L,r,i,te]),o.useEffect((function(){G&&L&&L.current&&L.current.focus()}),[G,L]);var re=o.useCallback((function(e,t){h&&Object(a.dispatchEvent)(t?V:R,e,K(),void 0)}),[V,R,h]),oe=o.useCallback((function(e){e.target&&!u&&(!h&&I?Object(a.dispatchEvent)(I,e,K(),void 0):(Y(!U),X(!0),J(U?-1:0),re(e,!U)))}),[Y,X,J,I,re,U,h,u]),ie=o.useCallback((function(e){X(!0),J(U?0:-1),T&&Object(a.dispatchEvent)(T,e,K(),void 0)}),[T,X,J]),ae=o.useCallback((function(e){X(!1),Y(!1),J(-1),Object(a.dispatchEvent)(N,e,K(),void 0),U&&re(e,!1)}),[N,X,Y,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){h&&(h[t].disabled||Object(a.dispatchEvent)(M,e,K(),{itemProps:h[t],itemIndex:t}))}),[M]),ue=o.useCallback((function(e,t){e.target&&h&&(J(t),Y(!1),le(e,t),re(e,!1))}),[J,Y,le,re]),ye=o.useCallback((function(e){document.activeElement===L.current&&e.preventDefault()}),[L,document.activeElement]),we=o.useCallback((function(e){var t=$,n=h?h.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case a.Keys.enter:case a.Keys.space:t>=0&&le(e,t),e.preventDefault(),Y(!U),J(U?-1:0);break;case a.Keys.esc:e.preventDefault(),Y(!1),J(-1);break;case a.Keys.home:e.preventDefault(),J(0);break;case a.Keys.end:e.preventDefault(),J(n);break;case a.Keys.down:case a.Keys.right:e.preventDefault(),t<n&&!o&&J(t+1),t>0&&o&&J(t-1);break;case a.Keys.up:case a.Keys.left:e.preventDefault(),t>0&&!o&&J(t-1),t<n&&o&&J(t+1)}Object(a.dispatchEvent)(j,e,K(),void 0)}),[j,$,J,te,Y]),ke=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+_,"k-fab-"+b,{"k-fab-sm":"small"===k,"k-fab-md":"medium"===k,"k-fab-lg":"large"===k,"k-state-disabled":u,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":G},"k-"+r.vertical+"-"+r.horizontal,l)}),[_,k,b,u,g,r,G,l]),Oe=h&&h.map((function(e,t){return o.createElement(ce,ve({},e,{key:t,index:t,id:ne+"-"+t,disabled:u||e.disabled,focused:$===t,dataItem:e,item:f,className:Object(a.classNames)(e.className,(n=ee||"ltr",i=r.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===i?"end":"start"])),onClick:ue,onDown:ye}));var n,i})),De=c&&!m,_e=(L.current?L.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",ve({ref:L,id:d||Q,role:h?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":h?U:void 0,"aria-haspopup":!!h,"aria-label":(m||"")+" floatingactionbutton","aria-owns":h?ne:void 0,"aria-activedescendant":$>=0&&h?ne+"-"+$:void 0,tabIndex:Object(a.getTabIndex)(C,u),accessKey:E,dir:ee,disabled:u,className:ke,style:O,onClick:oe,onMouseDown:se,onFocus:ie,onBlur:ae,onKeyDown:we},A),c?o.createElement("span",{role:"presentation",className:Object(a.classNames)("k-fab-icon k-icon k-i-"+c)}):p?o.createElement("span",{role:"presentation",className:p}):null,m&&o.createElement("span",{className:"k-fab-text"},m)),o.createElement(S.Popup,{ref:H,anchor:L.current,show:U,animate:P.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",P.popupClass),anchorAlign:P.anchorAlign||de(r,te),popupAlign:P.popupAlign||he(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:B,role:"menu","aria-labelledby":d,id:ne,className:Object(a.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:De?_e:void 0,paddingRight:De?_e:void 0}},Oe)))}));ye.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf(["rectangle","rounded","pill"]),size:i.oneOf(["small","medium","large"]),themeColor:i.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var be={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};ye.displayName="KendoFloatingActionButton"},function(e,t){e.exports=o},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(5),c=n(24),p=n(25),d=n(10),h=n(4),f=n(18),m=function(e){return a.createElement("td",{key:e,className:"k-calendar-td"}," ")},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return m("week-cell-"+n);var r=t.firstDate(e),o=t.getWeekNumber(r),s="kendo-react-calendar-week-cell-"+o,l={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?a.createElement(t.props.weekCell,i({},l,{key:s}),o):a.createElement(p.CalendarWeekCell,i({},l,{key:s}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return m(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-"+e.value.getTime(),s=i({},r,e,{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?a.createElement(t.props.cell,i({},s,{key:o}),e.formattedValue):a.createElement(c.CalendarCell,i({},s,{key:o}),e.formattedValue)}))},t.firstDate=function(e){var n=t.firstWeekDateContext(e);return n?n.value:null},t.firstWeekDateContext=function(e){if(!t.weekNumber)return null;for(var n=0,r=e[n];!r&&n<e.length;)r=e[++n];return r},t.handleClick=function(e,n){var r=t.props.onChange;if(r){var o={value:l.cloneDate(e),target:t,nativeEvent:n&&n.nativeEvent,syntheticEvent:n};r.call(void 0,o)}},t.handleMouseEnter=function(e){var n=t.props.onCellEnter;n&&n.call(void 0,l.cloneDate(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,l.cloneDate(e))},t}return o(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this.props.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===d.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedDate",{get:function(){return void 0!==this.props.selectedDate?this.props.selectedDate:t.defaultProps.selectedDate},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.intl=u.provideIntlService(this),this.weekService=new f.WeekNamesService(this.intl);var t=this.weekService.getWeekNames(this.weekNumber),n=this.props.service.rowLength(this.weekNumber),r=this.props.service.title(this.props.viewDate),o=h.getToday(),i=h.setTime(this.props.viewDate,o),s=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:i});return a.createElement(a.Fragment,null,this.isMonthView&&this.isHorizontal&&a.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},a.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return a.createElement("th",{key:t,className:"k-calendar-th"},e)})))),a.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&a.createElement("tr",{role:"presentation",className:"k-calendar-tr"},a.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),s.map((function(t,n){return a.createElement("tr",{role:"row",className:"k-calendar-tr",key:n},e.weekNumber&&e.buildWeekNumber(t,n),e.buildRow(t))}))))},t.prototype.getWeekNumber=function(e){return this.weekNumber?l.weekInYear(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:s.oneOf(["start","end",null]),activeView:s.number.isRequired,cellUID:s.string.isRequired,direction:s.oneOf(["horizontal","vertical"]),focusedDate:s.instanceOf(Date).isRequired,max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,onChange:s.func,selectedDate:s.oneOfType([s.instanceOf(Date),s.arrayOf(s.instanceOf(Date))]),showWeekNumbers:s.bool,viewDate:s.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:h.getToday(),showWeekNumbers:!1},t}(a.Component);t.View=v,u.registerForIntl(v)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t.handleMouseEnter=function(){var e=t.props,n=e.onMouseEnter,r=e.value;n&&n.call(void 0,r)},t.handleMouseLeave=function(){var e=t.props,n=e.onMouseLeave,r=e.value;n&&n.call(void 0,r)},t}return o(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=a(t,["value"]),o=e.value,i=a(e,["value"]);return!((!(n&&o)||n.getTime()===o.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!==t[i])return!1}return!0}(r,i))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=(e.isInRange,e.isSelected),u=e.isRangeStart,c=e.isRangeMid,p=e.isRangeEnd,d=e.isRangeSplitStart,h=e.isRangeSplitEnd,f=e.isToday,m=e.isDisabled,v=(e.view,e.value,a(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),g="end"===this.props.activeRangeEnd&&p,y="start"===this.props.activeRangeEnd&&u,b=l.classNames("k-calendar-td",{"k-range-end":p,"k-range-mid":c,"k-range-split-end":h,"k-range-split-start":d,"k-range-start":u,"k-state-active":y||g,"k-state-pending-focus":r,"k-state-selected":o||u||p,"k-today":f,"k-weekend":n,"k-state-disabled":m},t);return s.createElement("td",i({},v,{className:b,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),s.createElement("span",{className:"k-link"},this.props.children))},t}(s.Component);t.CalendarCell=u},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(2),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,a(e,["className","firstDate"]));return s.createElement("td",i({className:l.classNames("k-calendar-td",t)},n),this.props.children)},t}(s.Component);t.CalendarWeekCell=u},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(10),a=n(4),s=[[]],l=((r={})[i.Action.Left]=function(e){return o.addDecades(e,-1)},r[i.Action.Up]=function(e){return o.addDecades(e,-5)},r[i.Action.Right]=function(e){return o.addDecades(e,1)},r[i.Action.Down]=function(e){return o.addDecades(e,5)},r[i.Action.PrevView]=function(e){return o.addCenturies(e,-1)},r[i.Action.NextView]=function(e){return o.addCenturies(e,1)},r[i.Action.FirstInView]=function(e){return o.firstDecadeOfCentury(e)},r[i.Action.LastInView]=function(e){return o.lastDecadeOfCentury(e)},r),u=function(){function e(){}return e.prototype.addToDate=function(e,t){return o.addCenturies(e,t)},e.prototype.datesList=function(e,t){return a.range(0,t).map((function(t){return o.addCenturies(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,l=e.isActiveView,u=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?i.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return s;var m=a.range(0,5),v=o.firstDecadeOfCentury(f),g=o.lastDecadeOfCentury(f),y=a.getToday();return a.range(0,2).map((function(e){var i=o.addDecades(v,5*e);return m.map((function(e){var s=t.normalize(o.addDecades(i,e),c,u),d=t.isEqual(s,h.start),f=t.isEqual(s,h.end),m=!d&&!f&&a.isInSelectionRange(s,h),b=l&&(Array.isArray(p)?t.isSelectedFromArray(s,p,c,u):a.isInRange(p,c,u)&&t.isEqual(s,p));return{formattedValue:t.value(s),id:""+n+s.getTime(),isFocused:t.isEqual(s,r),isSelected:b,isWeekend:!1,isInRange:a.isInRange(s,c,u),isRangeStart:d,isRangeMid:m,isRangeEnd:f,isRangeSplitEnd:m&&t.isEqual(s,g),isRangeSplitStart:m&&t.isEqual(s,v),isToday:t.isEqual(s,y),title:t.cellTitle(s),value:s}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){a.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&o.firstYearOfDecade(e).getFullYear()===o.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var r=o.firstYearOfDecade(e).getFullYear(),i=!t||o.firstYearOfDecade(t).getFullYear()<=r,a=!n||r<=o.firstYearOfDecade(n).getFullYear();return i&&a},e.prototype.isInSameView=function(e,t){return 0===o.durationInCenturies(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=l[t];return n?n(e):e},e.prototype.cellTitle=function(e){return o.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?o.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?o.firstDecadeOfCentury(e).getFullYear()+" - "+o.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return o.durationInCenturies(t,e)},e.prototype.total=function(e,t){return o.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?o.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInCenturies(e,t)<n?o.addCenturies(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.cloneDate(t):e>n&&this.isEqual(e,n)?o.cloneDate(n):e},e}();t.CenturyViewService=u},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(12),a=n(13),s=n(4),l=[[]],u=((r={})[i.Action.Left]=function(e){return o.addYears(e,-1)},r[i.Action.Up]=function(e){return o.addYears(e,-5)},r[i.Action.Right]=function(e){return o.addYears(e,1)},r[i.Action.Down]=function(e){return o.addYears(e,5)},r[i.Action.PrevView]=function(e){return o.addDecades(e,-1)},r[i.Action.NextView]=function(e){return o.addDecades(e,1)},r[i.Action.FirstInView]=function(e){return o.firstYearOfDecade(e)},r[i.Action.LastInView]=function(e){return o.lastYearOfDecade(e)},r),c=function(){function e(){}return e.prototype.addToDate=function(e,t){return o.addDecades(e,t)},e.prototype.datesList=function(e,t){return s.range(0,t).map((function(t){return o.addDecades(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,i=e.isActiveView,u=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?a.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return l;var m=s.range(0,5),v=o.firstYearOfDecade(f),g=o.lastYearOfDecade(f),y=s.getToday();return s.range(0,2).map((function(e){var a=o.addYears(v,5*e);return m.map((function(e){var l=t.normalize(o.addYears(a,e),c,u),d=t.isEqual(l,h.start),f=t.isEqual(l,h.end),m=!d&&!f&&s.isInSelectionRange(l,h),b=i&&(Array.isArray(p)?t.isSelectedFromArray(l,p,c,u):s.isInRange(p,c,u)&&t.isEqual(l,p));return{formattedValue:t.value(l),id:""+n+l.getTime(),isFocused:t.isEqual(l,r),isSelected:b,isWeekend:!1,isInRange:s.isInRange(l,c,u),isRangeStart:d,isRangeMid:m,isRangeEnd:f,isRangeSplitEnd:m&&t.isEqual(l,g),isRangeSplitStart:m&&t.isEqual(l,v),isToday:t.isEqual(l,y),title:t.cellTitle(l),value:l}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){s.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var r=e.getFullYear(),o=!t||t.getFullYear()<=r,i=!n||r<=n.getFullYear();return o&&i},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.isInSameView=function(e,t){return 0===o.durationInDecades(e,t)},e.prototype.move=function(e,t){var n=u[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?o.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?o.firstYearOfDecade(e).getFullYear()+" - "+o.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return o.durationInDecades(t,e)},e.prototype.total=function(e,t){return o.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInDecades(e,t)<n?o.addDecades(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.cloneDate(t):e>n&&this.isEqual(e,n)?o.cloneDate(n):e},e}();t.DecadeViewService=c},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(12),a=n(13),s=n(4),l=[[]],u=((r={})[i.Action.Left]=function(e){return o.addDays(e,-1)},r[i.Action.Up]=function(e){return o.addWeeks(e,-1)},r[i.Action.Right]=function(e){return o.addDays(e,1)},r[i.Action.Down]=function(e){return o.addWeeks(e,1)},r[i.Action.PrevView]=function(e){return o.addMonths(e,-1)},r[i.Action.NextView]=function(e){return o.addMonths(e,1)},r[i.Action.FirstInView]=function(e){return o.firstDayOfMonth(e)},r[i.Action.LastInView]=function(e){return o.lastDayOfMonth(e)},r),c=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return o.addMonths(e,t)},e.prototype.datesList=function(e,t){return s.range(0,t).map((function(t){return o.addMonths(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,i=e.isActiveView,u=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?a.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return l;var m=o.firstDayOfMonth(f),v=o.lastDayOfMonth(f),g=o.dayOfWeek(m,this.intl.firstDay(),-1),y=s.range(0,7),b=s.getToday();return s.range(0,6).map((function(e){var a=o.addDays(g,7*e);return y.map((function(e){var l=t.normalize(o.addDays(a,e),c,u);if(l<m||l>v)return null;var d=t.isEqual(l,h.start),f=t.isEqual(l,h.end),g=!d&&!f&&s.isInSelectionRange(l,h),y=i&&(Array.isArray(p)?t.isSelectedFromArray(l,p,c,u):s.isInRange(p,c,u)&&t.isEqual(l,p));return{formattedValue:t.value(l),id:""+n+l.getTime(),isFocused:t.isEqual(l,r),isSelected:y,isInRange:s.isInRange(l,c,u),isWeekend:t.isWeekend(l),isRangeStart:d,isRangeMid:g,isRangeEnd:f,isRangeSplitStart:g&&t.isEqual(l,m),isRangeSplitEnd:g&&t.isEqual(l,v),isToday:t.isEqual(l,b),title:t.cellTitle(l),value:l}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&o.getDate(e).getTime()===o.getDate(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){s.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&o.firstDayOfMonth(t[0])<=e&&e<=o.lastDayOfMonth(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=o.getDate(e),i=!t||o.getDate(t)<=r,a=!n||r<=o.getDate(n);return i&&a},e.prototype.isInSameView=function(e,t){return 0===o.durationInMonths(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=u[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return 7+(e?1:0)},e.prototype.skip=function(e,t){return o.durationInMonths(t,e)},e.prototype.total=function(e,t){return o.durationInMonths(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInMonths(e,t)<n?o.addMonths(e,-1):e},e.prototype.isWeekend=function(e){var t=e.getDay();return 6===t||0===t},e.prototype.abbrMonthNames=function(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?o.getDate(t):e>n&&this.isEqual(e,n)?o.getDate(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}();t.MonthViewService=c},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(12),a=n(4),s=n(13),l=n(3),u=[[]],c=((r={})[i.Action.Left]=function(e){return o.addMonths(e,-1)},r[i.Action.Up]=function(e){return o.addMonths(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},r[i.Action.Right]=function(e){return o.addMonths(e,1)},r[i.Action.Down]=function(e){return o.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},r[i.Action.PrevView]=function(e){return o.addYears(e,-1)},r[i.Action.NextView]=function(e){return o.addYears(e,1)},r[i.Action.FirstInView]=function(e){return o.firstMonthOfYear(e)},r[i.Action.LastInView]=function(e){return o.lastMonthOfYear(e)},r),p=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return o.addYears(e,t)},e.prototype.datesList=function(e,t){return a.range(0,t).map((function(t){return o.addYears(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,i=e.isActiveView,l=e.max,c=e.min,p=e.selectedDate,d=e.selectionRange,h=void 0===d?s.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return u;var m=this.abbrMonthNames(),v=o.firstMonthOfYear(f),g=o.lastMonthOfYear(f),y=v.getFullYear(),b=a.range(0,5),w=a.getToday();return a.range(0,3).map((function(e){var s=o.addMonths(v,5*e);return b.map((function(e){var u=t.normalize(o.addMonths(s,e),c,l);if(y<u.getFullYear())return null;var d=t.isEqual(u,h.start),f=t.isEqual(u,h.end),b=!d&&!f&&a.isInSelectionRange(u,h),k=i&&(Array.isArray(p)?t.isSelectedFromArray(u,p,c,l):a.isInRange(p,c,l)&&t.isEqual(u,p));return{formattedValue:m[u.getMonth()],id:""+n+u.getTime(),isFocused:t.isEqual(u,r),isSelected:k,isInRange:a.isInRange(u,c,l),isWeekend:!1,isRangeStart:d,isRangeMid:b,isRangeEnd:f,isRangeSplitEnd:b&&t.isEqual(u,g),isRangeSplitStart:b&&t.isEqual(u,v),isToday:t.isEqual(u,w),title:t.cellTitle(u),value:u}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){a.isInRange(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var r=o.createDate(e.getFullYear(),e.getMonth(),1),i=!t||o.createDate(t.getFullYear(),t.getMonth(),1)<=r,a=!n||r<=o.createDate(n.getFullYear(),n.getMonth(),1);return i&&a},e.prototype.isInSameView=function(e,t){return 0===o.durationInYears(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=c[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(e){return 5},e.prototype.skip=function(e,t){return o.durationInYears(t,e)},e.prototype.total=function(e,t){return o.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),o.durationInYears(e,t)<n?o.addYears(e,-1):e},e.prototype.abbrMonthNames=function(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?l.cloneDate(t):e>n&&this.isEqual(e,n)?l.cloneDate(n):e},e}();t.YearViewService=p},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(5),u=n(2),c=n(31),p=n(8),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getTitle=function(){if(!t.props.currentDate)return"";var e=t.rangeLength-1,n=t.props.service.title(t.props.currentDate),r=t.props.service.addToDate(t.props.currentDate,e);return e<1||!t.props.service.isInRange(r,t.min,t.max)?n:n+" - "+t.props.service.title(r)},t.handleTitleClick=function(e){t.canMoveUp&&t.props.bus.moveUp(t.props.activeView,e)},t}return o(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeLength",{get:function(){return void 0!==this.props.rangeLength?this.props.rangeLength:t.defaultProps.rangeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canMoveUp",{get:function(){return this.props.bus.canMoveUp(this.props.activeView)},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.getTitle(),t=u.classNames("k-calendar-title"),n={children:e,value:e,view:this.props.activeView,className:t,onClick:this.handleTitleClick,disabled:!this.canMoveUp},r=this.props.headerTitle?a.createElement(this.props.headerTitle,i({},n),e):a.createElement(c.CalendarHeaderTitle,i({},n),e);return a.createElement("div",{className:"k-calendar-header"},r,a.createElement("span",{className:"k-spacer"}),a.createElement("span",{className:"k-calendar-nav"},this.props.commands))},t.propTypes={activeView:s.number.isRequired,currentDate:s.instanceOf(Date).isRequired,max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,rangeLength:s.number},t.defaultProps={rangeLength:1,min:p.MIN_DATE,max:p.MAX_DATE},t}(a.Component);t.Header=d,l.registerForLocalization(d)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(21),l=n(1),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,a(e,["view"]));return l.createElement(s.Button,i({type:"button",look:"flat"},t),this.props.children)},t}(l.PureComponent);t.CalendarHeaderTitle=u},function(e,t,n){"use strict";var r,o=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(5),l=n(2),u=n(3),c=n(6),p=n(4),d=n(8),h=function(e){function t(){var t=null!==e&&e.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:p.dateInRange(p.getToday(),t.min,t.max),target:t,isTodayClick:!0})},t}return o(t,e),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return p.isInRange(p.getToday(),u.getDate(this.min),u.getDate(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=s.provideLocalizationService(this);var e=this.localization.toLanguageString(c.today,c.messages[c.today]),t=l.classNames("k-nav-today",{"k-state-disabled":this.props.disabled});return i.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:a.instanceOf(Date).isRequired,min:a.instanceOf(Date).isRequired,onClick:a.func,disabled:a.bool},t.defaultProps={min:d.MIN_DATE,max:d.MAX_DATE},t}(i.Component);t.TodayCommand=h,s.registerForLocalization(h)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){var n=t.props,r=n.onClick,o=n.value;r&&r.call(void 0,o,e)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,a(e,["isRangeStart","value","text"]));return s.createElement("li",i({},n,{onClick:this.handleClick}),s.createElement("span",{className:l.classNames({"k-calendar-navigation-marker":t})},this.props.children))},t}(s.Component);t.CalendarNavigationItem=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){this.symbols=""};t.Mask=r},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,r){var o=e[r+e.length-n.length],i=e.substring(0,r+e.length-n.length),a=n.substring(0,r),s=[];if(i===a&&r>0)return s.push([t[r-1],a[r-1]]),s;if(0===i.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){var l="";1===a.length&&s.push([t[0],a[0]]);for(var u=a.length;u<i.length;u++)t[u]!==l&&"_"!==t[u]&&(l=t[u],s.push([l,""]));return s}if(0===a.indexOf(i)||"_"===t[r-1]){var c=t[0];for(u=Math.max(0,i.length-1);u<t.length;u++)if("_"!==t[u]){c=t[u];break}return[[c,a[r-1]]]}return" "===a[a.length-1]||a[a.length-1]===o?[[t[r-1],"_"]]:[[t[r-1],a[r-1]]]},t.dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},t.isInRange=function(e,t,n){return null===e||!(t&&t>e||n&&n<e)},t.invalidClasses=["k-state-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2);t.ToggleButton=r.forwardRef((function(e,t){var n=o.classNames("k-select",e.className);return r.createElement("a",{ref:t,id:e.id,role:"button",style:e.style,className:n,tabIndex:e.tabIndex,title:e.title,"aria-label":e.title,onMouseDown:e.onMouseDown,onClick:e.onClick,onMouseUp:e.onMouseUp},e.children)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2);t.PickerWrap=r.forwardRef((function(e,t){var n=e._ref,i=r.useRef(null);r.useImperativeHandle(t,(function(){return i.current})),r.useImperativeHandle(n,(function(){return i.current}));var a=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:a,tabIndex:e.tabIndex},e.children)}))},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(1),l=n(0),u=n(3),c=n(2),p=n(5),d=n(6),h=n(58),f=n(4),m=n(19),v=n(9),g=new RegExp(m.TIME_PART.hour+"|"+m.TIME_PART.minute+"|"+m.TIME_PART.second+"|"+m.TIME_PART.dayperiod+"|literal");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(a=t.Direction||(t.Direction={}));var y=function(e){function t(n){var r=e.call(this,n)||this;return r.timeLists=[],r.focus=function(e){Promise.resolve().then((function(){var t=r.timeLists[0];-1===r.state.activeListIndex&&!r.hasActiveButton()&&t&&t.element&&t.focus(e)}))},r.timeFormatReducer=function(e,t){return e+t.pattern},r.timeFormatFilter=function(e,t,n){var r=t>=1&&n[t-1];return r&&r&&"literal"===e.type?g.test(r.type||""):g.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===a.Right?t.next:t.prev})).map((function(e){return e&&e.element&&e.element.focus({preventScroll:!0})}))},r.listReducer=function(e,t,n,o){return e.length||t.props.id!==r.state.activeListIndex?e:[{next:o[n+1]||t,prev:o[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 c.Keys.left:return e.preventDefault(),void r.focusList(a.Left);case c.Keys.right:return e.preventDefault(),void r.focusList(a.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||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return v.timeInRange(this.snapTime(u.cloneDate(this.props.value||f.MIDNIGHT_DATE)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return p.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.snapTime(this.props.min||t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.snapTime(this.props.max||t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this.props.steps||t.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"boundRange",{get:function(){return void 0!==this.props.boundRange?this.props.boundRange:t.defaultProps.boundRange},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},t.prototype.render=function(){var e=this,n=this.props,r=n.format,o=n.smoothScroll,a=n.onNowClick,l=n.className,u=n.disabled;this.snapTime=v.snapTime(v.generateSnappers(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var f=c.classNames({"k-state-disabled":u},l,"k-time-part");this.timeLists=[];var m=p.provideLocalizationService(this),g=m.toLanguageString(d.selectNow,d.messages[d.selectNow]);return s.createElement("div",{className:f},s.createElement("div",{className:"k-time-header"},s.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&s.createElement("button",i({type:"button",ref:function(t){e._nowButton=t},className:"k-button k-flat k-time-now",title:g},{"aria-label":g},{onClick:a,tabIndex:u?-1:0}),m.toLanguageString(d.now,d.messages[d.now]))),s.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},s.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?s.createElement("div",{key:n,className:c.classNames("k-time-list-wrapper",{"k-state-focused":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},s.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),s.createElement(h.TimeList,{min:e.min,max:e.max,boundRange:e.boundRange,part:t,step:t.type?e.steps[t.type]:1,smoothScroll:o,ref:function(t){t&&e.timeLists.push(t)},id:n,onFocus:function(){e.handleListFocus(n)},onBlur:e.handleListBlur,onChange:e.handleChange,value:e.value,disabled:u})):s.createElement("div",{key:n,className:"k-time-separator"},t.pattern)}))))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return document.activeElement===this._nowButton},t.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},t.propTypes={cancelButton:l.bool,disabled:l.bool,format:l.oneOfType([l.string,l.shape({skeleton:l.string,pattern:l.string,date:l.oneOf(["short","medium","long","full"]),time:l.oneOf(["short","medium","long","full"]),datetime:l.oneOf(["short","medium","long","full"]),era:l.oneOf(["narrow","short","long"]),year:l.oneOf(["numeric","2-digit"]),month:l.oneOf(["numeric","2-digit","narrow","short","long"]),day:l.oneOf(["numeric","2-digit"]),weekday:l.oneOf(["narrow","short","long"]),hour:l.oneOf(["numeric","2-digit"]),hour12:l.bool,minute:l.oneOf(["numeric","2-digit"]),second:l.oneOf(["numeric","2-digit"]),timeZoneName:l.oneOf(["short","long"])})]),max:l.instanceOf(Date),min:l.instanceOf(Date),nowButton:l.bool,steps:l.shape({hour:l.number,minute:l.number,second:l.number}),smoothScroll:l.bool,tabIndex:l.number,value:l.instanceOf(Date)},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:f.MIN_TIME,max:f.MAX_TIME,steps:{},boundRange:!1},t}(s.Component);t.TimePart=y,p.registerForIntl(y),p.registerForLocalization(y)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(5),u=n(2),c=n(3),p=n(21),d=n(10),h=n(30),f=n(8),m=n(6),v=n(18),g=n(4),y=n(66),b=n(32),w=function(e,t,n){return void 0===e&&(e=_.defaultProps.min),void 0===t&&(t=_.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&g.isInRange(c.getDate(n),e,t)?c.getDate(n):null},k=function(e,t,n){return void 0===e&&(e=_.defaultProps.min),void 0===t&&(t=_.defaultProps.max),Array.isArray(n)?n.filter((function(n){return g.isInRange(n,e,t)})).map((function(e){return c.getDate(e)})):null},O=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?d.EMPTY_SELECTIONRANGE:e},D=function(e,t,n){return e||t&&t[0]||n&&n.start},_=function(e){function t(n){var r=e.call(this,n)||this;r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=d.EMPTY_SELECTIONRANGE,r.cellUID=u.guid(),r.activeRangeEnd="start",r.wrapperID=u.guid(),r.isActive=!1,r.calculateFocusFromValue=!0,r.focus=function(){r._element&&r._element.focus()},r.clampRange=function(e){return{start:e,end:null}},r.rangeWithFocused=function(e,t){return{start:e.start,end:null===e.end&&null!==e.start&&r.isActive?t:e.end}},r.generateRange=function(e,t){var n=t.end,o=t.start,i=null!==t.start&&e.getTime()<=t.start.getTime();return!r.props.allowReverse&&i?{start:e,end:r.selectedRange.start}:"end"!==r.activeRange?{start:e,end:n}:{start:o||r.selectedDate,end:e}},r.canNavigate=function(e){if(!r.service)return!1;var t=r.service.move(r.focusedDate,e);return r.min<=t&&t<=r.max||r.service.isInSameView(t,r.min)||r.service.isInSameView(t,r.max)},r.isListInRange=function(e){return r.min<e[0]&&r.max>e[Math.max(0,(r.props.views||t.defaultProps.views)-1)]},r.navigate=function(e){r.calculateFocusFromValue=!1;var t=r.move(e);r.setState({focusedDate:t})},r.move=function(e){return r.clampDate(r.service.move(r.focusedDate,e))},r.clampDate=function(e){return g.dateInRange(e,r.min,r.max)},r.shouldAutoCorrect=function(e,t){var n=t.end,o=t.start;return"end"!==r.activeRange?null!==n&&e>n:null!==o&&e<o},r.handleCellEnter=function(e){"range"===r.props.mode&&(r.calculateFocusFromValue=!1,r.setState({focusedDate:e}))},r.handleMouseDown=function(e){e.preventDefault()},r.handleClick=function(e){r._element&&r._element.focus({preventScroll:!0})},r.handleFocus=function(e){if(r.isActive=!0,r.calendarViewList){r.calendarViewList.focusActiveDate();var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleBlur=function(e){if(r.isActive=!1,r.calendarViewList){r.calendarViewList.blurActiveDate();var t=r.props.onBlur;t&&t.call(void 0,e)}},r.handleTodayClick=function(e){r.todayIsInRange&&r.handleDateChange.call(void 0,e,!0)},r.handlePrevButtonClick=function(){r.navigate(d.Action.PrevView)},r.handleNextButtonClick=function(){r.navigate(d.Action.NextView)},r.handleKeyDown=function(e){if(e.keyCode===u.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{var n=g.dateInRange(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(c.isEqualDate(r.focusedDate,n))return;r.calculateFocusFromValue=!1,r.setState({focusedDate:n})}e.preventDefault()},r.handleViewChange=function(e){var t=e.view;r.setState({activeView:t})},r.handleDateChange=function(e){var t=c.cloneDate(e.value),n=r.bus.canMoveDown(r.state.activeView);if(!r.props.disabled){if(n){if(!e.isTodayClick)return r.bus.moveDown(r.state.activeView,e.syntheticEvent),void r.setState({focusedDate:t});r.bus.moveToBottom(r.state.activeView)}var o;switch(r.calculateFocusFromValue=!0,r.props.mode){case"single":o=c.cloneDate(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){c.isEqualDate(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push(c.cloneDate(e.value)),o=i.slice()}else o=r.selectedDate?[c.cloneDate(r.selectedDate),c.cloneDate(e.value)]:[c.cloneDate(e.value)];break;case"range":o=null!==r.selectedRange.start&&null!==r.selectedRange.end&&"start"===r.activeRange?r.clampRange(e.value):r.generateRange(e.value,r.selectedRange),r.activeRangeEnd="end"!==r.activeRange?"end":"start";break;default:o=c.cloneDate(e.value)}r.valueDuringOnChange=o,r.setState({value:o,focusedDate:t}),r.valueDuringOnChange=o;var s=r.props.onChange;if(s){var l={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:o,target:r};s.call(void 0,l)}r.valueDuringOnChange=void 0}};var o,i,a=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,s=w(r.min,r.max,a),l=k(r.min,r.max,a),p=O(a),h=D(s,l,p),f=g.viewInRange(d.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),m=g.dateInRange(n.focusedDate||h||g.getToday(),r.min,r.max);return r.state={value:a,activeView:f,focusedDate:m},r.activeRangeEnd=(i=s,null===(o=p).start&&null===i?"start":null===o.end?"end":"start"),r.bus=new v.BusViewService(r.handleViewChange),r.navigation=new v.NavigationService(r.bus),r.calculateFocusFromValue=!1,r.lastView=f,r.lastViewsCount=r.props.views||y.HorizontalViewList.defaultProps.views,r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedDate",{get:function(){return c.cloneDate(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return c.getDate(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return c.getDate(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return d.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return d.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeRange",{get:function(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return g.isInRange(g.getToday(),c.getDate(this.min),c.getDate(this.max))},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.calculateFocusFromValue=!0},t.prototype.componentDidUpdate=function(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();var e=w(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||y.HorizontalViewList.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=l.provideIntlService(this),this.localization=l.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView);var t=g.viewInRange(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=w(this.min,this.max,this.value),this.selectedMultiple=k(this.min,this.max,this.value),this.selectedRange=O(this.value);var n=D(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=g.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=u.classNames("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),s={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},f=this.localization.toLanguageString(m.prevView,m.messages[m.prevView]),v=this.localization.toLanguageString(m.nextView,m.messages[m.nextView]),_=!this.canNavigate(d.Action.PrevView),S=!this.canNavigate(d.Action.NextView),C={"aria-disabled":_},E={"aria-disabled":S},x=this.lastView!==t,P=this.dates&&this.service.isInArray(this.focusedDate,this.dates),I=this.lastViewsCount!==this.props.views;(!P||x||I)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||y.HorizontalViewList.defaultProps.views));var M=c.cloneDate(this.dates&&this.dates[0]?this.dates[0]:g.getToday());return a.createElement("div",i({ref:function(t){e._element=t},className:r,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},s),a.createElement(h.Header,{key:".kendo.calendar.header."+M.getTime(),activeView:t,currentDate:M,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:a.createElement(a.Fragment,null,a.createElement(p.Button,i({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:f,disabled:_,onClick:this.handlePrevButtonClick},C)),a.createElement(b.TodayCommand,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),a.createElement(p.Button,i({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:v,disabled:S,onClick:this.handleNextButtonClick},E)))}),a.createElement(y.HorizontalViewList,{ref:function(t){e.calendarViewList=t},dates:this.dates,activeView:t,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:o,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}))},t.propTypes={activeRangeEnd:s.oneOf(["start","end"]),allowReverse:s.bool,bottomView:s.oneOf(["month","year","decade","century"]),className:s.string,defaultActiveView:s.oneOf(["month","year","decade","century"]),defaultValue:s.oneOfType([s.instanceOf(Date),s.arrayOf(s.instanceOf(Date)),s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)})]),disabled:s.bool,focusedDate:s.instanceOf(Date),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,max:s.instanceOf(Date),min:s.instanceOf(Date),mode:s.oneOf(["single","multiple","range"]),onBlur:s.func,onChange:s.func,onFocus:s.func,tabIndex:s.number,topView:s.oneOf(["month","year","decade","century"]),value:s.oneOfType([s.instanceOf(Date),s.arrayOf(s.instanceOf(Date)),s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)})]),views:function(e,t,n){var r=e[t];return void 0!==r&&r<1?new Error("Invalid prop '"+t+"' supplied to'"+n+"'. The '"+t+"' property cannot be less than 1'"):null},weekNumber:s.bool},t.defaultProps={disabled:!1,min:f.MIN_DATE,max:f.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(a.Component);t.MultiViewCalendar=_,l.registerForIntl(_),l.registerForLocalization(_)},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return m})),n.d(t,"Label",(function(){return c})),n.d(t,"Error",(function(){return p})),n.d(t,"Hint",(function(){return d}));var r,o=n(1),i=n(0),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(5),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1631781042,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"},c=function(e){Object(a.validatePackage)(u);var t=e.id,n=e.editorId,r=e.editorRef,i=e.editorDisabled,c=e.children,p=e.editorValid,d=e.style,h=e.className,f=e.optional,m=Object(l.useLocalization)(),v=f?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=o.useCallback((function(e){if(r&&r.current&&!i){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),b=Object(a.classNames)({"k-label":!0,"k-label-empty":!c,"k-text-error":!1===p,"k-text-disabled":!0===i},h);return o.createElement("label",{id:t,htmlFor:n,onClick:y,style:d,className:b},c,g)};c.propTypes={id:i.string,editorId:i.string,editorRef:i.oneOfType([i.func,i.shape({current:i.any})]),editorValid:i.bool,editorDisabled:i.bool,style:i.object,className:i.string,optional:i.bool},c.displayName="KendoReactLabel";var p=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-error":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction},e.className);return o.createElement("div",{id:e.id,role:"alert",style:e.style,className:t},e.children)};p.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},p.defaultProps={direction:"start"},p.displayName="KendoReactError";var d=function(e){Object(a.validatePackage)(u);var t=Object(a.classNames)({"k-form-hint":!0,"k-text-start":"start"===e.direction,"k-text-end":"end"===e.direction,"k-text-disabled":!0===e.editorDisabled},e.className);return o.createElement("div",{id:e.id,style:e.style,className:t},e.children)};d.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string,editorDisabled:i.bool},d.defaultProps={direction:"start"},d.displayName="KendoReactHint";var h,f=(h=function(e,t){return(h=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}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},Object(a.validatePackage)(u),n}return f(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,r=e.className,i=e.editorValue,u=e.editorPlaceholder,c=e.editorValid,p=e.editorDisabled,d=e.style,h=e.id,f=e.optional,m=Object(l.provideLocalizationService)(this),v=f?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=Object(a.classNames)({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!u&&!i&&0!==i,"k-text-disabled":p,"k-rtl":"rtl"===this.props.dir},r),b=Object(a.classNames)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":p});return o.createElement("span",{className:y,onFocus:this.handleFocus,onBlur:this.handleBlur,style:d,dir:this.props.dir},this.props.children,t?n?o.createElement("label",{id:h,htmlFor:n,className:b},t,g):o.createElement("span",{id:h,className:b},t,g):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,optional:i.bool},t}(o.Component);Object(l.registerForLocalization)(m)},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15);t.Calendar=r.Calendar;var o=n(14);t.DateInput=o.DateInput;var i=n(55);t.DatePicker=i.DatePicker;var a=n(56);t.TimePicker=a.TimePicker;var s=n(39);t.MultiViewCalendar=s.MultiViewCalendar;var l=n(67);t.DateRangePicker=l.DateRangePicker;var u=n(24);t.CalendarCell=u.CalendarCell;var c=n(25);t.CalendarWeekCell=c.CalendarWeekCell;var p=n(31);t.CalendarHeaderTitle=p.CalendarHeaderTitle;var d=n(33);t.CalendarNavigationItem=d.CalendarNavigationItem;var h=n(10);t.CalendarViewEnum=h.CalendarViewEnum;var f=n(68);t.DateTimePicker=f.DateTimePicker;var m=n(36);t.ToggleButton=m.ToggleButton;var v=n(37);t.PickerWrap=v.PickerWrap},function(e,t,n){"use strict";var r,o=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(2),l=n(3),u=n(5),c=n(16),p=n(23),d=n(30),h=n(4),f=n(10),m=n(32),v=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.animateToIndex=!0,n.shouldScroll=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.table){n.table.style.transform="translateY("+n.viewOffset+"px)";var t=h.dateInRange(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildMonthView=function(e,t){return i.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},i.createElement("colgroup",null,e.map((function(e,t){return i.createElement("col",{key:t})}))),i.createElement("thead",{className:"k-calendar-thead"},i.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return i.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return i.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},i.createElement("colgroup",null,e.map((function(e,t){return i.createElement("col",{key:t})}))),t.map((function(e){return i.createElement(p.View,{ref:function(e){n.calendarView||(n.calendarView=e)},key:e.getTime(),activeView:n.props.activeView,viewDate:e,min:n.props.min,max:n.props.max,cellUID:r,focusedDate:n.props.focusedDate,cell:n.props.cell,selectedDate:n.props.value,showWeekNumbers:n.weekNumber,onChange:n.handleDateChange,bus:n.props.bus,service:n.props.service,weekCell:n.props.weekCell})})))},n.calculateHeights=function(){if(n.props.dom){var e=n.props.activeView===f.CalendarViewEnum.month?n.props.dom.scrollableContentHeight:n.props.dom.scrollableYearContentHeight;n.bottomOffset=e-n.props.dom.viewHeight(n.props.activeView),n.viewOffset=-1*n.props.dom.headerHeight,n.viewHeight=n.props.dom.viewHeight(n.props.activeView)||1}},n.getTake=function(e,t){return Math.min(t-e,n.take)},n.handleScrollAction=function(e){var t=e.index,r=e.scrollAction,o=e.pageAction,i=o?o.skip:n.state.skip;if(n.state.index===t&&n.state.skip===i||n.setState({index:t,skip:i}),n.table&&r){var a="translateY("+r.offset+"px)";n.table.style.transform=a}},n.handleTodayClick=function(e){n.shouldScroll=!0,n.handleDateChange.call(void 0,e,!0)},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:l.cloneDate(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate,n.state={skip:n.props.service.skip(n.props.focusedDate,n.props.min),index:n.props.service.skip(n.props.focusedDate,n.props.min)},n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNames",{get:function(){this.intl=u.provideIntlService(this);var e=h.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===f.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayIsInRange",{get:function(){return h.isInRange(h.getToday(),l.getDate(this.props.min),l.getDate(this.props.max))},enumerable:!0,configurable:!0}),t.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},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=h.dateInRange(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),a=this.getTake(r,o),u=this.props.service.addToDate(this.props.min,r),p=this.props.service.addToDate(this.props.min,this.state.index),v=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),g=this.props.activeView!==this.lastView;this.animateToIndex=!g,(g||!l.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;var y=s.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===f.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===f.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===f.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===f.CalendarViewEnum.century}),b=this.buildDates(v,this.props.service.datesList(u,a)),w=i.createElement(i.Fragment,null,i.createElement(d.Header,{key:"calendar-view-list-header",currentDate:p,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:i.createElement(i.Fragment,null,i.createElement(m.TodayCommand,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===f.CalendarViewEnum.month&&this.buildMonthView(v,this.weekNames),i.createElement(c.Virtualization,{key:"calendar-view-list-content",skip:r,take:this.take,total:o,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:b}));return i.createElement("div",{ref:function(t){e._element=t},className:y},this.props.dom.didCalculate?w:null)},t.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},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(i.Component);t.ViewList=v,u.registerForIntl(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45);t.RowHeightService=r.RowHeightService;var o=n(46);t.PageAction=o.PageAction,t.ScrollAction=o.ScrollAction,t.ScrollerService=o.ScrollerService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var r=0,o=0;o<e;o++)this.offsets.push(r),r+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){for(var t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}();t.RowHeightService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return Math.max(e,0)},o=function(e){this.offset=e};t.ScrollAction=o;var i=function(e){this.skip=e};t.PageAction=i;var a=function(){function e(e,t){this.onScrollAction=e,this.onPageAction=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,a,s,l,u){void 0===s&&(s=0),void 0===l&&(l=0),void 0===u&&(u="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=a,this.lastScrollTop=0,this.topOffset=s,this.bottomOffset=l,this.direction=u;var c=this.rowsForHeight(s),p=r(t-c);this.onScrollAction(new o(this.rowOffset(p))),this.onPageAction(new i(p))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,a=e.offsetHeight,s=e.offsetWidth,l="vertical"===this.direction?n:t,u="vertical"===this.direction?a:s;if(this.lastScrollTop!==l){var c=this.lastScrollTop>=l;this.lastScrollTop=l;var p=this.rowHeightService.index(r(l-this.topOffset)),d=this.rowHeightService.index(r(l+u-this.bottomOffset));if(!c&&d>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=p,this.onScrollAction(new o(this.rowOffset(p))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new i(this.firstLoaded))),c&&p<=this.firstLoaded){var h=Math.floor(.3*this.take);this.firstLoaded=r(p-h),this.onScrollAction(new o(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new i(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e}();t.ScrollerService=a},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),i=n(27),a=n(28),s=n(29),l=n(17),u=((r={})[l.CalendarViewEnum.month]=a.MonthViewService,r[l.CalendarViewEnum.year]=s.YearViewService,r[l.CalendarViewEnum.decade]=i.DecadeViewService,r[l.CalendarViewEnum.century]=o.CenturyViewService,r),c=function(){function e(e){this.bottom=l.CalendarViewEnum.month,this.top=l.CalendarViewEnum.century,this.onViewChanged=e}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e,t){return new u[""+e](t)},e.prototype.moveDown=function(e,t){this.move(e,-1,t)},e.prototype.moveUp=function(e,t){this.move(e,1,t)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t,n){var r=this.clamp(function(e,t){var n=l.CalendarViewEnum[l.CalendarViewEnum[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}();t.BusViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(4),i=n(2),a=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;if(i.canUseDOM){var n,r=o.domContainerFactory("div"),a=o.domContainerFactory("ul"),s=o.domContainerFactory("li"),l=o.domContainerFactory("td"),u=o.domContainerFactory("th"),c=o.domContainerFactory("tr"),p=o.domContainerFactory("tbody"),d=o.domContainerFactory("thead"),h=o.domContainerFactory("table"),f=function(){return r('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},m=function(e,t){return new Array(e).fill("1").map(t)},v=function(e){return r(e,"k-content k-scrollable")},g=function(){return i.canUseDOM?(n||(n=r([v([a([s("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null},y=function(e,t,n){var o,a=e.cells,s=e.rows;return function(){return i.canUseDOM?(o||(o=function(e,t,n){return r(n?[f(),h([d([c([u("MO")])])],"k-calendar-weekdays"),v([e,e])]:[f(),v([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),h([p([c([u("1")])].concat(m(e,(function(){return c(m(t,(function(e){return l('<span class="k-link">'+e+"</span>")})))}))))])}(s,a),t,n)),o):null}},b=function(e){return e.querySelector(".k-scrollable")},w=function(e){var t=b(e);return t.className=t.className+" k-scrollable-horizontal",e},k=y({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),O=y({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),D=y({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),_=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},S=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},C=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(k(),(function(e){var n=C(e);t.calendarHeight=_(e),t.monthViewHeight=_(n),t.headerHeight=_(n.children[0]),t.scrollableContentHeight=_(b(e))})),this.batch(w(k()),(function(e){var n=C(e);t.calendarWidth=S(e),t.monthViewWidth=S(n),t.scrollableContentWidth=S(b(e))})),this.batch(O(),(function(e){t.yearViewHeight=_(C(e)),t.scrollableYearContentHeight=_(b(e))})),this.batch(w(O()),(function(e){t.yearViewWidth=S(C(e))})),this.batch(D(),(function(e){t.decadeViewHeight=_(C(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(w(D()),(function(e){t.decadeViewWidth=S(C(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(g(),(function(e){t.navigationItemHeight=_(e.querySelector("li"))}))}},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case r.CalendarViewEnum.month:return this["month"+n];case r.CalendarViewEnum.year:return this["year"+n];case r.CalendarViewEnum.decade:return this["decade"+n];case r.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){var n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)},e}();t.DOMService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o={33:r.Action.PrevView,34:r.Action.NextView,35:r.Action.LastInView,36:r.Action.FirstInView,37:r.Action.Left,38:r.Action.Up,39:r.Action.Right,40:r.Action.Down,"meta+38":r.Action.UpperView,"meta+40":r.Action.LowerView},i=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return o[t]},e.prototype.move=function(e,t,n,o,i){return o?t===r.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,i),e):t===r.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,i),e):o.move(e,t):e},e}();t.NavigationService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e}();t.ScrollSyncService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=r.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}();t.WeekNamesService=o},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(33),c=n(4),p=n(16),d=function(e){function t(t){var n=e.call(this,t)||this;n.topOffset=0,n.handleVirtualizationMount=function(e){if(n.virtualization=e,n.virtualization&&n.list){n.list.style.transform="translateY("+n.topOffset+"px)";var t=c.dateInRange(n.props.focusedDate,n.props.min,n.props.max),r=n.props.service.skip(t,n.props.min);n.virtualization.scrollToIndex(r)}},n.buildNavigationItem=function(e){var t=n.props.service.navigationTitle(e),r=n.props.service.isRangeStart(e),o="kendo-react-calendar-nav-item-"+e.getTime(),s={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?a.createElement(n.props.navigationItem,i({},s,{key:o}),t):a.createElement(u.CalendarNavigationItem,i({},s,{key:o}),t)},n.calculateHeights=function(){var e=n.props.dom.calendarHeight;n.itemHeight=n.props.dom.navigationItemHeight||1,n.maxViewHeight=n.props.dom.monthViewHeight,n.topOffset=(e-n.itemHeight)/2,n.bottomOffset=e-n.itemHeight},n.handleDateChange=function(e,t){var r=n.props.onChange;if(r){var o={value:l.cloneDate(e),target:n,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};r.call(void 0,o)}},n.handleScrollAction=function(e){var t=e.scrollAction,r=e.pageAction,o=r?r.skip:n.state.skip;if(n.state.skip!==o&&n.setState({skip:o}),n.list&&t){var i="translateY("+t.offset+"px)";n.list.style.transform=i}},n.lastView=n.props.activeView,n.lastFocus=n.props.focusedDate;var r=n.props.service.skip(n.props.focusedDate,n.props.min),o=n.props.service.total(n.props.min,n.props.max);return n.state={skip:r-n.getTake(r,o)>0?r:0},n}return o(t,e),Object.defineProperty(t.prototype,"take",{get:function(){return void 0!==this.props.take?this.props.take:t.defaultProps.take},enumerable:!0,configurable:!0}),t.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},t.prototype.render=function(){var e=this;this.calculateHeights();var t=this.lastView!==this.props.activeView,n=c.dateInRange(this.props.focusedDate,this.props.min,this.props.max),r=t?this.props.service.skip(n,this.props.min):this.state.skip,o=this.props.service.total(this.props.min,this.props.max),i=this.getTake(r,o),s=this.props.service.addToDate(this.props.min,r),u=this.props.service.datesList(s,i);this.props.activeView===this.lastView&&l.isEqual(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var d=a.createElement(p.Virtualization,{skip:r,take:this.take,total:o,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount},a.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},u.map((function(t){return e.buildNavigationItem(t)}))));return a.createElement("div",{className:"k-calendar-navigation"},a.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?d:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:s.number.isRequired,focusedDate:s.instanceOf(Date).isRequired,max:s.instanceOf(Date).isRequired,min:s.instanceOf(Date).isRequired,onChange:s.func,take:s.number},t.defaultProps={take:30},t}(a.Component);t.Navigation=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54);t.KendoDate=r.KendoDate;var o=n(34);t.Mask=o.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(34),i=n(35),a=function(){function e(e,t,n){this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this._value=r.getDate(new Date),this.intlProvider=e,this.formatPlaceholder=t,this.format=n,this.monthNames=this.allFormatedMonths()}return Object.defineProperty(e.prototype,"intl",{get:function(){return this.intlProvider()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){e?r.isEqual(e,this._value)||(this._value=r.cloneDate(e),this.modifyExisting(!0)):(this._value=r.getDate(new Date),this.modifyExisting(!1))},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return r.cloneDate(this.value)},e.prototype.getTextAndFormat=function(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=r.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=r.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.setExisting(e,!0),this._value=n},e.prototype.parsePart=function(e,t){var n;if(this.resetLeadingZero(),!t)return this.setExisting(e,!1),{value:null};for(var o=this.intl.formatDate(this.value,this.format),i=this.dateFormatString(this.value,this.format),a=i.symbols,s=!1,l="",u="",c="",p=0;p<o.length;p++)a[p]===e?(u+=this.getExisting(e)?o[p]:"0",s=!0):s?c+=o[p]:l+=o[p];for(var d=null,h=this.matchMonth(t);u.length>0&&"0"===u.charAt(0);)u=u.slice(1);u.length>=4&&(u="");for(p=0;p<2;p++){var f=u+t,m=parseInt(f,10);if(!(d=this.intl.parseDate(l+f+c,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!h){var v=m-1;v>-1&&v<12&&((d=r.cloneDate(this.value)).setMonth(v),d.getMonth()!==v&&(d=r.lastDayOfMonth(r.addMonths(d,-1))))}"y"===e&&(d=r.createDate(parseInt(f,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&d.getDate()!==this.value.getDate()&&(d=r.lastDayOfMonth(r.addMonths(d,-1))))}if(d)return this._value=d,this.setExisting(e,!0),{value:this.value};u=""}return h&&(d=this.intl.parseDate(l+h+c,this.format))?(this._value=d,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(i.partMap,e)?null:((n={})[e]=!0,n),this.setExisting(e,!1)),{value:null})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format).reduce(i.dateSymbolMap,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.leadingZero=null,e},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return[]},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),r=[],i=[],a=0;a<n.length;a++)for(var s=this.intl.formatDate(e,{pattern:n[a].pattern}).length;s>0;)r.push(this.symbols[n[a].pattern[0]]||"_"),i.push(n[a]),s--;var l=new o.Mask;return l.symbols=r.join(""),l.partMap=i,l},e.prototype.merge=function(e,t){for(var n="",r="",o=t.symbols,i=o.length-1;i>=0;i--)if(-1===this.knownParts.indexOf(o[i])||this.getExisting(o[i]))n=e[i]+n,r=o[i]+r;else{for(var a=o[i];i>=0&&a===o[i];)i--;for(i++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[i])+n;r.length<n.length;)r=o[i]+r}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e}();t.KendoDate=a},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(7),c=n(3),p=n(2),d=n(2),h=n(11),f=n(14),m=n(15),v=n(4),g=n(4),y=n(6),b=n(5),w=n(36),k=n(37),O=n(20),D=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=p.guid(),r._element=null,r._wrapper=null,r._dateInput=s.createRef(),r._calendar=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){r.handleValueChange(e.value,e)},r.handleCalendarValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(t,e)},r.handleValueChange=function(e,t){r.setState({value:c.cloneDate(e||void 0),show:!1}),r.valueDuringOnChange=e,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===p.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==p.Keys.up&&n!==p.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===p.Keys.up,r.setShow(n===p.Keys.down))},d.validatePackage(h.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?c.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||t.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarComp",{get:function(){return this.props.calendar||t.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupComp",{get:function(){return this.props.popup||t.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||t.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=g.isInDateRange(this.value,this.min,this.max),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.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},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,l=t.id,u=t.format,d=t.formatPlaceholder,h=t.min,f=t.max,m=t.weekNumber,v=t.focusedDate,g=t.className,w=t.width,k=t.name,D=t.validationMessage,_=t.required,S=t.validityStyles,C=t.ariaLabelledBy,E=t.ariaDescribedBy,x=this.props.popupSettings,P=x.popupClass,I=a(x,["popupClass"]),M=this.show,T=this.value,N=T&&c.getDate(T),j=!this.validityStyles||this.validity.valid,V=p.classNames("k-widget k-datepicker",g),R=p.classNames("k-picker-wrap",{"k-state-invalid":!j,"k-state-disabled":n,"k-state-focused":this.state.focused}),A=p.classNames("k-calendar-container k-group k-reset",P),F={disabled:n,format:u,formatPlaceholder:d,id:l,ariaLabelledBy:C,ariaDescribedBy:E,max:f,min:h,name:k,onChange:this.handleInputValueChange,required:_,tabIndex:M?-1:r,title:o,valid:this.validity.valid,validationMessage:D,validityStyles:S,value:T,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},L=i({show:M,anchor:this._wrapper||this._element,className:A,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},I),B={disabled:n,value:N,min:h,max:f,weekNumber:m,focusedDate:v,onChange:this.handleCalendarValueChange},H=s.createElement(p.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return s.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:V,onKeyDown:e.handleKeyDown,style:{width:w},onFocus:n,onBlur:r},s.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:R},s.createElement(e.dateInputComp,i({_ref:e._dateInput},F)),s.createElement(e.toggleButtonComp,{onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:b.provideLocalizationService(e).toLanguageString(y.toggleCalendar,y.messages[y.toggleCalendar]),className:"k-select"},s.createElement("span",{className:"k-icon k-i-calendar"}))),s.createElement(e.popupComp,i({},L),s.createElement(e.calendarComp,i({_ref:e.setCalendarRef},B))))}));return this.props.label?s.createElement(O.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:j,editorDisabled:this.props.disabled,children:H,style:{width:this.props.width}}):H},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?v.setTime(e,this.value):e},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.propTypes={className:l.string,defaultShow:l.bool,defaultValue:l.instanceOf(Date),disabled:l.bool,focusedDate:l.instanceOf(Date),format:l.oneOfType([l.string,l.shape({skeleton:l.string,pattern:l.string,date:l.oneOf(["short","medium","long","full"]),time:l.oneOf(["short","medium","long","full"]),datetime:l.oneOf(["short","medium","long","full"]),era:l.oneOf(["narrow","short","long"]),year:l.oneOf(["numeric","2-digit"]),month:l.oneOf(["numeric","2-digit","narrow","short","long"]),day:l.oneOf(["numeric","2-digit"]),weekday:l.oneOf(["narrow","short","long"]),hour:l.oneOf(["numeric","2-digit"]),hour12:l.bool,minute:l.oneOf(["numeric","2-digit"]),second:l.oneOf(["numeric","2-digit"]),timeZoneName:l.oneOf(["short","long"])})]),formatPlaceholder:l.oneOfType([l.oneOf(["wide","narrow","short","formatPattern"]),l.shape({year:l.string,month:l.string,day:l.string,hour:l.string,minute:l.string,second:l.string})]),id:l.string,ariaLabelledBy:l.string,ariaDescribedBy:l.string,min:l.instanceOf(Date),max:l.instanceOf(Date),name:l.string,popupSettings:l.shape({animate:l.bool,appendTo:l.any,popupClass:l.string}),show:l.bool,tabIndex:l.number,title:l.string,value:l.instanceOf(Date),weekNumber:l.bool,width:l.oneOfType([l.number,l.string]),validationMessage:l.string,required:l.bool,validate:l.bool,valid:l.bool},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:f.DateInput,calendar:m.Calendar,toggleButton:w.ToggleButton,popup:u.Popup,pickerWrap:k.PickerWrap,disabled:!1,format:"d",max:v.MAX_DATE,min:v.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},t}(s.Component);t.DatePicker=D,b.registerForLocalization(D)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(7),c=n(3),p=n(2),d=n(5),h=n(2),f=n(11),m=n(6),v=n(14),g=n(57),y=n(4),b=n(9),w=n(20),k=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=p.guid(),r._element=null,r._wrapper=null,r._dateInput=s.createRef(),r._timeSelector=null,r.shouldFocusDateInput=!1,r.focus=function(){r.dateInput&&r.dateInput.focus()},r.setTimeSelectorRef=function(e){r._timeSelector=e},r.nextValue=function(e,t){return void 0!==e.value?e.value:t.value},r.nextShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleInputValueChange=function(e){var t=r.mergeTime(e.value);r.handleValueChange(i({},e,{value:t}))},r.handleValueChange=function(e){r.setState({value:c.cloneDate(e.value),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleValueReject=function(e){r.setShow(!1)},r.handleIconClick=function(e){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===p.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==p.Keys.up&&n!==p.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===p.Keys.up,r.setShow(n===p.Keys.down))},h.validatePackage(f.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r.normalizeTime=r.normalizeTime.bind(r),r.setShow=r.setShow.bind(r),r.nextTick=r.nextTick.bind(r),r.mergeTime=r.mergeTime.bind(r),r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSelector",{get:function(){return this._timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?c.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value&&this.normalizeTime(this.value),t=this.normalizeTime(this.min),n=this.normalizeTime(this.max),r=b.isInRange(e,t,n),o=void 0!==this.props.validationMessage,i=(!this.required||null!==this.value)&&r,a=void 0!==this.props.valid?this.props.valid:i;return{customError:o,rangeOverflow:b.isBiggerThanMax(e,n),rangeUnderflow:b.isSmallerThanMin(e,t),valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this.props.popupSettings||t.defaultProps.popupSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.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},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,l=t.id,c=t.className,h=t.format,f=t.formatPlaceholder,v=t.smoothScroll,y=t.width,b=t.name,k=t.steps,O=t.cancelButton,D=t.nowButton,_=t.validationMessage,S=t.required,C=t.validityStyles,E=t.ariaLabelledBy,x=t.ariaDescribedBy,P=this.popupSettings,I=P.popupClass,M=a(P,["popupClass"]),T=!this.validityStyles||this.validity.valid,N=p.classNames("k-widget k-timepicker",c),j=p.classNames("k-picker-wrap",{"k-state-invalid":!T,"k-state-disabled":n,"k-state-focused":this.state.focused}),V=p.classNames("k-group k-reset",I),R={disabled:n,format:h,formatPlaceholder:f,id:l,ariaLabelledBy:E,ariaDescribedBy:x,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:b,onChange:this.handleInputValueChange,required:S,steps:k,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:_,validityStyles:C,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},A=i({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:V,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},M),F=s.createElement(g.TimeSelector,{ref:this.setTimeSelectorRef,cancelButton:O,disabled:n,nowButton:D,format:h,min:this.min,max:this.max,steps:k,smoothScroll:v,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),L=d.provideLocalizationService(this),B=L.toLanguageString(m.toggleClock,m.messages[m.toggleClock]),H=L.toLanguageString(m.toggleTimeSelector,m.messages[m.toggleTimeSelector]),z=s.createElement(p.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},(function(t){var n=t.onFocus,r=t.onBlur;return s.createElement("div",{ref:function(t){e._element=t},className:N,onKeyDown:e.handleKeyDown,style:{width:y},onFocus:n,onBlur:r},s.createElement("span",{ref:function(t){e._wrapper=t},className:j},s.createElement(e.dateInputComp,i({_ref:e._dateInput},R)),s.createElement("span",i({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:H,className:"k-select"},{"aria-controls":e._popupId,"aria-label":B}),s.createElement("span",{className:"k-icon k-i-clock"}))),e.props.popup?s.createElement(e.props.popup,i({},A),F):s.createElement(u.Popup,i({},A),F))}));return this.props.label?s.createElement(w.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:l,editorValid:T,editorDisabled:this.props.disabled,children:z,style:{width:this.props.width}}):z},t.prototype.normalizeTime=function(e){return y.setTime(y.MIDNIGHT_DATE,e)},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.mergeTime=function(e){return this.value&&e?y.setTime(this.value,e):e},t.propTypes={className:l.string,cancelButton:l.bool,nowButton:l.bool,defaultShow:l.bool,defaultValue:l.instanceOf(Date),disabled:l.bool,format:l.oneOfType([l.string,l.shape({skeleton:l.string,pattern:l.string,date:l.oneOf(["short","medium","long","full"]),time:l.oneOf(["short","medium","long","full"]),datetime:l.oneOf(["short","medium","long","full"]),era:l.oneOf(["narrow","short","long"]),year:l.oneOf(["numeric","2-digit"]),month:l.oneOf(["numeric","2-digit","narrow","short","long"]),day:l.oneOf(["numeric","2-digit"]),weekday:l.oneOf(["narrow","short","long"]),hour:l.oneOf(["numeric","2-digit"]),hour12:l.bool,minute:l.oneOf(["numeric","2-digit"]),second:l.oneOf(["numeric","2-digit"]),timeZoneName:l.oneOf(["short","long"])})]),formatPlaceholder:l.oneOfType([l.oneOf(["wide","narrow","short","formatPattern"]),l.shape({year:l.string,month:l.string,day:l.string,hour:l.string,minute:l.string,second:l.string})]),id:l.string,ariaLabelledBy:l.string,ariaDescribedBy:l.string,min:l.instanceOf(Date),max:l.instanceOf(Date),name:l.string,popupSettings:l.shape({animate:l.bool,appendTo:l.any,popupClass:l.string}),show:l.bool,steps:l.shape({hour:l.number,minute:l.number,second:l.number}),smoothScroll:l.bool,tabIndex:l.number,title:l.string,value:l.instanceOf(Date),width:l.oneOfType([l.number,l.string]),validationMessage:l.string,required:l.bool,validate:l.bool,valid:l.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:y.MAX_TIME,min:y.MIN_TIME,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:v.DateInput},t}(s.Component);t.TimePicker=k,d.registerForLocalization(k)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(3),u=n(2),c=n(5),p=n(6),d=n(4),h=n(9),f=n(38);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(t.Direction||(t.Direction={}));var m=function(e){function t(n){var r=e.call(this,n)||this;return r.focusActiveList=function(){r.timePart&&r.timePart.focus({preventScroll:!0})},r.handleKeyDown=function(e){switch(e.keyCode){case u.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));default:return}},r.handleAccept=function(e){var t=r.mergeValue(l.cloneDate(r.value||h.getNow()),r.timePart?r.timePart.value:r.current);r.setState({value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleReject=function(e){r.setState({current:r.value});var t=r.props.onReject;t&&t.call(void 0,e)},r.handleNowClick=function(e){var t=r.mergeValue(l.cloneDate(r.value||h.getNow()),h.getNow());r.setState({current:t,value:t}),r.valueDuringOnChange=t;var n=r.props.onChange;n&&n.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.value,target:r}),r.valueDuringOnChange=void 0},r.handleChange=function(e){r.setState({current:e})},r.dateFormatParts=r.intl.splitDateFormat(r.props.format||t.defaultProps.format),r.mergeValue=h.valueMerger(h.generateGetters(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||d.MIDNIGHT_DATE,value:r.props.value||t.defaultProps.value},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?l.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return c.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?l.cloneDate(this.state.current):null},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.format,r=t.cancelButton,o=t.disabled,s=t.tabIndex,l=t.className,d=t.smoothScroll,h=t.min,m=t.max,v=t.boundRange,g=t.nowButton,y=t.steps,b=c.provideLocalizationService(this),w=b.toLanguageString(p.timePickerCancel,p.messages[p.timePickerCancel]),k=b.toLanguageString(p.timePickerSet,p.messages[p.timePickerSet]);return a.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:s||0,className:u.classNames("k-timeselector k-reset",l,{"k-state-disabled":o}),onKeyDown:this.handleKeyDown},a.createElement(f.TimePart,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:d,min:h,max:m,boundRange:v,disabled:o,nowButton:g,steps:y}),a.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&a.createElement("button",i({type:"button",ref:function(t){e._cancelButton=t},className:"k-button k-time-cancel",onClick:this.handleReject,title:w},{"aria-label":w}),w),a.createElement("button",i({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept k-button k-primary",onClick:this.handleAccept,title:k},{"aria-label":k}),k)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},t.propTypes={cancelButton:s.bool,className:s.string,disabled:s.bool,format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),max:s.instanceOf(Date),min:s.instanceOf(Date),nowButton:s.bool,steps:s.shape({hour:s.number,minute:s.number,second:s.number}),smoothScroll:s.bool,tabIndex:s.number,value:s.instanceOf(Date)},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:d.MIN_TIME,max:d.MAX_TIME,boundRange:!1},t}(a.Component);t.TimeSelector=m,c.registerForIntl(m),c.registerForLocalization(m)},function(e,t,n){"use strict";var r,o,i,a=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)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(3),c=n(2),p=n(5),d=n(16),h=n(59),f=n(60),m=n(4),v=((o={})[c.Keys.end]=function(e,t){return e[e.length-1]},o[c.Keys.home]=function(e,t){return e[0]},o[c.Keys.up]=function(e,t){return e[t-1]},o[c.Keys.down]=function(e,t){return e[t+1]},o),g=((i={})[h.TIME_PART.dayperiod]=f.DayPeriodService,i[h.TIME_PART.hour]=f.HoursService,i[h.TIME_PART.minute]=f.MinutesService,i[h.TIME_PART.second]=f.SecondsService,i),y=function(e){function t(n){var r=e.call(this,n)||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(),o=r.virtualization.itemOffset(n),i=Math.abs(Math.ceil(e)-o);if(t===n&&i<2)return o;var a=t>n;return a&&i>=r.bottomThreshold||!a&&i>r.topThreshold?r.virtualization.itemOffset(n+1):o},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 t=void 0===e?r.props:e,n=t.min,o=t.max,i=t.value,a=r.service.limitRange(n||r.min,o||r.max,i||r.props.value),s=a[0],l=a[1];r.service.configure(r.serviceSettings({min:s,max:l}))},r.serviceSettings=function(e){var n={boundRange:r.props.boundRange||t.defaultProps.boundRange,insertUndividedMax:!1,min:u.cloneDate(r.min),max:u.cloneDate(r.max),part:r.props.part,step:r.step},o=Object.assign({},n,e);return o.boundRange="hour"!==o.part.type||r.props.boundRange||t.defaultProps.boundRange,o},r.handleScrollAction=function(e){var t=e.target,n=e.animationInProgress;if(r.virtualization&&t&&!n){r.animateToIndex=!1;var o=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),i=r.service.data(r.props.value)[o];r.handleChange(i)}},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._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode;t!==c.Keys.down&&t!==c.Keys.up&&t!==c.Keys.end&&t!==c.Keys.home||e.preventDefault();var n=(v[e.keyCode]||c.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));n&&r.handleChange(n)},r.handleChange=function(e){var t=r.service.apply(r.props.value,e.value);if(r.props.value.getTime()!==t.getTime()){r.setState({value:t});var n=r.props.onChange;n&&n.call(void 0,t)}},r.dom=new f.DOMService,r}return a(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.props.min||t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.props.max||t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):t.defaultProps.step},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())}))},t.prototype.componentDidUpdate=function(){if(this.virtualization){var e=this.service.selectedIndex(this.props.value);this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0}},t.prototype.render=function(){var e=this;if(this.props.part.type&&g[this.props.part.type]){this.calculateHeights(),this.intl=p.provideIntlService(this),this.service=new g[this.props.part.type](this.intl),this.configureServices();var t=this.service.data(this.props.value),n="translateY("+this.topOffset+"px)",r=this.service.total(this.props.value),o=s.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return s.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},s.createElement("span",null,t.text))})));return s.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(t){e._element=t},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?s.createElement(d.Virtualization,{bottomOffset:this.bottomOffset,children:o,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(t){e.virtualization=t},role:"presentation",skip:0,tabIndex:-1,take:r,topOffset:this.topOffset,total:r}):s.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:l.number,max:l.instanceOf(Date),min:l.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!g[r.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ");return null},step:function(e,t,n){var r=e[t];if(void 0!==r&&r<=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},t.defaultProps={boundRange:!1,max:m.MAX_TIME,min:m.MIDNIGHT_DATE,step:1,smoothScroll:!0},t}(s.Component);t.TimeList=y,p.registerForIntl(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);t.TIME_PART=r.TIME_PART},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61);t.DayPeriodService=r.DayPeriodService;var o=n(62);t.DOMService=o.DOMService;var i=n(63);t.HoursService=i.HoursService;var a=n(64);t.MinutesService=a.MinutesService;var s=n(65);t.SecondsService=s.SecondsService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=function(e,t){var n=r.cloneDate(e);return n.setHours(t),n},i=function(e){return null!==e&&e<12},a=function(e,t,n){return!t&&!n||e>=t&&e<=n},s=function(e,t,n){return!t&&!n||e>=t||e<=n},l=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),r=i(n),a=i(t.getHours());if(r&&a||!r&&!a)return e;var s=this.normalizedRange(),l=s[0],u=s[1],c=void 0===u?24:u,p=n+(a?-12:12);return o(e,Math.min(Math.max(l,p),c||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,r=e.max,o=void 0===r?this.max:r,i=e.part,a=void 0===i?this.part:i;this.min=n,this.max=o,this.part=a},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,r=[],a=this.normalizedRange(),s=a[0],l=a[1],u=this.intl.dateFormatNames(t);return i(s)&&r.push({text:u.am,value:o(this.min,s)}),null!==(n=l)&&(!n||n>11)&&r.push({text:u.pm,value:o(this.min,Math.max(12,l))}),this.min.getHours()!==s?r.reverse():r},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?s:a)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e}();t.DayPeriodService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(2),i=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(o.canUseDOM){var t=r.domContainerFactory("div"),n=r.domContainerFactory("ul"),i=r.domContainerFactory("li"),a=t([t([t([n([i("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),s=e&&e.querySelector(".k-time-container")||document.body,l=s.appendChild(a);this.timeListHeight=l.querySelector(".k-scrollable").offsetHeight,this.itemHeight=l.querySelector("li").offsetHeight,s.removeChild(l),this.didCalculate=!0}},e}();t.DOMService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(4),a=n(9),s=(r=24,function(e){return e%r}),l=function(e,t){return s(24+e-t)},u=function(e){return function(t,n){return!n||o.getDate(t).getTime()===o.getDate(n).getTime()?t:a.setHours(t,e)}},c=u(0),p=u(23),d=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return a.setHours(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,s=void 0===o?this.insertUndividedMax:o,l=e.min,u=void 0===l?this.min:l,c=e.max,p=void 0===c?this.max:c,d=e.part,h=e.step,f=void 0===h?this.step:h;this.boundRange=r,this.insertUndividedMax=s,this.toListItem=function(e){var n=a.setHours(i.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=u,this.max=p,this.step=f},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return s(t+e*n)}),l=a.range(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(l),e&&this.addMissing(l,e),l},e.prototype.isRangeChanged=function(e,t){return!o.isEqual(this.min,e)||!o.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[c(e,n),p(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(l(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(a.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return l(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getHours(),r.getHours()]},e}();t.HoursService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(4),a=n(9),s=(r=60,function(e){return e%r}),l=function(e,t){return s(60+e-t)},u=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:a.setMinutes(t,e)}},c=u(0),p=u(59),d=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return a.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,s=void 0===o?this.min:o,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.insertUndividedMax=r,this.toListItem=function(e){var n=a.setMinutes(i.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=s,this.max=u,this.step=d},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return s(t+e*n)}),l=a.range(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(l),e&&this.addMissing(l,e),l},e.prototype.isRangeChanged=function(e,t){return!o.isEqual(this.min,e)||!o.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[c(e,n),p(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(l(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(a.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return l(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getMinutes(),r.getMinutes()]},e}();t.MinutesService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(4),a=n(9),s=(r=60,function(e){return e%r}),l=function(e,t){return s(60+e-t)},u=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:a.setSeconds(t,e)}},c=u(0),p=u(59),d=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return a.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,s=void 0===o?this.min:o,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.insertUndividedMax=r,this.toListItem=function(e){var n=a.setSeconds(i.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=s,this.max=u,this.step=d},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return s(t+e*n)}),l=a.range(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(l),e&&this.addMissing(l,e),l},e.prototype.isRangeChanged=function(e,t){return!o.isEqual(this.min,e)||!o.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[c(e,n),p(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return l(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],r=t[1];return Math.floor(l(r,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(a.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],r=t[1];return[n.getSeconds(),r.getSeconds()]},e}();t.SecondsService=d},function(e,t,n){"use strict";var r,o=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(23),s=n(10),l=n(2),u=n(3),c=n(8),p=function(e){function t(t){var n=e.call(this,t)||this;return n.isActive=!1,n.focusActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused"),t=n._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),n.isActive=!0}},n.blurActiveDate=function(){if(n._element){var e=n._element.querySelector("td.k-state-focused");e&&e.classList.remove("k-state-focused"),n.isActive=!1}},n.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}},n.handleDateChange=function(e,t){void 0===t&&(t=!1);var r=n.props.onChange;if(r){var o={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:u.cloneDate(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===s.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.isActive&&this.focusActiveDate()},t.prototype.render=function(){var e=this,t=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,n=l.classNames("k-calendar-view",{"k-calendar-monthview":this.props.activeView===s.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===s.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===s.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===s.CalendarViewEnum.century});return i.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return i.createElement("table",{className:"k-calendar-table k-content",key:n.getTime()},i.createElement(a.View,{bus:e.props.bus,service:e.props.service,key:n.getTime(),direction:"horizontal",activeView:e.props.activeView,cellUID:e.props.cellUID,viewDate:n,min:e.min,max:e.max,focusedDate:e.props.focusedDate,selectionRange:t,selectedDate:e.props.value,showWeekNumbers:e.weekNumber,onChange:e.handleDateChange,onCellEnter:e.props.onCellEnter,cell:e.props.cell,weekCell:e.props.weekCell}))})))},t.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,min:c.MIN_DATE,max:c.MAX_DATE},t}(i.Component);t.HorizontalViewList=p},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(7),u=n(3),c=n(2),p=n(5),d=n(2),h=n(11),f=n(14),m=n(39),v=n(10),g=n(8),y=n(6),b={display:"inline-block"},w=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._startDateInput=a.createRef(),r._endDateInput=a.createRef(),r._popupId=c.guid(),r._startInputId=c.guid(),r._endInputId=c.guid(),r.shouldFocusDateInput=!1,r.shouldFocusCalendar=!1,r.focus=function(){r.startDateInput&&r.startDateInput.focus()},r.setCalendarRef=function(e){r._calendar=e},r.focusCalendarElement=function(){r._calendar&&r._calendar.element&&r._calendar.element.focus({preventScroll:!0})},r.calculateValue=function(e,t){return(void 0!==e.value?e.value:t.value)||v.EMPTY_SELECTIONRANGE},r.calculateShow=function(e,t){return void 0!==e.show?e.show:t.show},r.handleReverseClick=function(e){var t={start:r.value.end,end:r.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};r.handleChange(t,n)},r.handleReverseMouseDown=function(e){e.preventDefault()},r.handleFocus=function(e){clearTimeout(r.nextTickId),r.shouldFocusDateInput||r.setShow(!0),r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.add("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.add("k-state-focused");var t=r.props.onFocus;t&&t.call(void 0,e)},r.handleBlur=function(e){r.nextTick((function(){r.startDateInput&&r.startDateInput.element&&r.startDateInput.element.classList.remove("k-state-focused"),r.endDateInput&&r.endDateInput.element&&r.endDateInput.element.classList.remove("k-state-focused"),r.setShow(!1)}));var t=r.props.onBlur;t&&t.call(void 0,e)},r.handleEndChange=function(e){var t={start:r.value.start,end:u.cloneDate(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:u.cloneDate(e.value||void 0),end:r.value.end};r.handleChange(t,e)},r.extractRangeFromValue=function(e){if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||v.EMPTY_SELECTIONRANGE;var t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==r.value.end?t:r.value.start,end:null!==r.value.start?t:r.value.end}},r.handleCalendarChange=function(e){var t=r.extractRangeFromValue(e);r.handleChange(t,e)},r.handleKeyDown=function(e){var t=e.keyCode,n=e.altKey;t===c.Keys.esc?(e.preventDefault(),r.shouldFocusDateInput=!0,r.setShow(!1)):n&&t===c.Keys.down?(e.preventDefault(),r.shouldFocusCalendar=!0,r.setShow(!0)):t===c.Keys.tab&&r.show&&r._calendar&&r._calendar.element&&r.endDateInput&&r.endDateInput.element&&document&&document.activeElement===r.endDateInput.element&&(e.preventDefault(),r.focusCalendarElement())},r.handleChange=function(e,t){r.setState({value:e}),r.valueDuringOnChange=e;var n=r.props.onChange;if(n){var o={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:r.value,show:r.show,target:r};n.call(void 0,o)}r.valueDuringOnChange=void 0},d.validatePackage(h.packageMetadata),r.state={show:r.props.show||r.props.defaultShow||t.defaultProps.defaultShow,value:r.props.value||r.props.defaultValue||t.defaultProps.defaultValue},r.nextTick=r.nextTick.bind(r),r.setShow=r.setShow.bind(r),r.focusCalendarElement=r.focusCalendarElement.bind(r),r.focusDateInputElement=r.focusDateInputElement.bind(r),r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startDateInput",{get:function(){return this._startDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endDateInput",{get:function(){return this._endDateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||v.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.value||v.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=c.classNames("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),s=p.provideLocalizationService(this),u=s.toLanguageString(y.start,y.messages[y.start]),d=s.toLanguageString(y.end,y.messages[y.end]),h=s.toLanguageString(y.separator,y.messages[y.separator]),g=i({label:u,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:t.start,onChange:this.handleStartChange}),w=i({label:d,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:t.end,onChange:this.handleEndChange}),k=i({animate:null!==this._wrapper,anchor:this._wrapper,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},this.props.popupSettings,{show:this.show}),O=i({min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled},this.props.calendarSettings,{value:t,onChange:this.handleCalendarChange}),D=this.props.calendar?a.createElement(this.props.calendar,i({},O)):a.createElement(m.MultiViewCalendar,i({},O,{ref:this.setCalendarRef})),_=a.createElement("span",i({role:"button",className:"k-select k-button k-flat",title:p.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":p.provideLocalizationService(this).toLanguageString(y.swapStartEnd,y.messages[y.swapStartEnd])}),a.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return a.createElement("span",{ref:function(t){e._element=t},className:o,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},a.createElement("span",{ref:function(t){e._wrapper=t},className:"k-daterangepicker-wrap",style:b},this.props.startDateInput?a.createElement(this.props.startDateInput,i({},g)):a.createElement(f.DateInput,i({},g,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?_:h,this.props.endDateInput?a.createElement(this.props.endDateInput,i({},w)):a.createElement(f.DateInput,i({},w,{ref:this._endDateInput}))),this.props.popup?a.createElement(this.props.popup,i({},k),D):a.createElement(l.Popup,i({},k),D))},t.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}))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.propTypes={allowReverse:s.bool,calendarSettings:s.any,className:s.string,defaultShow:s.bool,defaultValue:s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)}),disabled:s.bool,endDateInputSettings:s.shape(f.DateInput.propTypes),focusedDate:s.instanceOf(Date),format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,max:s.instanceOf(Date),min:s.instanceOf(Date),onBlur:s.func,onChange:s.func,onFocus:s.func,popupSettings:s.any,show:s.bool,startDateInputSettings:s.any,style:s.any,swapButton:s.any,tabIndex:s.number,value:s.shape({start:s.instanceOf(Date),end:s.instanceOf(Date)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:v.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:g.MAX_DATE,min:g.MIN_DATE,swapButton:!1},t}(a.Component);t.DateRangePicker=w,p.registerForLocalization(w)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(7),u=n(3),c=n(2),p=n(14),d=n(2),h=n(11),f=n(4),m=n(6),v=n(5),g=n(69),y=n(9),b=n(8),w=n(20),k=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=c.guid(),r._element=null,r._wrapper=null,r._dateInput=a.createRef(),r._dateTimeSelector=null,r.shouldFocusDateInput=!1,r.prevShow=!1,r.focus=function(){var e=r.dateInputElement();e&&e.focus()},r.handleReject=function(){r.shouldFocusDateInput=!0,r.setShow(!1)},r.handleValueChange=function(e){r.setState({value:u.cloneDate(e.value||void 0),show:!1}),r.valueDuringOnChange=e.value,r.showDuringOnChange=!1,r.shouldFocusDateInput=!0;var t=r.props.onChange;t&&t.call(void 0,{syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r.value,show:r.show,target:r}),r.valueDuringOnChange=void 0,r.showDuringOnChange=void 0},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1}),r.setShow(!1)},r.handleDateIconClick=function(){r.props.disabled||(r.shouldFocusDateInput=!0,r.setShow(!r.show))},r.handleIconMouseDown=function(e){e.preventDefault()},r.handleKeyDown=function(e){var t=e.altKey,n=e.keyCode;if(n===c.Keys.esc)return r.shouldFocusDateInput=!0,void r.setShow(!1);!t||n!==c.Keys.up&&n!==c.Keys.down||(e.preventDefault(),e.stopPropagation(),r.shouldFocusDateInput=n===c.Keys.up,r.setShow(n===c.Keys.down))},r.dateInputElement=function(){return r.dateInput&&r.dateInput.element||r._wrapper&&r._wrapper.querySelector(".k-dateinput-wrap > input.k-input")},d.validatePackage(h.packageMetadata),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value;return null!==e?u.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=f.isInDateRange(this.value,this.min,this.max)&&y.isInTimeRange(this.value,this.props.minTime||b.MIN_TIME,this.props.maxTime||f.MAX_TIME),t=void 0!==this.props.validationMessage,n=(!this.required||null!==this.value)&&e,r=void 0!==this.props.valid?this.props.valid:n;return{customError:t,rangeOverflow:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:r,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputComp",{get:function(){return this.props.dateInput||t.defaultProps.dateInput},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},t.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},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.tabIndex,o=t.title,s=t.id,u=t.format,p=t.formatPlaceholder,d=t.min,h=t.max,f=t.weekNumber,y=t.focusedDate,b=t.className,k=t.width,O=t.name,D=t.validationMessage,_=t.required,S=t.validityStyles,C=t.cancelButton,E=t.minTime,x=t.maxTime,P=t.ariaLabelledBy,I=t.ariaDescribedBy,M=t.popup,T=void 0===M?l.Popup:M,N=t.calendar,j=!this.validityStyles||this.validity.valid,V=c.classNames("k-widget k-datetimepicker",{"k-state-invalid":!j},b),R=c.classNames("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),A={id:s,ariaLabelledBy:P,ariaDescribedBy:I,format:u,formatPlaceholder:p,disabled:n,title:o,validityStyles:S,validationMessage:D,required:_,min:d,max:h,minTime:E,maxTime:x,name:O,tabIndex:this.show?-1:r,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},F=a.createElement(c.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},(function(t){var r=t.onFocus,o=t.onBlur;return a.createElement("div",{ref:function(t){e._element=t},className:V,onKeyDown:e.handleKeyDown,style:{width:k},onFocus:r,onBlur:o},a.createElement("div",{ref:function(t){e._wrapper=t},className:R},a.createElement(e.dateInputComp,i({_ref:e._dateInput},A)),a.createElement("span",i({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:v.provideLocalizationService(e).toLanguageString(m.toggleDateTimeSelector,m.messages[m.toggleDateTimeSelector]),className:"k-select"},{"aria-controls":e._popupId,"aria-label":v.provideLocalizationService(e).toLanguageString(m.toggleDateTimeSelector,m.messages[m.toggleDateTimeSelector])}),a.createElement("span",{className:"k-link k-link-date"},a.createElement("span",{className:"k-icon k-i-calendar"})))),a.createElement(T,{show:e.show,animate:null!==e._wrapper,anchor:e._wrapper,className:"k-datetime-container k-group k-reset",id:e._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},a.createElement(g.DateTimeSelector,{ref:function(t){e._dateTimeSelector=t},cancelButton:C,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:f,min:e.min,max:e.max,minTime:E,maxTime:x,focusedDate:y,format:u,calendar:N})))}));return this.props.label?a.createElement(w.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:s,editorValid:j,editorDisabled:this.props.disabled,children:F,style:{width:this.props.width}}):F},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.propTypes={className:s.string,defaultShow:s.bool,defaultValue:s.instanceOf(Date),disabled:s.bool,focusedDate:s.instanceOf(Date),format:s.oneOfType([s.string,s.shape({skeleton:s.string,pattern:s.string,date:s.oneOf(["short","medium","long","full"]),time:s.oneOf(["short","medium","long","full"]),datetime:s.oneOf(["short","medium","long","full"]),era:s.oneOf(["narrow","short","long"]),year:s.oneOf(["numeric","2-digit"]),month:s.oneOf(["numeric","2-digit","narrow","short","long"]),day:s.oneOf(["numeric","2-digit"]),weekday:s.oneOf(["narrow","short","long"]),hour:s.oneOf(["numeric","2-digit"]),hour12:s.bool,minute:s.oneOf(["numeric","2-digit"]),second:s.oneOf(["numeric","2-digit"]),timeZoneName:s.oneOf(["short","long"])})]),formatPlaceholder:s.oneOfType([s.oneOf(["wide","narrow","short","formatPattern"]),s.shape({year:s.string,month:s.string,day:s.string,hour:s.string,minute:s.string,second:s.string})]),id:s.string,ariaLabelledBy:s.string,ariaDescribedBy:s.string,min:s.instanceOf(Date),max:s.instanceOf(Date),name:s.string,popupSettings:s.shape({animate:s.bool,appendTo:s.any,popupClass:s.string}),show:s.bool,tabIndex:s.number,title:s.string,value:s.instanceOf(Date),weekNumber:s.bool,width:s.oneOfType([s.number,s.string]),validationMessage:s.string,required:s.bool,validate:s.bool,valid:s.bool,cancelButton:s.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:f.MAX_DATE,min:f.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:p.DateInput},t}(a.Component);t.DateTimePicker=k,v.registerForLocalization(k)},function(e,t,n){"use strict";var r,o=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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(5),l=n(6),u=n(21),c=n(15),p=n(38),d=n(4),h=n(3),f=n(2),m=n(8),v=n(9),g=function(e){function t(t){var n=e.call(this,t)||this;return n._calendarWrap=null,n.focus=function(e){Promise.resolve().then((function(){"time"===n.state.tab&&n._timePart&&n._timePart.focus(e);var t=n.calendarElement();"date"===n.state.tab&&t&&t.focus(e)}))},n.calendarElement=function(){return n._calendar&&n._calendar.element||n._calendarWrap&&n._calendarWrap.querySelector(".k-widget.k-calendar")},n.move=function(e){if(!("right"===e&&"time"===n.state.tab||"left"===e&&"date"===n.state.tab)){var t="left"===e?"date":"time";n.shouldFocusPart=!0,n.setState({tab:t})}},n.handleReject=function(e){n.setState({dateValue:n.props.value,timeValue:n.props.value||m.MIDNIGHT_DATE});var t=n.mergeDate(n.props.value,n.props.value||m.MIDNIGHT_DATE);if(n.props.onReject){var r={nativeEvent:e.nativeEvent,syntheticEvent:e,target:n,value:t};n.props.onReject.call(void 0,r)}},n.handleAccept=function(e,t){if(n.state.dateValue&&n.state.timeValue&&n.hasDateValue){var r=n.mergeDate(n.state.dateValue,t||n.state.timeValue);n.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:r,target:n})}},n.handleNowClick=function(e){n.setState({timeValue:v.getNow()}),n.handleAccept(e,v.getNow())},n.handleCalendarValueChange=function(e){e.syntheticEvent.stopPropagation(),n.setState({dateValue:e.value,tab:"time"}),n.shouldFocusPart=!0},n.handleTimeListContainerChange=function(e){n.setState({timeValue:e})},n.handleDateClick=function(e){e.stopPropagation(),n.move("left")},n.handleTimeClick=function(e){e.stopPropagation(),n.move("right")},n.handleKeyDown=function(e){var t=e.keyCode,r=e.altKey;switch(t){case f.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case f.Keys.left:if(!r)return;return void n.move("left");case f.Keys.right:if(!r)return;return void n.move("right");default:return}},n.handleTimePartMount=function(e){n.setState({timeValue:e})},n.state={tab:"date",dateValue:n.props.value,timeValue:n.props.value||m.MIDNIGHT_DATE},n}return o(t,e),Object.defineProperty(t.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timePart",{get:function(){return this._timePart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDateValue",{get:function(){return null!==this.state.dateValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(){this.shouldFocusPart&&this.focus({preventScroll:!0}),this.shouldFocusPart=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.cancelButton,o=t.min,h=t.max,m=t.weekNumber,v=t.focusedDate,g=t.format,y=f.classNames({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),b=f.classNames({"k-state-disabled":!this.hasDateValue},"k-time-accept k-button k-primary"),w=s.provideLocalizationService(this),k=w.toLanguageString(l.date,l.messages[l.date]),O=w.toLanguageString(l.time,l.messages[l.time]),D=w.toLanguageString(l.dateTimePickerCancel,l.messages[l.dateTimePickerCancel]),_=w.toLanguageString(l.dateTimePickerSet,l.messages[l.dateTimePickerSet]),S={min:o,max:h,weekNumber:m,focusedDate:v,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return a.createElement("div",{onKeyDown:this.handleKeyDown,className:y,tabIndex:-1},a.createElement("div",{className:"k-datetime-buttongroup"},a.createElement(u.ButtonGroup,{width:"100%"},a.createElement(u.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},k),a.createElement(u.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},O))),a.createElement("div",{className:"k-datetime-selector"},a.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?a.createElement(this.props.calendar,i({},S)):a.createElement(c.Calendar,i({ref:function(t){e._calendar=t}},S))),a.createElement("div",{className:"k-datetime-time-wrap"},a.createElement(p.TimePart,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||d.MIN_TIME,max:this.maxTime||d.MAX_TIME,steps:this.props.steps,value:this.state.timeValue,format:g,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),a.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&a.createElement("button",i({type:"button",ref:function(t){e._cancelButton=t},className:"k-button k-time-cancel",onClick:this.handleReject,title:D},{"aria-label":D}),D),a.createElement("button",i({type:"button",ref:function(t){e._acceptButton=t},className:b,onClick:this.handleAccept,title:_},{"aria-label":_}),_)))},Object.defineProperty(t.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(t.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}),t.prototype.normalizeRange=function(e,t){return h.isEqualDate(e,t||d.getToday())?e:null},t.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},t.prototype.mergeTime=function(e,t){return e&&t?d.setTime(t,e):t},t.prototype.mergeDate=function(e,t){return e?d.setTime(e||d.getToday(),t):t},t}(a.Component);t.DateTimeSelector=g,s.registerForLocalization(g)}])}));
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dateinputs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1631616500,
8
+ publishDate: 1631781061,
9
9
  version: '',
10
10
  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'
11
11
  };
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-dateinputs',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1631616500,
10
+ publishDate: 1631781061,
11
11
  version: '',
12
12
  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'
13
13
  };
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-dateinputs",["react","@progress/kendo-react-common","@progress/kendo-react-buttons","prop-types","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-react-popup","@progress/kendo-react-labels"],function(o){var a,s,l,u,c,p,d,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=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=s},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(1),o=n(12);t.isEqualRange=function(e,t){var n=e||o.EMPTY_SELECTIONRANGE,i=n.start,e=n.end,n=t||o.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return null!==i&&null!==e&&null!==t&&null!==n&&r.isEqual(i,t)&&r.isEqual(e,n)},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);function a(e){return null!=e}t.isValidRange=function(e,t){return!a(e)||!a(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 i.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&&i.getDate(t)>i.getDate(e)||n&&i.getDate(n)<i.getDate(e))},t.isInSelectionRange=function(e,t){var n=t||o.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return!(!t||!n)&&t<e&&e<n},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e&&(t&&e<t?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=a},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});var i,r,o=n(1),a=n(20),s=n(2),n=function(n){return function(e,t){e=o.cloneDate(e);return e[n](t),e}},a=[{type:a.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:a.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:a.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:a.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(i=a,function(e){return i.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t}),t.generateSnappers=(r=a,function(n,s){return r.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=o.cloneDate(e);return t.setHours.apply(t,n.map(function(e){return e(t)})),t}},t.setHours=n("setHours"),t.setMinutes=n("setMinutes"),t.setSeconds=n("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};function l(e,t,n){return{candidateValue:s.setTime(s.MIDNIGHT_DATE,e),maxValue:o.addDays(s.setTime(s.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:s.setTime(s.MIDNIGHT_DATE,t)}}t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=l(e,t,n),r=i.candidateValue,o=i.minValue,i=i.maxValue;return r<o?s.setTime(e,t):i<r?s.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;e=l(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=l(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=s.setTime(s.MIDNIGHT_DATE,e),t=s.setTime(s.MIDNIGHT_DATE,t);return e.getTime()<t.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;e=s.setTime(s.MIDNIGHT_DATE,e);return s.setTime(s.MIDNIGHT_DATE,t).getTime()<e.getHours()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.Action=i.Action;i=n(17);t.CalendarViewEnum=i.CalendarViewEnum;n=n(12);t.EMPTY_SELECTIONRANGE=n.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:1631616500,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,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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var a,m=n(3),o=n(4),s=n(1),v=n(5),l=n(51),g=n(0),y=n(35),u=n(0),c=n(10),b=n(34),p=n(2),w=n(6),d=n(8),n=n(7),n=(a=m.Component,r(D,a),D.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},D.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused&&this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)),this.setValidity()},D.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},D.prototype.render=function(){var n=this;this.props._ref&&(this.props._ref.current=this);var i=v.provideLocalizationService(this),e=f({},D.defaultProps,this.props),t=e.min,r=e.max,o=e.name,a=e.label,e=e.id,s=this.text,l=s===this.props.placeholder?"":s,u=s===this.props.placeholder?s:void 0,c=e||this._inputId,p=!this.validityStyles||this.validity.valid,d={"aria-valuemin":null===t?void 0:t.getTime(),"aria-valuemax":null===r?void 0:r.getTime(),"aria-valuetext":l};null!==this.value&&(d["aria-valuenow"]=this.value.getTime());var h=b.wrapperClasses.slice();this.props.className&&h.push(this.props.className);r=m.createElement(g.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},function(e){var t=e.onFocus,e=e.onBlur;return m.createElement("span",{style:a?void 0:{width:n.props.width},dir:n.props.dir,className:h.join(" "),onFocus:t,onBlur:e},m.createElement("span",{className:g.classNames("k-dateinput-wrap",{"k-state-disabled":n.props.disabled,"k-state-invalid":!p}),ref:function(e){n._wrapper=e}},m.createElement("input",f({role:"spinbutton",tabIndex:n.props.tabIndex,disabled:n.props.disabled,title:void 0!==n.props.title?n.props.title:s,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:c,"aria-labelledby":n.props.ariaLabelledBy,"aria-describedby":n.props.ariaDescribedBy,"aria-expanded":n.props.ariaExpanded,"aria-haspopup":n.props.ariaHasPopup,onWheel:n.wheel,onClick:n.elementClick,onInput:n.elementChange,onPaste:n.handlePaste,onKeyDown:n.elementKeyDown,onChange:g.noop,value:l,placeholder:u,name:o},d,{ref:function(e){return n._element=e}})),n.props.children,n.props.spinners&&m.createElement("span",{className:"k-select",onMouseDown:n.spinnersMouseDown},m.createElement("span",{className:"k-link k-link-increase","aria-label":i.toLanguageString(w.increaseValue,w.messages[w.increaseValue]),title:i.toLanguageString(w.increaseValue,w.messages[w.increaseValue]),onClick:n.increasePart},m.createElement("span",{className:"k-icon k-i-arrow-n"})),m.createElement("span",{className:"k-link k-link-decrease","aria-label":i.toLanguageString(w.decreaseValue,w.messages[w.decreaseValue]),title:i.toLanguageString(w.decreaseValue,w.messages[w.decreaseValue]),onClick:n.decreasePart},m.createElement("span",{className:"k-icon k-i-arrow-s"})))))});return a?m.createElement(y.FloatingLabel,{label:a,editorId:c,editorValue:s,editorValid:p,editorDisabled:this.props.disabled,children:r,style:{width:this.props.width}}):r},Object.defineProperty(D.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"name",{get:function(){return this.props.name},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}),Object.defineProperty(D.prototype,"text",{get:function(){var e=f({},D.defaultProps,this.props),t=e.formatPlaceholder,n=e.format,i=e.value,r=e.defaultValue;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);t=this.kendoDate.getTextAndFormat(),i=t.text,t=t.format;return this.currentFormat=t,null===e.placeholder||this.state.focused||this.kendoDate.hasValue()?i:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"validity",{get:function(){var e=b.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(D.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:D.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:D.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),D.prototype.intl=function(){return v.provideIntlService(this)},Object.defineProperty(D.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}),D.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)})},D.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},D.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}},D.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},D.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})}}},D.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),e=((this.props.steps||{})[r]||1)*e,this.kendoDate.modifyPart(i,e),this.triggerChange(t,n))},D.propTypes={value:o.instanceOf(Date),format:o.oneOfType([o.string,o.shape({skeleton:o.string,pattern:o.string,date:o.oneOf(["short","medium","long","full"]),time:o.oneOf(["short","medium","long","full"]),datetime:o.oneOf(["short","medium","long","full"]),era:o.oneOf(["narrow","short","long"]),year:o.oneOf(["numeric","2-digit"]),month:o.oneOf(["numeric","2-digit","narrow","short","long"]),day:o.oneOf(["numeric","2-digit"]),weekday:o.oneOf(["narrow","short","long"]),hour:o.oneOf(["numeric","2-digit"]),hour12:o.bool,minute:o.oneOf(["numeric","2-digit"]),second:o.oneOf(["numeric","2-digit"]),timeZoneName:o.oneOf(["short","long"])})]),formatPlaceholder:o.oneOfType([o.oneOf(["wide","narrow","short","formatPattern"]),o.shape({year:o.string,month:o.string,day:o.string,hour:o.string,minute:o.string,second:o.string})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,title:o.string,steps:o.shape({year:o.number,month:o.number,day:o.number,hour:o.number,minute:o.number,second:o.number}),min:o.instanceOf(Date),max:o.instanceOf(Date),disabled:o.bool,spinners:o.bool,name:o.string,dir:o.string,label:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,ariaExpanded:o.oneOfType([o.bool,o.string]),onChange:o.func,validationMessage:o.string,required:o.bool,validate:o.bool,valid:o.bool},D.defaultProps={format:b.defaultFormat,formatPlaceholder:b.defaultFormatPlaceholder,spinners:!1,disabled:!1,max:s.cloneDate(p.MAX_DATE),min:s.cloneDate(p.MIN_DATE),minTime:s.cloneDate(n.MIN_TIME),maxTime:s.cloneDate(n.MAX_TIME),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},D);function D(e){var o=a.call(this,e)||this;return o.kendoDate=null,o.paste=!1,o._element=null,o._wrapper=null,o._inputId=g.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||D.defaultProps.validationMessage)},o.updateOnPaste=function(e){var t,n;o.element&&o.kendoDate&&(t=v.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;o.currentFormat=t;var t=o.value,i=b.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-state-focused"),o.setState({focused:!0})},o.elementOnBlur=function(e){o.wrapper&&o.wrapper.classList.remove("k-state-focused"),o.setState({focused:!1})},u.validatePackage(c.packageMetadata),o.state={focused:!1},o}t.DateInput=n,v.registerForIntl(n),v.registerForLocalization(n)},function(e,t){e.exports=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)}),o=this&&this.__assign||function(){return(o=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});function a(e){return e?e.virtualization:null}function s(e,t,n,i){return void 0===e&&(e=O.defaultProps.min),void 0===t&&(t=O.defaultProps.max),void 0!==i?null!==i&&w.isInRange(d.getDate(i),e,t)?i:null:null!==n&&w.isInRange(d.getDate(n),e,t)?n:null}var l,u=n(3),c=n(4),p=n(0),d=n(1),h=n(5),f=n(0),m=n(10),v=n(41),g=n(50),y=n(7),b=n(9),w=n(2),D=n(18),O=(l=u.Component,r(k,l),Object.defineProperty(k.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(k.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(k.prototype,"min",{get:function(){return d.getDate((void 0!==this.props.min?this.props:k.defaultProps).min)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"max",{get:function(){return d.getDate((void 0!==this.props.max?this.props:k.defaultProps).max)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"bottomView",{get:function(){return b.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:k.defaultProps).bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"topView",{get:function(){return b.CalendarViewEnum[(void 0!==this.props.topView?this.props:k.defaultProps).topView]},enumerable:!0,configurable:!0}),k.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new D.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())})},k.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},k.prototype.render=function(){var t=this;this.props._ref&&this.props._ref(this);var e=null!==this.value&&null!==this.oldValue?!d.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,n=w.viewInRange(this.state.activeView,b.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:k.defaultProps).bottomView],b.CalendarViewEnum[(void 0!==this.props.topView?this.props:k.defaultProps).topView]),i=s(this.min,this.max,this.value,this.value),r=i?d.getDate(i):null;this.focusedDate=d.getDate(w.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);i=p.classNames("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),n={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},r=[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(v.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",o({},n,{ref:function(e){t._element=e},className:i,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}),r)},k.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&&b.CalendarViewEnum[i]<b.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&&b.CalendarViewEnum[i]>b.CalendarViewEnum[e]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},k.defaultProps={disabled:!1,min:y.MIN_DATE,max:y.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},k);function k(e){var r=l.call(this,e)||this;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(a(r.Navigation),a(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;n=r.props.onChange;n&&(t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r},n.call(void 0,t)),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=w.dateInRange(r.focusedDate,r.min,r.max),a(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=w.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})},f.validatePackage(m.packageMetadata);var t=s(r.min,r.max,r.props.defaultValue||k.defaultProps.defaultValue,r.props.value);return r.state={value:t,activeView:w.viewInRange(b.CalendarViewEnum[e.defaultActiveView],r.bottomView,r.topView),focusedDate:w.dateInRange(e.focusedDate||t||w.getToday(),r.min,r.max)},r.dom=new D.DOMService,r.bus=new D.BusViewService(r.handleViewChange),r.navigation=new D.NavigationService(r.bus),r.oldValue=t,r}t.Calendar=O,h.registerForIntl(O)},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=n(3),s=n(4),l=n(0),u=n(42);(n=o=t.ScrollDirection||(t.ScrollDirection={}))[n.Backward=0]="Backward",n[n.Forward=1]="Forward";var c,p=((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),s=(c=a.Component,r(f,c),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;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var e=""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:e+"px"}:{width:e+"px"},i=l.classNames("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),e=l.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return a.createElement("div",{ref:function(e){t.scrollContainer=e},onScroll:this.handleScroll,className:i,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,a.createElement("div",{style:n,className:e}))},f.propTypes={bottomOffset:s.number.isRequired,className:s.string,direction:s.oneOf(["horizontal","vertical"]),forceScroll:s.bool,itemHeight:s.number,itemWidth:s.number,maxScrollDifference:s.number,onScroll:s.func,onScrollAction:s.func,scrollDuration:s.number,scrollOffsetSize:s.number,skip:s.number.isRequired,tabIndex:s.number,take:s.number.isRequired,topOffset:s.number.isRequired,total:s.number.isRequired,role:s.string},f.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},f);function f(e){var l=c.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),i=l.rowHeightService.offset(e),t=l.getContainerScrollDirection(i),e=l.scrollRange(i,t),n=e.start,i=e.end,n!==i&&(e=l.scrollStep(n,i),r=p[t](e),o=d[t](i),a=h[t](r(i)),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(),r=t===o.Backward?1:-1,t=(t=l.props.maxScrollDifference,Math.min(Math.abs(e-n),t)),e=Math.min(e,i);return{start:Math.min(Math.max(e+r*t,0),i),end:e}},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 u.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&&(i=e.target,l.scrollerService.onScroll({scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,offsetHeight:i.offsetHeight,offsetWidth:i.offsetWidth}),t=l.rowHeightService.index(l.containerScrollPosition-l.props.topOffset),n=l.props.onScrollAction,i={index:t,target:i,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 u.ScrollerService(l.handleScrollAction,l.handlePageAction),l}t.Virtualization=s},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);t.BusViewService=i.BusViewService;i=n(25);t.CenturyViewService=i.CenturyViewService;i=n(26);t.DecadeViewService=i.DecadeViewService;i=n(46);t.DOMService=i.DOMService;i=n(27);t.MonthViewService=i.MonthViewService;i=n(47);t.NavigationService=i.NavigationService;i=n(48);t.ScrollSyncService=i.ScrollSyncService;i=n(49);t.WeekNamesService=i.WeekNamesService;n=n(28);t.YearViewService=n.YearViewService},function(e,t){e.exports=l},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)};Object.defineProperty(n,"__esModule",{value:!0});var r=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";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)}),o=this&&this.__assign||function(){return(o=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});function a(e){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")}var s,l=n(3),u=n(4),c=n(1),p=n(5),d=n(23),h=n(24),f=n(9),m=n(2),v=n(18),u=(s=l.Component,r(g,s),Object.defineProperty(g.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isMonthView",{get:function(){return this.props.activeView===f.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===f.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"selectedDate",{get:function(){return(void 0!==this.props.selectedDate?this.props:g.defaultProps).selectedDate},enumerable:!0,configurable:!0}),g.prototype.render=function(){var n=this;this.intl=p.provideIntlService(this),this.weekService=new v.WeekNamesService(this.intl);var e=this.weekService.getWeekNames(this.weekNumber),t=this.props.service.rowLength(this.weekNumber),i=this.props.service.title(this.props.viewDate),r=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))})))},g.prototype.getWeekNumber=function(e){return this.weekNumber?c.weekInYear(e,this.intl.firstDay()):null},g.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},g.defaultProps={direction:"vertical",selectedDate:m.getToday(),showWeekNumbers:!1},g);function g(){var i=null!==s&&s.apply(this,arguments)||this;return i.buildWeekNumber=function(e,t){if(!i.firstDate(e))return a("week-cell-"+t);var n=i.firstDate(e),t=i.getWeekNumber(n),e="kendo-react-calendar-week-cell-"+t,n={className:"k-alt",value:t,firstDate:n};return i.props.weekCell?l.createElement(i.props.weekCell,o({},n,{key:e}),t):l.createElement(h.CalendarWeekCell,o({},n,{key:e}),t)},i.buildRow=function(e){return e.map(function(e,t){if(!e)return a(t);var n={"aria-selected":e.isSelected},t="kendo-react-calendar-cell-"+e.value.getTime(),n=o({},n,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,o({},n,{key:t}),e.formattedValue):l.createElement(d.CalendarCell,o({},n,{key:t}),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&&(t={value:c.cloneDate(e),target:i,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,t))},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=u,p.registerForIntl(u)},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)}),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};Object.defineProperty(t,"__esModule",{value:!0});var o,v=n(3),g=n(0),r=(o=v.Component,r(a,o),a.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,i=m(t,["value"]),t=e.value,e=m(e,["value"]);return!((!n||!t||n.getTime()===t.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}}(i,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,d=(e.view,e.value,m(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),h="end"===this.props.activeRangeEnd&&s,e="start"===this.props.activeRangeEnd&&o,t=g.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-state-active":e||h,"k-state-pending-focus":i,"k-state-selected":r||o||s,"k-today":c,"k-weekend":n,"k-state-disabled":p},t);return v.createElement("td",f({},d,{className:t,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),v.createElement("span",{className:"k-link"},this.props.children))},a);function a(){var i=null!==o&&o.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=r},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)}),o=this&&this.__assign||function(){return(o=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)},a=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};Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(3),u=n(0),r=(s=l.Component,r(c,s),c.prototype.render=function(){var e=this.props,t=e.className,e=(e.firstDate,a(e,["className","firstDate"]));return l.createElement("td",o({className:u.classNames("k-calendar-td",t)},e),this.props.children)},c);function c(){return null!==s&&s.apply(this,arguments)||this}t.CalendarWeekCell=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),i=n(9),y=n(2),r=[[]],o=((n={})[i.Action.Left]=function(e){return g.addDecades(e,-1)},n[i.Action.Up]=function(e){return g.addDecades(e,-5)},n[i.Action.Right]=function(e){return g.addDecades(e,1)},n[i.Action.Down]=function(e){return g.addDecades(e,5)},n[i.Action.PrevView]=function(e){return g.addCenturies(e,-1)},n[i.Action.NextView]=function(e){return g.addCenturies(e,1)},n[i.Action.FirstInView]=function(e){return g.firstDecadeOfCentury(e)},n[i.Action.LastInView]=function(e){return g.lastDecadeOfCentury(e)},n),n=(a.prototype.addToDate=function(e,t){return g.addCenturies(e,t)},a.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return g.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,e=e.viewDate;if(!e)return r;var n=y.range(0,5),f=g.firstDecadeOfCentury(e),m=g.lastDecadeOfCentury(e),v=y.getToday();return y.range(0,2).map(function(e){var o=g.addDecades(f,5*e);return n.map(function(e){var t=a.normalize(g.addDecades(o,e),p,c),n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&y.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):y.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:a.value(t),id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isWeekend:!1,isInRange:y.isInRange(t,p,c),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&a.isEqual(t,m),isRangeSplitStart:r&&a.isEqual(t,f),isToday:a.isEqual(t,v),title:a.cellTitle(t),value:t}})})},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)&&g.firstYearOfDecade(e).getFullYear()===g.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=g.firstYearOfDecade(e).getFullYear(),t=!t||g.firstYearOfDecade(t).getFullYear()<=e,n=!n||e<=g.firstYearOfDecade(n).getFullYear();return t&&n},a.prototype.isInSameView=function(e,t){return 0===g.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 g.firstYearOfDecade(e).getFullYear().toString()},a.prototype.navigationTitle=function(e){return e?g.firstDecadeOfCentury(e).getFullYear().toString():""},a.prototype.title=function(e){return e?g.firstDecadeOfCentury(e).getFullYear()+" - "+g.lastDecadeOfCentury(e).getFullYear():""},a.prototype.rowLength=function(e){return 5},a.prototype.skip=function(e,t){return g.durationInCenturies(t,e)},a.prototype.total=function(e,t){return g.durationInCenturies(e,t)+1},a.prototype.value=function(e){return e?g.firstYearOfDecade(e).getFullYear().toString():""},a.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),g.durationInCenturies(e,t)<n?g.addCenturies(e,-1):e},a.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?g.cloneDate(t):n<e&&this.isEqual(e,n)?g.cloneDate(n):e},a);function a(){}t.CenturyViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),i=n(11),r=n(12),y=n(2),o=[[]],a=((n={})[i.Action.Left]=function(e){return g.addYears(e,-1)},n[i.Action.Up]=function(e){return g.addYears(e,-5)},n[i.Action.Right]=function(e){return g.addYears(e,1)},n[i.Action.Down]=function(e){return g.addYears(e,5)},n[i.Action.PrevView]=function(e){return g.addDecades(e,-1)},n[i.Action.NextView]=function(e){return g.addDecades(e,1)},n[i.Action.FirstInView]=function(e){return g.firstYearOfDecade(e)},n[i.Action.LastInView]=function(e){return g.lastYearOfDecade(e)},n),n=(s.prototype.addToDate=function(e,t){return g.addDecades(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return g.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,e=e.viewDate;if(!e)return o;var n=y.range(0,5),f=g.firstYearOfDecade(e),m=g.lastYearOfDecade(e),v=y.getToday();return y.range(0,2).map(function(e){var o=g.addYears(f,5*e);return n.map(function(e){var t=a.normalize(g.addYears(o,e),p,c),n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&y.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):y.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:a.value(t),id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isWeekend:!1,isInRange:y.isInRange(t,p,c),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&a.isEqual(t,m),isRangeSplitStart:r&&a.isEqual(t,f),isToday:a.isEqual(t,v),title:a.cellTitle(t),value:t}})})},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,n=!n||e<=n.getFullYear();return t&&n},s.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},s.prototype.isInSameView=function(e,t){return 0===g.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?g.firstYearOfDecade(e).getFullYear().toString():""},s.prototype.title=function(e){return e?g.firstYearOfDecade(e).getFullYear()+" - "+g.lastYearOfDecade(e).getFullYear():""},s.prototype.rowLength=function(e){return 5},s.prototype.skip=function(e,t){return g.durationInDecades(t,e)},s.prototype.total=function(e,t){return g.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),g.durationInDecades(e,t)<n?g.addDecades(e,-1):e},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?g.cloneDate(t):n<e&&this.isEqual(e,n)?g.cloneDate(n):e},s);function s(){}t.DecadeViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),i=n(11),r=n(12),y=n(2),o=[[]],a=((n={})[i.Action.Left]=function(e){return g.addDays(e,-1)},n[i.Action.Up]=function(e){return g.addWeeks(e,-1)},n[i.Action.Right]=function(e){return g.addDays(e,1)},n[i.Action.Down]=function(e){return g.addWeeks(e,1)},n[i.Action.PrevView]=function(e){return g.addMonths(e,-1)},n[i.Action.NextView]=function(e){return g.addMonths(e,1)},n[i.Action.FirstInView]=function(e){return g.firstDayOfMonth(e)},n[i.Action.LastInView]=function(e){return g.lastDayOfMonth(e)},n),n=(s.prototype.addToDate=function(e,t){return g.addMonths(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return g.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,e=e.viewDate;if(!e)return o;var f=g.firstDayOfMonth(e),m=g.lastDayOfMonth(e),n=g.dayOfWeek(f,this.intl.firstDay(),-1),i=y.range(0,7),v=y.getToday();return y.range(0,6).map(function(e){var o=g.addDays(n,7*e);return i.map(function(e){var t=a.normalize(g.addDays(o,e),p,c);if(t<f||m<t)return null;var n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&y.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):y.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:a.value(t),id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isInRange:y.isInRange(t,p,c),isWeekend:a.isWeekend(t),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitStart:r&&a.isEqual(t,f),isRangeSplitEnd:r&&a.isEqual(t,m),isToday:a.isEqual(t,v),title:a.cellTitle(t),value:t}})})},s.prototype.isEqual=function(e,t){return!(!e||!t)&&g.getDate(e).getTime()===g.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&&g.firstDayOfMonth(t[0])<=e&&e<=g.lastDayOfMonth(t[t.length-1])},s.prototype.isInRange=function(e,t,n){e=g.getDate(e),t=!t||g.getDate(t)<=e,n=!n||e<=g.getDate(n);return t&&n},s.prototype.isInSameView=function(e,t){return 0===g.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 g.durationInMonths(t,e)},s.prototype.total=function(e,t){return g.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),g.durationInMonths(e,t)<n?g.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)?g.getDate(t):n<e&&this.isEqual(e,n)?g.getDate(n):e},s.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},s);function s(e){this.intl=e}t.MonthViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b=n(1),i=n(11),w=n(2),r=n(12),o=n(1),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),n=(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,e=e.viewDate;if(!e)return D;var f=this.abbrMonthNames(),m=b.firstMonthOfYear(e),v=b.lastMonthOfYear(e),g=m.getFullYear(),n=w.range(0,5),y=w.getToday();return w.range(0,3).map(function(e){var o=b.addMonths(m,5*e);return n.map(function(e){var t=a.normalize(b.addMonths(o,e),p,c);if(g<t.getFullYear())return null;var n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&w.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):w.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:f[t.getMonth()],id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isInRange:w.isInRange(t,p,c),isWeekend:!1,isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&a.isEqual(t,v),isRangeSplitStart:r&&a.isEqual(t,m),isToday:a.isEqual(t,y),title:a.cellTitle(t),value:t}})})},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,n=!n||e<=b.createDate(n.getFullYear(),n.getMonth(),1);return t&&n},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 5},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},s);function s(e){this._intl=e}t.YearViewService=n},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)}),o=this&&this.__assign||function(){return(o=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 a,s=n(3),l=n(4),u=n(5),c=n(0),p=n(30),n=n(7),n=(a=s.Component,r(d,a),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},e=this.props.headerTitle?s.createElement(this.props.headerTitle,o({},t),e):s.createElement(p.CalendarHeaderTitle,o({},t),e);return s.createElement("div",{className:"k-calendar-header"},e,s.createElement("span",{className:"k-spacer"}),s.createElement("span",{className:"k-calendar-nav"},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!==a&&a.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=n,u.registerForLocalization(n)},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)}),o=this&&this.__assign||function(){return(o=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)},a=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};Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(19),u=n(3),r=(s=u.PureComponent,r(c,s),c.prototype.render=function(){var e=this.props,e=(e.view,a(e,["view"]));return u.createElement(l.Button,o({type:"button",look:"flat"},e),this.props.children)},c);function c(){return null!==s&&s.apply(this,arguments)||this}t.CalendarHeaderTitle=r},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=n(3),s=n(4),l=n(5),u=n(0),c=n(1),p=n(6),d=n(2),n=n(7),n=(o=a.Component,r(h,o),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-state-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!==o&&o.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=n,l.registerForLocalization(n)},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)}),o=this&&this.__assign||function(){return(o=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)},a=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};Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(3),u=n(0),r=(s=l.Component,r(c,s),c.prototype.render=function(){var e=this.props,t=e.isRangeStart,e=(e.value,e.text,a(e,["isRangeStart","value","text"]));return l.createElement("li",o({},e,{onClick:this.handleClick}),l.createElement("span",{className:u.classNames({"k-calendar-navigation-marker":t})},this.props.children))},c);function c(){var i=null!==s&&s.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=r},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),n=n.substring(0,i),a=[];if(o===n&&0<i)return a.push([t[i-1],n[i-1]]),a;if(0===o.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){var s="";1===n.length&&a.push([t[0],n[0]]);for(var l=n.length;l<o.length;l++)t[l]!==s&&"_"!==t[l]&&(s=t[l],a.push([s,""]));return a}if(0!==n.indexOf(o)&&"_"!==t[i-1])return" "===n[n.length-1]||n[n.length-1]===r?[[t[i-1],"_"]]:[[t[i-1],n[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,n[i-1]]]},t.dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},t.isInRange=function(e,t,n){return null===e||!(t&&e<t||n&&n<e)},t.invalidClasses=["k-state-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(0);t.ToggleButton=i.forwardRef(function(e,t){var n=r.classNames("k-select",e.className);return i.createElement("a",{ref:t,id:e.id,role:"button",style:e.style,className:n,tabIndex:e.tabIndex,title:e.title,"aria-label":e.title,onMouseDown:e.onMouseDown,onClick:e.onClick,onMouseUp:e.onMouseUp},e.children)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.PickerWrap=r.forwardRef(function(e,t){var n=e._ref,i=r.useRef(null);r.useImperativeHandle(t,function(){return i.current}),r.useImperativeHandle(n,function(){return i.current});n=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:n,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,l=n(3),a=n(4),u=n(1),c=n(0),p=n(5),d=n(6),h=n(56),f=n(2),m=n(20),v=n(8),g=new RegExp(m.TIME_PART.hour+"|"+m.TIME_PART.minute+"|"+m.TIME_PART.second+"|"+m.TIME_PART.dayperiod+"|literal");(m=o=t.Direction||(t.Direction={}))[m.Left=0]="Left",m[m.Right=1]="Right";var y,a=(y=l.Component,r(b,y),Object.defineProperty(b.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return v.timeInRange(this.snapTime(u.cloneDate(this.props.value||f.MIDNIGHT_DATE)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"intl",{get:function(){return p.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){return this.snapTime(this.props.min||b.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){return this.snapTime(this.props.max||b.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"steps",{get:function(){return this.props.steps||b.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"boundRange",{get:function(){return(void 0!==this.props.boundRange?this.props:b.defaultProps).boundRange},enumerable:!0,configurable:!0}),b.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},b.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},b.prototype.render=function(){var n=this,e=this.props,t=e.format,i=e.smoothScroll,r=e.onNowClick,o=e.className,a=e.disabled;this.snapTime=v.snapTime(v.generateSnappers(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(t||b.defaultProps.format).filter(this.timeFormatFilter);e=c.classNames({"k-state-disabled":a},o,"k-time-part");this.timeLists=[];t=p.provideLocalizationService(this),o=t.toLanguageString(d.selectNow,d.messages[d.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("button",s({type:"button",ref:function(e){n._nowButton=e},className:"k-button k-flat k-time-now",title:o},{"aria-label":o},{onClick:r,tabIndex:a?-1:0}),t.toLanguageString(d.now,d.messages[d.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:c.classNames("k-time-list-wrapper",{"k-state-focused":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(h.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})):l.createElement("div",{key:t,className:"k-time-separator"},e.pattern)})))},b.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},b.prototype.hasActiveButton=function(){return document.activeElement===this._nowButton},b.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)},b.propTypes={cancelButton:a.bool,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)},b.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:f.MIN_TIME,max:f.MAX_TIME,steps:{},boundRange:!1},b);function b(e){var r=y.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){t=1<=t&&n[t-1];return t&&"literal"===e.type?g.test(t.type||""):g.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 c.Keys.left:return e.preventDefault(),void r.focusList(o.Left);case c.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||b.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}t.TimePart=a,p.registerForIntl(a),p.registerForLocalization(a)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});function m(e,t,n){return void 0===e&&(e=u.defaultProps.min),void 0===t&&(t=u.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&P.isInRange(O.getDate(n),e,t)?O.getDate(n):null}function v(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 P.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 y(e,t,n){return e||t&&t[0]||n&&n.start}var s,b=n(3),o=n(4),w=n(5),D=n(0),O=n(1),k=n(19),S=n(9),_=n(29),a=n(7),I=n(6),l=n(18),P=n(2),E=n(64),T=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 P.isInRange(P.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=m(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||E.HorizontalViewList.defaultProps.views},c.prototype.render=function(){var t=this;this.props._ref&&this.props._ref(this),this.intl=w.provideIntlService(this),this.localization=w.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView);var e=P.viewInRange(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(e,this.intl),this.selectedDate=m(this.min,this.max,this.value),this.selectedMultiple=v(this.min,this.max,this.value),this.selectedRange=g(this.value);var n=y(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=P.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var i=D.classNames("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),r=this.rangeWithFocused(this.selectedRange,this.focusedDate),o={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(I.prevView,I.messages[I.prevView]),s=this.localization.toLanguageString(I.nextView,I.messages[I.nextView]),l=!this.canNavigate(S.Action.PrevView),u=!this.canNavigate(S.Action.NextView),c={"aria-disabled":l},p={"aria-disabled":u},d=this.lastView!==e,h=this.dates&&this.service.isInArray(this.focusedDate,this.dates),n=this.lastViewsCount!==this.props.views;h&&!d&&!n||(this.dates=this.service.datesList(this.focusedDate,this.props.views||E.HorizontalViewList.defaultProps.views));n=O.cloneDate(this.dates&&this.dates[0]?this.dates[0]:P.getToday());return b.createElement("div",f({ref:function(e){t._element=e},className:i,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},o),b.createElement(_.Header,{key:".kendo.calendar.header."+n.getTime(),activeView:e,currentDate:n,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,f({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:a,disabled:l,onClick:this.handlePrevButtonClick},c)),b.createElement(T.TodayCommand,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),b.createElement(k.Button,f({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:s,disabled:u,onClick:this.handleNextButtonClick},p)))}),b.createElement(E.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:r,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}))},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([o.instanceOf(Date),o.arrayOf(o.instanceOf(Date)),o.shape({start:o.instanceOf(Date),end: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([o.instanceOf(Date),o.arrayOf(o.instanceOf(Date)),o.shape({start:o.instanceOf(Date),end:o.instanceOf(Date)})]),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 P.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=P.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.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=m(a.min,a.max,t),i=v(a.min,a.max,t),r=g(t),o=y(n,i,r),i=P.viewInRange(S.CalendarViewEnum[e.defaultActiveView],a.bottomView,a.topView),o=P.dateInRange(e.focusedDate||o||P.getToday(),a.min,a.max);return a.state={value:t,activeView:i,focusedDate:o},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=i,a.lastViewsCount=a.props.views||E.HorizontalViewList.defaultProps.views,a}t.MultiViewCalendar=u,w.registerForIntl(u),w.registerForLocalization(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(15);t.Calendar=i.Calendar;i=n(13);t.DateInput=i.DateInput;i=n(53);t.DatePicker=i.DatePicker;i=n(54);t.TimePicker=i.TimePicker;i=n(39);t.MultiViewCalendar=i.MultiViewCalendar;i=n(65);t.DateRangePicker=i.DateRangePicker;i=n(23);t.CalendarCell=i.CalendarCell;i=n(24);t.CalendarWeekCell=i.CalendarWeekCell;i=n(30);t.CalendarHeaderTitle=i.CalendarHeaderTitle;i=n(32);t.CalendarNavigationItem=i.CalendarNavigationItem;i=n(9);t.CalendarViewEnum=i.CalendarViewEnum;i=n(66);t.DateTimePicker=i.DateTimePicker;i=n(36);t.ToggleButton=i.ToggleButton;n=n(37);t.PickerWrap=n.PickerWrap,function(e){for(var t in e)o(t,e[t])}(t)},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,u=n(3),a=n(4),c=n(0),p=n(1),s=n(5),d=n(16),l=n(22),h=n(29),f=n(2),m=n(9),v=n(31),a=(o=u.Component,r(g,o),Object.defineProperty(g.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(g.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(g.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===m.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"take",{get:function(){return(void 0!==this.props.take?this.props:g.defaultProps).take},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"todayIsInRange",{get:function(){return f.isInRange(f.getToday(),p.getDate(this.props.min),p.getDate(this.props.max))},enumerable:!0,configurable:!0}),g.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},g.prototype.render=function(){var t=this;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=f.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),o=this.getTake(i,r),a=this.props.service.addToDate(this.props.min,i),s=this.props.service.addToDate(this.props.min,this.state.index),l=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),e=this.props.activeView!==this.lastView;this.animateToIndex=!e,!e&&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;n=c.classNames("k-calendar-view",{"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}),o=this.buildDates(l,this.props.service.datesList(a,o)),o=u.createElement(u.Fragment,null,u.createElement(h.Header,{key:"calendar-view-list-header",currentDate:s,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(v.TodayCommand,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===m.CalendarViewEnum.month&&this.buildMonthView(l,this.weekNames),u.createElement(d.Virtualization,{key:"calendar-view-list-content",skip:i,take:this.take,total:r,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:o}));return u.createElement("div",{ref:function(e){t._element=e},className:n},this.props.dom.didCalculate?o:null)},g.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},g.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},g);function g(e){var i=o.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-state-focused"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-state-focused"))&&e.classList.remove("k-state-focused"),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&&(n="translateY("+n.offset+"px)",i.table.style.transform=n)},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&&(t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:p.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,t))},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=a,s.registerForIntl(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43);t.RowHeightService=i.RowHeightService;n=n(44);t.PageAction=n.PageAction,t.ScrollAction=n.ScrollAction,t.ScrollerService=n.ScrollerService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(r.prototype.height=function(e){return this.heights[e]},r.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},r.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},r.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},r.prototype.offset=function(e){return this.offsets[e]},r.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},r.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})))},r);function r(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)}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}t.ScrollAction=l;function u(e){this.skip=e}t.PageAction=u;var i=(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;r=this.rowsForHeight(r),r=s(t-r);this.onScrollAction(new l(this.rowOffset(r))),this.onPageAction(new u(r))},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)),t=this.rowHeightService.index(s(n+t-this.bottomOffset)),!i&&t>=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&&(i=Math.floor(.3*this.take),this.firstLoaded=s(e-i),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))},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(17),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),n=(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)},u);function u(e){this.bottom=s.CalendarViewEnum.month,this.top=s.CalendarViewEnum.century,this.onViewChanged=e}t.BusViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),k=n(2),S=n(0),n=(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,v,g,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-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},v=function(e,t){return new Array(e).fill("1").map(t)},g=function(e){return l(e,"k-content 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,e=f([d([p([c("1")])].concat(v(t,function(){return p(v(n,function(e){return u('<span class="k-link">'+e+"</span>")}))})))]),t=i,o=l(r?[m(),f([h([p([c("MO")])])],"k-calendar-weekdays"),g([e,e])]:[m(),g([e,e])],t,{left:"-10000px",position:"absolute"})),o):null;var e,t,n}})({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!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",!(r=function(e){return e.querySelector(".k-scrollable")})),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([g([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)},r);function r(){this.didCalculate=!1}t.DOMService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),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},n=(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},r);function r(e){this.bus=e}t.NavigationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(r.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})},r.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)))}},r.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},r.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},r.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},r);function r(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}t.ScrollSyncService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),n=(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},r);function r(e){this.intl=e}t.WeekNamesService=n},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)}),o=this&&this.__assign||function(){return(o=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 a,s=n(3),l=n(4),u=n(1),c=n(32),p=n(2),d=n(16),l=(a=s.Component,r(h,a),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;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=p.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),o=this.getTake(i,r),e=this.props.service.addToDate(this.props.min,i),o=this.props.service.datesList(e,o);this.props.activeView===this.lastView&&u.isEqual(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));o=s.createElement(d.Virtualization,{skip:i,take:this.take,total:r,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?o: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=a.call(this,e)||this;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(),n={text:t,value:e,isRangeStart:n,view:r.props.activeView,onClick:r.handleDateChange};return r.props.navigationItem?s.createElement(r.props.navigationItem,o({},n,{key:i}),t):s.createElement(c.CalendarNavigationItem,o({},n,{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&&(t={value:u.cloneDate(e),target:r,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,t))},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&&(t="translateY("+t.offset+"px)",r.list.style.transform=t)},r.lastView=r.props.activeView,r.lastFocus=r.props.focusedDate;var t=r.props.service.skip(r.props.focusedDate,r.props.min),e=r.props.service.total(r.props.min,r.props.max);return r.state={skip:0<t-r.getTake(t,e)?t:0},r}t.Navigation=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);t.KendoDate=i.KendoDate;n=n(33);t.Mask=n.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(1),s=n(33),i=n(34),n=(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){t=this.partPattern(e,t);return"month"===t.type&&t.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})))},r);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()}t.KendoDate=n},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)}),C=this&&this.__assign||function(){return(C=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};Object.defineProperty(t,"__esModule",{value:!0});var o,x=n(3),a=n(4),s=n(14),V=n(1),N=n(0),l=n(0),u=n(10),c=n(13),p=n(15),d=n(2),h=n(2),R=n(6),A=n(5),f=n(36),m=n(37),j=n(21),m=(o=x.Component,r(v,o),Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(v.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?V.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(v.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(v.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:v.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:v.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dateInputComp",{get:function(){return this.props.dateInput||v.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||v.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"calendarComp",{get:function(){return this.props.calendar||v.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"popupComp",{get:function(){return this.props.popup||v.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||v.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"validity",{get:function(){var e=h.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(v.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:v.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:v.defaultProps).required},enumerable:!0,configurable:!0}),v.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},v.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},v.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},v.prototype.render=function(){var n=this,e=this.props,t=e.disabled,i=e.tabIndex,r=e.title,o=e.id,a=e.format,s=e.formatPlaceholder,l=e.min,u=e.max,c=e.weekNumber,p=e.focusedDate,d=e.className,h=e.width,f=e.name,m=e.validationMessage,v=e.required,g=e.validityStyles,y=e.ariaLabelledBy,b=e.ariaDescribedBy,w=this.props.popupSettings,D=w.popupClass,O=M(w,["popupClass"]),k=this.show,S=this.value,e=S&&V.getDate(S),w=!this.validityStyles||this.validity.valid,_=N.classNames("k-widget k-datepicker",d),I=N.classNames("k-picker-wrap",{"k-state-invalid":!w,"k-state-disabled":t,"k-state-focused":this.state.focused}),D=N.classNames("k-calendar-container k-group k-reset",D),P={disabled:t,format:a,formatPlaceholder:s,id:o,ariaLabelledBy:y,ariaDescribedBy:b,max:u,min:l,name:f,onChange:this.handleInputValueChange,required:v,tabIndex:k?-1:i,title:r,valid:this.validity.valid,validationMessage:m,validityStyles:g,value:S,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},E=C({show:k,anchor:this._wrapper||this._element,className:D,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},O),T={disabled:t,value:e,min:l,max:u,weekNumber:c,focusedDate:p,onChange:this.handleCalendarValueChange},p=x.createElement(N.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t=e.onFocus,e=e.onBlur;return x.createElement("span",{role:"group","aria-expanded":n.show,ref:function(e){n._element=e},className:_,onKeyDown:n.handleKeyDown,style:{width:h},onFocus:t,onBlur:e},x.createElement(n.pickerWrapComp,{_ref:function(e){n._wrapper=e},className:I},x.createElement(n.dateInputComp,C({_ref:n._dateInput},P)),x.createElement(n.toggleButtonComp,{onMouseDown:n.handleIconMouseDown,onClick:n.handleIconClick,title:A.provideLocalizationService(n).toLanguageString(R.toggleCalendar,R.messages[R.toggleCalendar]),className:"k-select"},x.createElement("span",{className:"k-icon k-i-calendar"}))),x.createElement(n.popupComp,C({},E),x.createElement(n.calendarComp,C({_ref:n.setCalendarRef},T))))});return this.props.label?x.createElement(j.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:o,editorValid:w,editorDisabled:this.props.disabled,children:p,style:{width:this.props.width}}):p},v.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},v.prototype.mergeTime=function(e){return this.value&&e?d.setTime(e,this.value):e},v.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},v.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},v.defaultProps={defaultShow:!1,defaultValue:null,dateInput:c.DateInput,calendar:p.Calendar,toggleButton:f.ToggleButton,popup:s.Popup,pickerWrap:m.PickerWrap,disabled:!1,format:"d",max:d.MAX_DATE,min:d.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},v);function v(e){var i=o.call(this,e)||this;return i._popupId=N.guid(),i._element=null,i._wrapper=null,i._dateInput=x.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:V.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===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||v.defaultProps.defaultValue,show:i.props.defaultShow||v.defaultProps.defaultShow,focused:!1},i}t.DatePicker=m,A.registerForLocalization(m)},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)}),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)},C=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};Object.defineProperty(t,"__esModule",{value:!0});var o,M=n(3),a=n(4),x=n(14),s=n(1),V=n(0),N=n(5),l=n(0),u=n(10),R=n(6),c=n(13),A=n(55),p=n(2),d=n(8),j=n(21),c=(o=M.Component,r(h,o),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.componentWillUnmount=function(){clearTimeout(this.nextTickId)},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 n=this,e=this.props,t=e.disabled,i=e.tabIndex,r=e.title,o=e.id,a=e.className,s=e.format,l=e.formatPlaceholder,u=e.smoothScroll,c=e.width,p=e.name,d=e.steps,h=e.cancelButton,f=e.nowButton,m=e.validationMessage,v=e.required,g=e.validityStyles,y=e.ariaLabelledBy,b=e.ariaDescribedBy,w=this.popupSettings,D=w.popupClass,e=C(w,["popupClass"]),w=!this.validityStyles||this.validity.valid,O=V.classNames("k-widget k-timepicker",a),k=V.classNames("k-picker-wrap",{"k-state-invalid":!w,"k-state-disabled":t,"k-state-focused":this.state.focused}),D=V.classNames("k-group k-reset",D),S={disabled:t,format:s,formatPlaceholder:l,id:o,ariaLabelledBy:y,ariaDescribedBy:b,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:p,onChange:this.handleInputValueChange,required:v,steps:d,tabIndex:this.show?-1:i,title:r,valid:this.validity.valid,validationMessage:m,validityStyles:g,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},_=T({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:D,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},e),I=M.createElement(A.TimeSelector,{ref:this.setTimeSelectorRef,cancelButton:h,disabled:t,nowButton:f,format:s,min:this.min,max:this.max,steps:d,smoothScroll:u,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),u=N.provideLocalizationService(this),P=u.toLanguageString(R.toggleClock,R.messages[R.toggleClock]),E=u.toLanguageString(R.toggleTimeSelector,R.messages[R.toggleTimeSelector]),u=M.createElement(V.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t=e.onFocus,e=e.onBlur;return M.createElement("div",{ref:function(e){n._element=e},className:O,onKeyDown:n.handleKeyDown,style:{width:c},onFocus:t,onBlur:e},M.createElement("span",{ref:function(e){n._wrapper=e},className:k},M.createElement(n.dateInputComp,T({_ref:n._dateInput},S)),M.createElement("span",T({role:"button",onMouseDown:n.handleIconMouseDown,onClick:n.handleIconClick,title:E,className:"k-select"},{"aria-controls":n._popupId,"aria-label":P}),M.createElement("span",{className:"k-icon k-i-clock"}))),n.props.popup?M.createElement(n.props.popup,T({},_),I):M.createElement(x.Popup,T({},_),I))});return this.props.label?M.createElement(j.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:o,editorValid:w,editorDisabled:this.props.disabled,children:u,style:{width:this.props.width}}):u},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.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},h.prototype.mergeTime=function(e){return this.value&&e?p.setTime(this.value,e):e},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},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},h);function h(e){var i=o.call(this,e)||this;return i._popupId=V.guid(),i._element=null,i._wrapper=null,i._dateInput=M.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(T({},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===V.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==V.Keys.up&&n!==V.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===V.Keys.up,i.setShow(n===V.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.nextTick=i.nextTick.bind(i),i.mergeTime=i.mergeTime.bind(i),i}t.TimePicker=c,N.registerForLocalization(c)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var m=n(3),o=n(4),a=n(1),v=n(0),g=n(5),y=n(6),s=n(2),l=n(8),b=n(38);(n=t.Direction||(t.Direction={}))[n.Left=0]="Left",n[n.Right=1]="Right";var u,o=(u=m.Component,r(c,u),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?a.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"intl",{get:function(){return g.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"current",{get:function(){return null!==this.state.current?a.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,d=e.steps,h=g.provideLocalizationService(this),e=h.toLanguageString(y.timePickerCancel,y.messages[y.timePickerCancel]),h=h.toLanguageString(y.timePickerSet,y.messages[y.timePickerSet]);return m.createElement("div",{ref:function(e){t._element=e},tabIndex:r?void 0:o||0,className:v.classNames("k-timeselector k-reset",a,{"k-state-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:d}),m.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},i&&m.createElement("button",f({type:"button",ref:function(e){t._cancelButton=e},className:"k-button k-time-cancel",onClick:this.handleReject,title:e},{"aria-label":e}),e),m.createElement("button",f({type:"button",ref:function(e){t._acceptButton=e},className:"k-time-accept k-button k-primary",onClick:this.handleAccept,title:h},{"aria-label":h}),h)))},c.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},c.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},c.propTypes={cancelButton:o.bool,className:o.string,disabled:o.bool,format:o.oneOfType([o.string,o.shape({skeleton:o.string,pattern:o.string,date:o.oneOf(["short","medium","long","full"]),time:o.oneOf(["short","medium","long","full"]),datetime:o.oneOf(["short","medium","long","full"]),era:o.oneOf(["narrow","short","long"]),year:o.oneOf(["numeric","2-digit"]),month:o.oneOf(["numeric","2-digit","narrow","short","long"]),day:o.oneOf(["numeric","2-digit"]),weekday:o.oneOf(["narrow","short","long"]),hour:o.oneOf(["numeric","2-digit"]),hour12:o.bool,minute:o.oneOf(["numeric","2-digit"]),second:o.oneOf(["numeric","2-digit"]),timeZoneName:o.oneOf(["short","long"])})]),max:o.instanceOf(Date),min:o.instanceOf(Date),nowButton:o.bool,steps:o.shape({hour:o.number,minute:o.number,second:o.number}),smoothScroll:o.bool,tabIndex:o.number,value:o.instanceOf(Date)},c.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:s.MIN_TIME,max:s.MAX_TIME,boundRange:!1},c);function c(e){var n=u.call(this,e)||this;return n.focusActiveList=function(){n.timePart&&n.timePart.focus({preventScroll:!0})},n.handleKeyDown=function(e){return e.keyCode!==v.Keys.enter?void 0:void(n.hasActiveButton()||n.handleAccept(e))},n.handleAccept=function(e){var t=n.mergeValue(a.cloneDate(n.value||l.getNow()),n.timePart?n.timePart.value:n.current);n.setState({value:t}),n.valueDuringOnChange=t;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(a.cloneDate(n.value||l.getNow()),l.getNow());n.setState({current:t,value:t}),n.valueDuringOnChange=t;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=l.valueMerger(l.generateGetters(n.dateFormatParts)),n.hasActiveButton=n.hasActiveButton.bind(n),n.state={current:n.props.value||s.MIDNIGHT_DATE,value:n.props.value||c.defaultProps.value},n}t.TimeSelector=o,g.registerForIntl(o),g.registerForLocalization(o)},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=n(3),s=n(4),l=n(1),u=n(0),c=n(5),p=n(16),d=n(57),h=n(58),f=n(2),m=((n={})[u.Keys.end]=function(e,t){return e[e.length-1]},n[u.Keys.home]=function(e,t){return e[0]},n[u.Keys.up]=function(e,t){return e[t-1]},n[u.Keys.down]=function(e,t){return e[t+1]},n),v=((n={})[d.TIME_PART.dayperiod]=h.DayPeriodService,n[d.TIME_PART.hour]=h.HoursService,n[d.TIME_PART.minute]=h.MinutesService,n[d.TIME_PART.second]=h.SecondsService,n),f=(o=a.Component,r(g,o),Object.defineProperty(g.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"min",{get:function(){return this.props.min||g.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"max",{get:function(){return this.props.max||g.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):g.defaultProps.step},enumerable:!0,configurable:!0}),g.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())})},g.prototype.componentDidUpdate=function(){var e;this.virtualization&&(e=this.service.selectedIndex(this.props.value),this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0)},g.prototype.render=function(){var n=this;if(this.props.part.type&&v[this.props.part.type]){this.calculateHeights(),this.intl=c.provideIntlService(this),this.service=new v[this.props.part.type](this.intl),this.configureServices();var e=this.service.data(this.props.value),t="translateY("+this.topOffset+"px)",i=this.service.total(this.props.value),e=a.createElement("ul",{style:{transform:t,msTransform:t},className:"k-reset"},e.map(function(e,t){return a.createElement("li",{key:t,className:"k-item",onClick:function(){n.handleChange(e)}},a.createElement("span",null,e.text))}));return a.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(e){n._element=e},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?a.createElement(p.Virtualization,{bottomOffset:this.bottomOffset,children:e,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(e){n.virtualization=e},role:"presentation",skip:0,tabIndex:-1,take:i,topOffset:this.topOffset,total:i}):a.createElement("div",{className:"k-time-container"},e))}},g.propTypes={id:s.number,max:s.instanceOf(Date),min:s.instanceOf(Date),part:function(e,t,n){e=e[t];if(!e||!v[e.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ");return null},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:s.instanceOf(Date),smoothScroll:s.bool},g.defaultProps={boundRange:!1,max:f.MAX_TIME,min:f.MIDNIGHT_DATE,step:1,smoothScroll:!0},g);function g(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 t=void 0===e?r.props:e,n=t.min,e=t.max,t=t.value,e=r.service.limitRange(n||r.min,e||r.max,t||r.props.value),t=e[0],e=e[1];r.service.configure(r.serviceSettings({min:t,max:e}))},r.serviceSettings=function(e){var t={boundRange:r.props.boundRange||g.defaultProps.boundRange,insertUndividedMax:!1,min:l.cloneDate(r.min),max:l.cloneDate(r.max),part:r.props.part,step:r.step},e=Object.assign({},t,e);return e.boundRange="hour"!==e.part.type||r.props.boundRange||g.defaultProps.boundRange,e},r.handleScrollAction=function(e){var t=e.target,e=e.animationInProgress;r.virtualization&&t&&!e&&(r.animateToIndex=!1,t=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),t=r.service.data(r.props.value)[t],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._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode;t!==u.Keys.down&&t!==u.Keys.up&&t!==u.Keys.end&&t!==u.Keys.home||e.preventDefault();e=(m[e.keyCode]||u.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));e&&r.handleChange(e)},r.handleChange=function(e){var t=r.service.apply(r.props.value,e.value);r.props.value.getTime()!==t.getTime()&&(r.setState({value:t}),(e=r.props.onChange)&&e.call(void 0,t))},r.dom=new h.DOMService,r}t.TimeList=f,c.registerForIntl(f)},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);t.DayPeriodService=i.DayPeriodService;i=n(60);t.DOMService=i.DOMService;i=n(61);t.HoursService=i.HoursService;i=n(62);t.MinutesService=i.MinutesService;n=n(63);t.SecondsService=n.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(1),n=(r.prototype.apply=function(e,t){var n=e.getHours(),i=a(n),r=a(t.getHours());if(i&&r||!i&&!r)return e;t=this.normalizedRange(),i=t[0],t=t[1],t=void 0===t?24:t;return o(e,Math.min(Math.max(i,n+(r?-12:12)),t||24))},r.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,t=e.max,t=void 0===t?this.max:t,e=e.part,e=void 0===e?this.part:e;this.min=n,this.max=t,this.part=e},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)]},r);function r(e){this.intl=e}t.DayPeriodService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(0),n=(o.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},o.prototype.calculateHeights=function(e){var t;r.canUseDOM&&(t=(t=i.domContainerFactory("div"))([t([t([i.domContainerFactory("ul")([i.domContainerFactory("li")("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),t=(e=e&&e.querySelector(".k-time-container")||document.body).appendChild(t),this.timeListHeight=t.querySelector(".k-scrollable").offsetHeight,this.itemHeight=t.querySelector("li").offsetHeight,e.removeChild(t),this.didCalculate=!0)},o);function o(){this.didCalculate=!1}t.DOMService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e%24}function i(e,t){return a(24+e-t)}var r=n(1),s=n(2),l=n(8),n=function(n){return function(e,t){return t&&r.getDate(e).getTime()!==r.getDate(t).getTime()?l.setHours(e,n):e}},o=n(0),u=n(23),n=(c.prototype.apply=function(e,t){return l.setHours(e,t.getHours())},c.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,r=e.insertUndividedMax,o=void 0===r?this.insertUndividedMax:r,n=e.min,r=void 0===n?this.min:n,n=e.max,n=void 0===n?this.max:n,a=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=i,this.insertUndividedMax=o,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=n,this.step=e},c.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return a(t+e*n)}),r=l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(r),e&&this.addMissing(r,e),r},c.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},c.prototype.limitRange=function(e,t,n){return this.boundRange?[o(e,n),u(t,n)]:[e,t]},c.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},c.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},c.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},c.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},c.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},c.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},c.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},c.prototype.isLastMissing=function(e){return this.isMissing(l.setHours(this.max,this.lastHour(e)))},c.prototype.divideByStep=function(e){return i(e.getHours(),this.min.getHours())/this.step},c.prototype.lastHour=function(e){return this.range(e)[1]},c.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getHours(),t.getHours()]},c);function c(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}t.HoursService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e%60}function i(e,t){return a(60+e-t)}var r=n(1),s=n(2),l=n(8),n=function(n){return function(e,t){return t&&e.getHours()!==t.getHours()?l.setMinutes(e,n):e}},o=n(0),u=n(59),n=(c.prototype.apply=function(e,t){return l.setMinutes(e,t.getMinutes())},c.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,n=void 0===r?this.min:r,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=i,this.toListItem=function(e){e=l.setMinutes(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=r,this.step=e},c.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return a(t+e*n)}),r=l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(r),e&&this.addMissing(r,e),r},c.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},c.prototype.limitRange=function(e,t,n){return[o(e,n),u(t,n)]},c.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},c.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},c.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},c.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},c.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},c.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},c.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},c.prototype.isLastMissing=function(e){return this.isMissing(l.setMinutes(this.max,this.lastMinute(e)))},c.prototype.divideByStep=function(e){return i(e.getMinutes(),this.min.getMinutes())/this.step},c.prototype.lastMinute=function(e){return this.range(e)[1]},c.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMinutes(),t.getMinutes()]},c);function c(e){this.intl=e,this.insertUndividedMax=!1}t.MinutesService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e%60}function i(e,t){return a(60+e-t)}var r=n(1),s=n(2),l=n(8),n=function(n){return function(e,t){return!t||e.getMinutes()===t.getMinutes()&&e.getHours()===t.getHours()?e:l.setSeconds(e,n)}},o=n(0),u=n(59),n=(c.prototype.apply=function(e,t){return l.setSeconds(e,t.getSeconds())},c.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,n=void 0===r?this.min:r,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=i,this.toListItem=function(e){e=l.setSeconds(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=r,this.step=e},c.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return a(t+e*n)}),r=l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(r),e&&this.addMissing(r,e),r},c.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},c.prototype.limitRange=function(e,t,n){return[o(e,n),u(t,n)]},c.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},c.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},c.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},c.prototype.divideByStep=function(e){return i(e.getSeconds(),this.min.getSeconds())/this.step},c.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},c.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},c.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},c.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},c.prototype.isLastMissing=function(e){return this.isMissing(l.setSeconds(this.max,this.lastSecond(e)))},c.prototype.lastSecond=function(e){return this.range(e)[1]},c.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getSeconds(),t.getSeconds()]},c);function c(e){this.intl=e,this.insertUndividedMax=!1}t.SecondsService=n},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=n(3),s=n(22),l=n(9),u=n(0),c=n(1),n=n(7),n=(o=a.Component,r(p,o),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-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-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=o.call(this,e)||this;return i.isActive=!1,i.focusActiveDate=function(){var e,t;i._element&&(e=i._element.querySelector("td.k-state-focused"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-state-focused"))&&e.classList.remove("k-state-focused"),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&&(t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:c.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,t))},i}t.HorizontalViewList=n},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var o,c=n(3),a=n(4),p=n(14),s=n(1),d=n(0),h=n(5),l=n(0),f=n(10),m=n(13),v=n(39),g=n(9),y=n(7),b=n(6),w={display:"inline-block"},y=(o=c.Component,r(D,o),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)||g.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||g.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,r=d.classNames("k-daterangepicker",{"k-state-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]),l=o.toLanguageString(b.separator,b.messages[b.separator]),o=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}),a=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}),s=u({animate:null!==this._wrapper,anchor:this._wrapper,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(v.MultiViewCalendar,u({},e,{ref:this.setCalendarRef})),i=c.createElement("span",u({role:"button",className:"k-select k-button k-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},c.createElement("span",{ref:function(e){t._wrapper=e},className:"k-daterangepicker-wrap",style:w},this.props.startDateInput?c.createElement(this.props.startDateInput,u({},o)):c.createElement(m.DateInput,u({},o,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?i:l,this.props.endDateInput?c.createElement(this.props.endDateInput,u({},a)):c.createElement(m.DateInput,u({},a,{ref:this._endDateInput}))),this.props.popup?c.createElement(this.props.popup,u({},s),e):c.createElement(p.Popup,u({},s),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.propTypes={allowReverse:a.bool,calendarSettings:a.any,className:a.string,defaultShow:a.bool,defaultValue:a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)}),disabled:a.bool,endDateInputSettings:a.shape(m.DateInput.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:a.instanceOf(Date),end:a.instanceOf(Date)})},D.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:g.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:y.MAX_DATE,min:y.MIN_DATE,swapButton:!1},D);function D(e){var i=o.call(this,e)||this;return i._element=null,i._wrapper=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||g.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-state-focused"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.add("k-state-focused");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-state-focused"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.remove("k-state-focused"),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||g.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.DateRangePicker=y,h.registerForLocalization(y)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var o,C=n(3),a=n(4),M=n(14),s=n(1),x=n(0),l=n(13),u=n(0),c=n(10),p=n(2),V=n(6),N=n(5),R=n(67),d=n(8),h=n(7),A=n(21),l=(o=C.Component,r(f,o),Object.defineProperty(f.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.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(f.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:f.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:f.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:f.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:f.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dateInputComp",{get:function(){return this.props.dateInput||f.defaultProps.dateInput},enumerable:!0,configurable:!0}),f.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},f.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},f.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},f.prototype.render=function(){var n=this,e=this.props,i=e.disabled,t=e.tabIndex,r=e.title,o=e.id,a=e.format,s=e.formatPlaceholder,l=e.min,u=e.max,c=e.weekNumber,p=e.focusedDate,d=e.className,h=e.width,f=e.name,m=e.validationMessage,v=e.required,g=e.validityStyles,y=e.cancelButton,b=e.minTime,w=e.maxTime,D=e.ariaLabelledBy,O=e.ariaDescribedBy,k=e.popup,S=void 0===k?M.Popup:k,_=e.calendar,e=!this.validityStyles||this.validity.valid,I=x.classNames("k-widget k-datetimepicker",{"k-state-invalid":!e},d),P=x.classNames("k-picker-wrap",{"k-state-disabled":i,"k-state-focused":this.state.focused}),E={id:o,ariaLabelledBy:D,ariaDescribedBy:O,format:a,formatPlaceholder:s,disabled:i,title:r,validityStyles:g,validationMessage:m,required:v,min:l,max:u,minTime:b,maxTime:w,name:f,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},t=C.createElement(x.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},function(e){var t=e.onFocus,e=e.onBlur;return C.createElement("div",{ref:function(e){n._element=e},className:I,onKeyDown:n.handleKeyDown,style:{width:h},onFocus:t,onBlur:e},C.createElement("div",{ref:function(e){n._wrapper=e},className:P},C.createElement(n.dateInputComp,T({_ref:n._dateInput},E)),C.createElement("span",T({role:"button",onMouseDown:n.handleIconMouseDown,onClick:n.handleDateIconClick,title:N.provideLocalizationService(n).toLanguageString(V.toggleDateTimeSelector,V.messages[V.toggleDateTimeSelector]),className:"k-select"},{"aria-controls":n._popupId,"aria-label":N.provideLocalizationService(n).toLanguageString(V.toggleDateTimeSelector,V.messages[V.toggleDateTimeSelector])}),C.createElement("span",{className:"k-link k-link-date"},C.createElement("span",{className:"k-icon k-i-calendar"})))),C.createElement(S,{show:n.show,animate:null!==n._wrapper,anchor:n._wrapper,className:"k-datetime-container k-group k-reset",id:n._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},C.createElement(R.DateTimeSelector,{ref:function(e){n._dateTimeSelector=e},cancelButton:y,steps:n.props.steps,value:n.value,onChange:n.handleValueChange,onReject:n.handleReject,disabled:i,weekNumber:c,min:n.min,max:n.max,minTime:b,maxTime:w,focusedDate:p,format:a,calendar:_})))});return this.props.label?C.createElement(A.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:o,editorValid:e,editorDisabled:this.props.disabled,children:t,style:{width:this.props.width}}):t},f.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},f.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},f.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},f.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},f);function f(e){var i=o.call(this,e)||this;return i._popupId=x.guid(),i._element=null,i._wrapper=null,i._dateInput=C.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===x.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==x.Keys.up&&n!==x.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===x.Keys.up,i.setShow(n===x.Keys.down))},i.dateInputElement=function(){return i.dateInput&&i.dateInput.element||i._wrapper&&i._wrapper.querySelector(".k-dateinput-wrap > input.k-input")},u.validatePackage(c.packageMetadata),i.state={value:i.props.defaultValue||f.defaultProps.defaultValue,show:i.props.defaultShow||f.defaultProps.defaultShow,focused:!1},i}t.DateTimePicker=l,N.registerForLocalization(l)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var o,m=n(3),v=n(5),g=n(6),y=n(19),b=n(15),w=n(38),D=n(2),a=n(1),O=n(0),s=n(7),l=n(8),r=(o=m.Component,r(u,o),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,l=e.format,u=O.classNames({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),c=O.classNames({"k-state-disabled":!this.hasDateValue},"k-time-accept k-button k-primary"),p=v.provideLocalizationService(this),d=p.toLanguageString(g.date,g.messages[g.date]),h=p.toLanguageString(g.time,g.messages[g.time]),e=p.toLanguageString(g.dateTimePickerCancel,g.messages[g.dateTimePickerCancel]),p=p.toLanguageString(g.dateTimePickerSet,g.messages[g.dateTimePickerSet]),s={min:r,max:o,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return m.createElement("div",{onKeyDown:this.handleKeyDown,className:u,tabIndex:-1},m.createElement("div",{className:"k-datetime-buttongroup"},m.createElement(y.ButtonGroup,{width:"100%"},m.createElement(y.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},d),m.createElement(y.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},h))),m.createElement("div",{className:"k-datetime-selector"},m.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(e){return t._calendarWrap=e}},this.props.calendar?m.createElement(this.props.calendar,f({},s)):m.createElement(b.Calendar,f({ref:function(e){t._calendar=e}},s))),m.createElement("div",{className:"k-datetime-time-wrap"},m.createElement(w.TimePart,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(e){t._timePart=e},min:this.minTime||D.MIN_TIME,max:this.maxTime||D.MAX_TIME,steps:this.props.steps,value:this.state.timeValue,format:l,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),m.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},i&&m.createElement("button",f({type:"button",ref:function(e){t._cancelButton=e},className:"k-button k-time-cancel",onClick:this.handleReject,title:e},{"aria-label":e}),e),m.createElement("button",f({type:"button",ref:function(e){t._acceptButton=e},className:c,onClick:this.handleAccept,title:p},{"aria-label":p}),p)))},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||D.getToday())?e:null},u.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},u.prototype.mergeTime=function(e,t){return e&&t?D.setTime(t,e):t},u.prototype.mergeDate=function(e,t){return e?D.setTime(e||D.getToday(),t):t},u);function u(e){var i=o.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&&(t={nativeEvent:e.nativeEvent,syntheticEvent:e,target:i,value:t},i.props.onReject.call(void 0,t))},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 O.Keys.enter:return void(!i.hasActiveButton()&&i.hasDateValue&&i.handleAccept(e));case O.Keys.left:return n?void i.move("left"):void 0;case O.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=r,v.registerForLocalization(r)}],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","@progress/kendo-react-common","@progress/kendo-react-buttons","prop-types","@progress/kendo-react-popup","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-react-labels"],function(o){var a,s,l,u,c,p,d,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=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=s},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(1),o=n(12);t.isEqualRange=function(e,t){var n=e||o.EMPTY_SELECTIONRANGE,i=n.start,e=n.end,n=t||o.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return null!==i&&null!==e&&null!==t&&null!==n&&r.isEqual(i,t)&&r.isEqual(e,n)},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);function a(e){return null!=e}t.isValidRange=function(e,t){return!a(e)||!a(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 i.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&&i.getDate(t)>i.getDate(e)||n&&i.getDate(n)<i.getDate(e))},t.isInSelectionRange=function(e,t){var n=t||o.EMPTY_SELECTIONRANGE,t=n.start,n=n.end;return!(!t||!n)&&t<e&&e<n},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e&&(t&&e<t?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=a},function(e,t){e.exports=u},function(e,t){e.exports=d},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});var i,r,o=n(1),a=n(20),s=n(2),n=function(n){return function(e,t){e=o.cloneDate(e);return e[n](t),e}},a=[{type:a.TIME_PART.hour,getter:function(e){return e.getHours()}},{type:a.TIME_PART.minute,getter:function(e){return e.getMinutes()}},{type:a.TIME_PART.second,getter:function(e){return e.getSeconds()}},{type:a.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()}}];t.generateGetters=(i=a,function(e){return i.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t}),t.generateSnappers=(r=a,function(n,s){return r.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=o.cloneDate(e);return t.setHours.apply(t,n.map(function(e){return e(t)})),t}},t.setHours=n("setHours"),t.setMinutes=n("setMinutes"),t.setSeconds=n("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};function l(e,t,n){return{candidateValue:s.setTime(s.MIDNIGHT_DATE,e),maxValue:o.addDays(s.setTime(s.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:s.setTime(s.MIDNIGHT_DATE,t)}}t.timeInRange=function(e,t,n){if(!e||!t||!n)return e;var i=l(e,t,n),r=i.candidateValue,o=i.minValue,i=i.maxValue;return r<o?s.setTime(e,t):i<r?s.setTime(e,n):e},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;e=l(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=l(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=s.setTime(s.MIDNIGHT_DATE,e),t=s.setTime(s.MIDNIGHT_DATE,t);return e.getTime()<t.getHours()},t.isBiggerThanMax=function(e,t){if(null===e||null===t)return!1;e=s.setTime(s.MIDNIGHT_DATE,e);return s.setTime(s.MIDNIGHT_DATE,t).getTime()<e.getHours()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.Action=i.Action;i=n(17);t.CalendarViewEnum=i.CalendarViewEnum;n=n(12);t.EMPTY_SELECTIONRANGE=n.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:1631781061,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,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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var a,m=n(3),o=n(4),s=n(1),v=n(5),l=n(51),g=n(0),y=n(35),u=n(0),c=n(10),b=n(34),p=n(2),w=n(6),d=n(8),n=n(7),n=(a=m.Component,r(D,a),D.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},D.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused&&this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)),this.setValidity()},D.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},D.prototype.render=function(){var n=this;this.props._ref&&(this.props._ref.current=this);var i=v.provideLocalizationService(this),e=f({},D.defaultProps,this.props),t=e.min,r=e.max,o=e.name,a=e.label,e=e.id,s=this.text,l=s===this.props.placeholder?"":s,u=s===this.props.placeholder?s:void 0,c=e||this._inputId,p=!this.validityStyles||this.validity.valid,d={"aria-valuemin":null===t?void 0:t.getTime(),"aria-valuemax":null===r?void 0:r.getTime(),"aria-valuetext":l};null!==this.value&&(d["aria-valuenow"]=this.value.getTime());var h=b.wrapperClasses.slice();this.props.className&&h.push(this.props.className);r=m.createElement(g.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},function(e){var t=e.onFocus,e=e.onBlur;return m.createElement("span",{style:a?void 0:{width:n.props.width},dir:n.props.dir,className:h.join(" "),onFocus:t,onBlur:e},m.createElement("span",{className:g.classNames("k-dateinput-wrap",{"k-state-disabled":n.props.disabled,"k-state-invalid":!p}),ref:function(e){n._wrapper=e}},m.createElement("input",f({role:"spinbutton",tabIndex:n.props.tabIndex,disabled:n.props.disabled,title:void 0!==n.props.title?n.props.title:s,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:c,"aria-labelledby":n.props.ariaLabelledBy,"aria-describedby":n.props.ariaDescribedBy,"aria-expanded":n.props.ariaExpanded,"aria-haspopup":n.props.ariaHasPopup,onWheel:n.wheel,onClick:n.elementClick,onInput:n.elementChange,onPaste:n.handlePaste,onKeyDown:n.elementKeyDown,onChange:g.noop,value:l,placeholder:u,name:o},d,{ref:function(e){return n._element=e}})),n.props.children,n.props.spinners&&m.createElement("span",{className:"k-select",onMouseDown:n.spinnersMouseDown},m.createElement("span",{className:"k-link k-link-increase","aria-label":i.toLanguageString(w.increaseValue,w.messages[w.increaseValue]),title:i.toLanguageString(w.increaseValue,w.messages[w.increaseValue]),onClick:n.increasePart},m.createElement("span",{className:"k-icon k-i-arrow-n"})),m.createElement("span",{className:"k-link k-link-decrease","aria-label":i.toLanguageString(w.decreaseValue,w.messages[w.decreaseValue]),title:i.toLanguageString(w.decreaseValue,w.messages[w.decreaseValue]),onClick:n.decreasePart},m.createElement("span",{className:"k-icon k-i-arrow-s"})))))});return a?m.createElement(y.FloatingLabel,{label:a,editorId:c,editorValue:s,editorValid:p,editorDisabled:this.props.disabled,children:r,style:{width:this.props.width}}):r},Object.defineProperty(D.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"name",{get:function(){return this.props.name},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}),Object.defineProperty(D.prototype,"text",{get:function(){var e=f({},D.defaultProps,this.props),t=e.formatPlaceholder,n=e.format,i=e.value,r=e.defaultValue;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);t=this.kendoDate.getTextAndFormat(),i=t.text,t=t.format;return this.currentFormat=t,null===e.placeholder||this.state.focused||this.kendoDate.hasValue()?i:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"validity",{get:function(){var e=b.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(D.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:D.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:D.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),D.prototype.intl=function(){return v.provideIntlService(this)},Object.defineProperty(D.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}),D.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)})},D.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},D.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}},D.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},D.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})}}},D.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),e=((this.props.steps||{})[r]||1)*e,this.kendoDate.modifyPart(i,e),this.triggerChange(t,n))},D.propTypes={value:o.instanceOf(Date),format:o.oneOfType([o.string,o.shape({skeleton:o.string,pattern:o.string,date:o.oneOf(["short","medium","long","full"]),time:o.oneOf(["short","medium","long","full"]),datetime:o.oneOf(["short","medium","long","full"]),era:o.oneOf(["narrow","short","long"]),year:o.oneOf(["numeric","2-digit"]),month:o.oneOf(["numeric","2-digit","narrow","short","long"]),day:o.oneOf(["numeric","2-digit"]),weekday:o.oneOf(["narrow","short","long"]),hour:o.oneOf(["numeric","2-digit"]),hour12:o.bool,minute:o.oneOf(["numeric","2-digit"]),second:o.oneOf(["numeric","2-digit"]),timeZoneName:o.oneOf(["short","long"])})]),formatPlaceholder:o.oneOfType([o.oneOf(["wide","narrow","short","formatPattern"]),o.shape({year:o.string,month:o.string,day:o.string,hour:o.string,minute:o.string,second:o.string})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,title:o.string,steps:o.shape({year:o.number,month:o.number,day:o.number,hour:o.number,minute:o.number,second:o.number}),min:o.instanceOf(Date),max:o.instanceOf(Date),disabled:o.bool,spinners:o.bool,name:o.string,dir:o.string,label:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,ariaExpanded:o.oneOfType([o.bool,o.string]),onChange:o.func,validationMessage:o.string,required:o.bool,validate:o.bool,valid:o.bool},D.defaultProps={format:b.defaultFormat,formatPlaceholder:b.defaultFormatPlaceholder,spinners:!1,disabled:!1,max:s.cloneDate(p.MAX_DATE),min:s.cloneDate(p.MIN_DATE),minTime:s.cloneDate(n.MIN_TIME),maxTime:s.cloneDate(n.MAX_TIME),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},D);function D(e){var o=a.call(this,e)||this;return o.kendoDate=null,o.paste=!1,o._element=null,o._wrapper=null,o._inputId=g.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||D.defaultProps.validationMessage)},o.updateOnPaste=function(e){var t,n;o.element&&o.kendoDate&&(t=v.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;o.currentFormat=t;var t=o.value,i=b.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-state-focused"),o.setState({focused:!0})},o.elementOnBlur=function(e){o.wrapper&&o.wrapper.classList.remove("k-state-focused"),o.setState({focused:!1})},u.validatePackage(c.packageMetadata),o.state={focused:!1},o}t.DateInput=n,v.registerForIntl(n),v.registerForLocalization(n)},function(e,t){e.exports=c},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)}),o=this&&this.__assign||function(){return(o=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});function a(e){return e?e.virtualization:null}function s(e,t,n,i){return void 0===e&&(e=O.defaultProps.min),void 0===t&&(t=O.defaultProps.max),void 0!==i?null!==i&&w.isInRange(d.getDate(i),e,t)?i:null:null!==n&&w.isInRange(d.getDate(n),e,t)?n:null}var l,u=n(3),c=n(4),p=n(0),d=n(1),h=n(5),f=n(0),m=n(10),v=n(41),g=n(50),y=n(7),b=n(9),w=n(2),D=n(18),O=(l=u.Component,r(k,l),Object.defineProperty(k.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(k.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(k.prototype,"min",{get:function(){return d.getDate((void 0!==this.props.min?this.props:k.defaultProps).min)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"max",{get:function(){return d.getDate((void 0!==this.props.max?this.props:k.defaultProps).max)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"bottomView",{get:function(){return b.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:k.defaultProps).bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"topView",{get:function(){return b.CalendarViewEnum[(void 0!==this.props.topView?this.props:k.defaultProps).topView]},enumerable:!0,configurable:!0}),k.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.scrollSyncService=new D.ScrollSyncService(e.dom),e.scrollSyncService.configure(e.state.activeView),e.forceUpdate())})},k.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},k.prototype.render=function(){var t=this;this.props._ref&&this.props._ref(this);var e=null!==this.value&&null!==this.oldValue?!d.isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,n=w.viewInRange(this.state.activeView,b.CalendarViewEnum[(void 0!==this.props.bottomView?this.props:k.defaultProps).bottomView],b.CalendarViewEnum[(void 0!==this.props.topView?this.props:k.defaultProps).topView]),i=s(this.min,this.max,this.value,this.value),r=i?d.getDate(i):null;this.focusedDate=d.getDate(w.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);i=p.classNames("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),n={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},r=[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(v.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",o({},n,{ref:function(e){t._element=e},className:i,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}),r)},k.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&&b.CalendarViewEnum[i]<b.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&&b.CalendarViewEnum[i]>b.CalendarViewEnum[e]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},k.defaultProps={disabled:!1,min:y.MIN_DATE,max:y.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},k);function k(e){var r=l.call(this,e)||this;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(a(r.Navigation),a(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;n=r.props.onChange;n&&(t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:r},n.call(void 0,t)),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=w.dateInRange(r.focusedDate,r.min,r.max),a(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=w.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})},f.validatePackage(m.packageMetadata);var t=s(r.min,r.max,r.props.defaultValue||k.defaultProps.defaultValue,r.props.value);return r.state={value:t,activeView:w.viewInRange(b.CalendarViewEnum[e.defaultActiveView],r.bottomView,r.topView),focusedDate:w.dateInRange(e.focusedDate||t||w.getToday(),r.min,r.max)},r.dom=new D.DOMService,r.bus=new D.BusViewService(r.handleViewChange),r.navigation=new D.NavigationService(r.bus),r.oldValue=t,r}t.Calendar=O,h.registerForIntl(O)},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=n(3),s=n(4),l=n(0),u=n(42);(n=o=t.ScrollDirection||(t.ScrollDirection={}))[n.Backward=0]="Backward",n[n.Forward=1]="Forward";var c,p=((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),s=(c=a.Component,r(f,c),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;this.lastTotal===this.props.total&&this.lastDirection===this.direction&&this.lastTake===this.props.take||(this.initServices(),this.lastTotal=this.props.total,this.lastDirection=this.direction,this.lastTake=this.props.take);var e=""+((this.rowHeightService?this.rowHeightService.totalHeight():0)+this.props.bottomOffset),n="vertical"===this.direction?{height:e+"px"}:{width:e+"px"},i=l.classNames("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),e=l.classNames("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return a.createElement("div",{ref:function(e){t.scrollContainer=e},onScroll:this.handleScroll,className:i,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,a.createElement("div",{style:n,className:e}))},f.propTypes={bottomOffset:s.number.isRequired,className:s.string,direction:s.oneOf(["horizontal","vertical"]),forceScroll:s.bool,itemHeight:s.number,itemWidth:s.number,maxScrollDifference:s.number,onScroll:s.func,onScrollAction:s.func,scrollDuration:s.number,scrollOffsetSize:s.number,skip:s.number.isRequired,tabIndex:s.number,take:s.number.isRequired,topOffset:s.number.isRequired,total:s.number.isRequired,role:s.string},f.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},f);function f(e){var l=c.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),i=l.rowHeightService.offset(e),t=l.getContainerScrollDirection(i),e=l.scrollRange(i,t),n=e.start,i=e.end,n!==i&&(e=l.scrollStep(n,i),r=p[t](e),o=d[t](i),a=h[t](r(i)),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(),r=t===o.Backward?1:-1,t=(t=l.props.maxScrollDifference,Math.min(Math.abs(e-n),t)),e=Math.min(e,i);return{start:Math.min(Math.max(e+r*t,0),i),end:e}},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 u.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&&(i=e.target,l.scrollerService.onScroll({scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,offsetHeight:i.offsetHeight,offsetWidth:i.offsetWidth}),t=l.rowHeightService.index(l.containerScrollPosition-l.props.topOffset),n=l.props.onScrollAction,i={index:t,target:i,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 u.ScrollerService(l.handleScrollAction,l.handlePageAction),l}t.Virtualization=s},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);t.BusViewService=i.BusViewService;i=n(25);t.CenturyViewService=i.CenturyViewService;i=n(26);t.DecadeViewService=i.DecadeViewService;i=n(46);t.DOMService=i.DOMService;i=n(27);t.MonthViewService=i.MonthViewService;i=n(47);t.NavigationService=i.NavigationService;i=n(48);t.ScrollSyncService=i.ScrollSyncService;i=n(49);t.WeekNamesService=i.WeekNamesService;n=n(28);t.YearViewService=n.YearViewService},function(e,t){e.exports=l},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)};Object.defineProperty(n,"__esModule",{value:!0});var r=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";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)}),o=this&&this.__assign||function(){return(o=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});function a(e){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")}var s,l=n(3),u=n(4),c=n(1),p=n(5),d=n(23),h=n(24),f=n(9),m=n(2),v=n(18),u=(s=l.Component,r(g,s),Object.defineProperty(g.prototype,"min",{get:function(){return this.props.min},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"max",{get:function(){return this.props.max},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.direction},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isMonthView",{get:function(){return this.props.activeView===f.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===f.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"selectedDate",{get:function(){return(void 0!==this.props.selectedDate?this.props:g.defaultProps).selectedDate},enumerable:!0,configurable:!0}),g.prototype.render=function(){var n=this;this.intl=p.provideIntlService(this),this.weekService=new v.WeekNamesService(this.intl);var e=this.weekService.getWeekNames(this.weekNumber),t=this.props.service.rowLength(this.weekNumber),i=this.props.service.title(this.props.viewDate),r=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))})))},g.prototype.getWeekNumber=function(e){return this.weekNumber?c.weekInYear(e,this.intl.firstDay()):null},g.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},g.defaultProps={direction:"vertical",selectedDate:m.getToday(),showWeekNumbers:!1},g);function g(){var i=null!==s&&s.apply(this,arguments)||this;return i.buildWeekNumber=function(e,t){if(!i.firstDate(e))return a("week-cell-"+t);var n=i.firstDate(e),t=i.getWeekNumber(n),e="kendo-react-calendar-week-cell-"+t,n={className:"k-alt",value:t,firstDate:n};return i.props.weekCell?l.createElement(i.props.weekCell,o({},n,{key:e}),t):l.createElement(h.CalendarWeekCell,o({},n,{key:e}),t)},i.buildRow=function(e){return e.map(function(e,t){if(!e)return a(t);var n={"aria-selected":e.isSelected},t="kendo-react-calendar-cell-"+e.value.getTime(),n=o({},n,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,o({},n,{key:t}),e.formattedValue):l.createElement(d.CalendarCell,o({},n,{key:t}),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&&(t={value:c.cloneDate(e),target:i,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,t))},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=u,p.registerForIntl(u)},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)}),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};Object.defineProperty(t,"__esModule",{value:!0});var o,v=n(3),g=n(0),r=(o=v.Component,r(a,o),a.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,i=m(t,["value"]),t=e.value,e=m(e,["value"]);return!((!n||!t||n.getTime()===t.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}}(i,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,d=(e.view,e.value,m(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),h="end"===this.props.activeRangeEnd&&s,e="start"===this.props.activeRangeEnd&&o,t=g.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-state-active":e||h,"k-state-pending-focus":i,"k-state-selected":r||o||s,"k-today":c,"k-weekend":n,"k-state-disabled":p},t);return v.createElement("td",f({},d,{className:t,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),v.createElement("span",{className:"k-link"},this.props.children))},a);function a(){var i=null!==o&&o.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=r},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)}),o=this&&this.__assign||function(){return(o=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)},a=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};Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(3),u=n(0),r=(s=l.Component,r(c,s),c.prototype.render=function(){var e=this.props,t=e.className,e=(e.firstDate,a(e,["className","firstDate"]));return l.createElement("td",o({className:u.classNames("k-calendar-td",t)},e),this.props.children)},c);function c(){return null!==s&&s.apply(this,arguments)||this}t.CalendarWeekCell=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),i=n(9),y=n(2),r=[[]],o=((n={})[i.Action.Left]=function(e){return g.addDecades(e,-1)},n[i.Action.Up]=function(e){return g.addDecades(e,-5)},n[i.Action.Right]=function(e){return g.addDecades(e,1)},n[i.Action.Down]=function(e){return g.addDecades(e,5)},n[i.Action.PrevView]=function(e){return g.addCenturies(e,-1)},n[i.Action.NextView]=function(e){return g.addCenturies(e,1)},n[i.Action.FirstInView]=function(e){return g.firstDecadeOfCentury(e)},n[i.Action.LastInView]=function(e){return g.lastDecadeOfCentury(e)},n),n=(a.prototype.addToDate=function(e,t){return g.addCenturies(e,t)},a.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return g.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,e=e.viewDate;if(!e)return r;var n=y.range(0,5),f=g.firstDecadeOfCentury(e),m=g.lastDecadeOfCentury(e),v=y.getToday();return y.range(0,2).map(function(e){var o=g.addDecades(f,5*e);return n.map(function(e){var t=a.normalize(g.addDecades(o,e),p,c),n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&y.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):y.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:a.value(t),id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isWeekend:!1,isInRange:y.isInRange(t,p,c),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&a.isEqual(t,m),isRangeSplitStart:r&&a.isEqual(t,f),isToday:a.isEqual(t,v),title:a.cellTitle(t),value:t}})})},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)&&g.firstYearOfDecade(e).getFullYear()===g.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=g.firstYearOfDecade(e).getFullYear(),t=!t||g.firstYearOfDecade(t).getFullYear()<=e,n=!n||e<=g.firstYearOfDecade(n).getFullYear();return t&&n},a.prototype.isInSameView=function(e,t){return 0===g.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 g.firstYearOfDecade(e).getFullYear().toString()},a.prototype.navigationTitle=function(e){return e?g.firstDecadeOfCentury(e).getFullYear().toString():""},a.prototype.title=function(e){return e?g.firstDecadeOfCentury(e).getFullYear()+" - "+g.lastDecadeOfCentury(e).getFullYear():""},a.prototype.rowLength=function(e){return 5},a.prototype.skip=function(e,t){return g.durationInCenturies(t,e)},a.prototype.total=function(e,t){return g.durationInCenturies(e,t)+1},a.prototype.value=function(e){return e?g.firstYearOfDecade(e).getFullYear().toString():""},a.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),g.durationInCenturies(e,t)<n?g.addCenturies(e,-1):e},a.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?g.cloneDate(t):n<e&&this.isEqual(e,n)?g.cloneDate(n):e},a);function a(){}t.CenturyViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),i=n(11),r=n(12),y=n(2),o=[[]],a=((n={})[i.Action.Left]=function(e){return g.addYears(e,-1)},n[i.Action.Up]=function(e){return g.addYears(e,-5)},n[i.Action.Right]=function(e){return g.addYears(e,1)},n[i.Action.Down]=function(e){return g.addYears(e,5)},n[i.Action.PrevView]=function(e){return g.addDecades(e,-1)},n[i.Action.NextView]=function(e){return g.addDecades(e,1)},n[i.Action.FirstInView]=function(e){return g.firstYearOfDecade(e)},n[i.Action.LastInView]=function(e){return g.lastYearOfDecade(e)},n),n=(s.prototype.addToDate=function(e,t){return g.addDecades(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return g.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,e=e.viewDate;if(!e)return o;var n=y.range(0,5),f=g.firstYearOfDecade(e),m=g.lastYearOfDecade(e),v=y.getToday();return y.range(0,2).map(function(e){var o=g.addYears(f,5*e);return n.map(function(e){var t=a.normalize(g.addYears(o,e),p,c),n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&y.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):y.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:a.value(t),id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isWeekend:!1,isInRange:y.isInRange(t,p,c),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&a.isEqual(t,m),isRangeSplitStart:r&&a.isEqual(t,f),isToday:a.isEqual(t,v),title:a.cellTitle(t),value:t}})})},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,n=!n||e<=n.getFullYear();return t&&n},s.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},s.prototype.isInSameView=function(e,t){return 0===g.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?g.firstYearOfDecade(e).getFullYear().toString():""},s.prototype.title=function(e){return e?g.firstYearOfDecade(e).getFullYear()+" - "+g.lastYearOfDecade(e).getFullYear():""},s.prototype.rowLength=function(e){return 5},s.prototype.skip=function(e,t){return g.durationInDecades(t,e)},s.prototype.total=function(e,t){return g.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),g.durationInDecades(e,t)<n?g.addDecades(e,-1):e},s.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?g.cloneDate(t):n<e&&this.isEqual(e,n)?g.cloneDate(n):e},s);function s(){}t.DecadeViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n(1),i=n(11),r=n(12),y=n(2),o=[[]],a=((n={})[i.Action.Left]=function(e){return g.addDays(e,-1)},n[i.Action.Up]=function(e){return g.addWeeks(e,-1)},n[i.Action.Right]=function(e){return g.addDays(e,1)},n[i.Action.Down]=function(e){return g.addWeeks(e,1)},n[i.Action.PrevView]=function(e){return g.addMonths(e,-1)},n[i.Action.NextView]=function(e){return g.addMonths(e,1)},n[i.Action.FirstInView]=function(e){return g.firstDayOfMonth(e)},n[i.Action.LastInView]=function(e){return g.lastDayOfMonth(e)},n),n=(s.prototype.addToDate=function(e,t){return g.addMonths(e,t)},s.prototype.datesList=function(t,e){return y.range(0,e).map(function(e){return g.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,e=e.viewDate;if(!e)return o;var f=g.firstDayOfMonth(e),m=g.lastDayOfMonth(e),n=g.dayOfWeek(f,this.intl.firstDay(),-1),i=y.range(0,7),v=y.getToday();return y.range(0,6).map(function(e){var o=g.addDays(n,7*e);return i.map(function(e){var t=a.normalize(g.addDays(o,e),p,c);if(t<f||m<t)return null;var n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&y.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):y.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:a.value(t),id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isInRange:y.isInRange(t,p,c),isWeekend:a.isWeekend(t),isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitStart:r&&a.isEqual(t,f),isRangeSplitEnd:r&&a.isEqual(t,m),isToday:a.isEqual(t,v),title:a.cellTitle(t),value:t}})})},s.prototype.isEqual=function(e,t){return!(!e||!t)&&g.getDate(e).getTime()===g.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&&g.firstDayOfMonth(t[0])<=e&&e<=g.lastDayOfMonth(t[t.length-1])},s.prototype.isInRange=function(e,t,n){e=g.getDate(e),t=!t||g.getDate(t)<=e,n=!n||e<=g.getDate(n);return t&&n},s.prototype.isInSameView=function(e,t){return 0===g.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 g.durationInMonths(t,e)},s.prototype.total=function(e,t){return g.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),g.durationInMonths(e,t)<n?g.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)?g.getDate(t):n<e&&this.isEqual(e,n)?g.getDate(n):e},s.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},s);function s(e){this.intl=e}t.MonthViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b=n(1),i=n(11),w=n(2),r=n(12),o=n(1),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),n=(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,e=e.viewDate;if(!e)return D;var f=this.abbrMonthNames(),m=b.firstMonthOfYear(e),v=b.lastMonthOfYear(e),g=m.getFullYear(),n=w.range(0,5),y=w.getToday();return w.range(0,3).map(function(e){var o=b.addMonths(m,5*e);return n.map(function(e){var t=a.normalize(b.addMonths(o,e),p,c);if(g<t.getFullYear())return null;var n=a.isEqual(t,h.start),i=a.isEqual(t,h.end),r=!n&&!i&&w.isInSelectionRange(t,h),e=u&&(Array.isArray(d)?a.isSelectedFromArray(t,d,p,c):w.isInRange(d,p,c)&&a.isEqual(t,d));return{formattedValue:f[t.getMonth()],id:""+s+t.getTime(),isFocused:a.isEqual(t,l),isSelected:e,isInRange:w.isInRange(t,p,c),isWeekend:!1,isRangeStart:n,isRangeMid:r,isRangeEnd:i,isRangeSplitEnd:r&&a.isEqual(t,v),isRangeSplitStart:r&&a.isEqual(t,m),isToday:a.isEqual(t,y),title:a.cellTitle(t),value:t}})})},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,n=!n||e<=b.createDate(n.getFullYear(),n.getMonth(),1);return t&&n},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 5},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},s);function s(e){this._intl=e}t.YearViewService=n},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)}),o=this&&this.__assign||function(){return(o=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 a,s=n(3),l=n(4),u=n(5),c=n(0),p=n(30),n=n(7),n=(a=s.Component,r(d,a),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},e=this.props.headerTitle?s.createElement(this.props.headerTitle,o({},t),e):s.createElement(p.CalendarHeaderTitle,o({},t),e);return s.createElement("div",{className:"k-calendar-header"},e,s.createElement("span",{className:"k-spacer"}),s.createElement("span",{className:"k-calendar-nav"},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!==a&&a.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=n,u.registerForLocalization(n)},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)}),o=this&&this.__assign||function(){return(o=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)},a=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};Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(19),u=n(3),r=(s=u.PureComponent,r(c,s),c.prototype.render=function(){var e=this.props,e=(e.view,a(e,["view"]));return u.createElement(l.Button,o({type:"button",look:"flat"},e),this.props.children)},c);function c(){return null!==s&&s.apply(this,arguments)||this}t.CalendarHeaderTitle=r},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=n(3),s=n(4),l=n(5),u=n(0),c=n(1),p=n(6),d=n(2),n=n(7),n=(o=a.Component,r(h,o),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-state-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!==o&&o.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=n,l.registerForLocalization(n)},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)}),o=this&&this.__assign||function(){return(o=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)},a=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};Object.defineProperty(t,"__esModule",{value:!0});var s,l=n(3),u=n(0),r=(s=l.Component,r(c,s),c.prototype.render=function(){var e=this.props,t=e.isRangeStart,e=(e.value,e.text,a(e,["isRangeStart","value","text"]));return l.createElement("li",o({},e,{onClick:this.handleClick}),l.createElement("span",{className:u.classNames({"k-calendar-navigation-marker":t})},this.props.children))},c);function c(){var i=null!==s&&s.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=r},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),n=n.substring(0,i),a=[];if(o===n&&0<i)return a.push([t[i-1],n[i-1]]),a;if(0===o.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){var s="";1===n.length&&a.push([t[0],n[0]]);for(var l=n.length;l<o.length;l++)t[l]!==s&&"_"!==t[l]&&(s=t[l],a.push([s,""]));return a}if(0!==n.indexOf(o)&&"_"!==t[i-1])return" "===n[n.length-1]||n[n.length-1]===r?[[t[i-1],"_"]]:[[t[i-1],n[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,n[i-1]]]},t.dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},t.isInRange=function(e,t,n){return null===e||!(t&&e<t||n&&n<e)},t.invalidClasses=["k-state-invalid"],t.wrapperClasses=["k-widget","k-dateinput"]},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(0);t.ToggleButton=i.forwardRef(function(e,t){var n=r.classNames("k-select",e.className);return i.createElement("a",{ref:t,id:e.id,role:"button",style:e.style,className:n,tabIndex:e.tabIndex,title:e.title,"aria-label":e.title,onMouseDown:e.onMouseDown,onClick:e.onClick,onMouseUp:e.onMouseUp},e.children)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0);t.PickerWrap=r.forwardRef(function(e,t){var n=e._ref,i=r.useRef(null);r.useImperativeHandle(t,function(){return i.current}),r.useImperativeHandle(n,function(){return i.current});n=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:n,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,l=n(3),a=n(4),u=n(1),c=n(0),p=n(5),d=n(6),h=n(56),f=n(2),m=n(20),v=n(8),g=new RegExp(m.TIME_PART.hour+"|"+m.TIME_PART.minute+"|"+m.TIME_PART.second+"|"+m.TIME_PART.dayperiod+"|literal");(m=o=t.Direction||(t.Direction={}))[m.Left=0]="Left",m[m.Right=1]="Right";var y,a=(y=l.Component,r(b,y),Object.defineProperty(b.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return v.timeInRange(this.snapTime(u.cloneDate(this.props.value||f.MIDNIGHT_DATE)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"intl",{get:function(){return p.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"min",{get:function(){return this.snapTime(this.props.min||b.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"max",{get:function(){return this.snapTime(this.props.max||b.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"steps",{get:function(){return this.props.steps||b.defaultProps.steps},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"boundRange",{get:function(){return(void 0!==this.props.boundRange?this.props:b.defaultProps).boundRange},enumerable:!0,configurable:!0}),b.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},b.prototype.componentDidMount=function(){var e=this.props.onMount;e&&e.call(void 0,this.value)},b.prototype.render=function(){var n=this,e=this.props,t=e.format,i=e.smoothScroll,r=e.onNowClick,o=e.className,a=e.disabled;this.snapTime=v.snapTime(v.generateSnappers(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(t||b.defaultProps.format).filter(this.timeFormatFilter);e=c.classNames({"k-state-disabled":a},o,"k-time-part");this.timeLists=[];t=p.provideLocalizationService(this),o=t.toLanguageString(d.selectNow,d.messages[d.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("button",s({type:"button",ref:function(e){n._nowButton=e},className:"k-button k-flat k-time-now",title:o},{"aria-label":o},{onClick:r,tabIndex:a?-1:0}),t.toLanguageString(d.now,d.messages[d.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:c.classNames("k-time-list-wrapper",{"k-state-focused":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(h.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})):l.createElement("div",{key:t,className:"k-time-separator"},e.pattern)})))},b.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},b.prototype.hasActiveButton=function(){return document.activeElement===this._nowButton},b.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)},b.propTypes={cancelButton:a.bool,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)},b.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:f.MIN_TIME,max:f.MAX_TIME,steps:{},boundRange:!1},b);function b(e){var r=y.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){t=1<=t&&n[t-1];return t&&"literal"===e.type?g.test(t.type||""):g.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 c.Keys.left:return e.preventDefault(),void r.focusList(o.Left);case c.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||b.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}t.TimePart=a,p.registerForIntl(a),p.registerForLocalization(a)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});function m(e,t,n){return void 0===e&&(e=u.defaultProps.min),void 0===t&&(t=u.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&P.isInRange(O.getDate(n),e,t)?O.getDate(n):null}function v(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 P.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 y(e,t,n){return e||t&&t[0]||n&&n.start}var s,b=n(3),o=n(4),w=n(5),D=n(0),O=n(1),k=n(19),S=n(9),_=n(29),a=n(7),I=n(6),l=n(18),P=n(2),E=n(64),T=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 P.isInRange(P.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=m(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||E.HorizontalViewList.defaultProps.views},c.prototype.render=function(){var t=this;this.props._ref&&this.props._ref(this),this.intl=w.provideIntlService(this),this.localization=w.provideLocalizationService(this),this.bus.configure(this.bottomView,this.topView);var e=P.viewInRange(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(e,this.intl),this.selectedDate=m(this.min,this.max,this.value),this.selectedMultiple=v(this.min,this.max,this.value),this.selectedRange=g(this.value);var n=y(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=P.dateInRange(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var i=D.classNames("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),r=this.rangeWithFocused(this.selectedRange,this.focusedDate),o={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(I.prevView,I.messages[I.prevView]),s=this.localization.toLanguageString(I.nextView,I.messages[I.nextView]),l=!this.canNavigate(S.Action.PrevView),u=!this.canNavigate(S.Action.NextView),c={"aria-disabled":l},p={"aria-disabled":u},d=this.lastView!==e,h=this.dates&&this.service.isInArray(this.focusedDate,this.dates),n=this.lastViewsCount!==this.props.views;h&&!d&&!n||(this.dates=this.service.datesList(this.focusedDate,this.props.views||E.HorizontalViewList.defaultProps.views));n=O.cloneDate(this.dates&&this.dates[0]?this.dates[0]:P.getToday());return b.createElement("div",f({ref:function(e){t._element=e},className:i,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},o),b.createElement(_.Header,{key:".kendo.calendar.header."+n.getTime(),activeView:e,currentDate:n,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,f({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:a,disabled:l,onClick:this.handlePrevButtonClick},c)),b.createElement(T.TodayCommand,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),b.createElement(k.Button,f({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:s,disabled:u,onClick:this.handleNextButtonClick},p)))}),b.createElement(E.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:r,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle}))},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([o.instanceOf(Date),o.arrayOf(o.instanceOf(Date)),o.shape({start:o.instanceOf(Date),end: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([o.instanceOf(Date),o.arrayOf(o.instanceOf(Date)),o.shape({start:o.instanceOf(Date),end:o.instanceOf(Date)})]),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 P.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=P.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.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=m(a.min,a.max,t),i=v(a.min,a.max,t),r=g(t),o=y(n,i,r),i=P.viewInRange(S.CalendarViewEnum[e.defaultActiveView],a.bottomView,a.topView),o=P.dateInRange(e.focusedDate||o||P.getToday(),a.min,a.max);return a.state={value:t,activeView:i,focusedDate:o},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=i,a.lastViewsCount=a.props.views||E.HorizontalViewList.defaultProps.views,a}t.MultiViewCalendar=u,w.registerForIntl(u),w.registerForLocalization(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(15);t.Calendar=i.Calendar;i=n(13);t.DateInput=i.DateInput;i=n(53);t.DatePicker=i.DatePicker;i=n(54);t.TimePicker=i.TimePicker;i=n(39);t.MultiViewCalendar=i.MultiViewCalendar;i=n(65);t.DateRangePicker=i.DateRangePicker;i=n(23);t.CalendarCell=i.CalendarCell;i=n(24);t.CalendarWeekCell=i.CalendarWeekCell;i=n(30);t.CalendarHeaderTitle=i.CalendarHeaderTitle;i=n(32);t.CalendarNavigationItem=i.CalendarNavigationItem;i=n(9);t.CalendarViewEnum=i.CalendarViewEnum;i=n(66);t.DateTimePicker=i.DateTimePicker;i=n(36);t.ToggleButton=i.ToggleButton;n=n(37);t.PickerWrap=n.PickerWrap,function(e){for(var t in e)o(t,e[t])}(t)},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,u=n(3),a=n(4),c=n(0),p=n(1),s=n(5),d=n(16),l=n(22),h=n(29),f=n(2),m=n(9),v=n(31),a=(o=u.Component,r(g,o),Object.defineProperty(g.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(g.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(g.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===m.CalendarViewEnum.month)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"take",{get:function(){return(void 0!==this.props.take?this.props:g.defaultProps).take},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"todayIsInRange",{get:function(){return f.isInRange(f.getToday(),p.getDate(this.props.min),p.getDate(this.props.max))},enumerable:!0,configurable:!0}),g.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},g.prototype.render=function(){var t=this;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=f.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),o=this.getTake(i,r),a=this.props.service.addToDate(this.props.min,i),s=this.props.service.addToDate(this.props.min,this.state.index),l=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),e=this.props.activeView!==this.lastView;this.animateToIndex=!e,!e&&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;n=c.classNames("k-calendar-view",{"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}),o=this.buildDates(l,this.props.service.datesList(a,o)),o=u.createElement(u.Fragment,null,u.createElement(h.Header,{key:"calendar-view-list-header",currentDate:s,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(v.TodayCommand,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===m.CalendarViewEnum.month&&this.buildMonthView(l,this.weekNames),u.createElement(d.Virtualization,{key:"calendar-view-list-content",skip:i,take:this.take,total:r,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:this.handleVirtualizationMount,children:o}));return u.createElement("div",{ref:function(e){t._element=e},className:n},this.props.dom.didCalculate?o:null)},g.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},g.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},g);function g(e){var i=o.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-state-focused"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-state-focused"))&&e.classList.remove("k-state-focused"),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&&(n="translateY("+n.offset+"px)",i.table.style.transform=n)},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&&(t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:p.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,t))},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=a,s.registerForIntl(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43);t.RowHeightService=i.RowHeightService;n=n(44);t.PageAction=n.PageAction,t.ScrollAction=n.ScrollAction,t.ScrollerService=n.ScrollerService},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(r.prototype.height=function(e){return this.heights[e]},r.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},r.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},r.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},r.prototype.offset=function(e){return this.offsets[e]},r.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},r.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})))},r);function r(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)}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}t.ScrollAction=l;function u(e){this.skip=e}t.PageAction=u;var i=(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;r=this.rowsForHeight(r),r=s(t-r);this.onScrollAction(new l(this.rowOffset(r))),this.onPageAction(new u(r))},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)),t=this.rowHeightService.index(s(n+t-this.bottomOffset)),!i&&t>=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&&(i=Math.floor(.3*this.take),this.firstLoaded=s(e-i),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))},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(17),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),n=(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)},u);function u(e){this.bottom=s.CalendarViewEnum.month,this.top=s.CalendarViewEnum.century,this.onViewChanged=e}t.BusViewService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),k=n(2),S=n(0),n=(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,v,g,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-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},v=function(e,t){return new Array(e).fill("1").map(t)},g=function(e){return l(e,"k-content 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,e=f([d([p([c("1")])].concat(v(t,function(){return p(v(n,function(e){return u('<span class="k-link">'+e+"</span>")}))})))]),t=i,o=l(r?[m(),f([h([p([c("MO")])])],"k-calendar-weekdays"),g([e,e])]:[m(),g([e,e])],t,{left:"-10000px",position:"absolute"})),o):null;var e,t,n}})({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!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",!(r=function(e){return e.querySelector(".k-scrollable")})),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([g([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)},r);function r(){this.didCalculate=!1}t.DOMService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),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},n=(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},r);function r(e){this.bus=e}t.NavigationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(r.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})},r.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)))}},r.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},r.prototype.siblingComponent=function(e){return this.navigator.element===e?this.view:this.navigator},r.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},r);function r(e){this.dom=e,this.monthScrolled=!1,this.navScrolled=!1}t.ScrollSyncService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),n=(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},r);function r(e){this.intl=e}t.WeekNamesService=n},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)}),o=this&&this.__assign||function(){return(o=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 a,s=n(3),l=n(4),u=n(1),c=n(32),p=n(2),d=n(16),l=(a=s.Component,r(h,a),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;this.calculateHeights();var e=this.lastView!==this.props.activeView,n=p.dateInRange(this.props.focusedDate,this.props.min,this.props.max),i=e?this.props.service.skip(n,this.props.min):this.state.skip,r=this.props.service.total(this.props.min,this.props.max),o=this.getTake(i,r),e=this.props.service.addToDate(this.props.min,i),o=this.props.service.datesList(e,o);this.props.activeView===this.lastView&&u.isEqual(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));o=s.createElement(d.Virtualization,{skip:i,take:this.take,total:r,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?o: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=a.call(this,e)||this;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(),n={text:t,value:e,isRangeStart:n,view:r.props.activeView,onClick:r.handleDateChange};return r.props.navigationItem?s.createElement(r.props.navigationItem,o({},n,{key:i}),t):s.createElement(c.CalendarNavigationItem,o({},n,{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&&(t={value:u.cloneDate(e),target:r,nativeEvent:t&&t.nativeEvent,syntheticEvent:t},n.call(void 0,t))},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&&(t="translateY("+t.offset+"px)",r.list.style.transform=t)},r.lastView=r.props.activeView,r.lastFocus=r.props.focusedDate;var t=r.props.service.skip(r.props.focusedDate,r.props.min),e=r.props.service.total(r.props.min,r.props.max);return r.state={skip:0<t-r.getTake(t,e)?t:0},r}t.Navigation=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);t.KendoDate=i.KendoDate;n=n(33);t.Mask=n.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(1),s=n(33),i=n(34),n=(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){t=this.partPattern(e,t);return"month"===t.type&&t.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})))},r);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()}t.KendoDate=n},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)}),C=this&&this.__assign||function(){return(C=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};Object.defineProperty(t,"__esModule",{value:!0});var o,x=n(3),a=n(4),s=n(14),V=n(1),N=n(0),l=n(0),u=n(10),c=n(13),p=n(15),d=n(2),h=n(2),R=n(6),A=n(5),f=n(36),m=n(37),j=n(21),m=(o=x.Component,r(v,o),Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"calendar",{get:function(){return this._calendar},enumerable:!0,configurable:!0}),Object.defineProperty(v.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?V.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(v.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(v.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:v.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:v.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dateInputComp",{get:function(){return this.props.dateInput||v.defaultProps.dateInput},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"toggleButtonComp",{get:function(){return this.props.toggleButton||v.defaultProps.toggleButton},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"calendarComp",{get:function(){return this.props.calendar||v.defaultProps.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"popupComp",{get:function(){return this.props.popup||v.defaultProps.popup},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"pickerWrapComp",{get:function(){return this.props.pickerWrap||v.defaultProps.pickerWrap},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"validity",{get:function(){var e=h.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(v.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:v.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:v.defaultProps).required},enumerable:!0,configurable:!0}),v.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},v.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},v.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},v.prototype.render=function(){var n=this,e=this.props,t=e.disabled,i=e.tabIndex,r=e.title,o=e.id,a=e.format,s=e.formatPlaceholder,l=e.min,u=e.max,c=e.weekNumber,p=e.focusedDate,d=e.className,h=e.width,f=e.name,m=e.validationMessage,v=e.required,g=e.validityStyles,y=e.ariaLabelledBy,b=e.ariaDescribedBy,w=this.props.popupSettings,D=w.popupClass,O=M(w,["popupClass"]),k=this.show,S=this.value,e=S&&V.getDate(S),w=!this.validityStyles||this.validity.valid,_=N.classNames("k-widget k-datepicker",d),I=N.classNames("k-picker-wrap",{"k-state-invalid":!w,"k-state-disabled":t,"k-state-focused":this.state.focused}),D=N.classNames("k-calendar-container k-group k-reset",D),P={disabled:t,format:a,formatPlaceholder:s,id:o,ariaLabelledBy:y,ariaDescribedBy:b,max:u,min:l,name:f,onChange:this.handleInputValueChange,required:v,tabIndex:k?-1:i,title:r,valid:this.validity.valid,validationMessage:m,validityStyles:g,value:S,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},E=C({show:k,anchor:this._wrapper||this._element,className:D,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},O),T={disabled:t,value:e,min:l,max:u,weekNumber:c,focusedDate:p,onChange:this.handleCalendarValueChange},p=x.createElement(N.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t=e.onFocus,e=e.onBlur;return x.createElement("span",{role:"group","aria-expanded":n.show,ref:function(e){n._element=e},className:_,onKeyDown:n.handleKeyDown,style:{width:h},onFocus:t,onBlur:e},x.createElement(n.pickerWrapComp,{_ref:function(e){n._wrapper=e},className:I},x.createElement(n.dateInputComp,C({_ref:n._dateInput},P)),x.createElement(n.toggleButtonComp,{onMouseDown:n.handleIconMouseDown,onClick:n.handleIconClick,title:A.provideLocalizationService(n).toLanguageString(R.toggleCalendar,R.messages[R.toggleCalendar]),className:"k-select"},x.createElement("span",{className:"k-icon k-i-calendar"}))),x.createElement(n.popupComp,C({},E),x.createElement(n.calendarComp,C({_ref:n.setCalendarRef},T))))});return this.props.label?x.createElement(j.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:o,editorValid:w,editorDisabled:this.props.disabled,children:p,style:{width:this.props.width}}):p},v.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},v.prototype.mergeTime=function(e){return this.value&&e?d.setTime(e,this.value):e},v.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},v.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},v.defaultProps={defaultShow:!1,defaultValue:null,dateInput:c.DateInput,calendar:p.Calendar,toggleButton:f.ToggleButton,popup:s.Popup,pickerWrap:m.PickerWrap,disabled:!1,format:"d",max:d.MAX_DATE,min:d.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},v);function v(e){var i=o.call(this,e)||this;return i._popupId=N.guid(),i._element=null,i._wrapper=null,i._dateInput=x.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:V.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===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||v.defaultProps.defaultValue,show:i.props.defaultShow||v.defaultProps.defaultShow,focused:!1},i}t.DatePicker=m,A.registerForLocalization(m)},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)}),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)},C=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};Object.defineProperty(t,"__esModule",{value:!0});var o,M=n(3),a=n(4),x=n(14),s=n(1),V=n(0),N=n(5),l=n(0),u=n(10),R=n(6),c=n(13),A=n(55),p=n(2),d=n(8),j=n(21),c=(o=M.Component,r(h,o),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.componentWillUnmount=function(){clearTimeout(this.nextTickId)},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 n=this,e=this.props,t=e.disabled,i=e.tabIndex,r=e.title,o=e.id,a=e.className,s=e.format,l=e.formatPlaceholder,u=e.smoothScroll,c=e.width,p=e.name,d=e.steps,h=e.cancelButton,f=e.nowButton,m=e.validationMessage,v=e.required,g=e.validityStyles,y=e.ariaLabelledBy,b=e.ariaDescribedBy,w=this.popupSettings,D=w.popupClass,e=C(w,["popupClass"]),w=!this.validityStyles||this.validity.valid,O=V.classNames("k-widget k-timepicker",a),k=V.classNames("k-picker-wrap",{"k-state-invalid":!w,"k-state-disabled":t,"k-state-focused":this.state.focused}),D=V.classNames("k-group k-reset",D),S={disabled:t,format:s,formatPlaceholder:l,id:o,ariaLabelledBy:y,ariaDescribedBy:b,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:p,onChange:this.handleInputValueChange,required:v,steps:d,tabIndex:this.show?-1:i,title:r,valid:this.validity.valid,validationMessage:m,validityStyles:g,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},_=T({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:D,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},e),I=M.createElement(A.TimeSelector,{ref:this.setTimeSelectorRef,cancelButton:h,disabled:t,nowButton:f,format:s,min:this.min,max:this.max,steps:d,smoothScroll:u,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),u=N.provideLocalizationService(this),P=u.toLanguageString(R.toggleClock,R.messages[R.toggleClock]),E=u.toLanguageString(R.toggleTimeSelector,R.messages[R.toggleTimeSelector]),u=M.createElement(V.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncBlur:this.props.onBlur,onSyncFocus:this.props.onFocus},function(e){var t=e.onFocus,e=e.onBlur;return M.createElement("div",{ref:function(e){n._element=e},className:O,onKeyDown:n.handleKeyDown,style:{width:c},onFocus:t,onBlur:e},M.createElement("span",{ref:function(e){n._wrapper=e},className:k},M.createElement(n.dateInputComp,T({_ref:n._dateInput},S)),M.createElement("span",T({role:"button",onMouseDown:n.handleIconMouseDown,onClick:n.handleIconClick,title:E,className:"k-select"},{"aria-controls":n._popupId,"aria-label":P}),M.createElement("span",{className:"k-icon k-i-clock"}))),n.props.popup?M.createElement(n.props.popup,T({},_),I):M.createElement(x.Popup,T({},_),I))});return this.props.label?M.createElement(j.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:o,editorValid:w,editorDisabled:this.props.disabled,children:u,style:{width:this.props.width}}):u},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.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},h.prototype.mergeTime=function(e){return this.value&&e?p.setTime(this.value,e):e},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},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},h);function h(e){var i=o.call(this,e)||this;return i._popupId=V.guid(),i._element=null,i._wrapper=null,i._dateInput=M.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(T({},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===V.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==V.Keys.up&&n!==V.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===V.Keys.up,i.setShow(n===V.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.nextTick=i.nextTick.bind(i),i.mergeTime=i.mergeTime.bind(i),i}t.TimePicker=c,N.registerForLocalization(c)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var m=n(3),o=n(4),a=n(1),v=n(0),g=n(5),y=n(6),s=n(2),l=n(8),b=n(38);(n=t.Direction||(t.Direction={}))[n.Left=0]="Left",n[n.Right=1]="Right";var u,o=(u=m.Component,r(c,u),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?a.cloneDate(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"intl",{get:function(){return g.provideIntlService(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"current",{get:function(){return null!==this.state.current?a.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,d=e.steps,h=g.provideLocalizationService(this),e=h.toLanguageString(y.timePickerCancel,y.messages[y.timePickerCancel]),h=h.toLanguageString(y.timePickerSet,y.messages[y.timePickerSet]);return m.createElement("div",{ref:function(e){t._element=e},tabIndex:r?void 0:o||0,className:v.classNames("k-timeselector k-reset",a,{"k-state-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:d}),m.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},i&&m.createElement("button",f({type:"button",ref:function(e){t._cancelButton=e},className:"k-button k-time-cancel",onClick:this.handleReject,title:e},{"aria-label":e}),e),m.createElement("button",f({type:"button",ref:function(e){t._acceptButton=e},className:"k-time-accept k-button k-primary",onClick:this.handleAccept,title:h},{"aria-label":h}),h)))},c.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},c.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},c.propTypes={cancelButton:o.bool,className:o.string,disabled:o.bool,format:o.oneOfType([o.string,o.shape({skeleton:o.string,pattern:o.string,date:o.oneOf(["short","medium","long","full"]),time:o.oneOf(["short","medium","long","full"]),datetime:o.oneOf(["short","medium","long","full"]),era:o.oneOf(["narrow","short","long"]),year:o.oneOf(["numeric","2-digit"]),month:o.oneOf(["numeric","2-digit","narrow","short","long"]),day:o.oneOf(["numeric","2-digit"]),weekday:o.oneOf(["narrow","short","long"]),hour:o.oneOf(["numeric","2-digit"]),hour12:o.bool,minute:o.oneOf(["numeric","2-digit"]),second:o.oneOf(["numeric","2-digit"]),timeZoneName:o.oneOf(["short","long"])})]),max:o.instanceOf(Date),min:o.instanceOf(Date),nowButton:o.bool,steps:o.shape({hour:o.number,minute:o.number,second:o.number}),smoothScroll:o.bool,tabIndex:o.number,value:o.instanceOf(Date)},c.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:s.MIN_TIME,max:s.MAX_TIME,boundRange:!1},c);function c(e){var n=u.call(this,e)||this;return n.focusActiveList=function(){n.timePart&&n.timePart.focus({preventScroll:!0})},n.handleKeyDown=function(e){return e.keyCode!==v.Keys.enter?void 0:void(n.hasActiveButton()||n.handleAccept(e))},n.handleAccept=function(e){var t=n.mergeValue(a.cloneDate(n.value||l.getNow()),n.timePart?n.timePart.value:n.current);n.setState({value:t}),n.valueDuringOnChange=t;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(a.cloneDate(n.value||l.getNow()),l.getNow());n.setState({current:t,value:t}),n.valueDuringOnChange=t;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=l.valueMerger(l.generateGetters(n.dateFormatParts)),n.hasActiveButton=n.hasActiveButton.bind(n),n.state={current:n.props.value||s.MIDNIGHT_DATE,value:n.props.value||c.defaultProps.value},n}t.TimeSelector=o,g.registerForIntl(o),g.registerForLocalization(o)},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=n(3),s=n(4),l=n(1),u=n(0),c=n(5),p=n(16),d=n(57),h=n(58),f=n(2),m=((n={})[u.Keys.end]=function(e,t){return e[e.length-1]},n[u.Keys.home]=function(e,t){return e[0]},n[u.Keys.up]=function(e,t){return e[t-1]},n[u.Keys.down]=function(e,t){return e[t+1]},n),v=((n={})[d.TIME_PART.dayperiod]=h.DayPeriodService,n[d.TIME_PART.hour]=h.HoursService,n[d.TIME_PART.minute]=h.MinutesService,n[d.TIME_PART.second]=h.SecondsService,n),f=(o=a.Component,r(g,o),Object.defineProperty(g.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"animate",{get:function(){return Boolean(this.props.smoothScroll&&this.animateToIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"min",{get:function(){return this.props.min||g.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"max",{get:function(){return this.props.max||g.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"step",{get:function(){return void 0!==this.props.step&&0!==this.props.step?Math.floor(this.props.step):g.defaultProps.step},enumerable:!0,configurable:!0}),g.prototype.componentDidMount=function(){var e=this;Promise.resolve().then(function(){e._element&&(e.dom.calculateHeights(e._element),e.forceUpdate())})},g.prototype.componentDidUpdate=function(){var e;this.virtualization&&(e=this.service.selectedIndex(this.props.value),this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0)},g.prototype.render=function(){var n=this;if(this.props.part.type&&v[this.props.part.type]){this.calculateHeights(),this.intl=c.provideIntlService(this),this.service=new v[this.props.part.type](this.intl),this.configureServices();var e=this.service.data(this.props.value),t="translateY("+this.topOffset+"px)",i=this.service.total(this.props.value),e=a.createElement("ul",{style:{transform:t,msTransform:t},className:"k-reset"},e.map(function(e,t){return a.createElement("li",{key:t,className:"k-item",onClick:function(){n.handleChange(e)}},a.createElement("span",null,e.text))}));return a.createElement("div",{className:"k-time-list",id:String(this.props.id||""),tabIndex:this.props.disabled?-1:0,ref:function(e){n._element=e},onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseOver:this.handleMouseOver},this.dom.didCalculate?a.createElement(p.Virtualization,{bottomOffset:this.bottomOffset,children:e,className:"k-time-container",itemHeight:this.itemHeight,maxScrollDifference:this.listHeight,onScrollAction:this.handleScrollAction,ref:function(e){n.virtualization=e},role:"presentation",skip:0,tabIndex:-1,take:i,topOffset:this.topOffset,total:i}):a.createElement("div",{className:"k-time-container"},e))}},g.propTypes={id:s.number,max:s.instanceOf(Date),min:s.instanceOf(Date),part:function(e,t,n){e=e[t];if(!e||!v[e.type])throw new Error("\n Invalid prop '"+t+"' supplied to "+n+".\n Supported part types are hour|minute|second|dayperiod.\n ");return null},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:s.instanceOf(Date),smoothScroll:s.bool},g.defaultProps={boundRange:!1,max:f.MAX_TIME,min:f.MIDNIGHT_DATE,step:1,smoothScroll:!0},g);function g(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 t=void 0===e?r.props:e,n=t.min,e=t.max,t=t.value,e=r.service.limitRange(n||r.min,e||r.max,t||r.props.value),t=e[0],e=e[1];r.service.configure(r.serviceSettings({min:t,max:e}))},r.serviceSettings=function(e){var t={boundRange:r.props.boundRange||g.defaultProps.boundRange,insertUndividedMax:!1,min:l.cloneDate(r.min),max:l.cloneDate(r.max),part:r.props.part,step:r.step},e=Object.assign({},t,e);return e.boundRange="hour"!==e.part.type||r.props.boundRange||g.defaultProps.boundRange,e},r.handleScrollAction=function(e){var t=e.target,e=e.animationInProgress;r.virtualization&&t&&!e&&(r.animateToIndex=!1,t=r.virtualization.itemIndex(r.itemOffset(t.scrollTop)),t=r.service.data(r.props.value)[t],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._element.focus({preventScroll:!0})},r.handleKeyDown=function(e){var t=e.keyCode;t!==u.Keys.down&&t!==u.Keys.up&&t!==u.Keys.end&&t!==u.Keys.home||e.preventDefault();e=(m[e.keyCode]||u.noop)(r.service.data(r.props.value),r.service.selectedIndex(r.props.value));e&&r.handleChange(e)},r.handleChange=function(e){var t=r.service.apply(r.props.value,e.value);r.props.value.getTime()!==t.getTime()&&(r.setState({value:t}),(e=r.props.onChange)&&e.call(void 0,t))},r.dom=new h.DOMService,r}t.TimeList=f,c.registerForIntl(f)},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);t.DayPeriodService=i.DayPeriodService;i=n(60);t.DOMService=i.DOMService;i=n(61);t.HoursService=i.HoursService;i=n(62);t.MinutesService=i.MinutesService;n=n(63);t.SecondsService=n.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(1),n=(r.prototype.apply=function(e,t){var n=e.getHours(),i=a(n),r=a(t.getHours());if(i&&r||!i&&!r)return e;t=this.normalizedRange(),i=t[0],t=t[1],t=void 0===t?24:t;return o(e,Math.min(Math.max(i,n+(r?-12:12)),t||24))},r.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,t=e.max,t=void 0===t?this.max:t,e=e.part,e=void 0===e?this.part:e;this.min=n,this.max=t,this.part=e},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)]},r);function r(e){this.intl=e}t.DayPeriodService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(0),n=(o.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},o.prototype.calculateHeights=function(e){var t;r.canUseDOM&&(t=(t=i.domContainerFactory("div"))([t([t([i.domContainerFactory("ul")([i.domContainerFactory("li")("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),t=(e=e&&e.querySelector(".k-time-container")||document.body).appendChild(t),this.timeListHeight=t.querySelector(".k-scrollable").offsetHeight,this.itemHeight=t.querySelector("li").offsetHeight,e.removeChild(t),this.didCalculate=!0)},o);function o(){this.didCalculate=!1}t.DOMService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e%24}function i(e,t){return a(24+e-t)}var r=n(1),s=n(2),l=n(8),n=function(n){return function(e,t){return t&&r.getDate(e).getTime()!==r.getDate(t).getTime()?l.setHours(e,n):e}},o=n(0),u=n(23),n=(c.prototype.apply=function(e,t){return l.setHours(e,t.getHours())},c.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,r=e.insertUndividedMax,o=void 0===r?this.insertUndividedMax:r,n=e.min,r=void 0===n?this.min:n,n=e.max,n=void 0===n?this.max:n,a=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=i,this.insertUndividedMax=o,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=n,this.step=e},c.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return a(t+e*n)}),r=l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(r),e&&this.addMissing(r,e),r},c.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},c.prototype.limitRange=function(e,t,n){return this.boundRange?[o(e,n),u(t,n)]:[e,t]},c.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},c.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},c.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},c.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},c.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},c.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},c.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},c.prototype.isLastMissing=function(e){return this.isMissing(l.setHours(this.max,this.lastHour(e)))},c.prototype.divideByStep=function(e){return i(e.getHours(),this.min.getHours())/this.step},c.prototype.lastHour=function(e){return this.range(e)[1]},c.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getHours(),t.getHours()]},c);function c(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}t.HoursService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e%60}function i(e,t){return a(60+e-t)}var r=n(1),s=n(2),l=n(8),n=function(n){return function(e,t){return t&&e.getHours()!==t.getHours()?l.setMinutes(e,n):e}},o=n(0),u=n(59),n=(c.prototype.apply=function(e,t){return l.setMinutes(e,t.getMinutes())},c.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,n=void 0===r?this.min:r,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=i,this.toListItem=function(e){e=l.setMinutes(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=r,this.step=e},c.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return a(t+e*n)}),r=l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(r),e&&this.addMissing(r,e),r},c.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},c.prototype.limitRange=function(e,t,n){return[o(e,n),u(t,n)]},c.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},c.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},c.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},c.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},c.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},c.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},c.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},c.prototype.isLastMissing=function(e){return this.isMissing(l.setMinutes(this.max,this.lastMinute(e)))},c.prototype.divideByStep=function(e){return i(e.getMinutes(),this.min.getMinutes())/this.step},c.prototype.lastMinute=function(e){return this.range(e)[1]},c.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMinutes(),t.getMinutes()]},c);function c(e){this.intl=e,this.insertUndividedMax=!1}t.MinutesService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function a(e){return e%60}function i(e,t){return a(60+e-t)}var r=n(1),s=n(2),l=n(8),n=function(n){return function(e,t){return!t||e.getMinutes()===t.getMinutes()&&e.getHours()===t.getHours()?e:l.setSeconds(e,n)}},o=n(0),u=n(59),n=(c.prototype.apply=function(e,t){return l.setSeconds(e,t.getSeconds())},c.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,n=void 0===r?this.min:r,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=i,this.toListItem=function(e){e=l.setSeconds(s.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=r,this.step=e},c.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return a(t+e*n)}),r=l.range(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(r),e&&this.addMissing(r,e),r},c.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},c.prototype.limitRange=function(e,t,n){return[o(e,n),u(t,n)]},c.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},c.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},c.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},c.prototype.divideByStep=function(e){return i(e.getSeconds(),this.min.getSeconds())/this.step},c.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},c.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},c.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(i(t,e)/this.step)+1},c.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},c.prototype.isLastMissing=function(e){return this.isMissing(l.setSeconds(this.max,this.lastSecond(e)))},c.prototype.lastSecond=function(e){return this.range(e)[1]},c.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getSeconds(),t.getSeconds()]},c);function c(e){this.intl=e,this.insertUndividedMax=!1}t.SecondsService=n},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=n(3),s=n(22),l=n(9),u=n(0),c=n(1),n=n(7),n=(o=a.Component,r(p,o),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-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-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=o.call(this,e)||this;return i.isActive=!1,i.focusActiveDate=function(){var e,t;i._element&&(e=i._element.querySelector("td.k-state-focused"),t=i._element.querySelector(".k-state-pending-focus"),e&&e[0]&&e[0].classList.remove("k-state-focused"),t&&t.classList.add("k-state-focused"),i.isActive=!0)},i.blurActiveDate=function(){var e;i._element&&((e=i._element.querySelector("td.k-state-focused"))&&e.classList.remove("k-state-focused"),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&&(t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:c.cloneDate(e.value),target:i,isTodayClick:t},n.call(void 0,t))},i}t.HorizontalViewList=n},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var o,c=n(3),a=n(4),p=n(14),s=n(1),d=n(0),h=n(5),l=n(0),f=n(10),m=n(13),v=n(39),g=n(9),y=n(7),b=n(6),w={display:"inline-block"},y=(o=c.Component,r(D,o),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)||g.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||g.EMPTY_SELECTIONRANGE,n=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,r=d.classNames("k-daterangepicker",{"k-state-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]),l=o.toLanguageString(b.separator,b.messages[b.separator]),o=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}),a=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}),s=u({animate:null!==this._wrapper,anchor:this._wrapper,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(v.MultiViewCalendar,u({},e,{ref:this.setCalendarRef})),i=c.createElement("span",u({role:"button",className:"k-select k-button k-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},c.createElement("span",{ref:function(e){t._wrapper=e},className:"k-daterangepicker-wrap",style:w},this.props.startDateInput?c.createElement(this.props.startDateInput,u({},o)):c.createElement(m.DateInput,u({},o,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?i:l,this.props.endDateInput?c.createElement(this.props.endDateInput,u({},a)):c.createElement(m.DateInput,u({},a,{ref:this._endDateInput}))),this.props.popup?c.createElement(this.props.popup,u({},s),e):c.createElement(p.Popup,u({},s),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.propTypes={allowReverse:a.bool,calendarSettings:a.any,className:a.string,defaultShow:a.bool,defaultValue:a.shape({start:a.instanceOf(Date),end:a.instanceOf(Date)}),disabled:a.bool,endDateInputSettings:a.shape(m.DateInput.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:a.instanceOf(Date),end:a.instanceOf(Date)})},D.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:g.EMPTY_SELECTIONRANGE,disabled:!1,format:"d",max:y.MAX_DATE,min:y.MIN_DATE,swapButton:!1},D);function D(e){var i=o.call(this,e)||this;return i._element=null,i._wrapper=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||g.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-state-focused"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.add("k-state-focused");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-state-focused"),i.endDateInput&&i.endDateInput.element&&i.endDateInput.element.classList.remove("k-state-focused"),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||g.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.DateRangePicker=y,h.registerForLocalization(y)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var o,C=n(3),a=n(4),M=n(14),s=n(1),x=n(0),l=n(13),u=n(0),c=n(10),p=n(2),V=n(6),N=n(5),R=n(67),d=n(8),h=n(7),A=n(21),l=(o=C.Component,r(f,o),Object.defineProperty(f.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dateInput",{get:function(){return this._dateInput.current},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.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(f.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"min",{get:function(){return(void 0!==this.props.min?this.props:f.defaultProps).min},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"max",{get:function(){return(void 0!==this.props.max?this.props:f.defaultProps).max},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.prototype,"validityStyles",{get:function(){return(void 0!==this.props.validityStyles?this.props:f.defaultProps).validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"required",{get:function(){return(void 0!==this.props.required?this.props:f.defaultProps).required},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dateInputComp",{get:function(){return this.props.dateInput||f.defaultProps.dateInput},enumerable:!0,configurable:!0}),f.prototype.componentDidMount=function(){this.show&&this.forceUpdate()},f.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},f.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},f.prototype.render=function(){var n=this,e=this.props,i=e.disabled,t=e.tabIndex,r=e.title,o=e.id,a=e.format,s=e.formatPlaceholder,l=e.min,u=e.max,c=e.weekNumber,p=e.focusedDate,d=e.className,h=e.width,f=e.name,m=e.validationMessage,v=e.required,g=e.validityStyles,y=e.cancelButton,b=e.minTime,w=e.maxTime,D=e.ariaLabelledBy,O=e.ariaDescribedBy,k=e.popup,S=void 0===k?M.Popup:k,_=e.calendar,e=!this.validityStyles||this.validity.valid,I=x.classNames("k-widget k-datetimepicker",{"k-state-invalid":!e},d),P=x.classNames("k-picker-wrap",{"k-state-disabled":i,"k-state-focused":this.state.focused}),E={id:o,ariaLabelledBy:D,ariaDescribedBy:O,format:a,formatPlaceholder:s,disabled:i,title:r,validityStyles:g,validationMessage:m,required:v,min:l,max:u,minTime:b,maxTime:w,name:f,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},t=C.createElement(x.AsyncFocusBlur,{onFocus:this.handleFocus,onBlur:this.handleBlur,onSyncFocus:this.props.onFocus,onSyncBlur:this.props.onBlur},function(e){var t=e.onFocus,e=e.onBlur;return C.createElement("div",{ref:function(e){n._element=e},className:I,onKeyDown:n.handleKeyDown,style:{width:h},onFocus:t,onBlur:e},C.createElement("div",{ref:function(e){n._wrapper=e},className:P},C.createElement(n.dateInputComp,T({_ref:n._dateInput},E)),C.createElement("span",T({role:"button",onMouseDown:n.handleIconMouseDown,onClick:n.handleDateIconClick,title:N.provideLocalizationService(n).toLanguageString(V.toggleDateTimeSelector,V.messages[V.toggleDateTimeSelector]),className:"k-select"},{"aria-controls":n._popupId,"aria-label":N.provideLocalizationService(n).toLanguageString(V.toggleDateTimeSelector,V.messages[V.toggleDateTimeSelector])}),C.createElement("span",{className:"k-link k-link-date"},C.createElement("span",{className:"k-icon k-i-calendar"})))),C.createElement(S,{show:n.show,animate:null!==n._wrapper,anchor:n._wrapper,className:"k-datetime-container k-group k-reset",id:n._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},C.createElement(R.DateTimeSelector,{ref:function(e){n._dateTimeSelector=e},cancelButton:y,steps:n.props.steps,value:n.value,onChange:n.handleValueChange,onReject:n.handleReject,disabled:i,weekNumber:c,min:n.min,max:n.max,minTime:b,maxTime:w,focusedDate:p,format:a,calendar:_})))});return this.props.label?C.createElement(A.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:o,editorValid:e,editorDisabled:this.props.disabled,children:t,style:{width:this.props.width}}):t},f.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},f.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout(function(){return e()})},f.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},f.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},f);function f(e){var i=o.call(this,e)||this;return i._popupId=x.guid(),i._element=null,i._wrapper=null,i._dateInput=C.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===x.Keys.esc)return i.shouldFocusDateInput=!0,void i.setShow(!1);!t||n!==x.Keys.up&&n!==x.Keys.down||(e.preventDefault(),e.stopPropagation(),i.shouldFocusDateInput=n===x.Keys.up,i.setShow(n===x.Keys.down))},i.dateInputElement=function(){return i.dateInput&&i.dateInput.element||i._wrapper&&i._wrapper.querySelector(".k-dateinput-wrap > input.k-input")},u.validatePackage(c.packageMetadata),i.state={value:i.props.defaultValue||f.defaultProps.defaultValue,show:i.props.defaultShow||f.defaultProps.defaultShow,focused:!1},i}t.DateTimePicker=l,N.registerForLocalization(l)},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)}),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)};Object.defineProperty(t,"__esModule",{value:!0});var o,m=n(3),v=n(5),g=n(6),y=n(19),b=n(15),w=n(38),D=n(2),a=n(1),O=n(0),s=n(7),l=n(8),r=(o=m.Component,r(u,o),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,l=e.format,u=O.classNames({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),c=O.classNames({"k-state-disabled":!this.hasDateValue},"k-time-accept k-button k-primary"),p=v.provideLocalizationService(this),d=p.toLanguageString(g.date,g.messages[g.date]),h=p.toLanguageString(g.time,g.messages[g.time]),e=p.toLanguageString(g.dateTimePickerCancel,g.messages[g.dateTimePickerCancel]),p=p.toLanguageString(g.dateTimePickerSet,g.messages[g.dateTimePickerSet]),s={min:r,max:o,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return m.createElement("div",{onKeyDown:this.handleKeyDown,className:u,tabIndex:-1},m.createElement("div",{className:"k-datetime-buttongroup"},m.createElement(y.ButtonGroup,{width:"100%"},m.createElement(y.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},d),m.createElement(y.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},h))),m.createElement("div",{className:"k-datetime-selector"},m.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(e){return t._calendarWrap=e}},this.props.calendar?m.createElement(this.props.calendar,f({},s)):m.createElement(b.Calendar,f({ref:function(e){t._calendar=e}},s))),m.createElement("div",{className:"k-datetime-time-wrap"},m.createElement(w.TimePart,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(e){t._timePart=e},min:this.minTime||D.MIN_TIME,max:this.maxTime||D.MAX_TIME,steps:this.props.steps,value:this.state.timeValue,format:l,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),m.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},i&&m.createElement("button",f({type:"button",ref:function(e){t._cancelButton=e},className:"k-button k-time-cancel",onClick:this.handleReject,title:e},{"aria-label":e}),e),m.createElement("button",f({type:"button",ref:function(e){t._acceptButton=e},className:c,onClick:this.handleAccept,title:p},{"aria-label":p}),p)))},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||D.getToday())?e:null},u.prototype.hasActiveButton=function(){return!!this._acceptButton&&(document.activeElement===this._acceptButton||document.activeElement===this._cancelButton)},u.prototype.mergeTime=function(e,t){return e&&t?D.setTime(t,e):t},u.prototype.mergeDate=function(e,t){return e?D.setTime(e||D.getToday(),t):t},u);function u(e){var i=o.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&&(t={nativeEvent:e.nativeEvent,syntheticEvent:e,target:i,value:t},i.props.onReject.call(void 0,t))},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 O.Keys.enter:return void(!i.hasActiveButton()&&i.hasDateValue&&i.handleAccept(e));case O.Keys.left:return n?void i.move("left"):void 0;case O.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=r,v.registerForLocalization(r)}],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)}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dateinputs",
3
3
  "description": "KendoReact Date Inputs package",
4
- "version": "4.9.0",
4
+ "version": "4.9.1-dev.202109160844",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-react.git"
@@ -47,18 +47,18 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@progress/kendo-date-math": "^1.4.0",
50
- "@progress/kendo-react-buttons": "4.9.0",
51
- "@progress/kendo-react-common": "4.9.0",
52
- "@progress/kendo-react-labels": "4.9.0",
53
- "@progress/kendo-react-popup": "4.9.0",
50
+ "@progress/kendo-react-buttons": "4.9.1-dev.202109160844",
51
+ "@progress/kendo-react-common": "4.9.1-dev.202109160844",
52
+ "@progress/kendo-react-labels": "4.9.1-dev.202109160844",
53
+ "@progress/kendo-react-popup": "4.9.1-dev.202109160844",
54
54
  "prop-types": "^15.6.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@progress/kendo-licensing": "^1.0.1",
58
- "@progress/kendo-react-dropdowns": "4.9.0",
59
- "@progress/kendo-react-inputs": "4.9.0",
60
- "@progress/kendo-react-intl": "4.9.0",
61
- "@progress/kendo-react-tooltip": "4.9.0"
58
+ "@progress/kendo-react-dropdowns": "4.9.1-dev.202109160844",
59
+ "@progress/kendo-react-inputs": "4.9.1-dev.202109160844",
60
+ "@progress/kendo-react-intl": "4.9.1-dev.202109160844",
61
+ "@progress/kendo-react-tooltip": "4.9.1-dev.202109160844"
62
62
  },
63
63
  "@progress": {
64
64
  "friendlyName": "Date Inputs",