@progress/kendo-react-dateinputs 4.11.0 → 4.12.0-dev.202111220849

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 u})),n.d(t,"clone",(function(){return c})),n.d(t,"cloneObject",(function(){return p})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),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,"createPropsContext",(function(){return oe})),n.d(t,"withPropsContext",(function(){return ie})),n.d(t,"useDir",(function(){return ae})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return se})),n.d(t,"useRtl",(function(){return le})),n.d(t,"useMouse",(function(){return ue})),n.d(t,"useCustomComponent",(function(){return ce})),n.d(t,"usePropsContext",(function(){return ne})),n.d(t,"Icon",(function(){return fe})),n.d(t,"SvgIcon",(function(){return ye})),n.d(t,"Typography",(function(){return Me}));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=n(1),u=function(e){return e?new Date(e.getTime()):null};function c(e){var t={};return p(e,t),t}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=d(r,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return u(e);if(l.isValidElement(e))return l.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return p(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var 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 l.cloneElement(l.Children.only(this.props.children),{ref:this.childRef})},t.propTypes={children:f.element.isRequired},t}(l.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=l.useRef(!1),a=l.useRef(0),s=l.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),u=l.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]),c=l.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 l.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:u,onBlur:c}}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))},ne=function(e,t){return l.useContext(e)(t)},re=function(){return(re=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)},oe=function(){return l.createContext((function(e){return e}))},ie=function(e,t){return l.forwardRef((function(n,r){var o=ne(e,n);return l.createElement(t,re({},o,{ref:r}))}))};function ae(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}function se(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,i=l.useMemo((function(){return new S({press:n,drag:r,release:o})}),[]);l.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),l.useEffect((function(){i.update({press:n,drag:r,release:o})}),[n,r,o])}function le(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var ue=function(e,t,n){void 0===n&&(n={});var r=l.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=l.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:l.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:l.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:l.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:l.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:l.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:l.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:l.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])}},ce=function(e){return l.isValidElement(e)?[e.type,e.props]:[e,{}]},pe={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},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=l.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,u=e.style,c=he(e,["className","name","themeColor","size","flip","style"]),p=l.useRef(null),d=l.useRef(null);l.useImperativeHandle(p,(function(){return{element:d.current}})),l.useImperativeHandle(t,(function(){return p.current}));var h=l.useMemo((function(){return o||me.themeColor}),[o]),f=l.useMemo((function(){return i||me.size}),[i]),m=l.useMemo((function(){return a||me.flip}),[a]),v=l.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+h,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},pe[f],n)}),[r,h,f,m,n]),g=ue(e,p);return l.createElement("span",de({ref:d},c,g,{className:v,style:u,role:"presentation"}))}));fe.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 me={size:"default",themeColor:"inherit",flip:"default"};fe.displayName="KendoIcon";var 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=l.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,u=e.size,c=e.style,p=e.svgStyle,d=e.themeColor,h=e.viewBox,f=ge(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:m.current}}));var v=l.useMemo((function(){return i?i.name:be.icon}),[i]),g=l.useMemo((function(){return d||be.themeColor}),[d]),y=l.useMemo((function(){return u||be.size}),[u]),b=l.useMemo((function(){return a||be.flip}),[a]),w=l.useMemo((function(){return h||be.viewBox}),[h]),k=l.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},pe[y],r)}),[v,g,y,b,r]),O=l.useMemo((function(){return e.width&&e.height?ve({width:e.width,height:e.height},c):e.width?ve({width:e.width,height:e.width},c):e.height?ve({width:e.height,height:e.height},c):ve({},c)}),[e.width,e.height,c]);return l.createElement("span",{className:k,style:O,ref:m},l.createElement("svg",ve({className:o,style:p,"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))}));ye.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 be={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ye.displayName="KendoSvgIcon";var we={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ke={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Oe={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"},De={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},_e={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Se={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ce={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ee={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"},xe=function(){return(xe=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)},Pe=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},Ie=function(e){var t=l.forwardRef((function(t,n){var r=t.className,o=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,u=t.themeColor,c=t.margin,p=Pe(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=l.useRef(null),h=l.useRef(null);l.useImperativeHandle(d,(function(){return{element:h.current,props:t}})),l.useImperativeHandle(n,(function(){return d.current}));var f=e,m=function(){if(void 0!==c){if("string"==typeof c)return[Oe[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var e=[];return Object.keys(c).forEach((function(t){var n,r;null!==c[t]&&void 0!==c[t]&&e.push((n=t,r=c[t],""+_e[n]+("string"==typeof r?De[r]:r)))})),e.join(" ")}}};return l.createElement(f,xe({ref:h,className:["k-"+("p"===e?"paragraph":e),we[o],ke[i],Se[a],Ce[s],Ee[u],m(),r].filter((function(e){return void 0!==e})).join(" ")},p),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},Me={h1:Ie("h1"),h2:Ie("h2"),h3:Ie("h3"),h4:Ie("h4"),h5:Ie("h5"),h6:Ie("h6"),p:Ie("p"),code:Ie("code"),pre:Ie("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(14);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.intersects=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e?t&&e<t?r.cloneDate(t):n&&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:1637235563,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(20),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(13);t.Action=r.Action;var o=n(18);t.CalendarViewEnum=o.CalendarViewEnum;var i=n(14);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:1637235777,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";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:1637235593,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-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":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":"outline"===g||"outlined"===g,"k-chip-solid":"solid"===g||"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:k,onBlur:O,onKeyDown:w}),m&&o.createElement("span",{className:"k-selected-icon-wrapper"},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:"solid",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,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.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),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(19),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){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(19),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,4),v=o.firstDecadeOfCentury(f),g=o.lastDecadeOfCentury(f),y=a.getToday();return a.range(0,3).map((function(e){var i=o.addDecades(v,4*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 a.intersects(s,v,g)?{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}:null}))}))},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 4},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(13),a=n(14),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,4),v=o.firstYearOfDecade(f),g=o.lastYearOfDecade(f),y=s.getToday();return s.range(0,3).map((function(e){var a=o.addYears(v,4*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 s.intersects(l,v,g)?{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}:null}))}))},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 4},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(13),a=n(14),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(13),a=n(4),s=n(14),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,4),w=a.getToday();return a.range(0,3).map((function(e){var s=o.addMonths(v,4*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 4},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 k-hstack"},r,a.createElement("span",{className:"k-spacer"}),a.createElement("span",{className:"k-calendar-nav k-hstack"},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(12),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(20),v=n(9),g=n(12),y=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 b=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?y.test(r.type||""):y.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),y=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(g.Button,i({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",look:"flat",primary:!0,title:y},{"aria-label":y},{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 this._nowButton&&document.activeElement===this._nowButton.element},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=b,p.registerForIntl(b),p.registerForLocalization(b)},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(12),d=n(10),h=n(30),f=n(8),m=n(6),v=n(19),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.calculateFocusFromValue=!1,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:1637235750,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(16);t.Calendar=r.Calendar;var o=n(15);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(17),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-vstack",{"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(18),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(18),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(13),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(17),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(15),m=n(16),v=n(4),g=n(4),y=n(6),b=n(5),w=n(36),k=n(37),O=n(21),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(15),g=n(57),y=n(4),b=n(9),w=n(21),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),m=n(12);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(t.Direction||(t.Direction={}));var v=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,v=t.max,g=t.boundRange,y=t.nowButton,b=t.steps,w=c.provideLocalizationService(this),k=w.toLanguageString(p.timePickerCancel,p.messages[p.timePickerCancel]),O=w.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:v,boundRange:g,disabled:o,nowButton:y,steps:b}),a.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&a.createElement(m.Button,i({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:k},{"aria-label":k}),k),a.createElement(m.Button,i({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",primary:!0,onClick:this.handleAccept,title:O},{"aria-label":O}),O)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},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=v,c.registerForIntl(v),c.registerForLocalization(v)},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(17),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(20);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-hstack k-align-items-start k-justify-content-center",{"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-calendar-content 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(15),m=n(39),v=n(10),g=n(8),y=n(6),b=n(12),w={display:"inline-block"},k=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}),k=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}),O=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}),D=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}),_=this.props.calendar?a.createElement(this.props.calendar,i({},D)):a.createElement(m.MultiViewCalendar,i({},D,{ref:this.setCalendarRef})),S=a.createElement(b.Button,i({className:"k-select",look:"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:w},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?S:h,this.props.endDateInput?a.createElement(this.props.endDateInput,i({},k)):a.createElement(f.DateInput,i({},k,{ref:this._endDateInput}))),this.props.popup?a.createElement(this.props.popup,i({},O),_):a.createElement(l.Popup,i({},O),_))},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=k,p.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(7),u=n(3),c=n(2),p=n(15),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(21),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(12),c=n(16),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=s.provideLocalizationService(this),w=b.toLanguageString(l.date,l.messages[l.date]),k=b.toLanguageString(l.time,l.messages[l.time]),O=b.toLanguageString(l.dateTimePickerCancel,l.messages[l.dateTimePickerCancel]),D=b.toLanguageString(l.dateTimePickerSet,l.messages[l.dateTimePickerSet]),_={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},w),a.createElement(u.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},k))),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({},_)):a.createElement(c.Calendar,i({ref:function(t){e._calendar=t}},_))),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(u.Button,i({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:O},{"aria-label":O}),O),a.createElement(u.Button,i({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:D},{"aria-label":D}),D)))},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&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},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 u})),n.d(t,"clone",(function(){return c})),n.d(t,"cloneObject",(function(){return p})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),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,"createPropsContext",(function(){return oe})),n.d(t,"withPropsContext",(function(){return ie})),n.d(t,"useDir",(function(){return ae})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return se})),n.d(t,"useRtl",(function(){return le})),n.d(t,"useMouse",(function(){return ue})),n.d(t,"useCustomComponent",(function(){return ce})),n.d(t,"usePropsContext",(function(){return ne})),n.d(t,"Icon",(function(){return fe})),n.d(t,"SvgIcon",(function(){return ye})),n.d(t,"Typography",(function(){return Me}));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=n(1),u=function(e){return e?new Date(e.getTime()):null};function c(e){var t={};return p(e,t),t}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=d(r,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return u(e);if(l.isValidElement(e))return l.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return p(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var 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 l.cloneElement(l.Children.only(this.props.children),{ref:this.childRef})},t.propTypes={children:f.element.isRequired},t}(l.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=l.useRef(!1),a=l.useRef(0),s=l.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),u=l.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]),c=l.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 l.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:u,onBlur:c}}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))},ne=function(e,t){return l.useContext(e)(t)},re=function(){return(re=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)},oe=function(){return l.createContext((function(e){return e}))},ie=function(e,t){return l.forwardRef((function(n,r){var o=ne(e,n);return l.createElement(t,re({},o,{ref:r}))}))};function ae(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}function se(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,i=l.useMemo((function(){return new S({press:n,drag:r,release:o})}),[]);l.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),l.useEffect((function(){i.update({press:n,drag:r,release:o})}),[n,r,o])}function le(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var ue=function(e,t,n){void 0===n&&(n={});var r=l.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=l.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:l.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:l.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:l.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:l.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:l.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:l.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:l.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])}},ce=function(e){return l.isValidElement(e)?[e.type,e.props]:[e,{}]},pe={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},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=l.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,u=e.style,c=he(e,["className","name","themeColor","size","flip","style"]),p=l.useRef(null),d=l.useRef(null);l.useImperativeHandle(p,(function(){return{element:d.current}})),l.useImperativeHandle(t,(function(){return p.current}));var h=l.useMemo((function(){return o||me.themeColor}),[o]),f=l.useMemo((function(){return i||me.size}),[i]),m=l.useMemo((function(){return a||me.flip}),[a]),v=l.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+h,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},pe[f],n)}),[r,h,f,m,n]),g=ue(e,p);return l.createElement("span",de({ref:d},c,g,{className:v,style:u,role:"presentation"}))}));fe.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 me={size:"default",themeColor:"inherit",flip:"default"};fe.displayName="KendoIcon";var 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=l.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,u=e.size,c=e.style,p=e.svgStyle,d=e.themeColor,h=e.viewBox,f=ge(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:m.current}}));var v=l.useMemo((function(){return i?i.name:be.icon}),[i]),g=l.useMemo((function(){return d||be.themeColor}),[d]),y=l.useMemo((function(){return u||be.size}),[u]),b=l.useMemo((function(){return a||be.flip}),[a]),w=l.useMemo((function(){return h||be.viewBox}),[h]),k=l.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},pe[y],r)}),[v,g,y,b,r]),O=l.useMemo((function(){return e.width&&e.height?ve({width:e.width,height:e.height},c):e.width?ve({width:e.width,height:e.width},c):e.height?ve({width:e.height,height:e.height},c):ve({},c)}),[e.width,e.height,c]);return l.createElement("span",{className:k,style:O,ref:m},l.createElement("svg",ve({className:o,style:p,"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))}));ye.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 be={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ye.displayName="KendoSvgIcon";var we={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ke={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Oe={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"},De={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},_e={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Se={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ce={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ee={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"},xe=function(){return(xe=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)},Pe=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},Ie=function(e){var t=l.forwardRef((function(t,n){var r=t.className,o=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,u=t.themeColor,c=t.margin,p=Pe(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=l.useRef(null),h=l.useRef(null);l.useImperativeHandle(d,(function(){return{element:h.current,props:t}})),l.useImperativeHandle(n,(function(){return d.current}));var f=e,m=function(){if(void 0!==c){if("string"==typeof c)return[Oe[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var e=[];return Object.keys(c).forEach((function(t){var n,r;null!==c[t]&&void 0!==c[t]&&e.push((n=t,r=c[t],""+_e[n]+("string"==typeof r?De[r]:r)))})),e.join(" ")}}};return l.createElement(f,xe({ref:h,className:["k-"+("p"===e?"paragraph":e),we[o],ke[i],Se[a],Ce[s],Ee[u],m(),r].filter((function(e){return void 0!==e})).join(" ")},p),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},Me={h1:Ie("h1"),h2:Ie("h2"),h3:Ie("h3"),h4:Ie("h4"),h5:Ie("h5"),h6:Ie("h6"),p:Ie("p"),code:Ie("code"),pre:Ie("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(14);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.intersects=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e?t&&e<t?r.cloneDate(t):n&&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:1637569532,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(20),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(13);t.Action=r.Action;var o=n(18);t.CalendarViewEnum=o.CalendarViewEnum;var i=n(14);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:1637569733,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";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:1637569561,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-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":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":"outline"===g||"outlined"===g,"k-chip-solid":"solid"===g||"filled"===g},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:k,onBlur:O,onKeyDown:w}),m&&o.createElement("span",{className:"k-selected-icon-wrapper"},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:"solid",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,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.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),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(19),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){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(19),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,4),v=o.firstDecadeOfCentury(f),g=o.lastDecadeOfCentury(f),y=a.getToday();return a.range(0,3).map((function(e){var i=o.addDecades(v,4*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 a.intersects(s,v,g)?{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}:null}))}))},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 4},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(13),a=n(14),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,4),v=o.firstYearOfDecade(f),g=o.lastYearOfDecade(f),y=s.getToday();return s.range(0,3).map((function(e){var a=o.addYears(v,4*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 s.intersects(l,v,g)?{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}:null}))}))},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 4},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(13),a=n(14),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(13),a=n(4),s=n(14),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,4),w=a.getToday();return a.range(0,3).map((function(e){var s=o.addMonths(v,4*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 4},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 k-hstack"},r,a.createElement("span",{className:"k-spacer"}),a.createElement("span",{className:"k-calendar-nav k-hstack"},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(12),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(20),v=n(9),g=n(12),y=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 b=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?y.test(r.type||""):y.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),y=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(g.Button,i({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",look:"flat",primary:!0,title:y},{"aria-label":y},{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 this._nowButton&&document.activeElement===this._nowButton.element},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=b,p.registerForIntl(b),p.registerForLocalization(b)},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(12),d=n(10),h=n(30),f=n(8),m=n(6),v=n(19),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.calculateFocusFromValue=!1,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:1637569706,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(16);t.Calendar=r.Calendar;var o=n(15);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(17),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-vstack",{"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(18),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(18),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(13),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(17),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(15),m=n(16),v=n(4),g=n(4),y=n(6),b=n(5),w=n(36),k=n(37),O=n(21),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(15),g=n(57),y=n(4),b=n(9),w=n(21),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),m=n(12);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(t.Direction||(t.Direction={}));var v=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,v=t.max,g=t.boundRange,y=t.nowButton,b=t.steps,w=c.provideLocalizationService(this),k=w.toLanguageString(p.timePickerCancel,p.messages[p.timePickerCancel]),O=w.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:v,boundRange:g,disabled:o,nowButton:y,steps:b}),a.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&a.createElement(m.Button,i({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:k},{"aria-label":k}),k),a.createElement(m.Button,i({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",primary:!0,onClick:this.handleAccept,title:O},{"aria-label":O}),O)))},t.prototype.nextTick=function(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((function(){return e()}))},t.prototype.hasActiveButton=function(){return!(!this._acceptButton||!this._acceptButton.element)&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},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=v,c.registerForIntl(v),c.registerForLocalization(v)},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(17),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(20);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-hstack k-align-items-start k-justify-content-center",{"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-calendar-content 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(15),m=n(39),v=n(10),g=n(8),y=n(6),b=n(12),w={display:"inline-block"},k=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}),k=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}),O=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}),D=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}),_=this.props.calendar?a.createElement(this.props.calendar,i({},D)):a.createElement(m.MultiViewCalendar,i({},D,{ref:this.setCalendarRef})),S=a.createElement(b.Button,i({className:"k-select",look:"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:w},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?S:h,this.props.endDateInput?a.createElement(this.props.endDateInput,i({},k)):a.createElement(f.DateInput,i({},k,{ref:this._endDateInput}))),this.props.popup?a.createElement(this.props.popup,i({},O),_):a.createElement(l.Popup,i({},O),_))},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=k,p.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(7),u=n(3),c=n(2),p=n(15),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(21),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(12),c=n(16),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=s.provideLocalizationService(this),w=b.toLanguageString(l.date,l.messages[l.date]),k=b.toLanguageString(l.time,l.messages[l.time]),O=b.toLanguageString(l.dateTimePickerCancel,l.messages[l.dateTimePickerCancel]),D=b.toLanguageString(l.dateTimePickerSet,l.messages[l.dateTimePickerSet]),_={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},w),a.createElement(u.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},k))),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({},_)):a.createElement(c.Calendar,i({ref:function(t){e._calendar=t}},_))),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(u.Button,i({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:O},{"aria-label":O}),O),a.createElement(u.Button,i({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:D},{"aria-label":D}),D)))},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&&(this._acceptButton&&document.activeElement===this._acceptButton.element||this._cancelButton&&document.activeElement===this._cancelButton.element)},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)}])}));