@progress/kendo-react-dateinputs 4.14.0-dev.202112150919 → 4.14.0-dev.202112301830

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("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactDateinputs=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactDateinputs=t(e.React,e.PropTypes,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,"ZIndexContext",(function(){return o})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return s})),n.d(t,"canUseDOM",(function(){return l})),n.d(t,"canUseRef",(function(){return u})),n.d(t,"classNames",(function(){return c})),n.d(t,"cloneDate",(function(){return p})),n.d(t,"clone",(function(){return d})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return h})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return y})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return D})),n.d(t,"Keys",(function(){return C})),n.d(t,"noop",(function(){return x})),n.d(t,"getScrollbarWidth",(function(){return E})),n.d(t,"setScrollbarWidth",(function(){return P})),n.d(t,"setter",(function(){return I})),n.d(t,"mapTree",(function(){return N})),n.d(t,"mapTreeItem",(function(){return R})),n.d(t,"extendDataItem",(function(){return j})),n.d(t,"getItemPath",(function(){return V})),n.d(t,"validatePackage",(function(){return F})),n.d(t,"hasRelativeStackingContext",(function(){return L})),n.d(t,"dispatchEvent",(function(){return B})),n.d(t,"AsyncFocusBlur",(function(){return z})),n.d(t,"createPropsContext",(function(){return Y})),n.d(t,"withPropsContext",(function(){return W})),n.d(t,"useDir",(function(){return X})),n.d(t,"useAsyncFocusBlur",(function(){return H})),n.d(t,"useRtl",(function(){return G})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return U})),n.d(t,"COLLECTION_ACTION",(function(){return Z})),n.d(t,"useCollection",(function(){return Q})),n.d(t,"Icon",(function(){return oe})),n.d(t,"SvgIcon",(function(){return le})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return He})),n.d(t,"Draggable",(function(){return Ke})),n.d(t,"Droppable",(function(){return ze})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return Fe}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var a=function(){return"undefined"!=typeof document?document:{}},s=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=a();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}(),l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=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))},c=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)?c.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(" ")},p=function(e){return e?new Date(e.getTime()):null};function d(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=h(r,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return p(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=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()}},g=function(){},y=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},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function w(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var k={};function O(e){if(k[e])return k[e];var t=w(e);return k[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},k[e]}k.undefined=function(){};var D=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},C={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},x=function(){},E=function(){return!(!l||!document.body)&&(new s).scrollbarWidth},P=function(){if(!l||!document.body)return!1;var e=(new s).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},S={undefined:function(e){return e}},_=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(e){if(S[e])return S[e];var t=w(e);return S[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]]||_(t[a+1],r);o[t[i]]=n},S[e]}var T=function(){return(T=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 M(e,t,n){var r;return n?T({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var N=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=M(t,n).map((function(t){return e(t,n,r)}));return r(M(t,n,o))}return r(t)}(e,t,n)})).slice()},R=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)},j=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},V=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},A=n(22);function F(e){if(void 0!==A)A.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 L=function(e){if(!l)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 B(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function H(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,a=r.useRef(!1),s=r.useRef(0),l=r.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),u=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(e)),a.current||(a.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[a,t,o]),c=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),l((function(){a.current&&n&&(a.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[a,l,n,i]);return r.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:u,onBlur:c}}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)},z=function(e){var t=e.children,n=H({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,K({},n))},U=function(e,t){return r.useContext(e)(t)},q=function(){return(q=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=function(){return r.createContext((function(e){return e}))},W=function(e,t){return r.forwardRef((function(n,o){var i=U(e,n);return r.createElement(t,q({},i,{ref:o}))}))};function X(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}function G(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}var Z,$=function(e,t,n){void 0===n&&(n={});var o=r.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]),i=r.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:r.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:i,onMouseDown:o,onDoubleClick:r.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:r.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:r.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:r.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:r.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:r.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])}},J=function(e){return r.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Z||(Z={}));var Q=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case Z.add:t.current.push(e.item);break;case Z.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=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)},re=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},oe=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,s=e.flip,l=e.style,u=re(e,["className","name","themeColor","size","flip","style"]),p=r.useRef(null),d=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:d.current}})),r.useImperativeHandle(t,(function(){return p.current}));var f=r.useMemo((function(){return i||ie.themeColor}),[i]),h=r.useMemo((function(){return a||ie.size}),[a]),m=r.useMemo((function(){return s||ie.flip}),[s]),v=r.useMemo((function(){return c("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[h],n)}),[o,f,h,m,n]),g=$(e,p);return r.createElement("span",ne({ref:d},u,g,{className:v,style:l,role:"presentation"}))}));oe.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};oe.displayName="KendoIcon";var 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=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},le=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,s=e.flip,l=e.size,u=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=se(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var v=r.useMemo((function(){return a?a.name:ue.icon}),[a]),g=r.useMemo((function(){return d||ue.themeColor}),[d]),y=r.useMemo((function(){return l||ue.size}),[l]),b=r.useMemo((function(){return s||ue.flip}),[s]),w=r.useMemo((function(){return f||ue.viewBox}),[f]),k=r.useMemo((function(){return c("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[v,g,y,b,o]),O=r.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},u):e.width?ae({width:e.width,height:e.width},u):e.height?ae({width:e.height,height:e.height},u):ae({},u)}),[e.width,e.height,u]);return r.createElement("span",{className:k,style:O,ref:m},r.createElement("svg",ae({className:i,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:w,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));le.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};le.displayName="KendoSvgIcon";var ce,pe={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},de={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},fe={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"},he={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},me={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ge={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ye={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"},be=function(){return(be=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)},we=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},ke=function(e){var t=r.forwardRef((function(t,n){var o=t.className,i=t.fontSize,a=t.fontWeight,s=t.textAlign,l=t.textTransform,u=t.themeColor,c=t.margin,p=we(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=r.useRef(null),f=r.useRef(null);r.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),r.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==c){if("string"==typeof c)return[fe[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],""+me[n]+("string"==typeof r?he[r]:r)))})),e.join(" ")}}};return r.createElement(h,be({ref:f,className:["k-"+("p"===e?"paragraph":e),pe[i],de[a],ve[s],ge[l],ye[u],m(),o].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:ke("h1"),h2:ke("h2"),h3:ke("h3"),h4:ke("h4"),h5:ke("h5"),h6:ke("h6"),p:ke("p"),code:ke("code"),pre:ke("pre")},De=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),s=Math.min(r.top+r.height,n.top+n.height),l=a-i,u=s-o;if(i<a&&o<s){var c=r.width*r.height,p=n.width*n.height,d=l*u;return Number((d/(c+p-d)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Ce=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},xe=function(e){return e&&e.ownerDocument||window.document},Ee=function(e){var t=Ce(),n=xe(e);return t.edge||t.safari?n.body:n.documentElement},Pe=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Se=function(e){var t=Ee(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Pe(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(ce||(ce={}));var _e=function(){},Ie=function(e,t,n){void 0===n&&(n={});var r,o,i,a,s=n.onIsPressedChange,l=void 0===s?_e:s,u=n.onIsScrollingChange,c=void 0===u?_e:u,p=n.onVelocityChange,d=void 0===p?_e:p,f=n.onOffsetChange,h=void 0===f?_e:f,m=n.onPageOffsetChange,v=void 0===m?_e:m,g=n.onClientOffsetChange,y=void 0===g?_e:g,b=n.onScrollOffsetChange,w=void 0===b?_e:b,k=n.onInitialScrollOffsetChange,O=void 0===k?_e:k,D=t.payload,C=D.element,x=D.hint,E=e.autoScrollDirection,P=e.scrollableParent,S=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(S.type){case ce.POINTER_DOWN:if(S.type===ce.POINTER_DOWN&&(!S.originalEvent.isPrimary||0!==S.originalEvent.button))break;case ce.MOUSE_DOWN:if(S.type===ce.MOUSE_DOWN&&S.originalEvent.which&&S.originalEvent.which>1||e.ignoreMouse)break;case ce.TOUCH_START:if(S.type===ce.TOUCH_START&&1!==S.originalEvent.touches.length)break;case ce.START:var _=P||Se(t.payload.element);O(_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop}),y({x:S.clientX,y:S.clientY}),v({x:S.pageX,y:S.pageY}),h({x:S.offsetX,y:S.offsetY}),l(!0),D.onPress&&D.onPress(S);break;case ce.SCROLL:if(S.type===ce.SCROLL&&!e.pressed)break;var I=P||Se(C),T=I instanceof Window?{x:I.scrollX,y:I.scrollY}:{x:I.scrollLeft,y:I.scrollTop};S.scrollX=T.x-e.initialScrollOffset.x,S.scrollY=T.y-e.initialScrollOffset.y,w({x:S.scrollX,y:S.scrollY});case ce.POINTER_MOVE:if(S.type===ce.POINTER_MOVE&&!S.originalEvent.isPrimary)break;case ce.MOUSE_MOVE:case ce.TOUCH_MOVE:if(S.type===ce.TOUCH_MOVE&&1!==S.originalEvent.touches.length)break;case ce.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==S.originalEvent.type&&C){var M=xe(C),N=P||Se(M.elementFromPoint(S.clientX,S.clientY)),R=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(S.pageX,S.pageY,function(e,t){var n=Ee(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(N,function(e){var t=xe(e);return t&&t.defaultView||window}(C)));d({x:E&&!1===E.horizontal?0:R.x,y:E&&!1===E.vertical?0:R.y}),c(0!==R.y||0!==R.x)}!e.drag&&D.onDragStart&&D.onDragStart(S),D.onDrag&&D.onDrag(S);var j=De(x||C,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||C)}))),V=e.drops.find((function(e){return e.element===j}));V&&j&&(r=S.clientX,o=S.clientY,i=P||Se(j),(a=i.getBoundingClientRect()).top<=o&&a.left<=r&&o<=a.bottom&&r<=a.right)&&j!==C?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(S),V.onDragEnter&&V.onDragEnter(S)):V.onDragOver&&V.onDragOver(S):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(S)}y({x:S.clientX,y:S.clientY}),v({x:S.pageX,y:S.pageY});break;case ce.POINTER_UP:if(S.type===ce.POINTER_UP&&!S.originalEvent.isPrimary)break;case ce.MOUSE_UP:case ce.TOUCH_END:if(S.type===ce.TOUCH_END&&1!==S.originalEvent.touches.length)break;case ce.END:l(!1),c(!1),D.onRelease&&D.onRelease(S),e.drop&&e.drop.onDrop&&e.drop.onDrop(S),D.onDragEnd&&D.onDragEnd(S);break;case ce.POINTER_CANCEL:case ce.CONTEXT_MENU:case ce.TOUCH_CANCEL:case ce.CANCEL:l(!1),c(!1),D.onDragEnd&&D.onDragEnd(S),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(S)}},Te=function(e,t){if(e){var n,r;e===Ee(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,s=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},Me=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),s=a[0],l=a[1];return[void 0!==o?o:s,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):l(e[0])}]},Ne=r.createContext([void 0,x]),Re=r.createContext([void 0,x]),je=r.createContext([[],x,x]),Ve=r.createContext([[],x,x]);function Ae(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?x:o,a=t.onRelease,s=void 0===a?x:a,l=t.onDragStart,u=void 0===l?x:l,c=t.onDrag,p=void 0===c?x:c,d=t.onDragEnd,f=void 0===d?x:d,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,k=void 0===w?null:w,O=r.useState(!1),D=O[0],C=O[1],E=r.useState(!1),P=E[0],S=E[1],_=Me(Re)[0],I=Me(Ne),T=I[0],M=I[1],N=r.useContext(Ve)[0],R=r.useContext(je),j=R[0],V=R[1],A=R[2],F=r.useRef({x:0,y:0}),L=r.useRef(),B=r.useRef(!1),H=r.useRef(),K=r.useRef(!1),z=r.useRef({x:0,y:0}),U=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),X=r.useRef({x:0,y:0}),G=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&G,$=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=r.useCallback((function(){return k&&k.current&&k.current.element?k.current.element:k?k.current:null}),[k]),ee=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:ve,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=r.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),re=r.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=r.useCallback((function(){return{drag:T?T.current:null,drop:_?_.current:null,drags:j.map((function(e){return e.current})),drops:N.map((function(e){return e.current})),pressed:D,ignoreMouse:B.current,scrollOffset:W.current,offset:z.current,pageOffset:U.current,initialScrollOffset:X.current,clientOffset:q.current,initialClientOffset:Y.current,velocity:F.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[T,_,j,N,D,b,ee,P]),ie=r.useCallback((function(e){C(e)}),[]),ae=r.useCallback((function(e){S(e)}),[]),se=r.useCallback((function(e){F.current=e}),[]),le=r.useCallback((function(e){z.current=e}),[]),ue=r.useCallback((function(e){q.current=e}),[]),ce=r.useCallback((function(e){U.current=e}),[]),pe=r.useCallback((function(e){Y.current=e}),[]),de=r.useCallback((function(e){W.current=e}),[]),fe=r.useCallback((function(e){X.current=e}),[]),he=r.useCallback((function(e){i(e)}),[i]),me=r.useCallback((function(e){s(e)}),[s]),ve=r.useCallback((function(t){M(te,{target:e.current,event:t}),u(t)}),[M,e,u]),ge=r.useCallback((function(e){p(e)}),[p]),ye=r.useCallback((function(t){K.current||(M(null,{target:e.current,event:t}),f(t))}),[f,M,e]),be=r.useCallback((function(e){Ie(oe(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:le,onClientOffsetChange:ue,onPageOffsetChange:ce,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:fe,onIsPressedChange:ie,onIsScrollingChange:ae})}),[oe,se,le,ce,ue,pe,fe,ie,de,ae]),we=r.useCallback((function(e){be(e)}),[be]),ke=r.useCallback((function(e){be(e)}),[be]),Oe=r.useCallback((function(e){be(e)}),[be]),De=r.useCallback((function(e){be(e)}),[be]),Ce=r.useCallback((function(e){be(e)}),[be]),xe=r.useCallback((function(e){be(e)}),[be]),Ee=r.useCallback((function(e){be(e)}),[be]),Pe=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),_e=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ae=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Fe=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();B.current=!0,H.current=t.setTimeout((function(){B.current=!1}),2e3)}be(e)}),[be,re]),Le=r.useCallback((function(e){be(e)}),[be]),Be=r.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),He=r.useCallback((function(){return V(te),function(){A(te)}}),[A,V]);r.useEffect((function(){var e=re();if(P){var t=Q()||Se(document.elementFromPoint(q.current.x,q.current.y));e.clearInterval(L.current),L.current=e.setInterval((function(){Te(t,{x:F.current.x,y:F.current.y})}),50)}return function(){e.clearInterval(L.current)}}),[$,Q,re,P]),r.useEffect(Be,[Be]),r.useEffect((function(){var e=re(),t=$(),n=ne();if(Z){if(t)Se(t).addEventListener("scroll",Le,{passive:!0}),t.addEventListener("pointerdown",we,{passive:!0});D&&(n.addEventListener("pointermove",ke),n.addEventListener("pointerup",De,!0),n.addEventListener("contextmenu",Pe),n.addEventListener("pointercancel",Oe,{passive:!0}))}else e.addEventListener("touchmove",x,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Ce,{passive:!0}),g||(t.addEventListener("touchstart",_e,{passive:!0}),D&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Fe,{passive:!0})))),D&&(n.addEventListener("mousemove",xe,{passive:!0}),n.addEventListener("mouseup",Ee,{passive:!0}));return function(){if(t){var r=Se(t);r&&r.removeEventListener("scroll",Le),t.removeEventListener("pointerdown",we),t.removeEventListener("mousedown",Ce),t.removeEventListener("touchstart",_e),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Fe)}n.removeEventListener("pointermove",ke),n.removeEventListener("pointerup",De,!0),n.removeEventListener("contextmenu",Pe),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",xe),n.removeEventListener("mouseup",Ee),e.removeEventListener("touchmove",x),e.clearTimeout(H.current)}}),[D,re,$,ne,g,Z,Pe,Ce,xe,Ee,Oe,we,ke,De,Fe,Ae,_e,Le]),r.useEffect((function(){return function(){K.current=!0}}),[]),r.useLayoutEffect(He,[He])}function Fe(e,t){void 0===t&&(t={onDragEnter:x,onDragOver:x,onDragLeave:x,onDrop:x});var n=t.onDragEnter,o=void 0===n?x:n,i=t.onDragOver,a=void 0===i?x:i,s=t.onDragLeave,l=void 0===s?x:s,u=t.onDrop,c=void 0===u?x:u,p=Me(Re)[1],d=r.useContext(Ve),f=d[1],h=d[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=r.useRef(null);r.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=r.useCallback((function(t){p(v,{target:e.current,event:t}),o(t)}),[p,e,o]),y=r.useCallback((function(e){a(e)}),[a]),b=r.useCallback((function(t){p(null,{target:e.current,event:t}),l(t)}),[p,e,l]),w=r.useCallback((function(t){p(null,{target:e.current,event:t}),c(t)}),[p,e,c]),k=r.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);r.useLayoutEffect(k,[k])}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)},Be=function(e,t,n){var o=r.useState(t||e),i=o[0],a=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){a(e),n&&n.call(void 0,Le({},t,{value:e}))}),[n,a])]},He=function(e){var t=Be(null,void 0),n=t[0],o=t[1],i=Be(null,void 0),a=i[0],s=i[1],l=Q([]),u=l[0],c=l[1],p=Q([]),d=p[0],f=p[1];return r.createElement(Ne.Provider,{value:[n,o]},r.createElement(Re.Provider,{value:[a,s]},r.createElement(je.Provider,{value:[u,function(e){c({type:Z.add,item:e})},function(e){c({type:Z.remove,item:e})}]},r.createElement(Ve.Provider,{value:[d,function(e){f({type:Z.add,item:e})},function(e){f({type:Z.remove,item:e})}]},e.children))))};He.displayName="KendoReactDragAndDrop";var Ke=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),s=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),l=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),u=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),c=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return Ae(n,{onPress:a,onRelease:s,onDragStart:l,onDrag:u,onDragEnd:c},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ke.displayName="KendoReactDraggable";var ze=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),s=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),l=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),u=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Fe(n,{onDragEnter:a,onDragOver:s,onDragLeave:l,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));ze.displayName="KendoReactDroppable"},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.nullable=function(e){var t=function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(null===n[r])return null;var a=t?e.isRequired:e;return a.apply(void 0,[n,r].concat(o))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},t.viewInRange=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59);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(0),o=n(41),i=n(1),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",f="right",h="top";function m(e){return e.ownerDocument||e.document||e}var v=function(e){return m(e).defaultView},g=function(e){return m(e).documentElement},y=0;function b(){if(!y&&"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),y=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return y}function w(e){var t=v(e),n=g(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=b()),r}var k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},O=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}},D=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function C(e){var t=g(e),n=v(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var x=function(e){return e===(e.ownerDocument||{}).body?C(e):{x:e.scrollLeft,y:e.scrollTop}};var E=function(e,t){var n=v(e),r=n.getComputedStyle(e),o=O(e),i=t||k(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=O(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}},P=function(e,t){return e?x(e):function(e){var t=k(e);return t?x(t):{x:0,y:0}}(t)};var S="fit",_="flip",I=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},T=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===h||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},M=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},N=function(e,t){for(var n,r,o=D(e),i=t;i&&(n=M(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var R,j,V,A,F=(R=function(e){if(!L())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},V=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return V||(j=R.apply(void 0,e),V=!0),j}),L=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},B={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:F,canUseDOM:L},H=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){return B.canUseDOM()?window:null},z=/auto|scroll/,U=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},q=function(e){if(!e||!B.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},Y=function(){return B.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},W={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align: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,h=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===f&&(g+=t.width),a!==c&&a!==p||(g+=Math.round(t.width/2)),l===f&&(g-=r.width,h*=-1),l!==c&&l!==p||(g-=Math.round(r.width/2),h*=-1),{top:v+m,left:g+h}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=w(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}},getFontStyles:function(e){var t=K();if(!t||!e)return[];var n=t.getComputedStyle(e);return H.map((function(e){return{key:e,value:n[e]}}))},getWindow:K,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?O(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,r=n.left,o=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=O(e);return e.style.left=r,e.style.top=o,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?k(t):null,o=E(e,r),i=o.top,a=o.left,s=o.height,l=o.width,u=P(r,e),c=u.x,p=u.y,d=e.ownerDocument,f=r===d.body||r===d.documentElement?1:n;return{top:i+p*f,left:a+c*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView: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,f=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.horizontal===_,b=i.vertical===_;i.vertical===S&&(g+=I(l,c,d)),i.horizontal===S&&(v+=I(u,p,f)),b&&(g+=T({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=T({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,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}}},scrollPosition:C,scrollableParents:function(e){var t=[];if(!B.canUseDOM())return t;for(var n=e.parentElement;n;)(z.test(U(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:q,stackingElementOffset:function(e){var t=q(e);return t?O(t):null},stackingElementScroll:function(e){var t=q(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=q(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(q(e))},windowViewPort:w,zoomLevel:Y,isZoomed:function(){return Y()>1},zIndex:function(e,t){if(!e||!B.canUseDOM())return null;var n=N(e,t);if(!n)return null;var r=[e].concat(D(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}},X=function(e,t){return e?{x:0,y:0}:W.scrollPosition(t)},G=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,u="fixed"===s||!W.hasOffsetParent(n)?function(e,t,n,r){var o=X(e,t),i=B.eitherRect(W.offset(e),n),a=2*r,s=W.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=W.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),W.removeScroll(W.addScroll(B.removeStackingOffset(B.scaleRect(i,r),l),s),o)}(t,n,a,l):function(e,t,n,r){var o=B.eitherRect(W.position(e,t,r),n);return B.scaleRect(o,r)}(t,n,a,l),c=B.scaleRect(W.offset(n),l);return W.align({anchorAlign:r,anchorRect:u,elementAlign:o,elementRect:c,margin:i})},Z=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,u=W.offsetAtPoint(r,n),c=B.scaleRect(u,l),p=B.scaleRect(W.offset(t),l),d=B.eitherRect(p,n),f=e.viewPort||W.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var h=W.restrictToView({anchorAlign:o,anchorRect:d,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),m=W.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},$="fit",J="flip",Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558045,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=(A=function(e,t){return(A=Object.setPrototypeOf||{__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}A(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=t.margin,u=t.scale,c=t.positionMode;e.style.top="0px",e.style.left="-10000px";var p=G({anchor:s,element:e,elementAlign:o,anchorAlign:r,offset:a,margin:l,positionMode:c,scale:u}),d=Z({anchor:s,anchorAlign:r,collisions:i,element:e,currentLocation:p,elementAlign:o,margin:n.props.margin});e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._flipped=d.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})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(l.validatePackage)(Q),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,f=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({},f,{current:re.showing,previous:t.current}):t.current===re.showing?te({},f,{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?f:te({},f,{current:re.reposition,previous:t.current}):t.current===re.hiding||t.current===re.hidden?te({},f,{current:re.hidden,previous:t.current}):te({},f,{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=t.positionMode,p=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 d=Object.assign({},{position:c},this.props.style||{}),f=this.state.current===re.hiding;if((s||f)&&p){var h=this.getCurrentZIndex(),m=r.createElement(l.ZIndexContext.Provider,{value: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:te({zIndex:h},d)},r.createElement("div",{className:Object(l.classNames)(a,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return o.createPortal(m,p)}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=W.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([$,J]),vertical:i.oneOf([$,J])}),anchorAlign:i.shape({horizontal:i.oneOf([d,c,f]),vertical:i.oneOf([h,c,u])}),popupAlign:i.shape({horizontal:i.oneOf([d,c,f]),vertical:i.oneOf([h,c,u])}),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})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number},t.defaultProps={collision:{horizontal:$,vertical:J},anchorAlign:{horizontal:d,vertical:u},popupAlign:{horizontal:d,vertical:h},offset:oe,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=l.ZIndexContext,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:1639558287,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 K})),n.d(t,"ToolbarSeparator",(function(){return U})),n.d(t,"ToolbarSpacer",(function(){return q})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return M})),n.d(t,"SplitButtonItem",(function(){return D})),n.d(t,"DropDownButton",(function(){return A})),n.d(t,"DropDownButtonItem",(function(){return R})),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(0),i=n(1),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558078,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)},f=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},h=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,f(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)([h.button],((e={})[h[""+i]]="default"!==i,e[h.primary]=s,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!b&&y,e[h["button-icontext"]]=b&&y,e),[h[""+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),C=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}},x=n(7);function E(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function P(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var S,_,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)}}(),T=c,M=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=C(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",[T[""+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(x.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||E(e),popupAlign:n.popupAlign||P(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)}}(),R=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),j=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)}}(),V=function(){return(V=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=V({},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=C(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 j(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===R})).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(x.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||E(e),popupAlign:n.popupAlign||P(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)}}(),K=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),z=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)}}(),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return z(t,e),t.prototype.render=function(){return o.createElement(K,{className:"k-separator"})},t}(o.PureComponent),q=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})}));q.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(S||(S={})),function(e){e.toggle="toggle",e.remove="remove"}(_||(_={}));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 X=function(){return(X=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)},G=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 S.single:switch(t.type){case _.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 _.remove:return t.payload===e?null:e;default:return e}case S.multiple:switch(t.type){case _.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 _.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 S.none:return null;default:return e}}(t.state||i,X({},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,X({},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,X({},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],f=p[1],h=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},h),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],C=O[1],x=Object(a.useMouse)(e,n);return o.createElement(G.Provider,{value:[w,f]},o.createElement(Z.Provider,{value:[D,C]},o.createElement($.Provider,{value:[b,g]},o.createElement("div",X({ref:r},x,{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:Object(a.getter)(e.valueField||re.valueField)(t),text:Object(a.getter)(e.textField||re.textField)(t),value:Object(a.getter)(e.valueField||re.valueField)(t)})}))))))})),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(G),u=l[0],c=l[1],p=o.useContext(Z),d=p[0],f=p[1],h=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:_.toggle,payload:e.value,event:t})}),[e.onClick,c,e.value]),b=o.useCallback((function(t){e.removable&&(h({type:W.remove,payload:e.value,event:t}),f({type:Y.reset,payload:e.value,event:t}),c({type:_.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,c]),w=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:f({type:Y.prev,payload:e.value,event:t});break;case a.Keys.right:f({type:Y.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:_.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,f,c,b]),k=o.useCallback((function(t){f({payload:e.value,type:Y.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),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,f=e.dataItem,h=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=h;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:f}):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},fe=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},he=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,f=e.items,h=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,C=void 0===D?be.themeColor:D,E=e.tabIndex,P=e.accessKey,S=e.popupSettings,_=void 0===S?{}:S,I=e.onClick,T=e.onItemClick,M=e.onFocus,N=e.onBlur,R=e.onKeyDown,j=e.onOpen,V=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),K=o.useCallback((function(){L.current&&L.current.focus()}),[]),z=o.useCallback((function(){return{element:L.current,focus:K}}),[K]);o.useImperativeHandle(F,z),o.useImperativeHandle(t,(function(){return F.current}));var U=o.useState(!1),q=U[0],Y=U[1],W=o.useState(!1),X=W[0],G=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(he(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(){X&&L&&L.current&&L.current.focus()}),[X,L]);var re=o.useCallback((function(e,t){f&&Object(a.dispatchEvent)(t?j:V,e,z(),void 0)}),[j,V,f]),oe=o.useCallback((function(e){e.target&&!u&&(!f&&I?Object(a.dispatchEvent)(I,e,z(),void 0):(Y(!q),G(!0),J(q?-1:0),re(e,!q)))}),[Y,G,J,I,re,q,f,u]),ie=o.useCallback((function(e){G(!0),J(q?0:-1),M&&Object(a.dispatchEvent)(M,e,z(),void 0)}),[M,G,J]),ae=o.useCallback((function(e){G(!1),Y(!1),J(-1),Object(a.dispatchEvent)(N,e,z(),void 0),q&&re(e,!1)}),[N,G,Y,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(a.dispatchEvent)(T,e,z(),{itemProps:f[t],itemIndex:t}))}),[T]),ue=o.useCallback((function(e,t){e.target&&f&&(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=f?f.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(!q),J(q?-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)(R,e,z(),void 0)}),[R,$,J,te,Y]),ke=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+C,"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":X},"k-"+r.vertical+"-"+r.horizontal,l)}),[C,k,b,u,g,r,X,l]),Oe=f&&f.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:h,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,Ce=(L.current?L.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",ve({ref:L,id:d||Q,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?q:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":$>=0&&f?ne+"-"+$:void 0,tabIndex:Object(a.getTabIndex)(E,u),accessKey:P,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(x.Popup,{ref:H,anchor:L.current,show:q,animate:_.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",_.popupClass),anchorAlign:_.anchorAlign||de(r,te),popupAlign:_.popupAlign||fe(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?Ce:void 0,paddingRight:De?Ce: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(0),s=n(1),l=n(3),u=n(5),c=n(53),p=n(2),d=n(40),f=n(2),h=n(11),m=n(35),v=n(4),g=n(6),y=n(9),b=n(8),w=function(e){function n(t){var r=e.call(this,t)||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||n.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})},f.validatePackage(h.packageMetadata),r.state={focused:!1},r}return o(n,e),n.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},n.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()},n.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},n.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var t=u.provideLocalizationService(this),r=i({},n.defaultProps,this.props),o=r.min,s=r.max,l=r.name,c=r.label,f=r.id,h=this.text,v=h===this.props.placeholder?"":h,y=h===this.props.placeholder?h:void 0,b=f||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(n){var r=n.onFocus,o=n.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:h,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":t.toLanguageString(g.increaseValue,g.messages[g.increaseValue]),title:t.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":t.toLanguageString(g.decreaseValue,g.messages[g.decreaseValue]),title:t.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:h,editorValid:w,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},Object.defineProperty(n.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){var e=i({},t.DateInput.defaultProps,this.props),r=e.formatPlaceholder,o=void 0===r?n.defaultProps.formatPlaceholder:r,a=e.format,s=void 0===a?n.defaultProps.format:a,l=e.value,u=e.defaultValue;null===this.kendoDate?(this.kendoDate=new c.KendoDate(this.intl.bind(this),o,s),this.kendoDate.setValue(l||u||null)):(this.kendoDate.format=s,this.kendoDate.formatPlaceholder=o),void 0!==l&&this.value!==l&&this.kendoDate.setValue(l);var p=this.kendoDate.getTextAndFormat(),d=p.text,f=p.format;return this.currentFormat=f,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?d:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(n.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(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:n.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:n.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),n.prototype.intl=function(){return u.provideIntlService(this)},Object.defineProperty(n.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}),n.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)}))},n.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},n.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}},n.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},n.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})}}},n.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)}},n.displayName="DateInput",n.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]),onChange:s.func,validationMessage:s.string,required:s.bool,validate:s.bool,valid:s.bool},n.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},n}(a.Component);t.DateInputWithoutContext=w,t.DateInputPropsContext=p.createPropsContext(),t.DateInput=p.withPropsContext(t.DateInputPropsContext,w),t.DateInput.displayName="KendoReactDateInput",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(0),s=n(1),l=n(2),u=n(3),c=n(5),p=n(11),d=n(43),f=n(52),h=n(8),m=n(10),v=n(4),g=n(19),y=function(e){return e?e.virtualization:null},b=function(e,t,n,r){return void 0===e&&(e=w.defaultProps.min),void 0===t&&(t=w.defaultProps.max),void 0!==r?null!==r&&v.isInRange(u.getDate(r),e,t)?r:null:null!==n&&v.isInRange(u.getDate(n),e,t)?n:null},w=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(y(r.Navigation),y(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=v.dateInRange(r.focusedDate,r.min,r.max);y(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=v.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})},l.validatePackage(p.packageMetadata);var o=b(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:v.viewInRange(m.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),focusedDate:v.dateInRange(n.focusedDate||o||v.getToday(),r.min,r.max)},r.dom=new g.DOMService,r.bus=new g.BusViewService(r.handleViewChange),r.navigation=new g.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 m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return m.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 g.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=v.viewInRange(this.state.activeView,m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],m.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=b(this.min,this.max,this.value,this.value),s=o?u.getDate(o):null;this.focusedDate=u.getDate(v.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),h={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},g=[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(d.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({},h,{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}),g)},t.displayName="Calendar",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&&m.CalendarViewEnum[r]<m.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&&m.CalendarViewEnum[r]>m.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:h.MIN_DATE,max:h.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(a.Component);t.CalendarWithoutContext=w,t.CalendarPropsContext=l.createPropsContext(),t.Calendar=l.withPropsContext(t.CalendarPropsContext,w),t.Calendar.displayName="KendoReactCalendar",c.registerForIntl(w)},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(0),c=n(1),p=n(2),d=n(44);!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(l=t.ScrollDirection||(t.ScrollDirection={}));var f=((o={})[l.Forward]=function(e){return function(t){return t+e}},o[l.Backward]=function(e){return function(t){return t-e}},o),h=((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=f[n](s),u=h[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(0),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(0),s=n(1),l=n(3),u=n(5),c=n(24),p=n(25),d=n(10),f=n(4),h=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 h.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=f.getToday(),i=f.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:f.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(0),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,f=e.isRangeSplitEnd,h=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":f,"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":h,"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(0),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,f=void 0===d?i.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return s;var m=a.range(0,4),v=o.firstDecadeOfCentury(h),g=o.lastDecadeOfCentury(h),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,f.start),h=t.isEqual(s,f.end),m=!d&&!h&&a.isInSelectionRange(s,f),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:h,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,f=void 0===d?a.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return l;var m=s.range(0,4),v=o.firstYearOfDecade(h),g=o.lastYearOfDecade(h),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,f.start),h=t.isEqual(l,f.end),m=!d&&!h&&s.isInSelectionRange(l,f),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:h,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,f=void 0===d?a.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return l;var m=o.firstDayOfMonth(h),v=o.lastDayOfMonth(h),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,f.start),h=t.isEqual(l,f.end),g=!d&&!h&&s.isInSelectionRange(l,f),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:h,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,f=void 0===d?s.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return u;var m=this.abbrMonthNames(),v=o.firstMonthOfYear(h),g=o.lastMonthOfYear(h),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,f.start),h=t.isEqual(u,f.end),b=!d&&!h&&a.isInSelectionRange(u,f),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:h,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(0),s=n(1),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(0),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(0),a=n(1),s=n(5),l=n(2),u=n(3),c=n(6),p=n(4),d=n(8),f=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=f,s.registerForLocalization(f)},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(0),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(0),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(0),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(0),l=n(1),u=n(3),c=n(2),p=n(5),d=n(6),f=n(58),h=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||h.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 h=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:h},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(f.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,show:e.props.show})):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),show:l.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:h.MIN_TIME,max:h.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(0),s=n(1),l=n(5),u=n(2),c=n(3),p=n(12),d=n(10),f=n(30),h=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=C.defaultProps.min),void 0===t&&(t=C.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=C.defaultProps.min),void 0===t&&(t=C.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},C=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),f=D(s,l,p),h=g.viewInRange(d.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),m=g.dateInRange(n.focusedDate||f||g.getToday(),r.min,r.max);return r.state={value:a,activeView:h,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=h,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()},h=this.localization.toLanguageString(m.prevView,m.messages[m.prevView]),v=this.localization.toLanguageString(m.nextView,m.messages[m.nextView]),C=!this.canNavigate(d.Action.PrevView),x=!this.canNavigate(d.Action.NextView),E={"aria-disabled":C},P={"aria-disabled":x},S=this.lastView!==t,_=this.dates&&this.service.isInArray(this.focusedDate,this.dates),I=this.lastViewsCount!==this.props.views;(!_||S||I)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||y.HorizontalViewList.defaultProps.views));var T=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(f.Header,{key:".kendo.calendar.header."+T.getTime(),activeView:t,currentDate:T,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:h,disabled:C,onClick:this.handlePrevButtonClick},E)),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:x,onClick:this.handleNextButtonClick},P)))}),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.displayName="MultiViewCalendar",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([g.nullable(s.instanceOf(Date)),s.arrayOf(s.instanceOf(Date)),s.shape({start:g.nullable(s.instanceOf(Date)),end:g.nullable(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([g.nullable(s.instanceOf(Date)),s.arrayOf(s.instanceOf(Date)),s.shape({start:g.nullable(s.instanceOf(Date).isRequired),end:g.nullable(s.instanceOf(Date).isRequired)})]),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:h.MIN_DATE,max:h.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(a.Component);t.MultiViewCalendarWithoutContext=C,t.MultiViewCalendarPropsContext=u.createPropsContext(),t.MultiViewCalendar=u.withPropsContext(t.MultiViewCalendarPropsContext,C),t.MultiViewCalendar.displayName="KendoReactMultiViewCalendar",l.registerForIntl(C),l.registerForLocalization(C)},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(0),i=n(1),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(5),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558253,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,f=e.className,h=e.optional,m=Object(l.useLocalization)(),v=h?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},f);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 f,h=(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)}),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 h(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,f=e.id,h=e.optional,m=Object(l.provideLocalizationService)(this),v=h?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:f,htmlFor:n,className:b},t,g):o.createElement("span",{id:f,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,t.CalendarPropsContext=r.CalendarPropsContext;var o=n(15);t.DateInput=o.DateInput,t.DateInputPropsContext=o.DateInputPropsContext;var i=n(55);t.DatePicker=i.DatePicker,t.DatePickerPropsContext=i.DatePickerPropsContext;var a=n(56);t.TimePicker=a.TimePicker,t.TimePickerPropsContext=a.TimePickerPropsContext;var s=n(39);t.MultiViewCalendar=s.MultiViewCalendar,t.MultiViewCalendarPropsContext=s.MultiViewCalendarPropsContext;var l=n(67);t.DateRangePicker=l.DateRangePicker,t.DateRangePickerPropsContext=l.DateRangePickerPropsContext;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 f=n(10);t.CalendarViewEnum=f.CalendarViewEnum;var h=n(68);t.DateTimePicker=h.DateTimePicker,t.DateTimePickerPropsContext=h.DateTimePickerPropsContext;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(0),a=n(1),s=n(2),l=n(3),u=n(5),c=n(17),p=n(23),d=n(30),f=n(4),h=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=f.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===h.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=f.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===h.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 f.isInRange(f.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=f.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===h.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===h.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===h.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===h.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===h.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 f=Math.floor(.3*this.take);this.firstLoaded=r(p-f),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"),f=o.domContainerFactory("table"),h=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?[h(),f([d([c([u("MO")])])],"k-calendar-weekdays"),v([e,e])]:[h(),v([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),f([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),C=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},x=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},E=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(k(),(function(e){var n=E(e);t.calendarHeight=C(e),t.monthViewHeight=C(n),t.headerHeight=C(n.children[0]),t.scrollableContentHeight=C(b(e))})),this.batch(w(k()),(function(e){var n=E(e);t.calendarWidth=x(e),t.monthViewWidth=x(n),t.scrollableContentWidth=x(b(e))})),this.batch(O(),(function(e){t.yearViewHeight=C(E(e)),t.scrollableYearContentHeight=C(b(e))})),this.batch(w(O()),(function(e){t.yearViewWidth=x(E(e))})),this.batch(D(),(function(e){t.decadeViewHeight=C(E(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(w(D()),(function(e){t.decadeViewWidth=x(E(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(g(),(function(e){t.navigationItemHeight=C(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(0),s=n(1),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,f=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 h=u+t,m=parseInt(h,10);if(!(d=this.intl.parseDate(l+h+c,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){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(h,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 f&&(d=this.intl.parseDate(l+f+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(0),l=n(1),u=n(7),c=n(3),p=n(2),d=n(2),f=n(11),h=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(f.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,f=t.min,h=t.max,m=t.weekNumber,v=t.focusedDate,g=t.className,w=t.width,k=t.name,D=t.validationMessage,C=t.required,x=t.validityStyles,E=t.ariaLabelledBy,P=t.ariaDescribedBy,S=this.props.popupSettings,_=S.popupClass,I=a(S,["popupClass"]),T=this.show,M=this.value,N=M&&c.getDate(M),R=!this.validityStyles||this.validity.valid,j=p.classNames("k-widget k-datepicker",g),V=p.classNames("k-picker-wrap",{"k-state-invalid":!R,"k-state-disabled":n,"k-state-focused":this.state.focused}),A=p.classNames("k-calendar-container k-group k-reset",_),F={disabled:n,format:u,formatPlaceholder:d,id:l,ariaLabelledBy:E,ariaDescribedBy:P,max:h,min:f,name:k,onChange:this.handleInputValueChange,required:C,tabIndex:T?-1:r,title:o,valid:this.validity.valid,validationMessage:D,validityStyles:x,value:M,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},L=i({show:T,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:f,max:h,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:j,onKeyDown:e.handleKeyDown,style:{width:w},onFocus:n,onBlur:r},s.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:V},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:R,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.displayName="DatePicker",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:h.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.DatePickerWithoutContext=D,t.DatePickerPropsContext=p.createPropsContext(),t.DatePicker=p.withPropsContext(t.DatePickerPropsContext,D),t.DatePicker.displayName="KendoReactDatePicker",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(0),l=n(1),u=n(7),c=n(3),p=n(2),d=n(5),f=n(2),h=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))},f.validatePackage(h.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,f=t.format,h=t.formatPlaceholder,v=t.smoothScroll,y=t.width,b=t.name,k=t.steps,O=t.cancelButton,D=t.nowButton,C=t.validationMessage,x=t.required,E=t.validityStyles,P=t.ariaLabelledBy,S=t.ariaDescribedBy,_=this.popupSettings,I=_.popupClass,T=a(_,["popupClass"]),M=!this.validityStyles||this.validity.valid,N=p.classNames("k-widget k-timepicker",c),R=p.classNames("k-picker-wrap",{"k-state-invalid":!M,"k-state-disabled":n,"k-state-focused":this.state.focused}),j=p.classNames("k-group k-reset",I),V={disabled:n,format:f,formatPlaceholder:h,id:l,ariaLabelledBy:P,ariaDescribedBy:S,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:b,onChange:this.handleInputValueChange,required:x,steps:k,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:C,validityStyles:E,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:j,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},T),F=s.createElement(g.TimeSelector,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:O,disabled:n,nowButton:D,format:f,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]),K=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:R},s.createElement(e.dateInputComp,i({_ref:e._dateInput},V)),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:M,editorDisabled:this.props.disabled,children:K,style:{width:this.props.width}}):K},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.displayName="TimePicker",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.TimePickerWithoutContext=k,t.TimePickerPropsContext=p.createPropsContext(),t.TimePicker=p.withPropsContext(t.TimePickerPropsContext,k),t.TimePicker.displayName="KendoReactTimePicker",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(0),s=n(1),l=n(3),u=n(2),c=n(5),p=n(6),d=n(4),f=n(9),h=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||f.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||f.getNow()),f.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=f.valueMerger(f.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,f=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(h.TimePart,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:d,min:f,max:v,boundRange:g,disabled:o,nowButton:y,steps:b,show:this.props.show}),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),show:s.bool},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(0),l=n(1),u=n(3),c=n(2),p=n(5),d=n(17),f=n(59),h=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={})[f.TIME_PART.dayperiod]=h.DayPeriodService,i[f.TIME_PART.hour]=h.HoursService,i[f.TIME_PART.minute]=h.MinutesService,i[f.TIME_PART.second]=h.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.props.show&&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 h.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,show: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,f=e.step,h=void 0===f?this.step:f;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=h},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(0),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(0),s=n(1),l=n(7),u=n(3),c=n(2),p=n(5),d=n(2),f=n(11),h=n(15),m=n(39),v=n(10),g=n(8),y=n(6),b=n(12),w=n(4),k={display:"inline-block"},O=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(f.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]),f=s.toLanguageString(y.separator,y.messages[y.separator]),g=i({label:u,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:t.start,onChange:this.handleStartChange}),w=i({label:d,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:t.end,onChange:this.handleEndChange}),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}),C=this.props.calendar?a.createElement(this.props.calendar,i({},D)):a.createElement(m.MultiViewCalendar,i({},D,{ref:this.setCalendarRef})),x=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:k},this.props.startDateInput?a.createElement(this.props.startDateInput,i({},g)):a.createElement(h.DateInput,i({},g,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?x:f,this.props.endDateInput?a.createElement(this.props.endDateInput,i({},w)):a.createElement(h.DateInput,i({},w,{ref:this._endDateInput}))),this.props.popup?a.createElement(this.props.popup,i({},O),C):a.createElement(l.Popup,i({},O),C))},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.displayName="DateRangePicker",t.propTypes={allowReverse:s.bool,calendarSettings:s.any,className:s.string,defaultShow:s.bool,defaultValue:s.shape({start:w.nullable(s.instanceOf(Date).isRequired),end:w.nullable(s.instanceOf(Date).isRequired)}),disabled:s.bool,endDateInputSettings:s.shape(h.DateInputWithoutContext.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:w.nullable(s.instanceOf(Date).isRequired),end:w.nullable(s.instanceOf(Date).isRequired)})},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.DateRangePickerWithoutContext=O,t.DateRangePickerPropsContext=c.createPropsContext(),t.DateRangePicker=c.withPropsContext(t.DateRangePickerPropsContext,O),t.DateRangePicker.displayName="KendoReactDateRangePicker",p.registerForLocalization(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(0),s=n(1),l=n(7),u=n(3),c=n(2),p=n(15),d=n(2),f=n(11),h=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(f.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=h.isInDateRange(this.value,this.min,this.max)&&y.isInTimeRange(this.value,this.props.minTime||b.MIN_TIME,this.props.maxTime||h.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,f=t.max,h=t.weekNumber,y=t.focusedDate,b=t.className,k=t.width,O=t.name,D=t.validationMessage,C=t.required,x=t.validityStyles,E=t.cancelButton,P=t.minTime,S=t.maxTime,_=t.ariaLabelledBy,I=t.ariaDescribedBy,T=t.popup,M=void 0===T?l.Popup:T,N=t.calendar,R=!this.validityStyles||this.validity.valid,j=c.classNames("k-widget k-datetimepicker",{"k-state-invalid":!R},b),V=c.classNames("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),A={id:s,ariaLabelledBy:_,ariaDescribedBy:I,format:u,formatPlaceholder:p,disabled:n,title:o,validityStyles:x,validationMessage:D,required:C,min:d,max:f,minTime:P,maxTime:S,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:j,onKeyDown:e.handleKeyDown,style:{width:k},onFocus:r,onBlur:o},a.createElement("div",{ref:function(t){e._wrapper=t},className:V},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(M,{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:E,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:h,min:e.min,max:e.max,minTime:P,maxTime:S,focusedDate:y,format:u,calendar:N})))}));return this.props.label?a.createElement(w.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:s,editorValid:R,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.displayName="DateTimePicker",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:h.MAX_DATE,min:h.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:p.DateInput},t}(a.Component);t.DateTimePickerWithoutContext=k,t.DateTimePickerPropsContext=c.createPropsContext(),t.DateTimePicker=c.withPropsContext(t.DateTimePickerPropsContext,k),t.DateTimePicker.displayName="KendoReactDateTimePicker",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(0),s=n(5),l=n(6),u=n(12),c=n(16),p=n(38),d=n(4),f=n(3),h=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 h.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case h.Keys.left:if(!r)return;return void n.move("left");case h.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,f=t.max,m=t.weekNumber,v=t.focusedDate,g=t.format,y=h.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]),C={min:o,max:f,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({},C)):a.createElement(c.Calendar,i({ref:function(t){e._calendar=t}},C))),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 f.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("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactDateinputs=t(require("react"),require("prop-types"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactDateinputs=t(e.React,e.PropTypes,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=56)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return r.a})),n.d(t,"useZIndexContext",(function(){return r.b})),n.d(t,"BrowserSupportService",(function(){return i})),n.d(t,"canUseDOM",(function(){return a.a})),n.d(t,"canUseRef",(function(){return s})),n.d(t,"classNames",(function(){return l.a})),n.d(t,"cloneDate",(function(){return c})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return f})),n.d(t,"cloneArray",(function(){return h})),n.d(t,"focusFirstFocusableChild",(function(){return m})),n.d(t,"FormComponent",(function(){return v})),n.d(t,"getTabIndex",(function(){return g.a})),n.d(t,"getter",(function(){return y.a})),n.d(t,"guid",(function(){return b.a})),n.d(t,"Keys",(function(){return w.a})),n.d(t,"noop",(function(){return k})),n.d(t,"getScrollbarWidth",(function(){return O})),n.d(t,"setScrollbarWidth",(function(){return D})),n.d(t,"setter",(function(){return P})),n.d(t,"mapTree",(function(){return I})),n.d(t,"mapTreeItem",(function(){return T})),n.d(t,"extendDataItem",(function(){return M})),n.d(t,"getItemPath",(function(){return N})),n.d(t,"validatePackage",(function(){return R.a})),n.d(t,"hasRelativeStackingContext",(function(){return j})),n.d(t,"dispatchEvent",(function(){return V.a})),n.d(t,"AsyncFocusBlur",(function(){return L})),n.d(t,"createPropsContext",(function(){return z})),n.d(t,"withPropsContext",(function(){return K})),n.d(t,"useDir",(function(){return U.a})),n.d(t,"useAsyncFocusBlur",(function(){return A})),n.d(t,"useRtl",(function(){return q})),n.d(t,"useMouse",(function(){return W.a})),n.d(t,"useCustomComponent",(function(){return X})),n.d(t,"usePropsContext",(function(){return B})),n.d(t,"COLLECTION_ACTION",(function(){return Y})),n.d(t,"useCollection",(function(){return G})),n.d(t,"Icon",(function(){return ee})),n.d(t,"SvgIcon",(function(){return oe})),n.d(t,"Typography",(function(){return ge})),n.d(t,"DragAndDrop",(function(){return Ce})),n.d(t,"Draggable",(function(){return Ae})),n.d(t,"Droppable",(function(){return Le})),n.d(t,"useDraggable",(function(){return Ve})),n.d(t,"useDroppable",(function(){return Fe}));var r=n(28),o=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=o();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}(),a=n(11),s=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))},l=n(14),u=n(0),c=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=f(r,t[n])}}function f(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return c(e);if(u.isValidElement(e))return u.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function h(e){return e.map((function(e){return f(e,void 0)}))}var m=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()}},v=function(){},g=n(29),y=n(30),b=n(31),w=n(32),k=function(){},O=function(){return!(!a.a||!document.body)&&(new i).scrollbarWidth},D=function(){if(!a.a||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},C=n(18),x={undefined:function(e){return e}},E=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function P(e){if(x[e])return x[e];var t=Object(C.a)(e);return x[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]]||E(t[a+1],r);o[t[i]]=n},x[e]}var S=function(){return(S=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 _(e,t,n){var r;return n?S({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var I=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=_(t,n).map((function(t){return e(t,n,r)}));return r(_(t,n,o))}return r(t)}(e,t,n)})).slice()},T=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)},M=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},N=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},R=n(33),j=function(e){if(!a.a)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},V=n(34);function A(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,o=e.onSyncBlur,i=u.useRef(!1),a=u.useRef(0),s=u.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=u.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=u.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 u.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:c}}var F=function(){return(F=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)},L=function(e){var t=e.children,n=A({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,F({},n))},B=function(e,t){return u.useContext(e)(t)},H=function(){return(H=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)},z=function(){return u.createContext((function(e){return e}))},K=function(e,t){return u.forwardRef((function(n,r){var o=B(e,n);return u.createElement(t,H({},o,{ref:r}))}))},U=n(35);function q(e,t,n){var r=u.useState(t),o=r[0],i=r[1];return u.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var Y,W=n(36),X=function(e){return u.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Y||(Y={}));var G=function(e){void 0===e&&(e=[]);var t=u.useRef(e),n=u.useCallback((function(e){switch(e.type){case Y.add:t.current.push(e.item);break;case Y.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Z=n(1),$={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},J=function(){return(J=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)},Q=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},ee=u.forwardRef((function(e,t){var n=e.className,r=e.name,o=e.themeColor,i=e.size,a=e.flip,s=e.style,c=Q(e,["className","name","themeColor","size","flip","style"]),p=u.useRef(null),d=u.useRef(null);u.useImperativeHandle(p,(function(){return{element:d.current}})),u.useImperativeHandle(t,(function(){return p.current}));var f=u.useMemo((function(){return o||te.themeColor}),[o]),h=u.useMemo((function(){return i||te.size}),[i]),m=u.useMemo((function(){return a||te.flip}),[a]),v=u.useMemo((function(){return Object(l.a)("k-icon","k-i-"+r,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},$[h],n)}),[r,f,h,m,n]),g=Object(W.a)(e,p);return u.createElement("span",J({ref:d},c,g,{className:v,style:s,role:"presentation"}))}));ee.propTypes={style:Z.object,classNames:Z.string,name:Z.string,themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:Z.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:Z.oneOf(["default","horizontal","vertical","both"])};var te={size:"default",themeColor:"inherit",flip:"default"};ee.displayName="KendoIcon";var ne=function(){return(ne=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)},re=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},oe=u.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.svgClassName,i=e.icon,a=e.flip,s=e.size,c=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=re(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=u.useRef(null);u.useImperativeHandle(t,(function(){return{element:m.current}}));var v=u.useMemo((function(){return i?i.name:ie.icon}),[i]),g=u.useMemo((function(){return d||ie.themeColor}),[d]),y=u.useMemo((function(){return s||ie.size}),[s]),b=u.useMemo((function(){return a||ie.flip}),[a]),w=u.useMemo((function(){return f||ie.viewBox}),[f]),k=u.useMemo((function(){return Object(l.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},$[y],r)}),[v,g,y,b,r]),O=u.useMemo((function(){return e.width&&e.height?ne({width:e.width,height:e.height},c):e.width?ne({width:e.width,height:e.width},c):e.height?ne({width:e.height,height:e.height},c):ne({},c)}),[e.width,e.height,c]);return u.createElement("span",{className:k,style:O,ref:m},u.createElement("svg",ne({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},h),i?void 0:n))}));oe.propTypes={style:Z.object,classNames:Z.string,children:Z.any,icon:Z.object,themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:Z.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:Z.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};oe.displayName="KendoSvgIcon";var ae={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},se={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},le={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"},ue={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ce={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},pe={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},de={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},fe={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"},he=function(){return(he=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)},me=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},ve=function(e){var t=u.forwardRef((function(t,n){var r=t.className,o=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,l=t.themeColor,c=t.margin,p=me(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=u.useRef(null),f=u.useRef(null);u.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),u.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==c){if("string"==typeof c)return[le[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],""+ce[n]+("string"==typeof r?ue[r]:r)))})),e.join(" ")}}};return u.createElement(h,he({ref:f,className:["k-"+("p"===e?"paragraph":e),ae[o],se[i],pe[a],de[s],fe[l],m(),r].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:Z.object,className:Z.string,fontSize:Z.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:Z.oneOf(["light","normal","bold"]),margin:Z.oneOfType([Z.number,Z.object,Z.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:Z.oneOf(["left","right","center","justify"]),textTransform:Z.oneOf(["lowercase","uppercase","capitalize"]),themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},ge={h1:ve("h1"),h2:ve("h2"),h3:ve("h3"),h4:ve("h4"),h5:ve("h5"),h6:ve("h6"),p:ve("p"),code:ve("code"),pre:ve("pre")},ye=function(){return(ye=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)},be=function(e,t,n){var r=u.useState(t||e),o=r[0],i=r[1];return[void 0!==t?t:o,u.useCallback((function(e,t){i(e),n&&n.call(void 0,ye({},t,{value:e}))}),[n,i])]},we=u.createContext([void 0,k]),ke=u.createContext([void 0,k]),Oe=u.createContext([[],k,k]),De=u.createContext([[],k,k]),Ce=function(e){var t=be(null,void 0),n=t[0],r=t[1],o=be(null,void 0),i=o[0],a=o[1],s=G([]),l=s[0],c=s[1],p=G([]),d=p[0],f=p[1];return u.createElement(we.Provider,{value:[n,r]},u.createElement(ke.Provider,{value:[i,a]},u.createElement(Oe.Provider,{value:[l,function(e){c({type:Y.add,item:e})},function(e){c({type:Y.remove,item:e})}]},u.createElement(De.Provider,{value:[d,function(e){f({type:Y.add,item:e})},function(e){f({type:Y.remove,item:e})}]},e.children))))};Ce.displayName="KendoReactDragAndDrop";var xe,Ee=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),s=Math.min(r.top+r.height,n.top+n.height),l=a-i,u=s-o;if(i<a&&o<s){var c=r.width*r.height,p=n.width*n.height,d=l*u;return Number((d/(c+p-d)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Pe=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Se=function(e){return e&&e.ownerDocument||window.document},_e=function(e){var t=Pe(),n=Se(e);return t.edge||t.safari?n.body:n.documentElement},Ie=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Te=function(e){var t=_e(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Ie(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(xe||(xe={}));var Me=function(){},Ne=function(e,t,n){void 0===n&&(n={});var r,o,i,a,s=n.onIsPressedChange,l=void 0===s?Me:s,u=n.onIsScrollingChange,c=void 0===u?Me:u,p=n.onVelocityChange,d=void 0===p?Me:p,f=n.onOffsetChange,h=void 0===f?Me:f,m=n.onPageOffsetChange,v=void 0===m?Me:m,g=n.onClientOffsetChange,y=void 0===g?Me:g,b=n.onScrollOffsetChange,w=void 0===b?Me:b,k=n.onInitialScrollOffsetChange,O=void 0===k?Me:k,D=t.payload,C=D.element,x=D.hint,E=e.autoScrollDirection,P=e.scrollableParent,S=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(S.type){case xe.POINTER_DOWN:if(S.type===xe.POINTER_DOWN&&(!S.originalEvent.isPrimary||0!==S.originalEvent.button))break;case xe.MOUSE_DOWN:if(S.type===xe.MOUSE_DOWN&&S.originalEvent.which&&S.originalEvent.which>1||e.ignoreMouse)break;case xe.TOUCH_START:if(S.type===xe.TOUCH_START&&1!==S.originalEvent.touches.length)break;case xe.START:var _=P||Te(t.payload.element);O(_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop}),y({x:S.clientX,y:S.clientY}),v({x:S.pageX,y:S.pageY}),h({x:S.offsetX,y:S.offsetY}),l(!0),D.onPress&&D.onPress(S);break;case xe.SCROLL:if(S.type===xe.SCROLL&&!e.pressed)break;var I=P||Te(C),T=I instanceof Window?{x:I.scrollX,y:I.scrollY}:{x:I.scrollLeft,y:I.scrollTop};S.scrollX=T.x-e.initialScrollOffset.x,S.scrollY=T.y-e.initialScrollOffset.y,w({x:S.scrollX,y:S.scrollY});case xe.POINTER_MOVE:if(S.type===xe.POINTER_MOVE&&!S.originalEvent.isPrimary)break;case xe.MOUSE_MOVE:case xe.TOUCH_MOVE:if(S.type===xe.TOUCH_MOVE&&1!==S.originalEvent.touches.length)break;case xe.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==S.originalEvent.type&&C){var M=Se(C),N=P||Te(M.elementFromPoint(S.clientX,S.clientY)),R=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(S.pageX,S.pageY,function(e,t){var n=_e(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(N,function(e){var t=Se(e);return t&&t.defaultView||window}(C)));d({x:E&&!1===E.horizontal?0:R.x,y:E&&!1===E.vertical?0:R.y}),c(0!==R.y||0!==R.x)}!e.drag&&D.onDragStart&&D.onDragStart(S),D.onDrag&&D.onDrag(S);var j=Ee(x||C,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||C)}))),V=e.drops.find((function(e){return e.element===j}));V&&j&&(r=S.clientX,o=S.clientY,i=P||Te(j),(a=i.getBoundingClientRect()).top<=o&&a.left<=r&&o<=a.bottom&&r<=a.right)&&j!==C?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(S),V.onDragEnter&&V.onDragEnter(S)):V.onDragOver&&V.onDragOver(S):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(S)}y({x:S.clientX,y:S.clientY}),v({x:S.pageX,y:S.pageY});break;case xe.POINTER_UP:if(S.type===xe.POINTER_UP&&!S.originalEvent.isPrimary)break;case xe.MOUSE_UP:case xe.TOUCH_END:if(S.type===xe.TOUCH_END&&1!==S.originalEvent.touches.length)break;case xe.END:l(!1),c(!1),D.onRelease&&D.onRelease(S),e.drop&&e.drop.onDrop&&e.drop.onDrop(S),D.onDragEnd&&D.onDragEnd(S);break;case xe.POINTER_CANCEL:case xe.CONTEXT_MENU:case xe.TOUCH_CANCEL:case xe.CANCEL:l(!1),c(!1),D.onDragEnd&&D.onDragEnd(S),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(S)}},Re=function(e,t){if(e){var n,r;e===_e(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,s=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},je=function(e,t){var n=u.useContext(e),r=n[0],o=n[1],i=u.useState(t),a=i[0],s=i[1];return[void 0!==r?r:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==r?o.apply(void 0,e):s(e[0])}]};function Ve(e,t,n){void 0===n&&(n={});var r=t.onPress,o=void 0===r?k:r,i=t.onRelease,a=void 0===i?k:i,s=t.onDragStart,l=void 0===s?k:s,c=t.onDrag,p=void 0===c?k:c,d=t.onDragEnd,f=void 0===d?k:d,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,D=u.useState(!1),C=D[0],x=D[1],E=u.useState(!1),P=E[0],S=E[1],_=je(ke)[0],I=je(we),T=I[0],M=I[1],N=u.useContext(De)[0],R=u.useContext(Oe),j=R[0],V=R[1],A=R[2],F=u.useRef({x:0,y:0}),L=u.useRef(),B=u.useRef(!1),H=u.useRef(),z=u.useRef(!1),K=u.useRef({x:0,y:0}),U=u.useRef({x:0,y:0}),q=u.useRef({x:0,y:0}),Y=u.useRef({x:0,y:0}),W=u.useRef({x:0,y:0}),X=u.useRef({x:0,y:0}),G=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&G,$=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=u.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=u.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),ee=u.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=u.useRef(null);u.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:ve,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=u.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),re=u.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=u.useCallback((function(){return{drag:T?T.current:null,drop:_?_.current:null,drags:j.map((function(e){return e.current})),drops:N.map((function(e){return e.current})),pressed:C,ignoreMouse:B.current,scrollOffset:W.current,offset:K.current,pageOffset:U.current,initialScrollOffset:X.current,clientOffset:q.current,initialClientOffset:Y.current,velocity:F.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[T,_,j,N,C,b,ee,P]),ie=u.useCallback((function(e){x(e)}),[]),ae=u.useCallback((function(e){S(e)}),[]),se=u.useCallback((function(e){F.current=e}),[]),le=u.useCallback((function(e){K.current=e}),[]),ue=u.useCallback((function(e){q.current=e}),[]),ce=u.useCallback((function(e){U.current=e}),[]),pe=u.useCallback((function(e){Y.current=e}),[]),de=u.useCallback((function(e){W.current=e}),[]),fe=u.useCallback((function(e){X.current=e}),[]),he=u.useCallback((function(e){o(e)}),[o]),me=u.useCallback((function(e){a(e)}),[a]),ve=u.useCallback((function(t){M(te,{target:e.current,event:t}),l(t)}),[M,e,l]),ge=u.useCallback((function(e){p(e)}),[p]),ye=u.useCallback((function(t){z.current||(M(null,{target:e.current,event:t}),f(t))}),[f,M,e]),be=u.useCallback((function(e){Ne(oe(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:le,onClientOffsetChange:ue,onPageOffsetChange:ce,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:fe,onIsPressedChange:ie,onIsScrollingChange:ae})}),[oe,se,le,ce,ue,pe,fe,ie,de,ae]),Ce=u.useCallback((function(e){be(e)}),[be]),xe=u.useCallback((function(e){be(e)}),[be]),Ee=u.useCallback((function(e){be(e)}),[be]),Pe=u.useCallback((function(e){be(e)}),[be]),Se=u.useCallback((function(e){be(e)}),[be]),_e=u.useCallback((function(e){be(e)}),[be]),Ie=u.useCallback((function(e){be(e)}),[be]),Me=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ve=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ae=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Fe=u.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();B.current=!0,H.current=t.setTimeout((function(){B.current=!1}),2e3)}be(e)}),[be,re]),Le=u.useCallback((function(e){be(e)}),[be]),Be=u.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),He=u.useCallback((function(){return V(te),function(){A(te)}}),[A,V]);u.useEffect((function(){var e=re();if(P){var t=Q()||Te(document.elementFromPoint(q.current.x,q.current.y));e.clearInterval(L.current),L.current=e.setInterval((function(){Re(t,{x:F.current.x,y:F.current.y})}),50)}return function(){e.clearInterval(L.current)}}),[$,Q,re,P]),u.useEffect(Be,[Be]),u.useEffect((function(){var e=re(),t=$(),n=ne();if(Z){if(t)Te(t).addEventListener("scroll",Le,{passive:!0}),t.addEventListener("pointerdown",Ce,{passive:!0});C&&(n.addEventListener("pointermove",xe),n.addEventListener("pointerup",Pe,!0),n.addEventListener("contextmenu",Me),n.addEventListener("pointercancel",Ee,{passive:!0}))}else e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Se,{passive:!0}),g||(t.addEventListener("touchstart",Ve,{passive:!0}),C&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Fe,{passive:!0})))),C&&(n.addEventListener("mousemove",_e,{passive:!0}),n.addEventListener("mouseup",Ie,{passive:!0}));return function(){if(t){var r=Te(t);r&&r.removeEventListener("scroll",Le),t.removeEventListener("pointerdown",Ce),t.removeEventListener("mousedown",Se),t.removeEventListener("touchstart",Ve),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Fe)}n.removeEventListener("pointermove",xe),n.removeEventListener("pointerup",Pe,!0),n.removeEventListener("contextmenu",Me),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",_e),n.removeEventListener("mouseup",Ie),e.removeEventListener("touchmove",k),e.clearTimeout(H.current)}}),[C,re,$,ne,g,Z,Me,Se,_e,Ie,Ee,Ce,xe,Pe,Fe,Ae,Ve,Le]),u.useEffect((function(){return function(){z.current=!0}}),[]),u.useLayoutEffect(He,[He])}var Ae=u.forwardRef((function(e,t){var n=u.useRef(null),r=u.useRef(null),o=u.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);u.useImperativeHandle(r,(function(){return{element:o()||null}})),u.useImperativeHandle(t,(function(){return r.current})),u.useImperativeHandle(e.childRef,(function(){return n.current}));var i=u.useCallback((function(t){e.onPress&&e.onPress({element:o(),target:r.current,event:t})}),[o,e.onPress]),a=u.useCallback((function(t){e.onRelease&&e.onRelease({element:o(),target:r.current,event:t})}),[o,e.onRelease]),s=u.useCallback((function(t){e.onDragStart&&e.onDragStart({element:o(),target:r.current,event:t})}),[e,o]),l=u.useCallback((function(t){e.onDrag&&e.onDrag({element:o(),target:r.current,event:t})}),[o,e.onDrag]),c=u.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:o(),target:r.current,event:t})}),[o,e.onDragEnd]);return Ve(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:c},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));function Fe(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,r=void 0===n?k:n,o=t.onDragOver,i=void 0===o?k:o,a=t.onDragLeave,s=void 0===a?k:a,l=t.onDrop,c=void 0===l?k:l,p=je(ke)[1],d=u.useContext(De),f=d[1],h=d[2],m=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=u.useRef(null);u.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=u.useCallback((function(t){p(v,{target:e.current,event:t}),r(t)}),[p,e,r]),y=u.useCallback((function(e){i(e)}),[i]),b=u.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),w=u.useCallback((function(t){p(null,{target:e.current,event:t}),c(t)}),[p,e,c]),O=u.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);u.useLayoutEffect(O,[O])}Ae.displayName="KendoReactDraggable";var Le=u.forwardRef((function(e,t){var n=u.useRef(null),r=u.useRef(null),o=u.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);u.useImperativeHandle(r,(function(){return{element:o()||void 0}})),u.useImperativeHandle(t,(function(){return r.current})),u.useImperativeHandle(e.childRef,(function(){return n.current}));var i=u.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:o(),target:r.current,event:t})}),[e.onDragEnter,o]),a=u.useCallback((function(t){e.onDragOver&&e.onDragOver({element:o(),target:r.current,event:t})}),[o,e.onDragOver]),s=u.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:o(),target:r.current,event:t})}),[e.onDragLeave,o]),l=u.useCallback((function(t){e.onDrop&&e.onDrop({element:o(),target:r.current,event:t})}),[e.onDrop,o]);return Fe(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));Le.displayName="KendoReactDroppable"},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(16);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.nullable=function(e){var t=function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(null===n[r])return null;var a=t?e.isRequired:e;return a.apply(void 0,[n,r].concat(o))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},t.viewInRange=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59);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";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(23),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(15);t.Action=r.Action;var o=n(21);t.CalendarViewEnum=o.CalendarViewEnum;var i=n(16);t.EMPTY_SELECTIONRANGE=i.EMPTY_SELECTIONRANGE},function(e,t,n){"use strict";n.r(t);var r=n(25);n.d(t,"Popup",(function(){return r.a})),n.d(t,"PopupPropsContext",(function(){return r.b}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},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:1640887740,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 z})),n.d(t,"ToolbarItem",(function(){return U})),n.d(t,"ToolbarSeparator",(function(){return Y})),n.d(t,"ToolbarSpacer",(function(){return W})),n.d(t,"Button",(function(){return v})),n.d(t,"ButtonGroup",(function(){return w})),n.d(t,"SplitButton",(function(){return R})),n.d(t,"SplitButtonItem",(function(){return P})),n.d(t,"DropDownButton",(function(){return L})),n.d(t,"DropDownButtonItem",(function(){return V})),n.d(t,"Chip",(function(){return fe})),n.d(t,"ChipList",(function(){return ue})),n.d(t,"FloatingActionButton",(function(){return Ee})),n.d(t,"FloatingActionButtonItem",(function(){return ye}));var r,o=n(0),i=n(1),a=n(14),s=n(33),l={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1640887559,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"},u=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',c=["button"+u,".k-button-group > button"+u,".k-dropdown > .k-dropdown-wrap"+u,".k-colorpicker > .k-picker-wrap"+u],p={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"},d=(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)}),f=function(){return(f=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},m=p;var v=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(s.a)(l),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return d(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,d=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.a)([m.button],((e={})[m[""+i]]="default"!==i,e[m.primary]=s,e[m["state-disabled"]]=this.props.disabled,e[m["state-selected"]]=this.state.selected,e[m["button-icon"]]=!b&&y,e[m["button-icontext"]]=b&&y,e),[m[""+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.a)("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:d});return o.createElement("button",f({},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),g=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)}}(),y=function(){return(y=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=p,w=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.a)(l),n}return g(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.a)([b["button-group"]],((e={})[b["state-disabled"]]=this.props.disabled,e[b["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",y({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.a)(e.props.className,((i={})[b["group-start"]]=r?n:0===t,i[b["group-end"]]=r?0===t:n,i)),l=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=y({},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),k=n(31),O=n(32),D=n(34),C=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)}}(),x=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 C(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.a)("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),E=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)}}(),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(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),S=function(e,t,n,r){if(n)return e;switch(t){case O.a.enter:case O.a.space:case O.a.esc:return-1;case O.a.up:case O.a.left:return Math.max(0,e-1);case O.a.down:case O.a.right:return Math.min(r-1,e+1);default:return e}},_=n(25);function I(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function T(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var M=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)}}(),N=p,R=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(k.a)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==O.a.down?n.opened&&e.keyCode===O.a.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===O.a.enter||e.keyCode===O.a.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===O.a.esc&&(r={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,r.opened)),n.opened){var o=S(t,e.keyCode,e.altKey,n.buttonsData.length);o!==t&&((r=r||{}).focusedIndex=o);var i=e.keyCode===O.a.up||e.keyCode===O.a.down||e.keyCode===O.a.left||e.keyCode===O.a.right;!e.altKey&&i&&e.preventDefault()}r&&n.setState(r)}},n.onFocus=function(e){Object(D.a)(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(D.a)(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(D.a)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.a)(l),n}return M(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===P})).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.a)("k-widget","k-split-button","k-button-group",[N[""+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(v,{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(v,{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(D.a)(this.props.onButtonClick,e,this,void 0):Object(D.a)(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(_.a,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.a)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||I(e),popupAlign:n.popupAlign||T(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(x,{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),j=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)}}(),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(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),A=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)}}(),F=function(){return(F=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)},L=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(k.a)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==O.a.down?n.opened&&e.keyCode===O.a.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=F({},n.state);if(e.keyCode===O.a.enter||e.keyCode===O.a.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===O.a.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=S(t,e.keyCode,e.altKey,n.buttonsData.length);r.focusedIndex=o;var i=e.keyCode===O.a.up||e.keyCode===O.a.down||e.keyCode===O.a.left||e.keyCode===O.a.right;!e.altKey&&i&&e.preventDefault()}n.setState(r)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(D.a)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(D.a)(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(D.a)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.a)(l),n}return A(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===V})).map((function(e){return e.props})),o.createElement("div",{className:Object(a.a)("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(v,{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(D.a)(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(_.a,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.a)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||I(e),popupAlign:n.popupAlign||T(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(x,{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),B=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)}}(),H=function(){return(H=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)},z=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===O.a.left||e.keyCode===O.a.right)&&!e.defaultPrevented&&-1!==r.buttons.findIndex((function(e){return e===t}))){var n=r.focusedIndex;e.keyCode===O.a.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,H({target:r},i,{nativeEvent:e}))}}},Object(s.a)(l),r}return B(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||c},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.a)("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),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)}}(),U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return K(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),q=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)}}(),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){return o.createElement(U,{className:"k-separator"})},t}(o.PureComponent),W=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.a)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));W.propTypes={className:i.string};var X,G,Z=n(35),$=n(36),J=n(29),Q=n(30);!function(e){e.single="single",e.multiple="multiple",e.none="none"}(X||(X={})),function(e){e.toggle="toggle",e.remove="remove"}(G||(G={}));var ee;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(ee||(ee={}));var te;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(te||(te={}));var ne=function(){return(ne=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)},re=o.createContext([null,function(e){}]),oe=o.createContext([null,function(e){}]),ie=o.createContext([null,function(e){}]),ae=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 G.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 G.remove:return t.payload===e?null:e;default:return e}case X.multiple:switch(t.type){case G.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 G.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,ne({},e,t));n&&n(r,e.event),a(r)}]},se=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 ee.next:return n===t.items.length-1?e:t.items[n+1];case ee.prev:return 0===n?e:t.items[n-1];case ee.current:return t.payload;case ee.reset:return null;default:return e}}(t.payload,ne({},t,e));r(n)}]},le=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 te.add:break;case te.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case te.reorder:break;default:return e}}(t.state||i,ne({},e,t));n&&n(r,e.event),a(r)}]},ue=o.forwardRef((function(e,t){Object(s.a)(l);var n=o.useRef(null),r=o.useRef(null),i=Object(Z.a)(r,e.dir),u=o.useMemo((function(){return e.chip||fe}),[e.chip,fe]),c=o.useMemo((function(){return e.selection||pe.selection}),[e.selection,pe.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var p=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),d=ae(e.value||e.defaultValue,{selection:c,state:e.value},p),f=d[0],h=d[1],m=o.useCallback((function(t,r){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onDataChange]),v=le(e.data||e.defaultData||pe.defaultData,{state:e.data,valueField:e.valueField||pe.valueField},m),g=v[0],y=v[1],b=o.useCallback((function(t,n){return t.push(n[e.valueField||pe.valueField]),t}),[e.valueField,pe.valueField]),w=o.useMemo((function(){return e.data||g}),[e.data,g]),k=o.useMemo((function(){return e.value||f}),[e.value,f]),O=o.useMemo((function(){return w.reduce(b,[])}),[w,b]),D=se({items:O}),C=D[0],x=D[1],E=Object($.a)(e,n);return o.createElement(re.Provider,{value:[k,h]},o.createElement(oe.Provider,{value:[C,x]},o.createElement(ie.Provider,{value:[w,y]},o.createElement("div",ne({ref:r},E,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(J.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===c,"k-selection-multiple":"multiple"===c,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),w.map((function(t){return o.createElement(u,{role:"option",dataItem:t,key:Object(Q.a)(e.valueField||pe.valueField)(t),text:Object(Q.a)(e.textField||pe.textField)(t),value:Object(Q.a)(e.valueField||pe.valueField)(t)})}))))))})),ce={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},pe={chip:fe,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ue.displayName="KendoReactChipList",ue.propTypes=ce,ue.defaultProps=pe;var de=function(){return(de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},fe=o.forwardRef((function(e,t){Object(s.a)(l);var n=o.useRef(null),r=o.useRef(null),i=Object(Z.a)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var u=o.useContext(re),c=u[0],p=u[1],d=o.useContext(oe),f=d[0],h=d[1],m=o.useContext(ie)[1],v=o.useMemo((function(){return e.selected||(Array.isArray(c)?c.some((function(t){return t===e.value})):c===e.value)}),[e.selected,e.value,c]),g=o.useMemo((function(){return f===e.value}),[e.value,f]),y=o.useMemo((function(){return e.look||me.look}),[e.look]);o.useEffect((function(){g&&r.current&&r.current.focus()}),[g]);var b=o.useCallback((function(t){p({type:G.toggle,payload:e.value,event:t})}),[e.onClick,p,e.value]),w=o.useCallback((function(t){e.removable&&(m({type:te.remove,payload:e.value,event:t}),h({type:ee.reset,payload:e.value,event:t}),p({type:G.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,m,h,p]),k=o.useCallback((function(t){switch(t.keyCode){case O.a.left:h({type:ee.prev,payload:e.value,event:t});break;case O.a.right:h({type:ee.next,payload:e.value,event:t});break;case O.a.enter:p({type:G.toggle,payload:e.value,event:t});break;case O.a.delete:w(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,h,p,w]),D=o.useCallback((function(t){h({payload:e.value,type:ee.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,h]),C=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),x=Object($.a)(e,n,{onClick:b});return o.createElement("div",de({},x,{role:e.role,id:e.value,style:e.style,ref:r,dir:i,tabIndex:Object(J.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":v,"k-state-focus":g,"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"===y||"outlined"===y,"k-chip-solid":"solid"===y||"filled"===y},e.className),"aria-checked":v,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:D,onBlur:C,onKeyDown:k}),v&&o.createElement("span",{className:"k-selected-icon-wrapper"},o.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||me.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:w},o.createElement("span",{className:"k-icon "+e.removeIcon})))})),he={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},me={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};fe.displayName="KendoReactChip",fe.propTypes=he,fe.defaultProps=me;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=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,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=ge(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.a)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),D=h;return o.createElement("li",ve({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(J.a)(p,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:k,onMouseDown:m,onPointerDown:m},g),D?o.createElement(D,{itemIndex:d,item:f}):o.createElement(o.Fragment,null,i&&o.createElement("span",{className:"k-fab-item-text"},i),s&&o.createElement("span",{className:Object(a.a)("k-fab-item-icon k-icon k-i-"+s)})))}));ye.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},ye.displayName="KendoFloatingActionButtonItem";var be=function(e){return"number"==typeof e?e+"px":e},we=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ke=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Oe=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},De=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},Ce=function(){return(Ce=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)},xe=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},Ee=o.forwardRef((function(e,t){Object(s.a)(l);var n=e.align,r=void 0===n?Pe.align:n,i=e.alignOffset,u=e.className,c=e.disabled,p=e.icon,d=e.iconClass,f=e.id,h=e.items,m=e.item,v=e.text,g=e.positionMode,y=void 0===g?Pe.positionMode:g,b=e.shape,w=void 0===b?Pe.shape:b,C=e.size,x=void 0===C?Pe.size:C,E=e.style,P=e.themeColor,S=void 0===P?Pe.themeColor:P,I=e.tabIndex,T=e.accessKey,M=e.popupSettings,N=void 0===M?{}:M,R=e.onClick,j=e.onItemClick,V=e.onFocus,A=e.onBlur,F=e.onKeyDown,L=e.onOpen,B=e.onClose,H=xe(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"]),z=o.useRef(null),K=o.useRef(null),U=o.useRef(null),q=o.useRef(null),Y=o.useCallback((function(){K.current&&K.current.focus()}),[]),W=o.useCallback((function(){return{element:K.current,focus:Y}}),[Y]);o.useImperativeHandle(z,W),o.useImperativeHandle(t,(function(){return z.current}));var X=o.useState(!1),G=X[0],$=X[1],Q=o.useState(!1),ee=Q[0],te=Q[1],ne=o.useState(-1),re=ne[0],oe=ne[1],ie=o.useMemo((function(){return Object(k.a)()}),[]),ae=Object(Z.a)(K,e.dir),se="rtl"===ae,le=o.useMemo((function(){return Object(k.a)()}),[]);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?be(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+be(n.x)+")":"50%",l=n&&void 0!==n.y?be(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+be(n.y)+")":"50%";e.current.style.setProperty(Oe(t,r),"center"===o?s:a),e.current.style.setProperty(De(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"))}}(K,r,i,se)}),[K,r,i,se]),o.useEffect((function(){ee&&K&&K.current&&K.current.focus()}),[ee,K]);var ue=o.useCallback((function(e,t){h&&Object(D.a)(t?L:B,e,W(),void 0)}),[L,B,h]),ce=o.useCallback((function(e){e.target&&!c&&(!h&&R?Object(D.a)(R,e,W(),void 0):($(!G),te(!0),oe(G?-1:0),ue(e,!G)))}),[$,te,oe,R,ue,G,h,c]),pe=o.useCallback((function(e){te(!0),oe(G?0:-1),V&&Object(D.a)(V,e,W(),void 0)}),[V,te,oe]),de=o.useCallback((function(e){te(!1),$(!1),oe(-1),Object(D.a)(A,e,W(),void 0),G&&ue(e,!1)}),[A,te,$,oe,ue]),fe=o.useCallback((function(e){e.preventDefault()}),[]),he=o.useCallback((function(e,t){h&&(h[t].disabled||Object(D.a)(j,e,W(),{itemProps:h[t],itemIndex:t}))}),[j]),me=o.useCallback((function(e,t){e.target&&h&&(oe(t),$(!1),he(e,t),ue(e,!1))}),[oe,$,he,ue]),ve=o.useCallback((function(e){document.activeElement===K.current&&e.preventDefault()}),[K,document.activeElement]),ge=o.useCallback((function(e){var t=re,n=h?h.length-1:-1,o="bottom"===r.vertical;switch(e.keyCode){case O.a.enter:case O.a.space:t>=0&&he(e,t),e.preventDefault(),$(!G),oe(G?-1:0);break;case O.a.esc:e.preventDefault(),$(!1),oe(-1);break;case O.a.home:e.preventDefault(),oe(0);break;case O.a.end:e.preventDefault(),oe(n);break;case O.a.down:case O.a.right:e.preventDefault(),t<n&&!o&&oe(t+1),t>0&&o&&oe(t-1);break;case O.a.up:case O.a.left:e.preventDefault(),t>0&&!o&&oe(t-1),t<n&&o&&oe(t+1)}Object(D.a)(F,e,W(),void 0)}),[F,re,oe,se,$]),Ee=o.useMemo((function(){return Object(a.a)("k-fab","k-fab-"+S,"k-fab-"+w,{"k-fab-sm":"small"===x,"k-fab-md":"medium"===x,"k-fab-lg":"large"===x,"k-state-disabled":c,"k-pos-absolute":"absolute"===y,"k-pos-fixed":"fixed"===y,"k-state-focus":ee},"k-"+r.vertical+"-"+r.horizontal,u)}),[S,x,w,c,y,r,ee,u]),Se=h&&h.map((function(e,t){return o.createElement(ye,Ce({},e,{key:t,index:t,id:le+"-"+t,disabled:c||e.disabled,focused:re===t,dataItem:e,item:m,className:Object(a.a)(e.className,(n=ae||"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:me,onDown:ve}));var n,i})),_e=p&&!v,Ie=(K.current?K.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",Ce({ref:K,id:f||ie,role:h?"menubutton":"button",type:"button","aria-disabled":c,"aria-expanded":h?G:void 0,"aria-haspopup":!!h,"aria-label":(v||"")+" floatingactionbutton","aria-owns":h?le:void 0,"aria-activedescendant":re>=0&&h?le+"-"+re:void 0,tabIndex:Object(J.a)(I,c),accessKey:T,dir:ae,disabled:c,className:Ee,style:E,onClick:ce,onMouseDown:fe,onFocus:pe,onBlur:de,onKeyDown:ge},H),p?o.createElement("span",{role:"presentation",className:Object(a.a)("k-fab-icon k-icon k-i-"+p)}):d?o.createElement("span",{role:"presentation",className:d}):null,v&&o.createElement("span",{className:"k-fab-text"},v)),o.createElement(_.a,{ref:q,anchor:K.current,show:G,animate:N.animate,popupClass:Object(a.a)("k-popup-transparent k-fab-popup",N.popupClass),anchorAlign:N.anchorAlign||we(r,se),popupAlign:N.popupAlign||ke(r,se),style:{boxShadow:"none"}},o.createElement("ul",{ref:U,role:"menu","aria-labelledby":f,id:le,className:Object(a.a)("k-fab-items",{"k-fab-items-bottom":"bottom"!==r.vertical,"k-fab-items-top":"bottom"===r.vertical}),style:{paddingLeft:_e?Ie:void 0,paddingRight:_e?Ie:void 0}},Se)))}));Ee.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 Pe={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};Ee.displayName="KendoFloatingActionButton"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=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)?r.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(" ")}},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(0),s=n(1),l=n(3),u=n(5),c=n(67),p=n(2),d=n(54),f=n(2),h=n(12),m=n(49),v=n(4),g=n(6),y=n(8),b=n(7),w=function(e){function n(t){var r=e.call(this,t)||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||n.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})},f.validatePackage(h.packageMetadata),r.state={focused:!1},r}return o(n,e),n.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},n.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()},n.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},n.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var t=u.provideLocalizationService(this),r=i({},n.defaultProps,this.props),o=r.min,s=r.max,l=r.name,c=r.label,f=r.id,h=this.text,v=h===this.props.placeholder?"":h,y=h===this.props.placeholder?h:void 0,b=f||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(n){var r=n.onFocus,o=n.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:h,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":t.toLanguageString(g.increaseValue,g.messages[g.increaseValue]),title:t.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":t.toLanguageString(g.decreaseValue,g.messages[g.decreaseValue]),title:t.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:h,editorValid:w,editorDisabled:this.props.disabled,children:D,style:{width:this.props.width}}):D},Object.defineProperty(n.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:n.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:n.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){var e=i({},t.DateInput.defaultProps,this.props),r=e.formatPlaceholder,o=void 0===r?n.defaultProps.formatPlaceholder:r,a=e.format,s=void 0===a?n.defaultProps.format:a,l=e.value,u=e.defaultValue;null===this.kendoDate?(this.kendoDate=new c.KendoDate(this.intl.bind(this),o,s),this.kendoDate.setValue(l||u||null)):(this.kendoDate.format=s,this.kendoDate.formatPlaceholder=o),void 0!==l&&this.value!==l&&this.kendoDate.setValue(l);var p=this.kendoDate.getTextAndFormat(),d=p.text,f=p.format;return this.currentFormat=f,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?d:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(n.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(n.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:n.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:n.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),n.prototype.intl=function(){return u.provideIntlService(this)},Object.defineProperty(n.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}),n.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)}))},n.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},n.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}},n.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},n.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})}}},n.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)}},n.displayName="DateInput",n.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]),onChange:s.func,validationMessage:s.string,required:s.bool,validate:s.bool,valid:s.bool},n.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},n}(a.Component);t.DateInputWithoutContext=w,t.DateInputPropsContext=p.createPropsContext(),t.DateInput=p.withPropsContext(t.DateInputPropsContext,w),t.DateInput.displayName="KendoReactDateInput",u.registerForIntl(w),u.registerForLocalization(w)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function o(e){var t=[];return e.replace(r,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}},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(0),s=n(1),l=n(2),u=n(3),c=n(5),p=n(12),d=n(57),f=n(66),h=n(7),m=n(9),v=n(4),g=n(22),y=function(e){return e?e.virtualization:null},b=function(e,t,n,r){return void 0===e&&(e=w.defaultProps.min),void 0===t&&(t=w.defaultProps.max),void 0!==r?null!==r&&v.isInRange(u.getDate(r),e,t)?r:null:null!==n&&v.isInRange(u.getDate(n),e,t)?n:null},w=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(y(r.Navigation),y(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=v.dateInRange(r.focusedDate,r.min,r.max);y(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=v.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})},l.validatePackage(p.packageMetadata);var o=b(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:v.viewInRange(m.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),focusedDate:v.dateInRange(n.focusedDate||o||v.getToday(),r.min,r.max)},r.dom=new g.DOMService,r.bus=new g.BusViewService(r.handleViewChange),r.navigation=new g.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 m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return m.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 g.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=v.viewInRange(this.state.activeView,m.CalendarViewEnum[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],m.CalendarViewEnum[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=b(this.min,this.max,this.value,this.value),s=o?u.getDate(o):null;this.focusedDate=u.getDate(v.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),h={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},g=[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(d.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({},h,{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}),g)},t.displayName="Calendar",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&&m.CalendarViewEnum[r]<m.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&&m.CalendarViewEnum[r]>m.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:h.MIN_DATE,max:h.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(a.Component);t.CalendarWithoutContext=w,t.CalendarPropsContext=l.createPropsContext(),t.Calendar=l.withPropsContext(t.CalendarPropsContext,w),t.Calendar.displayName="KendoReactCalendar",c.registerForIntl(w)},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(0),c=n(1),p=n(2),d=n(58);!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(l=t.ScrollDirection||(t.ScrollDirection={}));var f=((o={})[l.Forward]=function(e){return function(t){return t+e}},o[l.Backward]=function(e){return function(t){return t-e}},o),h=((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=f[n](s),u=h[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(61);t.BusViewService=r.BusViewService;var o=n(40);t.CenturyViewService=o.CenturyViewService;var i=n(41);t.DecadeViewService=i.DecadeViewService;var a=n(62);t.DOMService=a.DOMService;var s=n(42);t.MonthViewService=s.MonthViewService;var l=n(63);t.NavigationService=l.NavigationService;var u=n(64);t.ScrollSyncService=u.ScrollSyncService;var c=n(65);t.WeekNamesService=c.WeekNamesService;var p=n(43);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(0),i=n(54);t.usePickerFloatingLabel=function(e){var t=o.useState(!1),n=t[0],r=t[1];return o.useEffect((function(){e.current&&r(Boolean(e.current.text))})),{editorValue:n}},t.PickerFloatingLabel=function(e){var n=t.usePickerFloatingLabel(e.dateInput);return o.createElement(i.FloatingLabel,r({},e,n))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return ce})),n.d(t,"a",(function(){return pe}));var r=n(0),o=n(55),i=n(1),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(33),u=n(11),c=n(28),p=n(14),d="bottom",f="center",h="middle",m="left",v="right",g="top";function y(e){return e.ownerDocument||e.document||e}var b=function(e){return y(e).defaultView},w=function(e){return y(e).documentElement},k=0;function O(){if(!k&&"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),k=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return k}function D(e){var t=b(e),n=w(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=O()),r}var C=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||w(e)},x=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}},E=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function P(e){var t=w(e),n=b(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var S=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var _=function(e,t){var n=b(e),r=n.getComputedStyle(e),o=x(e),i=t||C(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=x(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?S(e):function(e){var t=C(e);return t?S(t):{x:0,y:0}}(t)};var T="fit",M="flip",N=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},R=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===f||a===h)&&!(i===f||i===h)){var u=i===g||i===m;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},j=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},V=function(e,t){for(var n,r,o=E(e),i=t;i&&(n=j(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var A,F,L,B,H=(A=function(e){if(!z())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},L=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return L||(F=A.apply(void 0,e),L=!0),F}),z=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},K={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:H,canUseDOM:z},U=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=function(){return K.canUseDOM()?window:null},Y=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},X=function(e){if(!e||!K.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},G=function(){return K.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Z={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align: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,u=o.vertical,c=i.horizontal||0,p=i.vertical||0,m=t.top,g=t.left;return s===d&&(m+=t.height),s!==f&&s!==h||(m+=Math.round(t.height/2)),u===d&&(m-=r.height,p*=-1),u!==f&&u!==h||(m-=Math.round(r.height/2),p*=-1),a===v&&(g+=t.width),a!==f&&a!==h||(g+=Math.round(t.width/2)),l===v&&(g-=r.width,c*=-1),l!==f&&l!==h||(g-=Math.round(r.width/2),c*=-1),{top:m+p,left:g+c}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=D(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}},getFontStyles:function(e){var t=q();if(!t||!e)return[];var n=t.getComputedStyle(e);return U.map((function(e){return{key:e,value:n[e]}}))},getWindow:q,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?x(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,r=n.left,o=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=x(e);return e.style.left=r,e.style.top=o,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var r=t?C(t):null,o=_(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,f=r===d.body||r===d.documentElement?1:n;return{top:i+p*f,left:a+c*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView: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,f=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.vertical===T,b=i.horizontal===T,w=i.vertical===M,k=i.horizontal===M;y&&(g+=N(l,c,d)),b&&(v+=N(u,p,f)),w&&(g+=R({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),k&&(v+=R({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var O=w&&0!==g,D=k&&0!==v,C=y&&0!==g,x=b&&0!==v;return{flipped:D||O,fitted:C||x,flip:{horizontal:D,vertical:O},fit:{horizontal:x,vertical:C},offset:{left:v,top:g}}},scrollPosition:P,scrollableParents:function(e){var t=[];if(!K.canUseDOM())return t;for(var n=e.parentElement;n;)(Y.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:X,stackingElementOffset:function(e){var t=X(e);return t?x(t):null},stackingElementScroll:function(e){var t=X(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=X(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(X(e))},windowViewPort:D,zoomLevel:G,isZoomed:function(){return G()>1},zIndex:function(e,t){if(!e||!K.canUseDOM())return null;var n=V(e,t);if(!n)return null;var r=[e].concat(E(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}},$=function(e,t){return e?{x:0,y:0}:Z.scrollPosition(t)},J=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,u="fixed"===s||!Z.hasOffsetParent(n)?function(e,t,n,r){var o=$(e,t),i=K.eitherRect(Z.offset(e),n),a=2*r,s=Z.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=Z.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),Z.removeScroll(Z.addScroll(K.removeStackingOffset(K.scaleRect(i,r),l),s),o)}(t,n,a,l):function(e,t,n,r){var o=K.eitherRect(Z.position(e,t,r),n);return K.scaleRect(o,r)}(t,n,a,l),c=K.scaleRect(Z.offset(n),l);return Z.align({anchorAlign:r,anchorRect:u,elementAlign:o,elementRect:c,margin:i})},Q=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,u=Z.offsetAtPoint(r,n),c=K.scaleRect(u,l),p=K.scaleRect(Z.offset(t),l),d=K.eitherRect(p,n),f=e.viewPort||Z.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var h=Z.restrictToView({anchorAlign:o,anchorRect:d,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),m=Z.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},ee="fit",te="flip",ne={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1640887529,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"},re=(B=function(e,t){return(B=Object.setPrototypeOf||{__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}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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)};function ie(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 ae,se={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(ae||(ae={}));var le=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:ae.hidden,previous:ae.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:ae.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=t.margin,u=t.scale,c=t.positionMode;e.style.top="0px",e.style.left="-10000px";var p=J({anchor:s,element:e,elementAlign:o,anchorAlign:r,offset:a,margin:l,positionMode:c,scale:u}),d=Q({anchor:s,anchorAlign:r,collisions:i,element:e,currentLocation:p,elementAlign:o,margin:n.props.margin});e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._flipped=d.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===ae.hiding&&n.state.previous===ae.shown&&n.setState({current:ae.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(l.a)(ne),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 re(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,f=oe({},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===ae.hidden||t.current===ae.hiding?oe({},f,{current:ae.showing,previous:t.current}):t.current===ae.showing?oe({},f,{current:ae.shown,previous:t.current}):t.current!==ae.shown||ie(p,t.props.offset)&&ie(o,t.props.anchorAlign)&&ie(i,t.props.appendTo)&&ie(a,t.props.collision)&&ie(s,t.props.popupAlign)&&ie(c,t.props.style)&&r===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?f:oe({},f,{current:ae.reposition,previous:t.current}):t.current===ae.hiding||t.current===ae.hidden?oe({},f,{current:ae.hidden,previous:t.current}):oe({},f,{current:ae.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===ae.showing&&this._popup?this.show(this._popup):this.state.current===ae.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===ae.reposition&&this.state.previous===ae.shown?this.setState({current:ae.shown,previous:this.state.current}):this.state.current===ae.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===ae.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,l=t.id,d=t.positionMode,f=this.props.appendTo?this.props.appendTo:u.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===ae.reposition&&this.state.previous===ae.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:d},this.props.style||{}),m=this.state.current===ae.hiding;if((s||m)&&f){var v=this.getCurrentZIndex(),g=r.createElement(c.a.Provider,{value:v},r.createElement("div",{className:Object(p.a)("k-animation-container","k-animation-container-relative",i),id:l,ref:function(t){return e._popup=t},style:oe({zIndex:v},h)},r.createElement("div",{className:Object(p.a)(a,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return o.createPortal(g,f)}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=Z.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:ae.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([ee,te]),vertical:i.oneOf([ee,te])}),anchorAlign:i.shape({horizontal:i.oneOf([m,f,v]),vertical:i.oneOf([g,f,d])}),popupAlign:i.shape({horizontal:i.oneOf([m,f,v]),vertical:i.oneOf([g,f,d])}),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})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number},t.defaultProps={collision:{horizontal:ee,vertical:te},anchorAlign:{horizontal:m,vertical:d},popupAlign:{horizontal:m,vertical:g},offset:se,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=c.a,t}(r.Component),ue=function(){return(ue=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)},ce=r.createContext((function(e){return e})),pe=r.forwardRef((function(e,t){var n=r.useContext(ce).call(void 0,e);return r.createElement(le,ue({ref:t},n))}))},function(e,t){e.exports=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=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}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(18),o={};function i(e){if(o[e])return o[e];var t=Object(r.a)(e);return o[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},o[e]}o.undefined=function(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=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}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var 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}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e){if(void 0!==r)r.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)}}},function(e,t,n){"use strict";function r(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=function(e,t,n){void 0===n&&(n={});var o=r.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]),i=r.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:r.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:i,onMouseDown:o,onDoubleClick:r.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:r.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:r.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:r.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:r.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:r.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])}}},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(0),s=n(1),l=n(3),u=n(5),c=n(38),p=n(39),d=n(9),f=n(4),h=n(22),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 h.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=f.getToday(),i=f.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:f.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(0),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,f=e.isRangeSplitEnd,h=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":f,"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":h,"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(0),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(9),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,f=void 0===d?i.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return s;var m=a.range(0,4),v=o.firstDecadeOfCentury(h),g=o.lastDecadeOfCentury(h),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,f.start),h=t.isEqual(s,f.end),m=!d&&!h&&a.isInSelectionRange(s,f),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:h,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(15),a=n(16),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,f=void 0===d?a.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return l;var m=s.range(0,4),v=o.firstYearOfDecade(h),g=o.lastYearOfDecade(h),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,f.start),h=t.isEqual(l,f.end),m=!d&&!h&&s.isInSelectionRange(l,f),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:h,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(15),a=n(16),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,f=void 0===d?a.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return l;var m=o.firstDayOfMonth(h),v=o.lastDayOfMonth(h),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,f.start),h=t.isEqual(l,f.end),g=!d&&!h&&s.isInSelectionRange(l,f),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:h,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(15),a=n(4),s=n(16),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,f=void 0===d?s.EMPTY_SELECTIONRANGE:d,h=e.viewDate;if(!h)return u;var m=this.abbrMonthNames(),v=o.firstMonthOfYear(h),g=o.lastMonthOfYear(h),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,f.start),h=t.isEqual(u,f.end),b=!d&&!h&&a.isInSelectionRange(u,f),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:h,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(0),s=n(1),l=n(5),u=n(2),c=n(45),p=n(7),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(13),l=n(0),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(0),a=n(1),s=n(5),l=n(2),u=n(3),c=n(6),p=n(4),d=n(7),f=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=f,s.registerForLocalization(f)},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(0),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(0),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(0),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(0),l=n(1),u=n(3),c=n(2),p=n(5),d=n(6),f=n(72),h=n(4),m=n(23),v=n(8),g=n(13),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||h.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 h=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:h},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(f.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,show:e.props.show})):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),show:l.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:h.MIN_TIME,max:h.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(0),s=n(1),l=n(5),u=n(2),c=n(3),p=n(13),d=n(9),f=n(44),h=n(7),m=n(6),v=n(22),g=n(4),y=n(80),b=n(46),w=function(e,t,n){return void 0===e&&(e=C.defaultProps.min),void 0===t&&(t=C.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=C.defaultProps.min),void 0===t&&(t=C.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},C=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),f=D(s,l,p),h=g.viewInRange(d.CalendarViewEnum[n.defaultActiveView],r.bottomView,r.topView),m=g.dateInRange(n.focusedDate||f||g.getToday(),r.min,r.max);return r.state={value:a,activeView:h,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=h,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()},h=this.localization.toLanguageString(m.prevView,m.messages[m.prevView]),v=this.localization.toLanguageString(m.nextView,m.messages[m.nextView]),C=!this.canNavigate(d.Action.PrevView),x=!this.canNavigate(d.Action.NextView),E={"aria-disabled":C},P={"aria-disabled":x},S=this.lastView!==t,_=this.dates&&this.service.isInArray(this.focusedDate,this.dates),I=this.lastViewsCount!==this.props.views;(!_||S||I)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||y.HorizontalViewList.defaultProps.views));var T=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(f.Header,{key:".kendo.calendar.header."+T.getTime(),activeView:t,currentDate:T,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:h,disabled:C,onClick:this.handlePrevButtonClick},E)),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:x,onClick:this.handleNextButtonClick},P)))}),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.displayName="MultiViewCalendar",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([g.nullable(s.instanceOf(Date)),s.arrayOf(s.instanceOf(Date)),s.shape({start:g.nullable(s.instanceOf(Date)),end:g.nullable(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([g.nullable(s.instanceOf(Date)),s.arrayOf(s.instanceOf(Date)),s.shape({start:g.nullable(s.instanceOf(Date).isRequired),end:g.nullable(s.instanceOf(Date).isRequired)})]),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:h.MIN_DATE,max:h.MAX_DATE,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(a.Component);t.MultiViewCalendarWithoutContext=C,t.MultiViewCalendarPropsContext=u.createPropsContext(),t.MultiViewCalendar=u.withPropsContext(t.MultiViewCalendarPropsContext,C),t.MultiViewCalendar.displayName="KendoReactMultiViewCalendar",l.registerForIntl(C),l.registerForLocalization(C)},function(e,t,n){"use strict";n.r(t),n.d(t,"FloatingLabel",(function(){return v})),n.d(t,"Label",(function(){return p})),n.d(t,"Error",(function(){return d})),n.d(t,"Hint",(function(){return f}));var r,o=n(0),i=n(1),a=n(14),s=((r={})["labels.optional"]="(Optional)",r),l=n(5),u=n(33),c={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1640887713,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"},p=function(e){Object(u.a)(c);var t=e.id,n=e.editorId,r=e.editorRef,i=e.editorDisabled,p=e.children,d=e.editorValid,f=e.style,h=e.className,m=e.optional,v=Object(l.useLocalization)(),g=m?v.toLanguageString("labels.optional",s["labels.optional"]):"",y=g&&o.createElement("span",{className:"k-label-optional"},g),b=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]),w=Object(a.a)({"k-label":!0,"k-label-empty":!p,"k-text-error":!1===d,"k-text-disabled":!0===i},h);return o.createElement("label",{id:t,htmlFor:n,onClick:b,style:f,className:w},p,y)};p.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},p.displayName="KendoReactLabel";var d=function(e){Object(u.a)(c);var t=Object(a.a)({"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)};d.propTypes={id:i.string,direction:i.oneOf(["start","end"]),children:i.oneOfType([i.element,i.node]),style:i.object,className:i.string},d.defaultProps={direction:"start"},d.displayName="KendoReactError";var f=function(e){Object(u.a)(c);var t=Object(a.a)({"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)};f.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},f.defaultProps={direction:"start"},f.displayName="KendoReactHint";var h,m=(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)}),v=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(u.a)(c),n}return m(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,f=e.id,h=e.optional,m=Object(l.provideLocalizationService)(this),v=h?m.toLanguageString("labels.optional",s["labels.optional"]):"",g=v&&o.createElement("span",{className:"k-label-optional"},v),y=Object(a.a)({"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.a)({"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:f,htmlFor:n,className:b},t,g):o.createElement("span",{id:f,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)(v)},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19);t.Calendar=r.Calendar,t.CalendarPropsContext=r.CalendarPropsContext;var o=n(17);t.DateInput=o.DateInput,t.DateInputPropsContext=o.DateInputPropsContext;var i=n(69);t.DatePicker=i.DatePicker,t.DatePickerPropsContext=i.DatePickerPropsContext;var a=n(70);t.TimePicker=a.TimePicker,t.TimePickerPropsContext=a.TimePickerPropsContext;var s=n(53);t.MultiViewCalendar=s.MultiViewCalendar,t.MultiViewCalendarPropsContext=s.MultiViewCalendarPropsContext;var l=n(81);t.DateRangePicker=l.DateRangePicker,t.DateRangePickerPropsContext=l.DateRangePickerPropsContext;var u=n(38);t.CalendarCell=u.CalendarCell;var c=n(39);t.CalendarWeekCell=c.CalendarWeekCell;var p=n(45);t.CalendarHeaderTitle=p.CalendarHeaderTitle;var d=n(47);t.CalendarNavigationItem=d.CalendarNavigationItem;var f=n(9);t.CalendarViewEnum=f.CalendarViewEnum;var h=n(82);t.DateTimePicker=h.DateTimePicker,t.DateTimePickerPropsContext=h.DateTimePickerPropsContext;var m=n(50);t.ToggleButton=m.ToggleButton;var v=n(51);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(0),a=n(1),s=n(2),l=n(3),u=n(5),c=n(20),p=n(37),d=n(44),f=n(4),h=n(9),m=n(46),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=f.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===h.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=f.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===h.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 f.isInRange(f.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=f.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===h.CalendarViewEnum.month,"k-calendar-yearview":this.props.activeView===h.CalendarViewEnum.year,"k-calendar-decadeview":this.props.activeView===h.CalendarViewEnum.decade,"k-calendar-centuryview":this.props.activeView===h.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===h.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(59);t.RowHeightService=r.RowHeightService;var o=n(60);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 f=Math.floor(.3*this.take);this.firstLoaded=r(p-f),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(40),i=n(41),a=n(42),s=n(43),l=n(21),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(21),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"),f=o.domContainerFactory("table"),h=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?[h(),f([d([c([u("MO")])])],"k-calendar-weekdays"),v([e,e])]:[h(),v([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),f([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),C=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},x=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},E=function(e){return e.querySelector("tbody")};this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(k(),(function(e){var n=E(e);t.calendarHeight=C(e),t.monthViewHeight=C(n),t.headerHeight=C(n.children[0]),t.scrollableContentHeight=C(b(e))})),this.batch(w(k()),(function(e){var n=E(e);t.calendarWidth=x(e),t.monthViewWidth=x(n),t.scrollableContentWidth=x(b(e))})),this.batch(O(),(function(e){t.yearViewHeight=C(E(e)),t.scrollableYearContentHeight=C(b(e))})),this.batch(w(O()),(function(e){t.yearViewWidth=x(E(e))})),this.batch(D(),(function(e){t.decadeViewHeight=C(E(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(w(D()),(function(e){t.decadeViewWidth=x(E(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(g(),(function(e){t.navigationItemHeight=C(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(15),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(0),s=n(1),l=n(3),u=n(47),c=n(4),p=n(20),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(68);t.KendoDate=r.KendoDate;var o=n(48);t.Mask=o.Mask},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(48),i=n(49),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,f=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 h=u+t,m=parseInt(h,10);if(!(d=this.intl.parseDate(l+h+c,this.format))&&!isNaN(m)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){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(h,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 f&&(d=this.intl.parseDate(l+f+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(0),l=n(1),u=n(10),c=n(3),p=n(2),d=n(2),f=n(12),h=n(17),m=n(19),v=n(4),g=n(4),y=n(6),b=n(5),w=n(50),k=n(51),O=n(24),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(f.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,f=t.min,h=t.max,m=t.weekNumber,v=t.focusedDate,g=t.className,w=t.width,k=t.name,D=t.validationMessage,C=t.required,x=t.validityStyles,E=t.ariaLabelledBy,P=t.ariaDescribedBy,S=this.props.popupSettings,_=S.popupClass,I=a(S,["popupClass"]),T=this.show,M=this.value,N=M&&c.getDate(M),R=!this.validityStyles||this.validity.valid,j=p.classNames("k-widget k-datepicker",g),V=p.classNames("k-picker-wrap",{"k-state-invalid":!R,"k-state-disabled":n,"k-state-focused":this.state.focused}),A=p.classNames("k-calendar-container k-group k-reset",_),F={disabled:n,format:u,formatPlaceholder:d,id:l,ariaLabelledBy:E,ariaDescribedBy:P,max:h,min:f,name:k,onChange:this.handleInputValueChange,required:C,tabIndex:T?-1:r,title:o,valid:this.validity.valid,validationMessage:D,validityStyles:x,value:M,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},L=i({show:T,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:f,max:h,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:j,onKeyDown:e.handleKeyDown,style:{width:w},onFocus:n,onBlur:r},s.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:V},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:R,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.displayName="DatePicker",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:h.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.DatePickerWithoutContext=D,t.DatePickerPropsContext=p.createPropsContext(),t.DatePicker=p.withPropsContext(t.DatePickerPropsContext,D),t.DatePicker.displayName="KendoReactDatePicker",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(0),l=n(1),u=n(10),c=n(3),p=n(2),d=n(5),f=n(2),h=n(12),m=n(6),v=n(17),g=n(71),y=n(4),b=n(8),w=n(24),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))},f.validatePackage(h.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,f=t.format,h=t.formatPlaceholder,v=t.smoothScroll,y=t.width,b=t.name,k=t.steps,O=t.cancelButton,D=t.nowButton,C=t.validationMessage,x=t.required,E=t.validityStyles,P=t.ariaLabelledBy,S=t.ariaDescribedBy,_=this.popupSettings,I=_.popupClass,T=a(_,["popupClass"]),M=!this.validityStyles||this.validity.valid,N=p.classNames("k-widget k-timepicker",c),R=p.classNames("k-picker-wrap",{"k-state-invalid":!M,"k-state-disabled":n,"k-state-focused":this.state.focused}),j=p.classNames("k-group k-reset",I),V={disabled:n,format:f,formatPlaceholder:h,id:l,ariaLabelledBy:P,ariaDescribedBy:S,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:b,onChange:this.handleInputValueChange,required:x,steps:k,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:C,validityStyles:E,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:j,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},T),F=s.createElement(g.TimeSelector,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:O,disabled:n,nowButton:D,format:f,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:R},s.createElement(e.dateInputComp,i({_ref:e._dateInput},V)),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:M,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.displayName="TimePicker",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.TimePickerWithoutContext=k,t.TimePickerPropsContext=p.createPropsContext(),t.TimePicker=p.withPropsContext(t.TimePickerPropsContext,k),t.TimePicker.displayName="KendoReactTimePicker",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(0),s=n(1),l=n(3),u=n(2),c=n(5),p=n(6),d=n(4),f=n(8),h=n(52),m=n(13);!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||f.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||f.getNow()),f.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=f.valueMerger(f.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,f=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(h.TimePart,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:d,min:f,max:v,boundRange:g,disabled:o,nowButton:y,steps:b,show:this.props.show}),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),show:s.bool},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(0),l=n(1),u=n(3),c=n(2),p=n(5),d=n(20),f=n(73),h=n(74),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={})[f.TIME_PART.dayperiod]=h.DayPeriodService,i[f.TIME_PART.hour]=h.HoursService,i[f.TIME_PART.minute]=h.MinutesService,i[f.TIME_PART.second]=h.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.props.show&&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 h.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,show: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(23);t.TIME_PART=r.TIME_PART},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75);t.DayPeriodService=r.DayPeriodService;var o=n(76);t.DOMService=o.DOMService;var i=n(77);t.HoursService=i.HoursService;var a=n(78);t.MinutesService=a.MinutesService;var s=n(79);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(8),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,f=e.step,h=void 0===f?this.step:f;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=h},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(8),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(8),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(0),a=n(37),s=n(9),l=n(2),u=n(3),c=n(7),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(0),s=n(1),l=n(10),u=n(3),c=n(2),p=n(5),d=n(2),f=n(12),h=n(17),m=n(53),v=n(9),g=n(7),y=n(6),b=n(13),w=n(4),k={display:"inline-block"},O=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(f.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]),f=s.toLanguageString(y.separator,y.messages[y.separator]),g=i({label:u,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:t.start,onChange:this.handleStartChange}),w=i({label:d,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:t.end,onChange:this.handleEndChange}),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}),C=this.props.calendar?a.createElement(this.props.calendar,i({},D)):a.createElement(m.MultiViewCalendar,i({},D,{ref:this.setCalendarRef})),x=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:k},this.props.startDateInput?a.createElement(this.props.startDateInput,i({},g)):a.createElement(h.DateInput,i({},g,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?x:f,this.props.endDateInput?a.createElement(this.props.endDateInput,i({},w)):a.createElement(h.DateInput,i({},w,{ref:this._endDateInput}))),this.props.popup?a.createElement(this.props.popup,i({},O),C):a.createElement(l.Popup,i({},O),C))},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.displayName="DateRangePicker",t.propTypes={allowReverse:s.bool,calendarSettings:s.any,className:s.string,defaultShow:s.bool,defaultValue:s.shape({start:w.nullable(s.instanceOf(Date).isRequired),end:w.nullable(s.instanceOf(Date).isRequired)}),disabled:s.bool,endDateInputSettings:s.shape(h.DateInputWithoutContext.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:w.nullable(s.instanceOf(Date).isRequired),end:w.nullable(s.instanceOf(Date).isRequired)})},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.DateRangePickerWithoutContext=O,t.DateRangePickerPropsContext=c.createPropsContext(),t.DateRangePicker=c.withPropsContext(t.DateRangePickerPropsContext,O),t.DateRangePicker.displayName="KendoReactDateRangePicker",p.registerForLocalization(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(0),s=n(1),l=n(10),u=n(3),c=n(2),p=n(17),d=n(2),f=n(12),h=n(4),m=n(6),v=n(5),g=n(83),y=n(8),b=n(7),w=n(24),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(f.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=h.isInDateRange(this.value,this.min,this.max)&&y.isInTimeRange(this.value,this.props.minTime||b.MIN_TIME,this.props.maxTime||h.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,f=t.max,h=t.weekNumber,y=t.focusedDate,b=t.className,k=t.width,O=t.name,D=t.validationMessage,C=t.required,x=t.validityStyles,E=t.cancelButton,P=t.minTime,S=t.maxTime,_=t.ariaLabelledBy,I=t.ariaDescribedBy,T=t.popup,M=void 0===T?l.Popup:T,N=t.calendar,R=!this.validityStyles||this.validity.valid,j=c.classNames("k-widget k-datetimepicker",{"k-state-invalid":!R},b),V=c.classNames("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),A={id:s,ariaLabelledBy:_,ariaDescribedBy:I,format:u,formatPlaceholder:p,disabled:n,title:o,validityStyles:x,validationMessage:D,required:C,min:d,max:f,minTime:P,maxTime:S,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:j,onKeyDown:e.handleKeyDown,style:{width:k},onFocus:r,onBlur:o},a.createElement("div",{ref:function(t){e._wrapper=t},className:V},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(M,{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:E,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:h,min:e.min,max:e.max,minTime:P,maxTime:S,focusedDate:y,format:u,calendar:N})))}));return this.props.label?a.createElement(w.PickerFloatingLabel,{dateInput:this._dateInput,label:this.props.label,editorId:s,editorValid:R,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.displayName="DateTimePicker",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:h.MAX_DATE,min:h.MIN_DATE,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:p.DateInput},t}(a.Component);t.DateTimePickerWithoutContext=k,t.DateTimePickerPropsContext=c.createPropsContext(),t.DateTimePicker=c.withPropsContext(t.DateTimePickerPropsContext,k),t.DateTimePicker.displayName="KendoReactDateTimePicker",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(0),s=n(5),l=n(6),u=n(13),c=n(19),p=n(52),d=n(4),f=n(3),h=n(2),m=n(7),v=n(8),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 h.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case h.Keys.left:if(!r)return;return void n.move("left");case h.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,f=t.max,m=t.weekNumber,v=t.focusedDate,g=t.format,y=h.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]),C={min:o,max:f,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({},C)):a.createElement(c.Calendar,i({ref:function(t){e._calendar=t}},C))),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 f.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)}])}));