@progress/kendo-react-data-tools 4.13.1-dev.202112140947 → 4.14.0-dev.202112141254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("react-dom"),require("react-transition-group"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-drawing","react-dom","react-transition-group","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactDataTools=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("react-dom"),require("react-transition-group"),require("@progress/kendo-licensing")):e.KendoReactDataTools=t(e.PropTypes,e.React,e.KendoDateMath,e.KendoReactIntl,e.KendoDrawing,e.ReactDOM,e.ReactTransitionGroup,e.KendoLicensing)}(window,(function(e,t,n,r,o,i,a,s){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=41)}([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 v})),n.d(t,"focusFirstFocusableChild",(function(){return m})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return b})),n.d(t,"getter",(function(){return w})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return x})),n.d(t,"noop",(function(){return E})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return I})),n.d(t,"setter",(function(){return S})),n.d(t,"mapTree",(function(){return F})),n.d(t,"mapTreeItem",(function(){return M})),n.d(t,"extendDataItem",(function(){return T})),n.d(t,"getItemPath",(function(){return R})),n.d(t,"validatePackage",(function(){return V})),n.d(t,"hasRelativeStackingContext",(function(){return B})),n.d(t,"dispatchEvent",(function(){return A})),n.d(t,"AsyncFocusBlur",(function(){return H})),n.d(t,"createPropsContext",(function(){return W})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return G})),n.d(t,"useAsyncFocusBlur",(function(){return K})),n.d(t,"useRtl",(function(){return X})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return z})),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 we})),n.d(t,"DragAndDrop",(function(){return Ke})),n.d(t,"Draggable",(function(){return qe})),n.d(t,"Droppable",(function(){return He})),n.d(t,"useDraggable",(function(){return Le})),n.d(t,"useDroppable",(function(){return Ve}));var r=n(1),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=" ",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 v(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 v(e){return e.map((function(e){return h(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()}},g=function(){},b=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},y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function O(e){var t=[];return e.replace(y,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var k={};function w(e){if(k[e])return k[e];var t=O(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 C=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},x={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},E=function(){},D=function(){return!(!l||!document.body)&&(new s).scrollbarWidth},I=function(){if(!l||!document.body)return!1;var e=(new s).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},_={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function S(e){if(_[e])return _[e];var t=O(e);return _[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]]||P(t[a+1],r);o[t[i]]=n},_[e]}var 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)};function N(e,t,n){var r;return n?j({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var F=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=N(t,n).map((function(t){return e(t,n,r)}));return r(N(t,n,o))}return r(t)}(e,t,n)})).slice()},M=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)},T=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},R=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},L=n(24);function V(e){if(void 0!==L)L.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 B=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 A(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function K(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 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)},H=function(e){var t=e.children,n=K({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,q({},n))},z=function(e,t){return r.useContext(e)(t)},U=function(){return(U=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)},W=function(){return r.createContext((function(e){return e}))},Y=function(e,t){return r.forwardRef((function(n,o){var i=z(e,n);return r.createElement(t,U({},i,{ref:o}))}))};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}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}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(0),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]),v=r.useMemo((function(){return s||ie.flip}),[s]),m=r.useMemo((function(){return c("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},te[h],n)}),[o,f,h,v,n]),g=$(e,p);return r.createElement("span",ne({ref:d},u,g,{className:m,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"]),v=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:v.current}}));var m=r.useMemo((function(){return a?a.name:ue.icon}),[a]),g=r.useMemo((function(){return d||ue.themeColor}),[d]),b=r.useMemo((function(){return l||ue.size}),[l]),y=r.useMemo((function(){return s||ue.flip}),[s]),O=r.useMemo((function(){return f||ue.viewBox}),[f]),k=r.useMemo((function(){return c("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},te[b],o)}),[m,g,b,y,o]),w=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:w,ref:v},r.createElement("svg",ae({className:i,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:O,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"},ve={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},me={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"},be={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"},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)},Oe=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=Oe(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,v=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],""+ve[n]+("string"==typeof r?he[r]:r)))})),e.join(" ")}}};return r.createElement(h,ye({ref:f,className:["k-"+("p"===e?"paragraph":e),pe[i],de[a],me[s],ge[l],be[u],v(),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},we={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")},Ce=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},xe=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},Ee=function(e){return e&&e.ownerDocument||window.document},De=function(e){var t=xe(),n=Ee(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},_e=function(e){var t=De(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"}(ce||(ce={}));var Pe=function(){},Se=function(e,t,n){void 0===n&&(n={});var r,o,i,a,s=n.onIsPressedChange,l=void 0===s?Pe:s,u=n.onIsScrollingChange,c=void 0===u?Pe:u,p=n.onVelocityChange,d=void 0===p?Pe:p,f=n.onOffsetChange,h=void 0===f?Pe:f,v=n.onPageOffsetChange,m=void 0===v?Pe:v,g=n.onClientOffsetChange,b=void 0===g?Pe:g,y=n.onScrollOffsetChange,O=void 0===y?Pe:y,k=n.onInitialScrollOffsetChange,w=void 0===k?Pe:k,C=t.payload,x=C.element,E=C.hint,D=e.autoScrollDirection,I=e.scrollableParent,_=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(_.type){case ce.POINTER_DOWN:if(_.type===ce.POINTER_DOWN&&(!_.originalEvent.isPrimary||0!==_.originalEvent.button))break;case ce.MOUSE_DOWN:if(_.type===ce.MOUSE_DOWN&&_.originalEvent.which&&_.originalEvent.which>1||e.ignoreMouse)break;case ce.TOUCH_START:if(_.type===ce.TOUCH_START&&1!==_.originalEvent.touches.length)break;case ce.START:var P=I||_e(t.payload.element);w(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),b({x:_.clientX,y:_.clientY}),m({x:_.pageX,y:_.pageY}),h({x:_.offsetX,y:_.offsetY}),l(!0),C.onPress&&C.onPress(_);break;case ce.SCROLL:if(_.type===ce.SCROLL&&!e.pressed)break;var S=I||_e(x),j=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};_.scrollX=j.x-e.initialScrollOffset.x,_.scrollY=j.y-e.initialScrollOffset.y,O({x:_.scrollX,y:_.scrollY});case ce.POINTER_MOVE:if(_.type===ce.POINTER_MOVE&&!_.originalEvent.isPrimary)break;case ce.MOUSE_MOVE:case ce.TOUCH_MOVE:if(_.type===ce.TOUCH_MOVE&&1!==_.originalEvent.touches.length)break;case ce.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==_.originalEvent.type&&x){var N=Ee(x),F=I||_e(N.elementFromPoint(_.clientX,_.clientY)),M=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}(_.pageX,_.pageY,function(e,t){var n=De(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}}(F,function(e){var t=Ee(e);return t&&t.defaultView||window}(x)));d({x:D&&!1===D.horizontal?0:M.x,y:D&&!1===D.vertical?0:M.y}),c(0!==M.y||0!==M.x)}!e.drag&&C.onDragStart&&C.onDragStart(_),C.onDrag&&C.onDrag(_);var T=Ce(E||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(E||x)}))),R=e.drops.find((function(e){return e.element===T}));R&&T&&(r=_.clientX,o=_.clientY,i=I||_e(T),(a=i.getBoundingClientRect()).top<=o&&a.left<=r&&o<=a.bottom&&r<=a.right)&&T!==x?(e.drop&&e.drop.element)!==T?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_),R.onDragEnter&&R.onDragEnter(_)):R.onDragOver&&R.onDragOver(_):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}b({x:_.clientX,y:_.clientY}),m({x:_.pageX,y:_.pageY});break;case ce.POINTER_UP:if(_.type===ce.POINTER_UP&&!_.originalEvent.isPrimary)break;case ce.MOUSE_UP:case ce.TOUCH_END:if(_.type===ce.TOUCH_END&&1!==_.originalEvent.touches.length)break;case ce.END:l(!1),c(!1),C.onRelease&&C.onRelease(_),e.drop&&e.drop.onDrop&&e.drop.onDrop(_),C.onDragEnd&&C.onDragEnd(_);break;case ce.POINTER_CANCEL:case ce.CONTEXT_MENU:case ce.TOUCH_CANCEL:case ce.CANCEL:l(!1),c(!1),C.onDragEnd&&C.onDragEnd(_),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}},je=function(e,t){if(e){var n,r;e===De(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)}},Ne=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])}]},Fe=r.createContext([void 0,E]),Me=r.createContext([void 0,E]),Te=r.createContext([[],E,E]),Re=r.createContext([[],E,E]);function Le(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?E:o,a=t.onRelease,s=void 0===a?E:a,l=t.onDragStart,u=void 0===l?E:l,c=t.onDrag,p=void 0===c?E:c,d=t.onDragEnd,f=void 0===d?E:d,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,b=n.autoScroll,y=void 0===b||b,O=n.scrollContainer,k=void 0===O?null:O,w=r.useState(!1),C=w[0],x=w[1],D=r.useState(!1),I=D[0],_=D[1],P=Ne(Me)[0],S=Ne(Fe),j=S[0],N=S[1],F=r.useContext(Re)[0],M=r.useContext(Te),T=M[0],R=M[1],L=M[2],V=r.useRef({x:0,y:0}),B=r.useRef(),A=r.useRef(!1),K=r.useRef(),q=r.useRef(!1),H=r.useRef({x:0,y:0}),z=r.useRef({x:0,y:0}),U=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),X=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&X,$=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=r.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),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 y&&y.boundaryElementRef&&y.boundaryElementRef.current&&y.boundaryElementRef.current.element?y.boundaryElementRef.current.element:"object"==typeof y&&y.boundaryElementRef&&y.boundaryElementRef.current?y.boundaryElementRef.current:null}),[y]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:me,onDrag:ge,onDragEnd:be,onRelease:ve,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:j?j.current:null,drop:P?P.current:null,drags:T.map((function(e){return e.current})),drops:F.map((function(e){return e.current})),pressed:C,ignoreMouse:A.current,scrollOffset:Y.current,offset:H.current,pageOffset:z.current,initialScrollOffset:G.current,clientOffset:U.current,initialClientOffset:W.current,velocity:V.current,autoScroll:Boolean("object"==typeof y?!1!==y.enabled:y),scrollableParent:ee(),autoScrollDirection:"object"==typeof y?y.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[j,P,T,F,C,y,ee,I]),ie=r.useCallback((function(e){x(e)}),[]),ae=r.useCallback((function(e){_(e)}),[]),se=r.useCallback((function(e){V.current=e}),[]),le=r.useCallback((function(e){H.current=e}),[]),ue=r.useCallback((function(e){U.current=e}),[]),ce=r.useCallback((function(e){z.current=e}),[]),pe=r.useCallback((function(e){W.current=e}),[]),de=r.useCallback((function(e){Y.current=e}),[]),fe=r.useCallback((function(e){G.current=e}),[]),he=r.useCallback((function(e){i(e)}),[i]),ve=r.useCallback((function(e){s(e)}),[s]),me=r.useCallback((function(t){N(te,{target:e.current,event:t}),u(t)}),[N,e,u]),ge=r.useCallback((function(e){p(e)}),[p]),be=r.useCallback((function(t){q.current||(N(null,{target:e.current,event:t}),f(t))}),[f,N,e]),ye=r.useCallback((function(e){Se(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]),Oe=r.useCallback((function(e){ye(e)}),[ye]),ke=r.useCallback((function(e){ye(e)}),[ye]),we=r.useCallback((function(e){ye(e)}),[ye]),Ce=r.useCallback((function(e){ye(e)}),[ye]),xe=r.useCallback((function(e){ye(e)}),[ye]),Ee=r.useCallback((function(e){ye(e)}),[ye]),De=r.useCallback((function(e){ye(e)}),[ye]),Ie=r.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Pe=r.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Le=r.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Ve=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();A.current=!0,K.current=t.setTimeout((function(){A.current=!1}),2e3)}ye(e)}),[ye,re]),Be=r.useCallback((function(e){ye(e)}),[ye]),Ae=r.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),Ke=r.useCallback((function(){return R(te),function(){L(te)}}),[L,R]);r.useEffect((function(){var e=re();if(I){var t=Q()||_e(document.elementFromPoint(U.current.x,U.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){je(t,{x:V.current.x,y:V.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[$,Q,re,I]),r.useEffect(Ae,[Ae]),r.useEffect((function(){var e=re(),t=$(),n=ne();if(Z){if(t)_e(t).addEventListener("scroll",Be,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0});C&&(n.addEventListener("pointermove",ke),n.addEventListener("pointerup",Ce,!0),n.addEventListener("contextmenu",Ie),n.addEventListener("pointercancel",we,{passive:!0}))}else e.addEventListener("touchmove",E,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",xe,{passive:!0}),g||(t.addEventListener("touchstart",Pe,{passive:!0}),C&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ve,{passive:!0})))),C&&(n.addEventListener("mousemove",Ee,{passive:!0}),n.addEventListener("mouseup",De,{passive:!0}));return function(){if(t){var r=_e(t);r&&r.removeEventListener("scroll",Be),t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",xe),t.removeEventListener("touchstart",Pe),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ve)}n.removeEventListener("pointermove",ke),n.removeEventListener("pointerup",Ce,!0),n.removeEventListener("contextmenu",Ie),n.removeEventListener("pointercancel",we),n.removeEventListener("mousemove",Ee),n.removeEventListener("mouseup",De),e.removeEventListener("touchmove",E),e.clearTimeout(K.current)}}),[C,re,$,ne,g,Z,Ie,xe,Ee,De,we,Oe,ke,Ce,Ve,Le,Pe,Be]),r.useEffect((function(){return function(){q.current=!0}}),[]),r.useLayoutEffect(Ke,[Ke])}function Ve(e,t){void 0===t&&(t={onDragEnter:E,onDragOver:E,onDragLeave:E,onDrop:E});var n=t.onDragEnter,o=void 0===n?E:n,i=t.onDragOver,a=void 0===i?E:i,s=t.onDragLeave,l=void 0===s?E:s,u=t.onDrop,c=void 0===u?E:u,p=Ne(Me)[1],d=r.useContext(Re),f=d[1],h=d[2],v=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=r.useRef(null);r.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:b,onDragLeave:y,onDrop:O,data:e.current}}));var g=r.useCallback((function(t){p(m,{target:e.current,event:t}),o(t)}),[p,e,o]),b=r.useCallback((function(e){a(e)}),[a]),y=r.useCallback((function(t){p(null,{target:e.current,event:t}),l(t)}),[p,e,l]),O=r.useCallback((function(t){p(null,{target:e.current,event:t}),c(t)}),[p,e,c]),k=r.useCallback((function(){return f(m),function(){h(m)}}),[h,f]);r.useLayoutEffect(k,[k])}var 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)},Ae=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,Be({},t,{value:e}))}),[n,a])]},Ke=function(e){var t=Ae(null,void 0),n=t[0],o=t[1],i=Ae(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(Fe.Provider,{value:[n,o]},r.createElement(Me.Provider,{value:[a,s]},r.createElement(Te.Provider,{value:[u,function(e){c({type:Z.add,item:e})},function(e){c({type:Z.remove,item:e})}]},r.createElement(Re.Provider,{value:[d,function(e){f({type:Z.add,item:e})},function(e){f({type:Z.remove,item:e})}]},e.children))))};Ke.displayName="KendoReactDragAndDrop";var qe=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 Le(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}));qe.displayName="KendoReactDraggable";var He=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 Ve(n,{onDragEnter:a,onDragOver:s,onDragLeave:l,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));He.displayName="KendoReactDroppable"},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return A})),n.d(t,"ToolbarItem",(function(){return q})),n.d(t,"ToolbarSeparator",(function(){return z})),n.d(t,"ToolbarSpacer",(function(){return U})),n.d(t,"Button",(function(){return v})),n.d(t,"ButtonGroup",(function(){return y})),n.d(t,"SplitButton",(function(){return N})),n.d(t,"SplitButtonItem",(function(){return C})),n.d(t,"DropDownButton",(function(){return L})),n.d(t,"DropDownButtonItem",(function(){return M})),n.d(t,"Chip",(function(){return ie})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return be})),n.d(t,"FloatingActionButtonItem",(function(){return ce}));var r,o=n(1),i=n(0),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639473758,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 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(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,v=n.imageAlt,m=n.className,g=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),b=void 0!==u||void 0!==c||void 0!==p,y=void 0!==r,O={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"]]=!y&&b,e[h["button-icontext"]]=y&&b,e),[h[""+this.props.dir]],m),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:v});return o.createElement("button",d({},O,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),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)}}(),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)},b=c,y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(a.validatePackage)(s),n}return m(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.classNames)([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",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={})[b["group-start"]]=r?n:0===t,i[b["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),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)}}(),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 O(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),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)}}(),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(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),x=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}},E=n(7);function D(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function I(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var _,P,S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=c,N=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=x(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 S(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===C})).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",[j[""+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(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(E.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||D(e),popupAlign:n.popupAlign||I(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),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)}}(),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(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),T=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},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(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=R({},n.state);if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===a.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=x(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 T(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===M})).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(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(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(E.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||D(e),popupAlign:n.popupAlign||I(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),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)}}(),B=function(){return(B=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(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,B({target:r},i,{nativeEvent:e}))}}},Object(a.validatePackage)(s),r}return V(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),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(){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),H=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.render=function(){return o.createElement(q,{className:"k-separator"})},t}(o.PureComponent),U=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var i=o.useMemo((function(){return Object(a.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));U.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(_||(_={})),function(e){e.toggle="toggle",e.remove="remove"}(P||(P={}));var W;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(W||(W={}));var Y;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Y||(Y={}));var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=o.createContext([null,function(e){}]),Z=o.createContext([null,function(e){}]),$=o.createContext([null,function(e){}]),J=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.selection){case _.single:switch(t.type){case P.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case P.remove:return t.payload===e?null:e;default:return e}case _.multiple:switch(t.type){case P.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case P.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case _.none:return null;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},Q=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case W.next:return n===t.items.length-1?e:t.items[n+1];case W.prev:return 0===n?e:t.items[n-1];case W.current:return t.payload;case W.reset:return null;default:return e}}(t.payload,G({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.type){case Y.add:break;case Y.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Y.reorder:break;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},te=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ie}),[e.chip,ie]),u=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var c=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),p=J(e.value||e.defaultValue,{selection:u,state:e.value},c),d=p[0],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]),v=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},h),m=v[0],g=v[1],b=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),y=o.useMemo((function(){return e.data||m}),[e.data,m]),O=o.useMemo((function(){return e.value||d}),[e.value,d]),k=o.useMemo((function(){return y.reduce(b,[])}),[y,b]),w=Q({items:k}),C=w[0],x=w[1],E=Object(a.useMouse)(e,n);return o.createElement(X.Provider,{value:[O,f]},o.createElement(Z.Provider,{value:[C,x]},o.createElement($.Provider,{value:[y,g]},o.createElement("div",G({ref:r},E,{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}),y.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(X),u=l[0],c=l[1],p=o.useContext(Z),d=p[0],f=p[1],h=o.useContext($)[1],v=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]),m=o.useMemo((function(){return d===e.value}),[e.value,d]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){m&&r.current&&r.current.focus()}),[m]);var b=o.useCallback((function(t){c({type:P.toggle,payload:e.value,event:t})}),[e.onClick,c,e.value]),y=o.useCallback((function(t){e.removable&&(h({type:Y.remove,payload:e.value,event:t}),f({type:W.reset,payload:e.value,event:t}),c({type:P.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,c]),O=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:f({type:W.prev,payload:e.value,event:t});break;case a.Keys.right:f({type:W.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:P.toggle,payload:e.value,event:t});break;case a.Keys.delete:y(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,c,y]),k=o.useCallback((function(t){f({payload:e.value,type:W.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),w=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),C=Object(a.useMouse)(e,n,{onClick:b});return o.createElement("div",oe({},C,{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":v,"k-state-focus":m,"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":v,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:k,onBlur:w,onKeyDown:O}),v&&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:y},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,v=e.onDown,m=e.onClick,g=ue(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),b=o.useRef(null),y=o.useCallback((function(){b.current&&b.current.focus()}),[]),O=o.useCallback((function(){return{element:b.current,focus:y}}),[y]);o.useImperativeHandle(t,O);var k=o.useCallback((function(e){m&&void 0!==d&&!r&&m(e,d)}),[m,d]),w=o.useMemo((function(){return Object(a.classNames)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),C=h;return o.createElement("li",le({ref:b,id:u,className:w,style:l,role:"menuitem",tabIndex:Object(a.getTabIndex)(p,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:k,onMouseDown:v,onPointerDown:v},g),C?o.createElement(C,{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"]},ve=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},me=function(){return(me=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},be=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=e.align,r=void 0===n?ye.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,v=e.text,m=e.positionMode,g=void 0===m?ye.positionMode:m,b=e.shape,y=void 0===b?ye.shape:b,O=e.size,k=void 0===O?ye.size:O,w=e.style,C=e.themeColor,x=void 0===C?ye.themeColor:C,D=e.tabIndex,I=e.accessKey,_=e.popupSettings,P=void 0===_?{}:_,S=e.onClick,j=e.onItemClick,N=e.onFocus,F=e.onBlur,M=e.onKeyDown,T=e.onOpen,R=e.onClose,L=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"]),V=o.useRef(null),B=o.useRef(null),A=o.useRef(null),K=o.useRef(null),q=o.useCallback((function(){B.current&&B.current.focus()}),[]),H=o.useCallback((function(){return{element:B.current,focus:q}}),[q]);o.useImperativeHandle(V,H),o.useImperativeHandle(t,(function(){return V.current}));var z=o.useState(!1),U=z[0],W=z[1],Y=o.useState(!1),G=Y[0],X=Y[1],Z=o.useState(-1),$=Z[0],J=Z[1],Q=o.useMemo((function(){return Object(a.guid)()}),[]),ee=Object(a.useDir)(B,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(ve(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"))}}(B,r,i,te)}),[B,r,i,te]),o.useEffect((function(){G&&B&&B.current&&B.current.focus()}),[G,B]);var re=o.useCallback((function(e,t){f&&Object(a.dispatchEvent)(t?T:R,e,H(),void 0)}),[T,R,f]),oe=o.useCallback((function(e){e.target&&!u&&(!f&&S?Object(a.dispatchEvent)(S,e,H(),void 0):(W(!U),X(!0),J(U?-1:0),re(e,!U)))}),[W,X,J,S,re,U,f,u]),ie=o.useCallback((function(e){X(!0),J(U?0:-1),N&&Object(a.dispatchEvent)(N,e,H(),void 0)}),[N,X,J]),ae=o.useCallback((function(e){X(!1),W(!1),J(-1),Object(a.dispatchEvent)(F,e,H(),void 0),U&&re(e,!1)}),[F,X,W,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(a.dispatchEvent)(j,e,H(),{itemProps:f[t],itemIndex:t}))}),[j]),ue=o.useCallback((function(e,t){e.target&&f&&(J(t),W(!1),le(e,t),re(e,!1))}),[J,W,le,re]),be=o.useCallback((function(e){document.activeElement===B.current&&e.preventDefault()}),[B,document.activeElement]),Oe=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(),W(!U),J(U?-1:0);break;case a.Keys.esc:e.preventDefault(),W(!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)(M,e,H(),void 0)}),[M,$,J,te,W]),ke=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+x,"k-fab-"+y,{"k-fab-sm":"small"===k,"k-fab-md":"medium"===k,"k-fab-lg":"large"===k,"k-state-disabled":u,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":G},"k-"+r.vertical+"-"+r.horizontal,l)}),[x,k,y,u,g,r,G,l]),we=f&&f.map((function(e,t){return o.createElement(ce,me({},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:be}));var n,i})),Ce=c&&!v,xe=(B.current?B.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",me({ref:B,id:d||Q,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?U:void 0,"aria-haspopup":!!f,"aria-label":(v||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":$>=0&&f?ne+"-"+$:void 0,tabIndex:Object(a.getTabIndex)(D,u),accessKey:I,dir:ee,disabled:u,className:ke,style:w,onClick:oe,onMouseDown:se,onFocus:ie,onBlur:ae,onKeyDown:Oe},L),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,v&&o.createElement("span",{className:"k-fab-text"},v)),o.createElement(E.Popup,{ref:K,anchor:B.current,show:U,animate:P.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",P.popupClass),anchorAlign:P.anchorAlign||de(r,te),popupAlign:P.popupAlign||fe(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:A,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:Ce?xe:void 0,paddingRight:Ce?xe:void 0}},we)))}));be.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 ye={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};be.displayName="KendoFloatingActionButton"},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return c}));var r,o=n(1),i=n(0),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(4),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639473912,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,v=Object(l.useLocalization)(),m=h?v.toLanguageString("labels.optional",s["labels.optional"]):"",g=m&&o.createElement("span",{className:"k-label-optional"},m),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]),y=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:b,style:d,className:y},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)}),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(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,v=Object(l.provideLocalizationService)(this),m=h?v.toLanguageString("labels.optional",s["labels.optional"]):"",g=m&&o.createElement("span",{className:"k-label-optional"},m),b=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),y=Object(a.classNames)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":p});return o.createElement("span",{className:b,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:y},t,g):o.createElement("span",{id:f,className:y},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,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupPropsContext",(function(){return se}));var r=n(1),o=n(15),i=n(0),a=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),u="bottom",c="center",p="middle",d="left",f="right",h="top";function v(e){return e.ownerDocument||e.document||e}var m=function(e){return v(e).defaultView},g=function(e){return v(e).documentElement},b=0;function y(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function O(e){var t=m(e),n=g(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=y()),r}var k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},w=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function x(e){var t=g(e),n=m(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var D=function(e,t){var n=m(e),r=n.getComputedStyle(e),o=w(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=w(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?E(e):function(e){var t=k(e);return t?E(t):{x:0,y:0}}(t)};var _="fit",P="flip",S=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},j=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===c||a===p)&&!(i===c||i===p)){var u=i===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},N=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},F=function(e,t){for(var n,r,o=C(e),i=t;i&&(n=N(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var M,T,R,L,V=(M=function(e){if(!B())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},R=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return R||(T=M.apply(void 0,e),R=!0),T}),B=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},A={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:V,canUseDOM:B},K=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=function(){return A.canUseDOM()?window:null},H=/auto|scroll/,z=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)},U=function(e){if(!e||!A.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},W=function(){return A.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={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,v=i.vertical||0,m=t.top,g=t.left;return s===u&&(m+=t.height),s!==c&&s!==p||(m+=Math.round(t.height/2)),d===u&&(m-=r.height,v*=-1),d!==c&&d!==p||(m-=Math.round(r.height/2),v*=-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:m+v,left:g+h}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=O(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 K.map((function(e){return{key:e,value:n[e]}}))},getWindow:q,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?w(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=w(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=D(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,v=s.vertical||0,m=0,g=0,b=i.horizontal===P,y=i.vertical===P;i.vertical===_&&(g+=S(l,c,d)),i.horizontal===_&&(m+=S(u,p,f)),y&&(g+=j({margin:v,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),b&&(m+=j({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var O=b&&0!==m,k=y&&0!==g;return{flipped:O||k,flip:{horizontal:O,vertical:k},offset:{left:m,top:g}}},scrollPosition:x,scrollableParents:function(e){var t=[];if(!A.canUseDOM())return t;for(var n=e.parentElement;n;)(H.test(z(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:U,stackingElementOffset:function(e){var t=U(e);return t?w(t):null},stackingElementScroll:function(e){var t=U(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=U(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(U(e))},windowViewPort:O,zoomLevel:W,isZoomed:function(){return W()>1},zIndex:function(e,t){if(!e||!A.canUseDOM())return null;var n=F(e,t);if(!n)return null;var r=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}},G=function(e,t){return e?{x:0,y:0}:Y.scrollPosition(t)},X=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||!Y.hasOffsetParent(n)?function(e,t,n,r){var o=G(e,t),i=A.eitherRect(Y.offset(e),n),a=2*r,s=Y.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=Y.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),Y.removeScroll(Y.addScroll(A.removeStackingOffset(A.scaleRect(i,r),l),s),o)}(t,n,a,l):function(e,t,n,r){var o=A.eitherRect(Y.position(e,t,r),n);return A.scaleRect(o,r)}(t,n,a,l),c=A.scaleRect(Y.offset(n),l);return Y.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=Y.offsetAtPoint(r,n),c=A.scaleRect(u,l),p=A.scaleRect(Y.offset(t),l),d=A.eitherRect(p,n),f=e.viewPort||Y.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var h=Y.restrictToView({anchorAlign:o,anchorRect:d,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),v=Y.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}},$="fit",J="flip",Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639473725,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=(L=function(e,t){return(L=Object.setPrototypeOf||{__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}L(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=X({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(),v=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(v,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=Y.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";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.pagerInfo="pager.info",t.pagerFirstPage="pager.firstPage",t.pagerPreviousPage="pager.previousPage",t.pagerNextPage="pager.nextPage",t.pagerLastPage="pager.lastPage",t.pagerItemPerPage="pager.itemsPerPage",t.pagerPage="pager.page",t.pagerOf="pager.of",t.pagerTotalPages="pager.totalPages",t.filterEqOperator="filter.eqOperator",t.filterNotEqOperator="filter.notEqOperator",t.filterIsNullOperator="filter.isNullOperator",t.filterIsNotNullOperator="filter.isNotNullOperator",t.filterIsEmptyOperator="filter.isEmptyOperator",t.filterIsNotEmptyOperator="filter.isNotEmptyOperator",t.filterStartsWithOperator="filter.startsWithOperator",t.filterContainsOperator="filter.containsOperator",t.filterNotContainsOperator="filter.notContainsOperator",t.filterEndsWithOperator="filter.endsWithOperator",t.filterGteOperator="filter.gteOperator",t.filterGtOperator="filter.gtOperator",t.filterLteOperator="filter.lteOperator",t.filterLtOperator="filter.ltOperator",t.filterIsTrue="filter.isTrue",t.filterIsFalse="filter.isFalse",t.filterAfterOrEqualOperator="filter.afterOrEqualOperator",t.filterAfterOperator="filter.afterOperator",t.filterBeforeOperator="filter.beforeOperator",t.filterBeforeOrEqualOperator="filter.beforeOrEqualOperator",t.filterAndLogic="filter.andLogic",t.filterOrLogic="filter.orLogic",t.filterAddExpression="filter.addExpression",t.filterAddGroup="filter.addGroup",t.filterClose="filter.close",t.columnMenuFilterClearButton="columnMenu.filterClearButton",t.columnMenuFilterSubmitButton="columnMenu.filterSubmitButton",t.columnMenuFilterTitle="columnMenu.filterTitle",t.columnMenuSortAscending="columnMenu.sortAscending",t.columnMenuSortDescending="columnMenu.sortDescending",t.columnMenuFilterEqOperator="columnMenu.filterEqOperator",t.columnMenuFilterNotEqOperator="columnMenu.filterNotEqOperator",t.columnMenuFilterIsNullOperator="columnMenu.filterIsNullOperator",t.columnMenuFilterIsNotNullOperator="columnMenu.filterIsNotNullOperator",t.columnMenuFilterIsEmptyOperator="columnMenu.filterIsEmptyOperator",t.columnMenuFilterIsNotEmptyOperator="columnMenu.filterIsNotEmptyOperator",t.columnMenuFilterStartsWithOperator="columnMenu.filterStartsWithOperator",t.columnMenuFilterContainsOperator="columnMenu.filterContainsOperator",t.columnMenuFilterNotContainsOperator="columnMenu.filterNotContainsOperator",t.columnMenuFilterEndsWithOperator="columnMenu.filterEndsWithOperator",t.columnMenuFilterGteOperator="columnMenu.filterGteOperator",t.columnMenuFilterGtOperator="columnMenu.filterGtOperator",t.columnMenuFilterLteOperator="columnMenu.filterLteOperator",t.columnMenuFilterLtOperator="columnMenu.filterLtOperator",t.columnMenuFilterIsTrue="columnMenu.filterIsTrue",t.columnMenuFilterAfterOrEqualOperator="columnMenu.filterAfterOrEqualOperator",t.columnMenuFilterAfterOperator="columnMenu.filterAfterOperator",t.columnMenuFilterBeforeOperator="columnMenu.filterBeforeOperator",t.columnMenuFilterBeforeOrEqualOperator="columnMenu.filterBeforeOrEqualOperator",t.columnMenuFilterAndLogic="columnMenu.filterAndLogic",t.columnMenuFilterOrLogic="columnMenu.filterOrLogic",t.sortAriaLabel="sort.ariaLabel",t.filterAriaLabel="filter.ariaLabel",t.messages=((r={})[t.pagerItemPerPage]="items per page",r[t.pagerInfo]="{0} - {1} of {2} items",r[t.pagerFirstPage]="Go to the first page",r[t.pagerPreviousPage]="Go to the previous page",r[t.pagerNextPage]="Go to the next page",r[t.pagerLastPage]="Go to the last page",r[t.pagerPage]="Page",r[t.pagerOf]="Of",r[t.pagerTotalPages]="{0}",r[t.sortAriaLabel]="Sortable",r[t.filterAriaLabel]="Filter",r[t.filterEqOperator]="Is equal to",r[t.filterNotEqOperator]="Is not equal to",r[t.filterIsNullOperator]="Is null",r[t.filterIsNotNullOperator]="Is not null",r[t.filterIsEmptyOperator]="Is empty",r[t.filterIsNotEmptyOperator]="Is not empty",r[t.filterStartsWithOperator]="Starts with",r[t.filterContainsOperator]="Contains",r[t.filterNotContainsOperator]="Does not contain",r[t.filterEndsWithOperator]="Ends with",r[t.filterGteOperator]="Is greater than or equal to",r[t.filterGtOperator]="Is greater than",r[t.filterLteOperator]="Is less than or equal to",r[t.filterLtOperator]="Is less than",r[t.filterIsTrue]="Is true",r[t.filterIsFalse]="Is false",r[t.filterAfterOrEqualOperator]="Is after or equal to",r[t.filterAfterOperator]="Is after",r[t.filterBeforeOperator]="Is before",r[t.filterBeforeOrEqualOperator]="Is before or equal to",r[t.filterAndLogic]="And",r[t.filterOrLogic]="Or",r[t.filterAddExpression]="Add Expression",r[t.filterAddGroup]="Add Group",r[t.filterClose]="Close",r[t.columnMenuFilterClearButton]="Clear",r[t.columnMenuFilterSubmitButton]="Filter",r[t.columnMenuFilterTitle]="Filter",r[t.columnMenuSortAscending]="Sort Ascending",r[t.columnMenuSortDescending]="Sort Descending",r[t.columnMenuFilterEqOperator]="Is equal to",r[t.columnMenuFilterNotEqOperator]="Is not equal to",r[t.columnMenuFilterIsNullOperator]="Is null",r[t.columnMenuFilterIsNotNullOperator]="Is not null",r[t.columnMenuFilterIsEmptyOperator]="Is empty",r[t.columnMenuFilterIsNotEmptyOperator]="Is not empty",r[t.columnMenuFilterStartsWithOperator]="Starts with",r[t.columnMenuFilterContainsOperator]="Contains",r[t.columnMenuFilterNotContainsOperator]="Does not contain",r[t.columnMenuFilterEndsWithOperator]="Ends with",r[t.columnMenuFilterGteOperator]="Is greater than or equal to",r[t.columnMenuFilterGtOperator]="Is greater than",r[t.columnMenuFilterLteOperator]="Is less than or equal to",r[t.columnMenuFilterLtOperator]="Is less than",r[t.columnMenuFilterIsTrue]="Is true",r[t.columnMenuFilterAfterOrEqualOperator]="Is after or equal to",r[t.columnMenuFilterAfterOperator]="Is after",r[t.columnMenuFilterBeforeOperator]="Is before",r[t.columnMenuFilterBeforeOrEqualOperator]="Is before or equal to",r[t.columnMenuFilterAndLogic]="And",r[t.columnMenuFilterOrLogic]="Or",r)},function(e,t,n){"use strict";n.r(t),n.d(t,"getValueMap",(function(){return It})),n.d(t,"getMultiSelectTreeValue",(function(){return _t})),n.d(t,"AutoComplete",(function(){return se})),n.d(t,"AutoCompletePropsContext",(function(){return ae})),n.d(t,"DropDownList",(function(){return W})),n.d(t,"DropDownListPropsContext",(function(){return U})),n.d(t,"ComboBox",(function(){return ne})),n.d(t,"ComboBoxPropsContext",(function(){return te})),n.d(t,"MultiSelect",(function(){return Oe})),n.d(t,"MultiSelectPropsContext",(function(){return ye})),n.d(t,"MultiColumnComboBox",(function(){return De})),n.d(t,"MultiColumnComboBoxPropsContext",(function(){return Ee})),n.d(t,"DropDownTree",(function(){return vt})),n.d(t,"DropDownTreePropsContext",(function(){return ht})),n.d(t,"MultiSelectTree",(function(){return Et})),n.d(t,"MultiSelectTreePropsContext",(function(){return xt}));var r,o,i=n(1),a=n(0),s=n(2),l=n(6),u=n(7),c=(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)}),p=function(){return(p=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)},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,o=e.itemsCount,a=e.popupSettings;return i.createElement(u.Popup,p({style:{width:n,direction:r},contentKey:o&&o.join()},a),t)},t}(i.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)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:"k-list-filter"},i.createElement("input",{ref:function(t){return e.input=t},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),i.createElement("span",{className:"k-icon k-i-search"}))},t}(i.Component),v=function(e){return null!=e},m=function(e,t,n){if(!v(e))return!1;var r=String(e);return n&&(r=r.toLowerCase()),0===r.indexOf(t)},g=function(e,t,n){var r=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var i=(y(e[o],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){r=o;break}}}return r},b=function(e,t,n,r){void 0===r&&(r=!1);var o=function(e){return r?e:e.toLowerCase()};return e.findIndex((function(e){return n?o(y(e,n))===o(t):o(t)===o(e.toString())}))},y=function(e,t){if(t&&v(e)){var n=t.split("."),r=e;return n.forEach((function(e){r=r?r[e]:void 0})),r}return e},O=function(e,t,n){t.forEach((function(t){var r=e.findIndex((function(e){return k(e,t,n)}));-1!==r&&e.splice(r,1)}))},k=function(e,t,n){return e===t||v(e)===v(t)&&y(e,n)===y(t,n)},w=function(e,t,n){if(t){var r=b(e,t,n,!0);return-1!==r?e[r]:e[g(e,t,n)]}return e[0]},C=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},x=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!k(e[r],t[r],n))return!1;return!0}(e.data,t.data,n))},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)}}(),D=function(e){return e.preventDefault()},I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return i.createElement("div",{onClick:this.props.onClick,onMouseDown:D,className:Object(s.classNames)("k-list-optionlabel",{"k-state-selected":t})},y(n,r)||"")},t}(i.Component),_=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(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return _(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,o=e.render,a=i.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:Object(s.classNames)("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused,"k-first":Boolean(n)}),onClick:this.handleClick},y(r,this.props.textField).toString(),void 0!==n?i.createElement("div",{className:"k-group"},n):null);return void 0!==o?o.call(void 0,a,this.props):a},t}(i.Component),S=n(4),j="dropdowns.nodata",N="dropdowns.clear",F=((o={})[N]="clear",o[j]="NO DATA FOUND.",o),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)}}(),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,o=t.groupField,a=t.optionsGuid,s=t.skip,l=void 0===s?0:s,u=t.focusedIndex,c=t.highlightSelected,p=void 0===c||c,d=t.value,f=t.data,h=t.itemRender,v=Array.isArray(d);return f.map((function(t,s){var c,m,g=l+s,b=p&&(!v&&k(t,d,r)||v&&-1!==d.findIndex((function(e){return k(e,t,r)}))),O=void 0;return s>0&&void 0!==o&&(c=y(t,o),m=y(f[s-1],o),c&&m&&c!==m&&(O=c)),i.createElement(P,{id:"option-"+a+"-"+g,dataItem:t,selected:b,focused:u===s,index:g,key:g,onClick:e.props.onClick,textField:n,group:O,render:h})}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.toLanguageString(j,F[j])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,l=t.listRef,u=t.wrapperRef,c=t.listClassName,p=void 0===c?"k-list":c,d=this.renderItems();return d.length?i.createElement("div",{className:o,style:a,ref:u,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},i.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:p+" k-reset",ref:l,style:s},d)):this.renderNoValueElement(e)},t}(i.Component),R=T;Object(S.registerForLocalization)(T);var L=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!0,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight-this.list.offsetHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=r-o;if(!(i>n)){for(t=0;t<this.skip&&!(o+n+i<=r);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=r)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(o+n>=r);t++)o+=n;o=this.validateTranslate(o),t>=i&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),r=this.containerHeight*t/this.total;r=this.validateTranslate(r),this.translateTo(r),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight-this.list.offsetHeight,e)},e}(),V=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return v(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),B=function(){return(B=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(){function e(e){var t=this;this.vs=new L,this.navigation=new V,this.handleItemClick=function(e,n){var r=t.initState();r.syntheticEvent=n,t.component.handleItemSelect(e,r),t.togglePopup(r),t.applyState(r)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var r=t.component.props,o=r.textField;r.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,r=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!r),r?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var r=t.initState();r.syntheticEvent=n,t.triggerOnPageChange(r,e.skip,e.take),t.applyState(r)},this.scrollToVirtualItem=function(e,n){var r=t.vs;if(r.enabled=!1,0===e.skip)r.reset();else if(e.skip+e.pageSize===e.total)r.scrollToEnd();else{var o=r.translate;0===o&&(r.calcScrollElementHeight(),o=r.itemHeight*e.skip,r.translateTo(o-r.itemHeight)),r.container&&(r.container.scrollTop=o),t.scrollToItem(n,!0)}window.setTimeout((function(){return r.enabled=!0}),10)},this.renderScrollWrapper=function(e,n){var r=t.getPopupSettings(),o=t.vs;return o.enabled?i.createElement("div",{onScroll:function(e){o.scrollHandler(e),n&&n.call(void 0,e)},ref:o.scrollerRef,style:{height:r.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&i.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},r=t.width,o=!0===e.opened;void 0===r&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list;if(n&&e>=0){var r=this.vs,o=r.container||n.parentNode,i=void 0!==t?t:r.enabled;!function(e,t,n,r,o){var i=e.offsetHeight,a=t.children.item(n),s=a.offsetTop+(o?r-e.scrollTop:0),l=a.offsetHeight;if(o){var u=0;s+l>i?u=s+l-i:s<0&&(u=s),0!==u?e.scrollTop+=u:0===e.scrollTop&&0!==r&&(e.scrollTop=r)}else s+l>i+e.scrollTop?e.scrollTop=s+l-i:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,n,e,r.translate,i)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var r=e.type;delete e.type;var o=r&&t.component.props[r];o&&o.call(void 0,B({},n,e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var r=this.component.props.virtual;if(r){var o=Math.min(Math.max(0,t),Math.max(0,r.total-n));o!==r.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&k(e,o[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&k(e,o[o.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,textField:a.string,className:a.string,label:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,itemRender:a.func,listNoDataRender:a.func,focusedItemIndex:a.func,header:a.node,footer:a.node},e.propTypes=B({},e.basicPropTypes,{value:a.any,defaultValue:a.any,filterable:a.bool,filter:a.string,virtual:a.shape({pageSize:a.number.isRequired,skip:a.number.isRequired,total:a.number.isRequired}),onFilterChange:a.func,onPageChange:a.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}(),K={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639474027,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"},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)}}(),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(t){var n=e.call(this,t)||this;return n.state={},n.base=new A(n),n.searchState={word:"",last:""},n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=r.defaultItem,u=a?a.skip:0,c=-1===e&&void 0!==l?l:i[e-u],p=!k(c,n.value,s);n.triggerOnChange(c,t),p&&n.base.triggerPageChangeCornerItems(c,t)},n.renderDropDownWrapper=function(){var e=n.props,t=e.dataItemKey,r=e.data,o=void 0===r?[]:r,a=e.textField,l=e.disabled,u=e.tabIndex,c=e.loading,p=e.iconClassName,d=e.virtual,f=void 0===d?{skip:0}:d,h=e.valueRender,v=n.state.focused,m=void 0!==n.props.opened?n.props.opened:n.state.opened,g=n.value,b=o.findIndex((function(e){return k(e,g,t)})),O=y(g,a),w=i.createElement("span",{className:"k-input"},O),C=void 0!==h?h.call(void 0,w,g):w;return i.createElement("span",{ref:function(e){return n.base.wrapper=e},role:"listbox",tabIndex:Object(s.getTabIndex)(u,l),accessKey:n.props.accessKey,className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":v,"k-state-disabled":l}),onKeyDown:n.handleKeyDown,onKeyPress:n.handleKeyPress,onClick:l?void 0:n.handleWrapperClick,"aria-disabled":l||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":n.base.listBoxId,"aria-activedescendant":m?"option-"+n.base.guid+"-"+(b+f.skip):void 0,"aria-label":n.props.label,"aria-labelledby":n.props.ariaLabelledBy,"aria-describedby":n.props.ariaDescribedBy,id:n.props.id,title:n.props.title},C,i.createElement("span",{className:"k-select"},i.createElement("span",{className:Object(s.classNames)("k-icon",p,{"k-i-arrow-s":!c&&!p,"k-i-loading":c&&!p})})),n.dummySelect(g))},n.dummySelect=function(e){return i.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e=n.props,t=e.header,r=e.footer,o=e.dir,a=e.data,l=void 0===a?[]:a,u=n.base,c=u.getPopupSettings(),p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=void 0!==n.props.virtual,h=void 0!==c.width?c.width:u.popupWidth,v={dir:void 0!==o?o:u.dirCalculated,width:h,popupSettings:{popupClass:c.popupClass,className:Object(s.classNames)("k-list-container k-reset",c.className),animate:c.animate,anchor:n.element,show:p,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:c.appendTo},itemsCount:[l.length]};return i.createElement(d,H({},v),n.renderListFilter(),f&&n.renderDefaultItem(),f&&t,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!f&&n.renderDefaultItem(),!f&&t,n.renderList(),!f&&r,n.base.renderScrollElement())),f&&r)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,u=e.listNoDataRender,c=e.itemRender,p=n.base.vs,d=l.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=n.base.getPopupSettings(),v="translateY("+p.translate+"px)";return i.createElement(R,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.focusedIndex(),value:n.value,textField:o,valueField:a,optionsGuid:n.base.guid,listRef:function(e){return p.list=n.base.list=e},wrapperStyle:p.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:p.enabled?void 0:"k-list-scroller",listStyle:p.enabled?{transform:v}:void 0,key:"listkey",skip:d,onClick:n.handleItemClick,itemRender:c,noDataRender:u})},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&i.createElement(h,{value:e,ref:function(e){return n._filterInput=e&&e.input},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,o=e.dataItemKey;return void 0!==r&&i.createElement(I,{defaultItem:r,textField:t,selected:k(n.value,r,o),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=i.map((function(e,t){return{item:e,itemIndex:t}})),l=n.searchState.word,u=n.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),p=s.length,d=Math.max(0,i.findIndex((function(e){return k(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},p+=1,d+=1),s=function(e,t,n){var r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))}(s,d+=c?1:0,t);for(var f,h,v,g=0,b=n.props,O=b.textField,w=b.ignoreCase;g<p;g++)if(f=y(s[g].item,O),h=c&&m(f,u,w),v=m(f,l,w),h||v){g=s[g].itemIndex;break}if(g!==p){var C=n.base.initState();C.syntheticEvent=e,n.handleItemSelect(g,C),n.applyState(C),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.filterable,a=t.disabled,l=t.leftRightKeysNavigation,u=void 0===l||l,c=t.virtual,p=void 0===c?{skip:0,total:0,pageSize:0}:c,d=void 0!==n.props.opened?n.props.opened:n.state.opened,f=e.keyCode,h=f===s.Keys.home||f===s.Keys.end,v=f===s.Keys.up||f===s.Keys.down,m=!d&&(e.altKey&&f===s.Keys.down||f===s.Keys.enter||f===s.Keys.space),g=d&&(e.altKey&&f===s.Keys.up||f===s.Keys.esc),b=u&&(f===s.Keys.left||f===s.Keys.right),y=v||!i&&(b||h),O=n.base.initState();if(O.syntheticEvent=e,!a){if(h&&n.base.vs.enabled)f===s.Keys.home?0!==p.skip?(n.base.triggerOnPageChange(O,0,p.pageSize),n._navigated=!0):n.triggerOnChange(o[0],O):p.skip<p.total-p.pageSize?(n.base.triggerOnPageChange(O,p.total-p.pageSize,p.pageSize),n._navigated=!0):n.triggerOnChange(o[o.length-1],O);else if(d&&f===s.Keys.enter){var k=n.focusedIndex();void 0!==k&&n.handleItemSelect(k,O),n.base.togglePopup(O),e.preventDefault()}else m||g?(n.base.togglePopup(O),e.preventDefault()):y&&(n.onNavigate(O,f),e.preventDefault());n.applyState(O)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&n.base.togglePopup(r),n.applyState(r)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.base.togglePopup(t),n.applyState(t)},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},Object(s.validatePackage)(K),n}return q(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this.base.wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),v(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return k(e,o,r)}))},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=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l;if(this.base.getPopupSettings().animate||c&&this.onPopupOpened(),a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=this.value,d=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return k(e,p,i)})),h=!k(d,p,i);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a||l&&u&&p&&h&&!this._navigated?this.base.scrollToItem(f):l&&u&&this._navigated&&(this._navigated&&a&&0===a.skip?this.base.vs.reset():this._navigated&&a&&a.skip===a.total-a.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.virtual,c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=y(this.value,this.props.textField),d=!this.validityStyles||this.validity.valid,f=this.base;f.vs.enabled=void 0!==u,void 0!==u&&(f.vs.skip=u.skip,f.vs.total=u.total,f.vs.pageSize=u.pageSize);var h=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-dropdown",{"k-state-invalid":!d},r),style:o?H({},n,{width:void 0}):n,dir:a,onMouseDown:c?C:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?i.createElement(l.a,{label:o,editorValue:p,editorValid:d,editorDisabled:this.props.disabled,style:{width:n?n.width:void 0},children:h}):h},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.defaultItem,a=n.dataItemKey,s=n.virtual,l=void 0===s?{skip:0,total:0,pageSize:0}:s,u=this.base.vs,c=this.value,p=o.findIndex((function(e){return k(e,c,a)})),d=this.base.navigation.navigate({current:l.skip+p,max:(u.enabled?l.total:o.length)-1,min:void 0!==i?-1:0,keyCode:t});void 0!==d&&this.handleItemSelect(d,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=v(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=void 0===o?{skip:0}:o,a=t.dataItemKey,s=t.textField,l=t.focusedItemIndex,u=this.value,c=!(r.findIndex((function(e){return k(e,u,a)}))<0&&!this.props.defaultItem);return!c&&e&&0===i.skip?l?l(r,e,s):r.indexOf(w(r,e,s)):c||0!==i.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){k(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="DropDownList",t.propTypes=H({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func,valueMap:a.func,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,leftRightKeysNavigation:a.bool,title:a.string},A.propTypes),t.defaultProps=H({delay:500,tabIndex:0,ignoreCase:!0},A.defaultProps,{required:!1}),t}(i.Component),U=Object(s.createPropsContext)(),W=Object(s.withPropsContext)(U,z);W.displayName="KendoReactDropDownList";var Y=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(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return Y(t,e),t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this).toLanguageString(N,F[N]);return i.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"})},t}(i.Component),X=G;Object(S.registerForLocalization)(G);var 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)}}(),$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Z(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,r=this.props,o=r.value,i=r.suggestedText,a=r.focused,s=this.input,l=t!==o||i!==n,u=l&&t.startsWith(o)&&!(n&&i&&n.endsWith(i));a&&s&&document.activeElement!==s&&s.focus(),i&&l&&!u&&s&&s.setSelectionRange(o.length-i.length,o.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,o=t.disabled,a=t.role,s=void 0===a?"listbox":a,l=t.render,u=i.createElement("span",{className:"k-searchbar",key:"searchbar"},i.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",size:this.props.size,placeholder:this.props.placeholder,className:"k-input",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":o||void 0,disabled:o||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy}));return[l?l.call(void 0,u):u,!this.props.loading&&this.props.clearButton&&i.createElement(X,{onClick:this.props.clearButtonClick,key:"clearbutton"}),this.props.loading&&i.createElement("span",{className:"k-icon k-i-loading",key:"loading"})]},t}(i.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)}}(),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)},ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new A(n),n._inputId=Object(s.guid)(),n._suggested="",n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=i[e-(a?a.skip:0)],u=!k(l,n.value,s);n.triggerOnChange(l,t),void 0!==n.state.text&&(t.data.text=void 0),u&&n.base.triggerPageChangeCornerItems(l,t)},n.toggleBtnClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.applyState(t)},n.onScroll=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.groupField;if(i&&o.length){for(var a=n.base,s=a.vs,l=a.list,u=n.itemHeight=n.itemHeight||(s.enabled?s.itemHeight:l?l.children[0].offsetHeight:0),c=e.target.scrollTop-s.skip*u,p=o[0][i],d=1;d<o.length&&!(u*d>c);d++)o[d]&&o[d][i]&&(p=o[d][i]);p!==n.state.group&&n.setState({group:p})}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();if(o.syntheticEvent=e,!e.altKey&&(t===s.Keys.up||t===s.Keys.down))return e.preventDefault(),n.onNavigate(o,t),void n.applyState(o);var i=function(){e.preventDefault(),n.base.togglePopup(o),n.applyState(o)};r?e.altKey&&t===s.Keys.up?i():t===s.Keys.enter?(e.preventDefault(),n.applyValueOnEnter(e.currentTarget.value,o)):t===s.Keys.esc&&n.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&t===s.Keys.down&&i()},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=e.currentTarget,i=o.value;if(n.props.suggest){var a=o.selectionEnd===i.length,s=void 0!==n.props.filter?n.props.filter:n.state.text;v(s)||(s=y(n.value,n.props.textField)||"");var l=s&&s===i,u=s&&s.length>i.length;l||u||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n._suggested="",n.base.filterChanged("",t),void 0===n.props.filter&&void 0!==n.state.text&&(t.data.text=void 0),n.triggerOnChange(null,t),(void 0!==n.props.opened?n.props.opened:n.state.opened)&&n.base.togglePopup(t),n.applyState(t)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(K),n}return J(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:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return k(e,o,r)}))},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=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l,p=this.value;if(this._valueOnDidUpdate=p,a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return k(e,p,i)})),h=!k(d,p,i);c&&a?this.base.scrollToVirtualItem(a,f):(c&&!a||l&&u&&p&&h)&&this.base.scrollToItem(f)}c&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,n=this.props,r=n.dir,o=n.disabled,a=n.clearButton,u=void 0===a?t.defaultProps.clearButton:a,c=n.label,p=n.textField,d=n.className,f=n.style,h=n.loading,m=n.iconClassName,g=n.virtual,b=this.state.focused,O=!this.validityStyles||this.validity.valid,k=void 0!==this.props.filter?this.props.filter:this.state.text,w=y(this.value,p),C=v(k)?k:w,x=u&&(!!C||v(this.value)),E=this.base,D=E.vs,I=this.props.id||this._inputId;D.enabled=void 0!==g,void 0!==g&&(D.skip=g.skip,D.total=g.total,D.pageSize=g.pageSize);var _=i.createElement("span",{className:Object(s.classNames)("k-widget k-combobox",{"k-combobox-clearable":u,"k-state-invalid":!O},d),ref:function(t){return e._element=t},style:c?Q({},f,{width:void 0}):f,dir:r},i.createElement("span",{ref:function(e){return E.wrapper=e},className:Object(s.classNames)("k-dropdown-wrap",{"k-state-disabled":o,"k-state-focused":b&&!o})},this.renderSearchBar(x,C||"",I),i.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},i.createElement("span",{className:Object(s.classNames)("k-icon",m,{"k-i-arrow-s":!h&&!m,"k-i-loading":h&&!m})}))),this.renderListContainer());return c?i.createElement(l.a,{label:c,editorId:I,editorValue:C,editorValid:O,editorDisabled:o,style:{width:f?f.width:void 0},children:_}):_},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.virtual,a=void 0===i?{skip:0}:i,s=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),u=this.base.vs,c=this.value;if(this._suggested="",-1===l||v(c))if(""===s)this.handleItemSelect(0,e);else{var p=a.skip+l,d=this.base.navigation.navigate({keyCode:t,current:p,max:(u.enabled?u.total:o.length)-1,min:0});void 0!==d&&this.handleItemSelect(d,e)}else this.handleItemSelect(l,e)},t.prototype.applyValueOnEnter=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=y(this.value,a)===e?this.index:b(i,e,a),c=-1!==u,p=void 0;if(this._suggested="",c)p=i[u];else{if(!s)return this.selectFocusedItem(e,t);p=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(p,t),l&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=y(this.value,a);if(this._suggested="",e===u||""===e&&!v(u))return l&&this.base.togglePopup(t),this.applyState(t);var c=b(i,e,a,!0),p=null;-1!==c?p=i[c]:s&&(p=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(p,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.virtual,l=void 0===s?{skip:0}:s,u=r.focusedItemIndex,c=void 0===u?g:u,p=l.skip,d=""===e&&0===p?0:c(i,e,a);return-1!==d?this.handleItemSelect(d+p,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=t.groupField,c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=e.getPopupSettings(),f=void 0!==p.width?p.width:e.popupWidth,h=this.state.group;return void 0===h&&void 0!==u&&(h=y(l[0],u)),i.createElement(d,{width:f,popupSettings:{animate:p.animate,anchor:this.element,show:c,popupClass:p.popupClass,className:Object(s.classNames)("k-list-container k-reset",p.className),appendTo:p.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,h&&i.createElement("div",{className:"k-group-header"},h),e.renderScrollWrapper([this.renderList(),e.renderScrollElement()],this.onScroll),o)},t.prototype.renderList=function(){var e=this,t=this.base,n=this.props,r=n.textField,o=n.dataItemKey,a=n.listNoDataRender,s=n.itemRender,l=n.data,u=void 0===l?[]:l,c=n.virtual,p=void 0===c?{skip:0}:c,d=t.getPopupSettings(),f=t.vs,h=p.skip,m=void 0!==this.props.opened?this.props.opened:this.state.opened,g="translateY("+f.translate+"px)",b=m?this.getFocusedIndex():void 0,O=void 0!==this.props.filter?this.props.filter:this.state.text,k=y(this.value,r),w=v(O)&&O!==k?null:this.value,C=this.props.list||R;return i.createElement(C,{id:t.listBoxId,show:m,data:u,focusedIndex:b,value:w,textField:r,valueField:o,groupField:this.props.groupField,optionsGuid:t.guid,listRef:function(t){f.list=e.base.list=t,e.itemHeight=0},wrapperStyle:f.enabled?{float:"left",width:"100%"}:{maxHeight:d.height},wrapperCssClass:f.enabled?void 0:"k-list-scroller",listStyle:f.enabled?{transform:g}:void 0,key:"listkey",skip:h,onClick:this.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll})},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.props,a=o.placeholder,s=o.tabIndex,l=o.disabled,u=o.data,c=void 0===u?[]:u,p=o.dataItemKey,d=o.virtual,f=void 0===d?{skip:0}:d,h=void 0!==this.props.opened?this.props.opened:this.state.opened,v=this.value,m=Math.max(0,c.findIndex((function(e){return k(e,v,p)})));return this._suggested&&!k(this._valueOnDidUpdate,v,p)&&(this._suggested=""),i.createElement($,{id:n,placeholder:a,tabIndex:s||void 0,accessKey:this.props.accessKey,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:h,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(m+f.skip),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!v(n)&&!v(e)||k(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=t.focusedItemIndex,u=void 0===l?g:l,c=this.props.filter?this.props.filter:this.state.text;return v(e)&&void 0===c?r.findIndex((function(t){return k(t,e,i)})):c?u(r,c,o):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,r=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var o=t[g(t,e,n)];if(o){var i=y(o,n);e.toLowerCase()!==i.toLowerCase()&&(r=i.substring(e.length))}}return r}(e,n,r)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="ComboBox",t.propTypes=Q({},A.propTypes,{dataItemKey:a.string,groupField:a.string,suggest:a.bool,placeholder:a.string,allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,list:a.any,valueRender:a.func}),t.defaultProps=Q({},A.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),t}(i.Component),te=Object(s.createPropsContext)(),ne=Object(s.withPropsContext)(te,ee);ne.displayName="KendoReactComboBox";var re=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)}}(),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=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new A(n),n._inputId=Object(s.guid)(),n._suggested="",n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props.data,o=y((void 0===r?[]:r)[e],n.props.textField);n.triggerOnChange(o,t)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=i[e];k(n.state.focusedItem,s,a)||(t.data.focusedItem=s)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget,o=r.value,i=r.selectionEnd===o.length;t.syntheticEvent=e;var a=n._suggested,s=n.value,l=s&&s.substring(0,s.length-a.length),u=l&&l===o,c=l&&l.length>o.length,p=n.props.suggest,d=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==p&&!1!==p){u||c||!i?n._suggested="":n.suggestValue(o);var f=o+n._suggested,h={userInput:o,value:n._suggested};n.triggerOnChange(f,t,{suggestion:h})}else n._suggested="",n.triggerOnChange(o,t);(!d&&o||d&&!o)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState(),r=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e;n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=e;var i=function(){r&&e.preventDefault()};t===s.Keys.enter||t===s.Keys.esc?(i(),n.applyInputValue(e.currentTarget.value,o,e.keyCode)):t!==s.Keys.up&&t!==s.Keys.down||(i(),n.onNavigate(o,t))},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},Object(s.validatePackage)(K),n}return re(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:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},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=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.componentDidUpdate=function(e,t){var n=this.props.data,r=void 0===n?[]:n,o=e.data,i=void 0===o?[]:o,a=this.focusedIndex(),s=r[a],l=i!==r,u=void 0!==s&&t.focusedItem!==s,c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened;(c&&(u||l)||!p&&c)&&this.base.scrollToItem(a),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.dir,r=t.disabled,o=t.label,a=t.className,u=t.style,c=t.loading,p=t.suggest,d=!this.validityStyles||this.validity.valid,f=this.state.focused,h=this.base,v=this.value,m=!1!==this.props.clearButton&&!c&&!!v,g=this.props.id||this._inputId;"string"==typeof p&&(this._suggested=p);var b=i.createElement("span",{className:Object(s.classNames)("k-widget k-autocomplete",a,{"k-state-disabled":r,"k-state-focused":f&&!r,"k-state-invalid":!d}),ref:function(t){e._element=t,h.wrapper=t},style:o?oe({},u,{width:void 0}):u,dir:n},this.renderSearchBar(m,v||"",g),c&&i.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?i.createElement(l.a,{label:o,editorId:g,editorValue:v,editorValid:d,editorDisabled:r,style:{width:u?u.width:void 0},children:b}):b},t.prototype.onNavigate=function(e,t){var n=this,r=this.value,o=this.props,i=o.data,a=void 0===i?[]:i,s=o.textField,l=o.focusedItemIndex,u=void 0!==this.state.focusedItem?a.findIndex((function(e){return k(e,n.state.focusedItem,s)})):l?l(a,r,s):a.indexOf(w(a,r,s)),c=this.base.navigation.navigate({keyCode:t,current:u,max:a.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var r=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField;if(this._suggested="",r&&n===s.Keys.enter){var u=y(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}r&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.base,a=this.props,s=a.placeholder,l=a.tabIndex,u=a.disabled,c=a.readonly,p=this.state.focused,d=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement($,{id:n,placeholder:s,tabIndex:l||void 0,accessKey:this.props.accessKey,value:t,suggestedText:this._suggested,focused:p,name:this.props.name,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:o.handleFocus,onBlur:this.handleBlur,disabled:u,readOnly:c,expanded:d,owns:o.listBoxId,activedescendant:"option-"+o.guid+"-"+this.focusedIndex(),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=e.getPopupSettings(),c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==u.width?u.width:e.popupWidth;return i.createElement(d,{width:p,popupSettings:{animate:u.animate,anchor:this.element,show:c,popupClass:u.popupClass,className:Object(s.classNames)("k-list-container k-reset",u.className),appendTo:u.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,this.renderList(),o)},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,o=n.data,a=void 0===o?[]:o,s=n.listNoDataRender,l=n.itemRender,u=this.value,c=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement(R,{id:e.listBoxId,show:c,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:l,noDataRender:s,onMouseDown:function(e){return e.preventDefault()}})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(oe({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=r[g(r,e,o)];if(i){var a=y(i,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,r=n.data,o=void 0===r?[]:r,i=n.textField,a=n.focusedItemIndex,s=void 0!==e?e:this.value;return void 0!==this.state.focusedItem?o.findIndex((function(e){return k(e,t.state.focusedItem,i)})):a?a(o,s,i):Math.max(0,o.indexOf(w(o,s,i)))},t.displayName="AutoComplete",t.propTypes=oe({},A.basicPropTypes,{suggest:a.oneOfType([a.bool,a.string]),placeholder:a.string,value:a.string,defaultValue:a.string,validationMessage:a.string,required:a.bool,readonly:a.bool,clearButton:a.bool,valueRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=oe({},A.defaultProps),t}(i.Component),ae=Object(s.createPropsContext)(),se=Object(s.withPropsContext)(ae,ie);se.displayName="KendoReactAutoComplete";var le,ue=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)}}(),ce=function(e){return e.preventDefault()},pe=function(e){return e.stopPropagation()},de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ue(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.guid,o=this.props.tag;return i.createElement("ul",{className:"k-reset",role:"listbox",id:"tagslist-"+r},n.map((function(t,a){var s=o?i.createElement(o,{tagData:t,guid:r,focusedTag:e.props.focused,onTagDelete:e.props.onTagDelete}):i.createElement("li",{className:t===e.props.focused?"k-button k-state-focused":"k-button",key:t.text+a,id:"tag-"+r+"-"+t.text.replace(/\s+/g,"-"),onMouseDown:ce,onClick:pe,"aria-selected":!0,role:"option","aria-setsize":n.length},i.createElement("span",null,t.text),i.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(n){return e.props.onTagDelete.call(void 0,t.data,n)}},i.createElement("span",{className:"k-icon k-i-close"})));return e.props.tagRender?e.props.tagRender(t,s):s})))},t}(i.Component);!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(le||(le={}));var fe,he=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)}}(),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)},me=function(e){return e.preventDefault()},ge=function(e){return e===fe.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(fe||(fe={}));var be=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:le.PopupList},n._valueItemsDuringOnChange=null,n._inputId=Object(s.guid)(),n.base=new A(n),n._tags=[],n._skipFocusEvent=!1,n.scrollToFocused=!1,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=r.virtual,l=i[e-(s?s.skip:0)],u=n.value.findIndex((function(e){return k(e,l,a)})),c=[];-1!==u?(c=n.value).splice(u,1):c=n.value.concat([l]),(void 0!==n.props.filter?n.props.filter:n.state.text)&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(c,t),n.base.triggerPageChangeCornerItems(l,t)},n.onTagDelete=function(e,t){var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=t,r&&n.base.togglePopup(o),n.state.focused||(o.data.focused=!0,n.focus());var i=n.value;O(i,e,n.props.dataItemKey),n.triggerOnChange(i,o),n.applyState(o)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.allowCustom,s=r.virtual,l=s?s.skip:0,u=void 0!==n.props.filter?n.props.filter:n.state.text,c=n.getFocusedState().focusedIndex,p=a&&u,d=i[e-l];d&&c!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=le.PopupList):p&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(d,t)},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget.value,o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=r),t.data.focusedIndex=void 0,o||n.base.togglePopup(t),n.base.filterChanged(r,t),n.applyState(t)},n.clearButtonClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],r),void 0!==n.state.focusedIndex&&(r.data.focusedIndex=void 0),t&&n.base.togglePopup(r);var o=void 0!==n.props.filter?n.props.filter:n.state.text;v(o)&&""!==o&&n.base.filterChanged("",r),n.state.text&&(r.data.text=""),n.applyState(r)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=void 0!==n.props.opened?n.props.opened:n.state.opened,i=n.getFocusedState().focusedItem,a=n.base.initState();if(a.syntheticEvent=e,!r&&n.value.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete||t===s.Keys.backspace))return n.onTagsNavigate(e,a);var l=function(){e.preventDefault(),n.base.togglePopup(a),n.applyState(a)};o?e.altKey&&t===s.Keys.up?l():t===s.Keys.up||t===s.Keys.down?(e.preventDefault(),n.onNavigate(a,t)):t===s.Keys.enter?(e.preventDefault(),n.props.allowCustom&&r&&null===i?n.customItemSelect(e):n.selectFocusedItem(e)):t===s.Keys.esc&&l():e.altKey&&t===s.Keys.down&&l()},n.renderListContainer=function(){var e=n.base,t=n.props,r=t.header,o=t.footer,a=t.allowCustom,l=t.dir,u=t.data,c=void 0===u?[]:u,p=n.base.getPopupSettings(),f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=void 0!==n.props.filter?n.props.filter:n.state.text,v=void 0!==n.props.virtual,m=void 0!==p.width?p.width:e.popupWidth,g={dir:void 0!==l?l:e.dirCalculated,width:m,popupSettings:{popupClass:p.popupClass,className:Object(s.classNames)("k-list-container k-reset",p.className),animate:p.animate,anchor:n.element,show:f,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:p.appendTo},itemsCount:[c.length,n.value.length]},b=n.getFocusedState().focusedType,y=a&&h&&i.createElement("div",{className:"k-list",key:"customitem",onClick:n.customItemSelect,onMouseDown:me},i.createElement("div",{className:Object(s.classNames)("k-item k-custom-item",{"k-state-focused":ge(b)})},h,i.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return i.createElement(d,ve({},g),v&&r,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!v&&r,y,n.renderList(),!v&&o,n.base.renderScrollElement())),v&&o)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.listNoDataRender,s=e.itemRender,l=e.dataItemKey,u=e.virtual,c=n.base.vs,p=u?u.skip:0,d=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.getFocusedState().focusedIndex,h=n.base.getPopupSettings(),v="translateY("+c.translate+"px)";return i.createElement(R,{id:n.base.listBoxId,show:d,data:r.slice(),focusedIndex:f-p,value:n.value,textField:o,valueField:l,optionsGuid:n.base.guid,listRef:function(e){c.list=n.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:v}:void 0,key:"listKey",skip:p,onClick:n.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:me,onBlur:n.handleBlur})},n.customItemSelect=function(e){var t,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=n.props.textField;if(r){var i=n.base.initState();i.syntheticEvent=e;var a=o?((t={})[o]=r,t):r;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var s=n.value.concat([a]);n.triggerOnChange(s,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n._input;!t&&r&&n.focusElement(r);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var r=n.base.initState();r.syntheticEvent=t,n.handleItemSelect(e,r),n.props.autoClose&&n.base.togglePopup(r),n.applyState(r)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState(),o=n.props,i=o.allowCustom,a=o.filterable;r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&(n.state.opened&&(r.data.opened=!1),r.events.push({type:"onClose"})),i||a||!n.state.text||(r.data.text=""),n.applyState(r)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(K),n}return he(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=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},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=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},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,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.virtual,r=n?n.skip:0,o=e.virtual?e.virtual.total:0,i=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,s=!a&&i,l=a&&!i;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var u=this.getFocusedState(),c=u.focusedItem,p=u.focusedIndex;s&&n?this.base.scrollToVirtualItem(n,p-r):s&&!n?this.base.scrollToItem(p):i&&a&&c&&this.scrollToFocused&&this.base.scrollToItem(p-r)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.allowCustom,o=n.data,i=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==this.props.filter?this.props.filter:this.state.text,u=this.getFocusedState(),c=u.focusedType,p=u.focusedIndex,d=r&&l,f=ge(c),h=this.base,v=h.vs;if(a&&t===s.Keys.up&&f)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var m=h.navigation.navigate({keyCode:t,current:p,max:(v.enabled?v.total:i.length)-1,min:d?-1:0});void 0!==m&&(this.itemFocus(m,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.disabled,c=t.tags,p=t.textField,d=t.dataItemKey,f=t.virtual,h=this.state,v=h.focused,m=h.text,g=h.focusedTag,b=this.base.vs,O=this.props.id||this._inputId;b.enabled=void 0!==f,void 0!==f&&(b.skip=f.skip,b.total=f.total,b.pageSize=f.pageSize);var k=[];void 0===c?this.value.forEach((function(e){k.push({text:y(e,p),data:[e]})})):k.push.apply(k,c),this.setItems(k,this._tags);var w=!this.validityStyles||this.validity.valid,E=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-multiselect",r,{"k-state-focused":v&&!u,"k-state-invalid":!w,"k-state-disabled":u}),style:o?ve({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},i.createElement("div",{onClick:this.handleWrapperClick,ref:function(t){return e.base.wrapper=t},className:"k-multiselect-wrap k-floatwrap",onMouseDown:C},k.length>0&&i.createElement(de,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:k,guid:this.base.guid,focused:g?k.find((function(e){return x(e,g,d)})):void 0}),this.renderSearchbar(O)),this.renderListContainer());return o?i.createElement(l.a,{label:o,editorId:O,editorValue:m||y(this.value[0],p),editorValid:w,editorDisabled:u,style:{width:n?n.width:void 0},children:E}):E},t.prototype.renderSearchbar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,o=this.props,a=o.disabled,s=o.placeholder,l=o.ariaDescribedBy,u=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=this.getFocusedState().focusedIndex,d=!!u||this.value.length>0,f=0!==this.value.length||u?void 0:s,h=n===le.TagsList&&void 0!==r?"tag-"+this.base.guid+"-"+r.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+p;return i.createElement($,{id:e,size:Math.max((f||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:f,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:a,expanded:c,owns:this.base.listBoxId,activedescendant:h,ariaDescribedBy:"tagslist-"+this.base.guid+(l?" "+l:""),clearButton:d,clearButtonClick:this.clearButtonClick,loading:this.props.loading,ariaLabelledBy:this.props.ariaLabelledBy})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,r=this.state.focusedTag,o=this._tags,i=this.props.dataItemKey,a=r?o.findIndex((function(e){return x(e,r,i)})):-1,l=void 0,u=-1!==a;if(n===s.Keys.left)l=o[a=u?Math.max(0,a-1):o.length-1];else if(n===s.Keys.right)a===o.length-1?l=void 0:u&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===s.Keys.home)l=o[0];else if(n===s.Keys.end)l=o[o.length-1];else if(n===s.Keys.delete){if(u){var c=this.value;O(c,o[a].data,i),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.value;if(u)O(c,o[a].data,i),this.triggerOnChange(c,t);else if(!u&&o.length){var p=o.pop();O(c,p.data,i),this.triggerOnChange(c,t)}}l!==r&&(t.data.focusedTag=l,t.data.activedescendant=le.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=e.slice()),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=this.getFocusedState().focusedIndex;void 0!==r[i-(o?o.skip:0)]&&this.handleItemClick(i,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,r=this.props,o=r.allowCustom,i=r.data,a=void 0===i?[]:i,s=r.dataItemKey,l=r.virtual,u=r.textField,c=r.focusedItemIndex,p=void 0===c?g:c,d=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-d],focusedType:fe.ListItem};var f=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:fe.CustomItem};if(n)return{focusedItem:a[e=p(a,n,u)],focusedIndex:e+d,focusedType:fe.ListItem};if(f.length){var h=f[f.length-1];return e=a.findIndex((function(e){return k(e,h,s)})),void 0!==a[e]?{focusedIndex:e+d,focusedItem:a[e],focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}}return 0===d?{focusedItem:a[0],focusedIndex:0,focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.displayName="MultiSelect",t.propTypes=ve({},A.propTypes,{autoClose:a.bool,value:a.arrayOf(a.any),defaultValue:a.arrayOf(a.any),dataItemKey:a.string,placeholder:a.string,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),tagRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=ve({},A.defaultProps,{autoClose:!0,required:!1}),t}(i.Component),ye=Object(s.createPropsContext)(),Oe=Object(s.withPropsContext)(ye,be);Oe.displayName="KendoReactMultiSelect";var ke=function(){return(ke=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){return i.createElement(R,ke({},e,{listClassName:"k-grid-list"}))},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=Object(s.createPropsContext)(),De=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(Ee,e),r=i.useRef(null),o=i.useRef(null),a=Object(s.getScrollbarWidth)(),l=n.columns,u=void 0===l?_e.columns:l,c=n.popupSettings,p=void 0===c?_e.popupSettings:c,d=n.onOpen,f=n.onClose,h=n.onFocus,v=n.onBlur,m=n.onChange,g=n.onFilterChange,b=n.onPageChange,y=xe(n,["columns","popupSettings","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);i.useImperativeHandle(r,(function(){return{element:o.current&&o.current.element,focus:function(){o.current&&o.current.focus()},get value(){return o.current&&o.current.value},get name(){return o.current&&o.current.name},props:n}})),i.useImperativeHandle(t,(function(){return r.current}));var O=i.useMemo((function(){return"calc("+u.map((function(e){return t=e.width,n=_e.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")+" + "+a+"px)"}),[u,a]),k=i.useMemo((function(){return i.createElement(i.Fragment,null,n.header,i.createElement("div",{className:"k-grid-header"},i.createElement("div",{className:"k-grid-header-wrap"},i.createElement("table",{role:"presentation"},i.createElement("colgroup",null,u.map((function(e,t){return i.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:_e.width}})}))),i.createElement("tbody",null,i.createElement("tr",null,u.map((function(e,t){return i.createElement("th",{key:e.uniqueKey?e.uniqueKey:t,className:"k-header"},e.header||" ")}))))))))}),[n.header,u]),w=n.virtual?n.virtual.skip:0,C=i.useCallback((function(e,t){var r,o,a,l=u.map((function(e,n){return i.createElement("span",{className:"k-cell",style:{width:e.width?e.width:_e.width},key:e.uniqueKey?e.uniqueKey:n},e.field?Object(s.getter)(e.field)(t.dataItem):"")})),c=void 0,p=n.data||[],d=t.index-w;void 0!==n.groupField&&(r=(a=Object(s.getter)(n.groupField))(p[d]),o=a(p[d-1]),r&&o&&r!==o&&(c=r)),c&&l.push(i.createElement("div",{key:"group",className:"k-cell k-group-cell"},i.createElement("span",null,c)));var f=i.cloneElement(e,Ce({},e.props),l);return n.itemRender?n.itemRender.call(void 0,f,t):f}),[u,n.groupField,n.itemRender,n.data,w]),x=i.useCallback((function(e,t){e&&e.call(void 0,Ce({},t,{target:r.current}))}),[]),E=i.useCallback((function(e){return x(d,e)}),[d]),D=i.useCallback((function(e){return x(f,e)}),[f]),I=i.useCallback((function(e){return x(h,e)}),[h]),_=i.useCallback((function(e){return x(v,e)}),[v]),P=i.useCallback((function(e){return x(m,e)}),[m]),S=i.useCallback((function(e){return x(g,e)}),[g]),j=i.useCallback((function(e){return x(b,e)}),[b]);i.useEffect((function(){Object(s.setScrollbarWidth)()}));var N=i.useCallback((function(e){return i.createElement(we,Ce({},e))}),[]);return i.createElement(ne,Ce({},y,{list:N,popupSettings:Ce({width:O},p,{popupClass:"k-dropdowngrid-popup",className:Object(s.classNames)("k-popup-flush",p.className)}),ref:o,header:k,itemRender:C,onOpen:E,onClose:D,onFocus:I,onBlur:_,onChange:P,onFilterChange:S,onPageChange:j}))})),Ie=Ce({},ee.propTypes,{columns:a.any.isRequired}),_e={columns:[],popupSettings:{},width:"200px"};De.displayName="KendoMultiColumnComboBox",De.propTypes=Ie,De.defaultProps=_e;function Pe(e,t,n){if(Re(e))return t[Number(e)];var r=t[Number(Se(e))],o=r&&r[n]||[];return o.length?Pe(je(e),o,n):void 0}function Se(e){return Te(e)?e:e.split("_")[0]}function je(e){if(Te(e))return e;var t=e.indexOf("_");return e.substring(t+1)}function Ne(e){return Fe("0",e)}function Fe(e,t){return e=e.toString(),t?t+"_"+e:e}function Me(e){var t=e.lastIndexOf("_");return t<0?"":e.substring(0,t)}function Te(e){return""===e||e.indexOf("_")<0}function Re(e){return""!==e&&e.indexOf("_")<0}function Le(e){return e.split("_")}function Ve(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}var Be=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();function Ae(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r}function Ke(e,t){var n=Ae(t,e);return Boolean(n&&n.length)}function qe(e,t){return t.expanded(e)&&Ke(e,t.getChildrenField())}function He(e,t,n,r){var o=[],i=new Be;return i.init(e),function e(t,n,r,o,i,a){for(var s=0;s<r.length;s++){var l=r[s],u=Fe(s,o);t.hasId(Ae(n,l))&&i.push(u),Ke(l,a)&&e(t,n,Ae(a,l),u,i,a)}}(i,t,n,"",o,r),o}function ze(e,t,n){for(var r=Le(e),o=t,i=0;i<r.length;i++){var a=o[Number(r[i])];if(n.disabled(a))return!1;o=a[n.getChildrenField()]}return!0}function Ue(e,t,n,r,o){switch(r){case s.Keys.left:return Re(t)||o.expanded(e)&&ze(t,n,o)?t:Me(t);case s.Keys.right:return qe(e,o)?Ne(t):t;case s.Keys.up:return i=Number(Ve(t)),a=Me(t),i?function e(t,n,r){var o=Pe(t,n,r.getChildrenField());return qe(o,r)?e(Fe(o[r.getChildrenField()].length-1,t),n,r):t}(Fe(i-1,a),n,o):Re(t)?t:a;case s.Keys.down:return qe(e,o)?Ne(t):function e(t,n,r){var o=Me(t),i=o?Pe(o,n,r.getChildrenField()):void 0,a=i?i[r.getChildrenField()]:n,s=Number(Ve(t));return s<a.length-1?Fe(s+1,o):i?e(o,n,r):void 0}(t,n,o)||t;case s.Keys.home:return"0";case s.Keys.end:return function(){var e,t=(n.length-1).toString(),r=n[n.length-1];for(;qe(r,o);)e=r[o.getChildrenField()],t=Fe(e.length-1,t),r=e[e.length-1];return t}();default:return t}var i,a}var We=n(23),Ye=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)}}(),Ge=function(){return(Ge=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=i.createContext((function(e){return e})),Ze=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=Object(s.guid)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return Ye(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return i.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},i.createElement("div",{className:"k-mid",ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?i.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?i.createElement(We.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e=this;return this.props.checkboxes?i.createElement("div",{className:"k-checkbox-wrapper"},i.createElement("input",{type:"checkbox",className:"k-checkbox",checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(t){return e.checkboxElement=t}}),i.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid})):void 0},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||Ke(this.item,this.fieldsSvc.getChildrenField()))?i.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}):void 0},t.prototype.renderSubitemsIfApplicable=function(){var e=this;return qe(this.item,this.fieldsSvc)?i.createElement("ul",{className:"k-content",role:"group"},this.fieldsSvc.children(this.item).map((function(t,n){return i.createElement($e,{item:t,itemId:Fe(n,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:n})}))):void 0},t.prototype.renderItemInPart=function(){return i.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},this.props.itemUI?i.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||Ke(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!0,configurable:!0}),t.prototype.getIconClassName=function(){return Object(s.classNames)("k-icon",{"k-i-expand":!this.fieldsSvc.expanded(this.item),"k-i-collapse":this.fieldsSvc.expanded(this.item),"k-i-loading":this.fieldsSvc.expanded(this.item)&&!Ke(this.item,this.fieldsSvc.getChildrenField())})},t.prototype.getRootClassName=function(){return Object(s.classNames)("k-item k-treeview-item",{"k-state-disabled":this.fieldsSvc.disabled(this.item)})},t.prototype.getContentClassName=function(){return Object(s.classNames)("k-in",{"k-state-focused":this.props.focusedItemId===this.itemId,"k-state-selected":this.fieldsSvc.selected(this.item)})},t}(i.Component),$e=i.forwardRef((function(e,t){var n=i.useContext(Xe).call(void 0,e);return i.createElement(Ze,Ge({ref:t},n))}));$e.displayName="TreeViewItem";var Je=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return Ae(this.expandField,e)},e.prototype.selected=function(e){return Ae(this.selectField,e)},e.prototype.text=function(e){return Ae(this.textField,e)},e.prototype.disabled=function(e){return Ae(this.disableField,e)},e.prototype.hasChildren=function(e){return Ae(this.hasChildrenField,e)},e.prototype.children=function(e){var t=Ae(this.childrenField,e);return t||[]},e.prototype.checked=function(e){return Ae(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return Ae(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&Ae(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}(),Qe={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639473995,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"},et=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)}}(),tt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:"0"},n.allowExplicitFocus=!1,n.treeGuid=Object(s.guid)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t){var r=Ue(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},Object(s.validatePackage)(Qe),n}return et(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return this.fieldsSvc=new Je(this.props),i.createElement("div",{className:"k-widget k-treeview"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(t){return e._element=t},tabIndex:this.props.tabIndex},i.createElement("ul",{className:"k-treeview-lines k-group",role:"group"},this.data.map((function(t,n){return i.createElement($e,{item:t,itemId:n.toString(),treeGuid:e.treeGuid,animate:e.props.animate,focusedItemId:e.state.focusedItemId,tabbableItemId:e.state.tabbableItemId,fieldsService:e.fieldsSvc,itemUI:e.props.item,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.ariaMultiSelectable,onItemClick:e.onItemClick,onFocusDomElNeeded:e.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.onPress,onDrag:e.onDrag,onRelease:e.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.onExpandChange,onCheckChange:e.onCheckChange,key:n})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,r=function(){return ze(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===s.Keys.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===s.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||Ke(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===s.Keys.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===s.Keys.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return Pe(e,this.data,this.props.childrenField||"items")},t.prototype.dispatchCheckChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):(n=e,r=this.fieldsSvc.focusIdField,o=this.data,i=this.props.childrenField,(a=He([n],r,o,i)).length?a[0]:void 0);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}var n,r,o,i,a},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!0,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!0,configurable:!0}),t.propTypes={data:a.arrayOf(a.any),animate:a.bool,tabIndex:a.number,focusIdField:a.string,getHierarchicalIndexById:a.func,onExpandChange:a.func,onItemClick:a.func,expandField:a.string,selectField:a.string,childrenField:a.string,hasChildrenField:a.string,textField:a.string,disableField:a.string,item:a.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":a.string,"aria-labelledby":a.string},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:"items",textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate"},t}(i.Component);var nt=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)}}(),rt=function(){return(rt=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){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,text:"",operationClassName:"k-i-cancel"},t}nt(t,e),t.prototype.render=function(){var e={top:this.state.top+"px",left:this.state.left+"px"};return this.state.visible&&i.createElement("div",{className:"k-header k-drag-clue",style:rt({},this.props.style,e)},i.createElement("span",{className:Object(s.classNames)("k-icon k-drag-status k-icon-with-modifier",this.state.operationClassName)},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.text)},t.prototype.show=function(e,t,n,r){this.setState({visible:!0,top:e,left:t,text:n,operationClassName:r})},t.prototype.hide=function(){this.setState({visible:!1})},t.defaultProps={style:{display:"block",position:"absolute",zIndex:2e4,padding:"4px 6px"}}})(i.PureComponent),function(){function e(e){this.event=e,this.initialized=!1,this.itemId=e.itemHierarchicalIndex,this.treeViewGuid=e.target.guid}e.prototype.init=function(){return this.initialized||(this.setDestimationMeta(document.elementFromPoint(this.event.clientX,this.event.clientY)),this.initialized=!0),this},Object.defineProperty(e.prototype,"isDropAllowed",{get:function(){return!!(this.initialized&&this.destItemId&&this.destTreeViewGuid)&&!(this.destTreeViewGuid+"_"+this.destItemId+"_").startsWith(this.treeViewGuid+"_"+this.itemId+"_")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destinationMeta",{get:function(){return{itemHierarchicalIndex:this.destItemId,treeViewGuid:this.destTreeViewGuid}},enumerable:!0,configurable:!0}),e.prototype.getDropOperation=function(){if(this.initialized&&this.isDropAllowed){var e=this.destDomNodeWithMeta.getBoundingClientRect(),t=e.top;return t+e.height-this.event.clientY<6?"after":this.event.clientY-t<6?"before":"child"}},e.prototype.setDestimationMeta=function(e){for(var t=e;t&&!t._kendoItemId;)t=t.parentNode;t&&t._kendoItemId&&(this.destDomNodeWithMeta=t,this.destItemId=t._kendoItemId,this.destTreeViewGuid=t._kendoTreeViewGuid)}}();function ot(e,t,n){var r=i.useState(t),o=r[0],a=r[1];return i.useEffect((function(){void 0!==o&&e.current&&a(e.current.offsetWidth)}),n),o}var it=function(e){return i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.children))},at=function(){return(at=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)},st=function(e){return i.createElement(i.Fragment,null,e.children)},lt=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},ut="selected",ct="items",pt={animate:!0,width:"200px",height:"200px"},dt=!1,ft=!0,ht=Object(s.createPropsContext)(),vt=i.forwardRef((function(e,t){Object(s.validatePackage)(K);var n=Object(s.usePropsContext)(ht,e),r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,p=n.dataItemKey,d=n.popupSettings,f=void 0===d?{}:d,h=n.style,m=void 0===h?{}:h,g=n.opened,b=n.disabled,O=n.onOpen,w=void 0===O?s.noop:O,C=n.onClose,x=void 0===C?s.noop:C,E=n.placeholder,D=n.label,I=n.name,_=n.selectField,P=void 0===_?ut:_,M=n.subItemsField,T=void 0===M?ct:M,R=n.validationMessage,L=n.valid,V=n.required,B=void 0===V?dt:V,A=n.validityStyles,q=void 0===A?ft:A,H=Object(s.getTabIndex)(n.tabIndex,b),z=i.useRef(null),U=i.useRef(null),W=i.useRef(null),Y=i.useRef(null),G=i.useRef(null),X=i.useRef(!1),Z=i.useState(void 0),$=Z[0],J=Z[1],Q=void 0!==n.value,ee=Q?n.value:void 0!==$?$:n.defaultValue,te=v(ee),ne=te?y(ee,n.textField):"",re=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:R,valid:L,required:B},te),oe=i.useCallback((function(){return U.current&&U.current.focus()}),[]);i.useImperativeHandle(z,(function(){return{props:n,element:U.current,actionElement:U.current,focus:oe}})),i.useImperativeHandle(t,(function(){return z.current}));var ie=Object(s.useRtl)(U,n.dir),ae=void 0!==f.width?f.width:void 0!==m.width?m.width:pt.width,se=ot(U,ae),le=at({width:se},void 0!==ie?{direction:ie}:{}),ue=i.useState(!1),ce=ue[0],pe=ue[1],de=void 0!==g?g:ce,fe=i.useState(!1),he=fe[0],ve=fe[1],me=i.useState(""),ge=me[0],be=me[1],ye=i.useCallback((function(){Y.current&&Y.current.setCustomValidity&&Y.current.setCustomValidity(re.valid?"":void 0===R?"Please select a value from the list!":R)}),[R,re]);i.useEffect(ye);var Oe=i.useCallback((function(e){if(!de){if(w){var t=at({},e);w.call(void 0,t)}void 0===g&&pe(!0)}}),[de,g,w]),ke=i.useCallback((function(e){if(de){if(x){var t=at({},e);x.call(void 0,t)}void 0===g&&pe(!1)}}),[de,g,x]),we=i.useCallback((function(e){if(!e.isDefaultPrevented()&&z.current){ve(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};(de?ke:Oe)(t)}}),[de,g,w,x]),Ce=i.useCallback((function(e){X.current=!0,e(),window.setTimeout((function(){return X.current=!1}),0)}),[]),xe=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=G.current&&G.current.element;if(z.current&&(!e.isDefaultPrevented()||W.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};if(de)if(t===s.Keys.esc||n&&t===s.Keys.up)ke(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&W.current){var i=Array.from(r.querySelectorAll(".k-treeview-item")),a=i.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(a&&0===i.indexOf(a))return Ce((function(){De(W.current)}))}Ce(s.noop)}else t===s.Keys.down&&Ce((function(){De(W.current||r)}));else n&&t===s.Keys.down&&Oe(o)}}),[de,g,w,x]),Ee=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),Ce(t===s.Keys.up?function(){De(U.current)}:function(){De(G.current&&G.current.element)}))}),[]),De=i.useCallback((function(e){e&&Ce((function(){return e.focus()}))}),[]),Ie=i.useCallback((function(){!he&&de?ke({target:z.current}):n.filterable?De(W.current):De(G.current&&G.current.element)}),[x,n.filterable,he,g,de]),_e=i.useCallback((function(){he&&De(U.current)}),[he]),Pe=i.useCallback((function(e){if(!he&&!X.current&&(ve(!0),n.onFocus&&z.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};n.onFocus.call(void 0,t)}}),[he,n.onFocus]),Se=i.useCallback((function(e){if(he&&!X.current&&z.current){ve(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};if(n.onBlur){var r=at({},t);n.onBlur.call(void 0,r)}ke(t)}}),[he,n.onBlur,de,g,x]),je=i.useCallback((function(){he&&Ce(s.noop)}),[he]),Ne=i.useCallback((function(e,t,r){if(n.onChange){var o=at({value:t,level:r?lt(r):[]},e);n.onChange.call(void 0,o)}Q||J(t)}),[n.onChange,Q]),Fe=i.useCallback((function(e){if(!k(e.item,ee,p)&&z.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:r,target:z.current};Ne(o,t,n),ke(o)}}),[Q,ee,n.onChange,p,de,g,x]),Me=i.useCallback((function(e){if(z.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};Ne(t,null),ke(t),e.preventDefault()}}),[Q,n.onChange,de,g,x]),Te=i.useCallback((function(e){if(n.onExpandChange&&z.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:lt(r),item:t,nativeEvent:o,syntheticEvent:i,target:z.current};n.onExpandChange.call(void 0,a)}}),[n.onExpandChange]),Re=i.useCallback((function(e){if(n.onFilterChange&&z.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&be(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),Le=i.useMemo((function(){return Q||!te?c:Object(s.mapTree)(c,T,(function(e){var t;return Object(s.extendDataItem)(e,T,((t={})[P]=k(e,ee,p),t))}))}),[c,ee,Q,te,P,T]),Ve=n.listNoData||it,Be=n.valueHolder||st,Ae=Object(S.useLocalization)(),Ke=!q||re.valid,qe=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree k-dropdowntree-clearable",n.className),tabIndex:H,accessKey:n.accessKey,id:o,style:D?at({},m,{width:void 0}):m,dir:ie,ref:U,onKeyDown:b?void 0:xe,onMouseDown:je,onFocus:Pe,onBlur:Se,role:"listbox","aria-haspopup":"true","aria-expanded":de,"aria-disabled":b,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":he,"k-state-disabled":b,"k-state-invalid":!Ke}),onClick:b?void 0:we},i.createElement("span",{className:"k-input"},i.createElement(Be,{item:ee},ne||E)),te&&!b&&i.createElement("span",{onClick:Me,className:"k-icon k-clear-value k-i-close",title:Ae.toLanguageString(N,F[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("span",{className:"k-select","aria-label":"select"},i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-arrow-60-down":!n.loading,"k-i-loading":n.loading})})),i.createElement("select",{name:I,ref:Y,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,ee):ee}))),i.createElement(u.Popup,{className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===ie}),popupClass:f.popupClass,style:le,animate:f.animate,anchor:U.current,show:de,onOpen:Ie,onClose:_e,appendTo:f.appendTo},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:H,ref:W,value:void 0===n.filter?ge:n.filter,onChange:Re,onKeyDown:Ee}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(tt,{ref:G,tabIndex:H,data:Le,focusIdField:p,textField:n.textField,selectField:P,expandField:n.expandField,childrenField:T,expandIcons:!0,onItemClick:Fe,onExpandChange:Te,item:n.item}):i.createElement(Ve,null,Ae.toLanguageString(j,F[j]))));return D?i.createElement(l.a,{label:D,editorValue:ne,editorPlaceholder:E,editorValid:Ke,editorDisabled:b,editorId:o,style:{width:m?m.width:void 0},children:qe,dir:ie}):qe})),mt={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,selectField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,valueHolder:a.func,listNoData:a.func};vt.displayName="KendoReactDropDownTree",vt.propTypes=mt;var gt=function(){return(gt=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)},bt="checkField",yt="checkIndeterminateField",Ot="items",kt={animate:!0,width:"200px",height:"200px"},wt=!1,Ct=!0,xt=Object(s.createPropsContext)(),Et=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(xt,e);Object(s.validatePackage)(K);var r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,p=n.dataItemKey,d=n.popupSettings,f=void 0===d?{}:d,h=n.style,v=void 0===h?{}:h,m=n.opened,g=n.disabled,b=n.onOpen,O=void 0===b?s.noop:b,w=n.onClose,C=void 0===w?s.noop:w,E=n.placeholder,D=n.label,I=n.name,_=n.checkField,P=void 0===_?bt:_,M=n.checkIndeterminateField,T=void 0===M?yt:M,R=n.subItemsField,L=void 0===R?Ot:R,V=n.validationMessage,B=n.valid,A=n.tags,q=n.value,H=n.required,z=void 0===H?wt:H,U=n.validityStyles,W=void 0===U?Ct:U,Y=Object(s.getTabIndex)(n.tabIndex,g),G=i.useRef(null),X=i.useRef(null),Z=i.useRef(null),$=i.useRef(null),J=i.useRef(null),Q=i.useRef(!1),ee=i.useRef([]),te=i.useRef(null),ne=i.useState(),re=ne[0],oe=ne[1],ie=i.useState(!1),ae=ie[0],se=ie[1],le=i.useState(!1),ue=le[0],ce=le[1],pe=i.useState(""),fe=pe[0],he=pe[1],ve=void 0!==m?m:ae,me=Boolean(Array.isArray(q)&&q.length),ge=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:V,valid:B,required:z},me),be=Object(s.useRtl)(X,n.dir),ye=void 0!==f.width?f.width:void 0!==v.width?v.width:kt.width,Oe=ot(X,ye),ke=gt({width:Oe},void 0!==be?{direction:be}:{}),we=i.useCallback((function(){return X.current&&X.current.focus()}),[]);ee.current=void 0===A?(q||[]).map((function(e){return{text:y(e,n.textField),data:[e]}})):A.slice(),i.useImperativeHandle(G,(function(){return{props:n,element:X.current,actionElement:X.current,focus:we}})),i.useImperativeHandle(t,(function(){return G.current}));var Ce=i.useCallback((function(){$.current&&$.current.setCustomValidity&&$.current.setCustomValidity(ge.valid?"":void 0===V?"Please select a value from the list!":V)}),[V,ge]);i.useEffect(Ce),i.useEffect((function(){te.current&&ve&&te.current.setPosition(te.current._popup)}),[q,ve]);var xe=i.useCallback((function(e,t,r){if(n.onChange){var o=gt({items:t,operation:r},e);n.onChange.call(void 0,o)}}),[n.onChange]),Ee=i.useCallback((function(e){if(!k(e.item,q,p)&&G.current){var t=e.item,n=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:G.current};xe(r,[t],"toggle")}}),[q,p,xe]),De=i.useCallback((function(e){if(!ve){if(O){var t=gt({},e);O.call(void 0,t)}void 0===m&&se(!0)}}),[ve,m,O]),Ie=i.useCallback((function(e){if(ve){if(C){var t=gt({},e);C.call(void 0,t)}void 0===m&&se(!1)}}),[ve,m,C]),_e=i.useCallback((function(e){Q.current=!0,e(),window.setTimeout((function(){return Q.current=!1}),0)}),[]),Pe=i.useCallback((function(e){e&&_e((function(){return e.focus()}))}),[_e]),Se=i.useCallback((function(){!ue&&ve?Ie({target:G.current}):n.filterable?Pe(Z.current):Pe(J.current&&J.current.element)}),[ue,ve,Pe,Ie,n.filterable]),je=i.useCallback((function(){ue&&Pe(X.current)}),[ue,Pe]),Ne=i.useCallback((function(e){if(!ue&&!Q.current&&(ce(!0),n.onFocus&&G.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFocus.call(void 0,t)}}),[ue,n.onFocus]),Fe=i.useCallback((function(e){if(ue&&!Q.current&&G.current){ce(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(n.onBlur){var r=gt({},t);n.onBlur.call(void 0,r)}Ie(t)}}),[ue,n.onBlur,ve,m,C]),Me=i.useCallback((function(){ue&&_e(s.noop)}),[ue,_e]),Te=i.useCallback((function(e){if(!e.isDefaultPrevented()&&G.current){ce(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};ve||De(t)}}),[ve,De]),Re=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=J.current&&J.current.element;if(G.current&&(!e.isDefaultPrevented()||Z.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(q&&q.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete)){var i=ee.current,a=re?i.findIndex((function(e){return x(e,re,p)})):-1,l=void 0,u=-1!==a;t===s.Keys.left?l=i[a=u?Math.max(0,a-1):i.length-1]:t===s.Keys.right?a===i.length-1?l=void 0:u&&(l=i[a=Math.min(i.length-1,a+1)]):t===s.Keys.home?l=i[0]:t===s.Keys.end?l=i[i.length-1]:t===s.Keys.delete&&u&&xe(o,i[a].data,"delete"),l!==re&&oe(l)}if(ve)if(t===s.Keys.esc||n&&t===s.Keys.up)Ie(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&Z.current){var c=Array.from(r.querySelectorAll(".k-treeview-item")),d=c.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(d&&0===c.indexOf(d))return _e((function(){Pe(Z.current)}))}_e(s.noop)}else t===s.Keys.down&&_e((function(){Pe(Z.current||r)}));else n&&t===s.Keys.down&&De(o)}}),[ve,Ie,Pe,_e,De,re,p,q,xe]),Le=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),_e(t===s.Keys.up?function(){Pe(X.current)}:function(){Pe(J.current&&J.current.element)}))}),[Pe,_e]),Ve=i.useCallback((function(e){if(G.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};xe(t,[],"clear"),Ie(t),e.preventDefault()}}),[xe,Ie]),Be=i.useCallback((function(e,t){Ie({target:G.current}),ue||Pe(Z.current),xe({syntheticEvent:t,nativeEvent:t.nativeEvent,target:G.current},e,"delete")}),[xe,Ie,Pe,ue]),Ae=i.useCallback((function(e){if(n.onExpandChange&&G.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:(s=r,s.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:o,syntheticEvent:i,target:G.current};n.onExpandChange.call(void 0,a)}var s}),[n.onExpandChange]),Ke=i.useCallback((function(e){if(n.onFilterChange&&G.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&he(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),qe=n.listNoData||it,He=Object(S.useLocalization)(),ze=!W||ge.valid,Ue=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree",n.className,{"k-state-focused":ue&&!g,"k-state-invalid":!ze,"k-state-disabled":g}),tabIndex:Y,accessKey:n.accessKey,id:o,style:D?gt({},v,{width:void 0}):v,dir:be,ref:X,onKeyDown:g?void 0:Re,onMouseDown:Me,onFocus:Ne,onBlur:Fe,role:"listbox","aria-haspopup":"true","aria-expanded":ve,"aria-disabled":g,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-multiselect-wrap k-floatwrap",{"k-state-focused":ue,"k-state-disabled":g,"k-state-invalid":!ze}),onClick:g?void 0:Te},ee.current.length>0&&i.createElement(de,{tag:n.tag,onTagDelete:Be,data:ee.current,guid:r,focused:re?ee.current.find((function(e){return x(e,re,p)})):void 0}),n.loading&&i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-loading":n.loading})}),me&&!g&&i.createElement("span",{onClick:Ve,className:"k-icon k-clear-value k-i-close",title:He.toLanguageString(N,F[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("select",{name:I,ref:$,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,q):q}))),i.createElement(u.Popup,{popupClass:f.popupClass,className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===be}),style:ke,animate:f.animate,anchor:X.current,show:ve,onOpen:Se,onClose:je,appendTo:f.appendTo,ref:te},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:Y,ref:Z,value:void 0===n.filter?fe:n.filter,onChange:Ke,onKeyDown:Le}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(tt,{ref:J,tabIndex:Y,data:c,focusIdField:p,textField:n.textField,checkField:P,checkIndeterminateField:T,expandField:n.expandField,childrenField:L,expandIcons:!0,onItemClick:Ee,onCheckChange:Ee,onExpandChange:Ae,checkboxes:!0,item:n.item}):i.createElement(qe,null,He.toLanguageString(j,F[j]))));return D?i.createElement(l.a,{label:D,editorValue:me,editorPlaceholder:E,editorValid:ze,editorDisabled:g,editorId:o,style:{width:v?v.width:void 0},children:Ue,dir:be}):Ue})),Dt={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,checkField:a.string,checkIndeterminateField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,listNoData:a.func};Et.displayName="KendoReactMultiSelectTree",Et.propTypes=Dt;var It=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},_t=function(e,t){var n=t.items,r=t.dataItemKey,o=t.value,i=t.subItemsField,a=void 0===i?"items":i,l=t.operation,u=Object(s.getter)(r),c=It(o,u);if("clear"===l)return[];if("delete"===l){var p=It(n,u);return o.filter((function(e){return!p[u(e)]}))}for(var d,f,h=n[0],v=u(h),m=Object(s.getter)(a),g=e.slice(),b=[];g.length;){var y=g.pop();if(v===u(y)){d=b.map((function(e){return e.item})),f=y;break}b&&b.length&&b[b.length-1].parentPosition===g.length&&b.pop(),(D=m(y))&&D.length&&(b.push({item:y,parentPosition:g.length}),g.push.apply(g,D))}for(var O=(m(f)||[]).slice(),k=[];O.length;){y=O.pop();k.push(y),(D=m(y))&&D.length&&O.push.apply(O,D)}var w=[];if(!c[v]){w.push.apply(w,o),w.push(f),w.push.apply(w,k.filter((function(e){return!c[u(e)]})));for(var C=d.filter((function(e){return!c[u(e)]})),x=It(w,u),E=C.length-1;E>-1;E--){var D,I=C[E];if((D=m(I)).filter((function(e){return x[u(e)]})).length<D.length)break;w.push(I),x[u(I)]=!0}}else{var _=u(f),P=It(k,u),S=It(d,u);w.push.apply(w,o.filter((function(e){var t=u(e);return!P[t]&&_!==t&&!S[t]})))}return w}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1);t.createFilterComponent=function(e){return function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.filterChange=function(e){n.props.onFilterChange&&n.props.onFilterChange(e)},n.inputChange=function(t){var r=t.target.value,o=n.props,a=o.filter,s=void 0===a?[]:a,l=o.field,u=void 0===l?"":l,c=n.findCellFilter(),p=c?s.map((function(e){return e.field===u?i({},c,{value:r}):e})):s.concat([i({},e.emptyFilter,{value:r,field:u})]);n.filterChange({filter:p,field:u,syntheticEvent:t.syntheticEvent})},n.operatorChange=function(t){var r=t.target.value.operator,o=n.props,a=o.filter,s=void 0===a?[]:a,l=o.field,u=void 0===l?"":l,c=n.findCellFilter(),p=c?s.map((function(e){return e.field===u?i({},c,{operator:r}):e})):s.concat([i({},e.emptyFilter,{field:u,operator:r})]);n.filterChange({filter:p,field:u,syntheticEvent:t.syntheticEvent})},n.clearButtonClick=function(e){var t=n.props,r=t.filter,o=void 0===r?[]:r,i=t.field,a=void 0===i?"":i;n.filterChange({filter:o.filter((function(e){return e.field!==a})),field:a,syntheticEvent:e})},n.findCellFilter=function(){var e=n.props,t=e.filter,r=void 0===t?[]:t,o=e.field;return r.find((function(e){return e.field===o}))},n}return o(n,t),n.prototype.render=function(){var t=this.props,n=t.clearButtonTitle,r=void 0===n?"":n,o=t.operators,s=void 0===o?[]:o,l=this.findCellFilter()||i({},e.emptyFilter,{operator:""}),u=l.operator,c=l.value,p={value:s.find((function(e){return e.operator===u}))||null,onChange:this.operatorChange,className:"k-dropdown-operator",iconClassName:"k-i-filter k-icon",data:s,textField:"text",popupSettings:{width:""},components:this.props.components};return a.createElement("div",{className:"k-filtercell"},a.createElement("div",{className:"k-filtercell-wrapper"},e.inputComponent({value:c,onChange:this.inputChange,components:this.props.components}),a.createElement("div",{className:"k-filtercell-operator"},e.operatorComponent(p,this.props),a.createElement("button",{className:null!==c&&""!==c||u?"k-button k-button-icon k-clear-button-visible":"k-button k-button-icon",title:r,type:"button",onClick:this.clearButtonClick},a.createElement("span",{className:"k-icon k-i-filter-clear"})))))},n}(a.Component)}},function(e,t,n){"use strict";var r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.KEYBOARD_NAV_DATA_LEVEL="data-keyboardnavlevel",t.KEYBOARD_NAV_DATA_SCOPE="data-keyboardnavscope",t.KEYBOARD_NAV_DATA_HEADER="data-keyboardnavheader",t.KEYBOARD_NAV_DATA_BODY="data-keyboardnavbody",t.KEYBOARD_NAV_DATA_ID="data-keyboardnavid",t.KEYBOARD_NAV_DATA_ZONE="data-keyboardnavzone",t.KEYBOARD_NAV_FILTER_COL_SUFFIX="_filter";var a=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"];t.FOCUSABLE_ELEMENTS=a.concat(["[tabindex]"]),t.TABBABLE_ELEMENTS=a.concat(["[tabindex]"]).map((function(e){return e+':not([tabindex="-1"])'})),t.tableKeyboardNavigationScopeAttributes=((r={})[t.KEYBOARD_NAV_DATA_SCOPE]=!0,r),t.tableKeyboardNavigationHeaderAttributes=((o={})[t.KEYBOARD_NAV_DATA_HEADER]=!0,o),t.tableKeyboardNavigationBodyAttributes=((i={})[t.KEYBOARD_NAV_DATA_BODY]=!0,i)},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorGradient",(function(){return K})),n.d(t,"ColorGradientPropsContext",(function(){return A})),n.d(t,"ColorPalette",(function(){return Y})),n.d(t,"ColorPalettePropsContext",(function(){return W})),n.d(t,"ColorPickerPropsContext",(function(){return ee})),n.d(t,"ColorPicker",(function(){return te})),n.d(t,"FlatColorPicker",(function(){return ne})),n.d(t,"Input",(function(){return pe})),n.d(t,"InputPropsContext",(function(){return ce})),n.d(t,"MaskedTextBox",(function(){return Pe})),n.d(t,"MaskedTextBoxPropsContext",(function(){return _e})),n.d(t,"NumericTextBoxPropsContext",(function(){return Je})),n.d(t,"NumericTextBox",(function(){return Qe})),n.d(t,"Slider",(function(){return st})),n.d(t,"SliderPropsContext",(function(){return at})),n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return tt})),n.d(t,"SliderLabel",(function(){return nt})),n.d(t,"RangeSliderPropsContext",(function(){return dt})),n.d(t,"RangeSlider",(function(){return ft})),n.d(t,"Switch",(function(){return Ot})),n.d(t,"SwitchPropsContext",(function(){return yt})),n.d(t,"CheckboxPropsContext",(function(){return Ct})),n.d(t,"Checkbox",(function(){return xt})),n.d(t,"RadioGroupPropsContext",(function(){return St})),n.d(t,"RadioGroup",(function(){return jt})),n.d(t,"RadioButtonPropsContext",(function(){return It})),n.d(t,"RadioButton",(function(){return _t})),n.d(t,"TextAreaPropsContext",(function(){return Tt})),n.d(t,"TextArea",(function(){return Rt})),n.d(t,"RatingPropsContext",(function(){return Yt})),n.d(t,"Rating",(function(){return Gt})),n.d(t,"RatingItem",(function(){return Lt}));var r=n(1),o=n(0),i=n(2),a={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639474074,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"},s=function(e){return null!=e},l=function(e,t,n){return!s(e)||isNaN(e)||e<=t?t:e>=n?n:e},u=n(10),c=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(s(e)){var r=Object(u.parseColor)(e.trim(),n);if(s(r))return"hex"===t?r.toCss():r.toCssRgba()}},p=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toHSV():{}},d=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toBytes():{}},f=function(e){var t=l(e.h,0,359.9),n=l(e.s,0,1),r=l(e.v,0,1),o=l(e.a,0,1);return u.Color.fromHSV(t,n,r,o).toCssRgba()},h=function(e){return f({h:e,s:1,v:1,a:1})},v=function(e,t){var n=l(e.r,0,255),r=l(e.g,0,255),o=l(e.b,0,255),i=l(e.a,0,1),a=l(t.r,0,255),s=l(t.g,0,255),u=l(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*s+i*r),b:Math.round((1-i)*u+i*o)}},m=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},g=function(e,t){return n=m(v(e,t)),r=m(v(t,{r:0,g:0,b:0,a:1})),(Math.max(n,r)+.05)/(Math.min(n,r)+.05);var n,r},b={};var y,O,k=(y=function(e,t){return(y=Object.setPrototypeOf||{__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}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=c(t,"rgba");n.setState({hex:t}),s(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){s(c(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return k(t,e),t.prototype.render=function(){return r.createElement("input",{value:this.state.hex,className:"k-input",onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(r.Component),C=n(5),x=n(6),E=n(4),D=((O={})["numerictextbox.increment"]="Increase value",O["numerictextbox.decrement"]="Decrease value",O["slider.increment"]="Increase",O["slider.decrement"]="Decrease",O["slider.dragTitle"]="Drag",O["colorGradient.r"]="r",O["colorGradient.g"]="g",O["colorGradient.b"]="b",O["colorGradient.a"]="a",O["colorGradient.hex"]="hex",O["colorGradient.contrastRatio"]="Contrast ratio",O["colorGradient.colorGradientAALevel"]="AA",O["colorGradient.colorGradientAAALevel"]="AAA",O["colorGradient.colorGradientPass"]="Pass",O["colorGradient.colorGradientFail"]="Fail",O["flatColorPicker.cancelBtn"]="Cancel",O["flatColorPicker.applyBtn"]="Apply",O["checkbox.validation"]="Please check this box if you want to proceed!",O["checkbox.optionalText"]="(Optional)",O["radioButton.validation"]="Please select option if you want to proceed!",O["switch.validation"]="Please turn on if you want to proceed!",O),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)}}(),_=function(){return(_=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)},P=["rgba","rgb","hex"],S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:P[1]},t.onRgbaRChange=function(e){t.dispatchRgbaChange({r:e.value},e)},t.onRgbaGChange=function(e){t.dispatchRgbaChange({g:e.value},e)},t.onRgbaBChange=function(e){t.dispatchRgbaChange({b:e.value},e)},t.onRgbaAChange=function(e){t.dispatchRgbaChange({a:e.value},e)},t}return I(t,e),t.prototype.render=function(){var e=Object(E.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.r",D["colorGradient.hex"]),n=e.toLanguageString("colorGradient.r",D["colorGradient.r"]),o=e.toLanguageString("colorGradient.r",D["colorGradient.g"]),i=e.toLanguageString("colorGradient.r",D["colorGradient.b"]),a=e.toLanguageString("colorGradient.r",D["colorGradient.a"]);return r.createElement("div",{className:"k-colorgradient-inputs k-hstack"},r.createElement("div",{className:"k-vstack"},r.createElement(C.Button,{look:"flat",icon:"arrows-kpi",className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&r.createElement("div",{className:"k-vstack k-flex-1"},r.createElement("span",{className:"k-hex-value k-textbox"},r.createElement(w,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),r.createElement(x.b,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&r.createElement(r.Fragment,null,r.createElement("div",{className:"k-vstack"},r.createElement(Qe,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),r.createElement(x.b,{className:"k-colorgradient-input-label"},n)),r.createElement("div",{className:"k-vstack"},r.createElement(Qe,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),r.createElement(x.b,{className:"k-colorgradient-input-label"},o)),r.createElement("div",{className:"k-vstack"},r.createElement(Qe,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),r.createElement(x.b,{className:"k-colorgradient-input-label"},i))),"rgba"===this.state.inputMode&&r.createElement("div",{className:"k-vstack"},this.props.opacity&&r.createElement(Qe,{value:this.props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&r.createElement(x.b,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=_({},this.props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=P.length-1===P.indexOf(this.state.inputMode)?0:P.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:P[e]});else{var t="rgba"===P[e]?e+1:e;this.setState({inputMode:P[t]})}},t}(r.Component),j=S;Object(E.registerForIntl)(S),Object(E.registerForLocalization)(S);var 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)}}(),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){var e=Object(E.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.contrastRatio",D["colorGradient.contrastRatio"]),n=e.toLanguageString("colorGradient.colorGradientAALevel",D["colorGradient.colorGradientAALevel"]),o=e.toLanguageString("colorGradient.colorGradientAAALevel",D["colorGradient.colorGradientAAALevel"]),i=e.toLanguageString("colorGradient.colorGradientPass",D["colorGradient.colorGradientPass"]),a=e.toLanguageString("colorGradient.colorGradientFail",D["colorGradient.colorGradientFail"]),s=g(this.props.rgba,this.props.bgColor),l=4.5.toFixed(1),u=7..toFixed(1),c=t+": "+s.toFixed(2),p=n+": "+l,d=o+": "+u,f=r.createElement("span",{className:"k-contrast-validation k-text-success"},i," ",r.createElement("span",{className:"k-icon k-i-check"})),h=r.createElement("span",{className:"k-contrast-validation k-text-error"},a," ",r.createElement("span",{className:"k-icon k-i-close"}));return r.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},r.createElement("div",{className:"k-contrast-ratio"},r.createElement("span",{className:"k-contrast-ratio-text"},c),s>=4.5?r.createElement("span",{className:"k-contrast-validation k-text-success"},r.createElement("span",{className:"k-icon k-i-check"}),s>=7&&r.createElement("span",{className:"k-icon k-i-check"})):r.createElement("span",{className:"k-contrast-validation k-text-error"},r.createElement("span",{className:"k-icon k-i-close"}))),r.createElement("div",null,r.createElement("span",null,p),s>=4.5?f:h),r.createElement("div",null,r.createElement("span",null,d),s>=7?f:h))},t}(r.Component);Object(E.registerForLocalization)(F);var M=function(e,t){return 0===e.length?"":'<path d="'+e.reduce((function(e,n,r,o){return 0===r?"M "+n[0]+","+n[1]:e+" "+t(n,r,o)}),"")+'" fill="none" stroke="white" stroke-width="1"/>'},T=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),angle:Math.atan2(r,n)}},R=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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,r=this.props.metrics,o=function(e,t,i,a,s){var l=(i+a)/2,u=Object.assign({},n.props.hsva,{s:t/r.width,v:1-l/r.height}),c=g(d(f(u)),d(n.props.backgroundColor||""));return i+.5>a?c<e+1&&c>e-1?l:null:s(c,e)?o(e,t,i,a-(a-i)/2,s):o(e,t,i+(a-i)/2,a,s)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=r.width;a+=r.width/t){var s=o(e,a,0,r.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&i.push([a,s])}return i},a=(t=T,e=function(e,n,r,o){var i=t(n||e,r||e),a=i.angle+(o?Math.PI:0),s=.1*i.length;return[e[0]+Math.cos(a)*s,e[1]+Math.sin(a)*s]},function(t,n,r){var o=e(r[n-1],r[n-2],t),i=o[0],a=o[1],s=e(t,r[n-1],r[n+1],!0);return"C "+i+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});return M(i(4.5,16),a)+M(i(4.5,16,!0),a)+M(i(7,16),a)+M(i(7,16,!0),a)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(r.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)}}(),B=function(e){function t(n){var r=e.call(this,n)||this;r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=p(t);r.setState({hsva:o,backgroundColor:h(o.h),rgba:d(t),hex:e})}else!function(e,t,n){b[e]={value:t,hex:n}}(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=function(e){var t=l(e.r,0,255),n=l(e.g,0,255),r=l(e.b,0,255),o=l(e.a,0,1);return u.Color.fromBytes(t,n,r,o).toCssRgba()}(e);if(r.isUncontrolled){var o=p(n),i=c(n,"hex");r.setState({hsva:o,backgroundColor:h(o.h),rgba:e,hex:i})}else!function(e,t,n){b[e]={value:t,rgba:n}}(r.state.guid,n,e);r.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},r.onAlphaSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},r.onHueSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},r.onDrag=function(e){r.gradientWrapper.classList.add("k-dragging"),r.changePosition(e.event)},r.onRelease=function(){r.gradientWrapper.classList.remove("k-dragging")},r.onGradientWrapperClick=function(e){r.changePosition(e)},r.changePosition=function(e){var t=r.getGradientRectMetrics(),n=e.clientX-t.left,o=e.clientY-t.top,i=l(n,0,t.width),a=l(o,0,t.height),s=Object.assign({},r.state.hsva,{s:i/t.width,v:1-a/t.height});r.handleHsvaChange(s,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){Object(i.focusFirstFocusableChild)(r.wrapper)},Object(i.validatePackage)(a);var o=n.value||n.defaultValue||c("rgba(255, 255, 255, 1)","rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:Object(i.guid)()}),r}return V(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){var e;e=this.state.guid,delete b[e]},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,o=this.state.hsva.s*t.width;e.top=n+"px",e.left=o+"px"}return r.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=f(e);if(this.isUncontrolled){var o=c(r,"hex");this.setState({hsva:e,backgroundColor:h(e.h),rgba:d(r),hex:o})}else!function(e,t,n){b[e]={value:t,hsva:n}}(this.state.guid,r,e);this.dispatchChangeEvent(r,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){s(c(e,"hex"))||(e="rgba(255, 255, 255, 1)");var n=function(e,t){if(e){var n=b[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||p(e),r=function(e,t){if(e){var n=b[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||d(e),o=function(e,t){if(e){var n=b[e];return n&&n.value===t?n.hex:void 0}}(t,e)||c(e,"hex");return{hsva:n,backgroundColor:h(n.h),rgba:r,hex:o}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=Object(i.classNames)("k-colorgradient",{"k-state-disabled":this.props.disabled});return r.createElement("div",{id:this.props.id,className:t,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},r.createElement("div",{className:"k-colorgradient-canvas k-hstack"},r.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},r.createElement(i.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},r.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&r.createElement(L,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),r.createElement("div",{className:"k-hsv-controls k-hstack"},r.createElement(st,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled}),this.props.opacity&&r.createElement(st,{value:s(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),r.createElement(j,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled}),this.props.backgroundColor&&r.createElement(F,{bgColor:d(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:o.string,value:o.string,onChange:o.func,onFocus:o.func,opacity:o.bool,backgroundColor:o.string,disabled:o.bool,style:o.any,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={opacity:!0},t}(r.Component),A=Object(i.createPropsContext)(),K=Object(i.withPropsContext)(A,B);K.displayName="KendoReactColorGradient";var q=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],s(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(s(e)){var n=e?Object(u.parseColor)(e,!0):e,r=[e];s(n)&&r.push(n.toCss(),n.toCssRgba());for(var o=function(e){for(var n=function(n){if(r.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},o=0;o<i.colorRows[e].length;o++){var a=n(o);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var l=o(a);if("object"==typeof l)return l.value}}},e.prototype.getColorAt=function(e){if(s(e)&&s(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(s(e)&&s(e.row)&&s(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),H={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},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(t){var n=e.call(this,t)||this;return n.wrapper=null,n.guid=Object(i.guid)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case i.Keys.down:n.handleCellNavigation(0,1);break;case i.Keys.up:n.handleCellNavigation(0,-1);break;case i.Keys.right:n.handleCellNavigation(1,0);break;case i.Keys.left:n.handleCellNavigation(-1,0);break;case i.Keys.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,{nativeEvent:e,target:n})},n.onBlur=function(){n.setState({focusedColor:void 0})},Object(i.validatePackage)(a),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return z(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new q;n.setColorMatrix(t.colors,t.columns);var o=n.getCellCoordsFor(this.state.selectedColor),a=n.getCellCoordsFor(this.state.focusedColor),s=Object(i.classNames)("k-colorpalette",{"k-state-disabled":this.props.disabled});return t.colors.length?r.createElement("div",{id:this.props.id,className:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},r.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},r.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},r.createElement("tbody",null,this.renderRows(n.colorRows,o,a))))):""},t.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},t.prototype.handleCellNavigation=function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){Object(i.dispatchEvent)(this.props.onChange,t,this,{value:e,rgbaValue:c(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=H[this.props.palette];return s(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var o=this;return e.map((function(e,i){return r.createElement("tr",{role:"row",key:i},o.renderColumns(e,i,t,n))}))},t.prototype.renderColumns=function(e,t,n,o){var a=this,s=void 0!==n&&n.row===t,l=n&&n.col,u=void 0!==o&&o.row===t,c=o&&o.col,p="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},d=p.width+"px",f=p.height+"px";return e.map((function(e,n){var o=s&&l===n,p=Object(i.classNames)("k-colorpalette-tile",{"k-state-selected":o,"k-state-focus":u&&c===n});return r.createElement("td",{className:p,"aria-label":e,"aria-selected":!!o||!!a.props.disabled&&void 0,style:{backgroundColor:e,width:d,height:f,minWidth:d},onClick:function(t){return a.onColorClick(e,t)},id:a.createCellId({row:t,col:n}),key:n})}))},t.prototype.createCellId=function(e){return this.guid+"_"+e.row+"_"+e.col},t.displayName="ColorPalette",t.propTypes={palette:o.oneOfType([o.arrayOf(o.string.isRequired),o.string]),columns:o.number,tileSize:o.any,defaultValue:o.string,value:o.string,disabled:o.bool,tabIndex:o.number,onChange:o.func,onFocus:o.func,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={palette:"office",tileSize:24},t}(r.Component),W=Object(i.createPropsContext)(),Y=Object(i.withPropsContext)(W,U);Y.displayName="KendoReactColorPalette";var G=n(7),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)},Z=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",o=r.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),a=r.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return r.createElement(r.Fragment,null,e.input,e.button,r.createElement(G.Popup,X({style:X({},(t||{}).style,{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:o,popupAlign:a,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:Object(i.classNames)("k-reset",t.className)}),e.content))};Z.displayName="KendoPickerComponent";var $=function(){return($=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)},J={palette:"office",tileSize:24},Q=function(e){return void 0!==e},ee=Object(i.createPropsContext)(),te=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(ee,e),o=n.popupSettings,s=n.gradientSettings,l=n.paletteSettings,u=n.valid,c=n.disabled,p=n.tabIndex,d=n.view,f=n.icon,h=n.onChange,v=n.onFocus,m=n.onBlur,g=n.onActiveColorClick,b=r.useRef(null),y=r.useRef(null),O=r.useRef(null),k=r.useRef(),w=r.useRef(null),C=r.useCallback((function(){b.current&&b.current.focus()}),[]);r.useImperativeHandle(t,(function(){return{element:b.current,actionElement:w.current,focus:C}}));var x=r.useState(!1),E=x[0],D=x[1],I=r.useState(n.defaultValue),_=I[0],P=I[1],S=r.useState(!1),j=S[0],N=S[1],F=Q(n.value),M=Q(n.open),T=F?n.value:_,R=M?n.open:j,L=r.useCallback((function(e,t){M||(!e&&!t&&b&&b.current&&b.current.focus(),N(e))}),[M]),V=r.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==i.Keys.esc)return n!==i.Keys.enter||M?void(!t||n!==i.Keys.up&&n!==i.Keys.down||(e.preventDefault(),e.stopPropagation(),n===i.Keys.up&&b&&b.current&&(b.current.focus(),L(!1)),n===i.Keys.down&&L(!0))):(e.preventDefault(),e.stopPropagation(),void L(!R));L(!1)}),[R,M]),B=r.useCallback((function(){M||(y.current?y.current.focus():O.current&&O.current.focus())}),[M]),A=r.useCallback((function(){L(!R,!0)}),[R]),q=r.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:T})}),[g,T]),H=r.useCallback((function(e){k.current?(clearTimeout(k.current),k.current=void 0):D(!0),v&&v.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[v]),z=r.useCallback((function(){L(!1,!0),D(!1),k.current=void 0}),[]),U=r.useCallback((function(e){clearTimeout(k.current),k.current=window.setTimeout(z),m&&m.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[m]),W=r.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;F||P(n),t&&L(!1),h&&h.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[F,h]),G=r.useCallback((function(e){return W(e,!0)}),[Q,W]),X=Object(i.useDir)(b,n.dir),J=n.iconClassName||f&&"k-icon k-i-"+f,te=Object(i.classNames)({"k-widget":!0,"k-colorpicker":!0,"k-state-invalid":!1===u}),ne=r.useMemo((function(){return Object(i.classNames)({"k-picker-wrap":!0,"k-state-disabled":c,"k-state-focused":E})}),[E,c]);return r.createElement("span",{className:te,dir:X},r.createElement("span",{id:n.id,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,className:ne,ref:b,tabIndex:Object(i.getTabIndex)(p,c),title:n.title,onKeyDown:V,onFocus:H,onBlur:U},r.createElement(Z,{dir:X,open:R,onOpen:B,popupAnchor:b.current||void 0,popupSettings:$({},o),input:J?r.createElement("span",{onClick:q,className:Object(i.classNames)("k-tool-icon",J)},r.createElement("span",{className:"k-selected-color",style:{backgroundColor:T}})):r.createElement("span",{onClick:q,className:"k-selected-color",style:{backgroundColor:T}},!T&&r.createElement("span",{className:"k-icon k-i-line"})),button:r.createElement("span",{onClick:A,className:"k-select",ref:w},r.createElement("span",{className:"k-icon k-i-arrow-s"})),content:r.createElement(r.Fragment,null,("combo"===d||"gradient"===d)&&r.createElement(K,$({},s,{tabIndex:0,ref:y,value:T,onChange:W})),("combo"===d||"palette"===d)&&r.createElement(Y,$({},l,{ref:O,value:T,onChange:G})))})))}));te.propTypes={value:o.string,defaultValue:o.string,disabled:o.bool,view:o.oneOf(["gradient","palette","combo"]),dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},te.defaultProps={view:"palette",gradientSettings:{opacity:!0},paletteSettings:J},te.displayName="KendoColorPicker";var ne=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),s=r.useRef(null),l=r.useState("ColorGradient"===(e.view||"ColorGradient")),u=l[0],c=l[1],p=r.useState("rgba(255, 255, 255, 1)"),d=p[0],f=p[1],h=r.useState("rgba(255, 255, 255, 1)"),v=h[0],m=h[1],g=r.useCallback((function(){n.current&&n.current.focus()}),[n]);r.useImperativeHandle(n,(function(){return{element:o.current,focus:g,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var b=r.useCallback((function(e){("ColorGradient"===e&&!u||"ColorPalette"===e&&u)&&c(!u)}),[u]),y=r.useCallback((function(){f("rgba(255, 255, 255, 1)")}),[]),O=r.useCallback((function(e){f(e.value)}),[]),k=r.useCallback((function(){m(d)}),[d]),w=r.useCallback((function(){m("rgba(255, 255, 255, 1)")}),[]),x=r.useCallback((function(){f(v)}),[v]),E=r.useCallback((function(){o.current&&o.current.focus()}),[o]),I=r.useCallback((function(){m(d)}),[d]);return r.createElement("div",{id:e.id,style:e.style,ref:o,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled),className:Object(i.classNames)("k-flatcolorpicker k-coloreditor",{"k-state-disabled":e.disabled},e.className),onBlur:I},e.header||r.createElement("div",{className:"k-coloreditor-header k-hstack"},r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},r.createElement(C.ButtonGroup,null,r.createElement(C.Button,{type:"button",togglable:!0,look:"flat",selected:u,onClick:function(){return b("ColorGradient")}},r.createElement("span",{className:"k-icon k-i-color-canvas"})),r.createElement(C.Button,{type:"button",togglable:!0,look:"flat",selected:!u,onClick:function(){return b("ColorPalette")}},r.createElement("span",{className:"k-icon k-i-palette"})))),r.createElement("div",{className:"k-spacer"}),r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&oe.showClearButton&&r.createElement(C.Button,{type:"button",look:"flat",onClick:y},r.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&oe.showPreview&&r.createElement("div",{className:"k-coloreditor-preview k-vstack"},r.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:d}}),r.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:v},onClick:x})))),r.createElement("div",{className:"k-coloreditor-views k-vstack"},u?r.createElement(K,{ref:s,value:d,onChange:O,onFocus:E}):r.createElement(Y,{value:d,onChange:O,onFocus:E})),e.showButtons&&oe.showButtons&&r.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},r.createElement(C.Button,{type:"button",className:"k-coloreditor-cancel",onClick:w},D["flatColorPicker.cancelBtn"]),r.createElement(C.Button,{type:"button",className:"k-coloreditor-apply k-primary",onClick:k},D["flatColorPicker.applyBtn"])))})),re={id:o.string,value:o.string,view:o.string,header:o.elementType,showClearButton:o.bool,showPreview:o.bool,showButtons:o.bool},oe={showClearButton:!0,showPreview:!0,showButtons:!0};ne.displayName="KendoFlatColorPicker",ne.propTypes=re,ne.defaultProps=oe;var ie,ae=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)}}(),se=function(){return(se=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)},le=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},ue=function(e){function t(n){var r=e.call(this,n)||this;return r._inputId=Object(i.guid)(),r.focus=function(){r._input&&r._input.focus()},r.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-state-invalid"):r._input.classList.add("k-state-invalid"),r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||""))},r.handleChange=function(e){r.setState({value:e.target.value}),r.valueDuringOnChange=e.target.value,r.props.onChange&&r.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:r}),r.valueDuringOnChange=void 0},r.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-state-empty")&&t.classList.remove("k-state-empty")}},Object(i.validatePackage)(a),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return ae(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},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,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return se({},e,{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},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}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,o=t.label,a=t.id,s=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,u=(t.validityStyles,t.style),c=le(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),p=a||this._inputId,d=!this.validityStyles||this.validity.valid,f=Object(i.classNames)(n,"k-textbox"),h=r.createElement("input",se({"aria-labelledby":s,"aria-describedby":l},c,{style:o?void 0:u,value:this.value,id:p,className:f,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return o?r.createElement(x.a,{label:o,editorId:p,editorValue:String(this.value),editorValid:d,editorDisabled:c.disabled,editorPlaceholder:c.placeholder,children:h,style:u,dir:c.dir}):h},t.displayName="Input",t.propTypes={label:o.string,validationMessage:o.string,required:o.bool,validate:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(r.Component),ce=Object(i.createPropsContext)(),pe=Object(i.withPropsContext)(ce,ue);pe.displayName="KendoReactInput",function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(ie||(ie={}));var de=function(){function e(e,t,n){void 0===n&&(n=ie.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),fe=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),he=function(e){return(e||"").split("")},ve=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof fe?this.parse(e):this.parse(new fe(he(e),he(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===ie.Literal},e}(),me=function(e,t){return new ve((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new de(t.literal(r),n)):new de(o?t.mask(o):t.literal(r),n)}))},ge=function(e){var t=e.prompt,n=e.promptPlaceholder;return new ve((function(e){var r=e.next().char;return new de(r===t?n:r,e)}))},be=function(e){return new ve((function(t){var n=t.next().char;return new de(e?n:"",t)}))},ye=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new ve((function(e){return new de(t,e)}))));var t},Oe=function(e){return new ve((function(t){for(var n=new de([],t);!t.eof();)n=n.concat(e.run(t));return n}))},ke=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,r=e.prompt,o=void 0===r?"":r,i=e.promptPlaceholder,a=void 0===i?" ":i,s=e.rules,l=void 0===s?{}:s,u=e.includeLiterals,c=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return ye(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(ye(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(ye(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,r){var o="",i=r,a=t.split("").slice(0,n),s=t.split("").slice(r);return ye(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:i,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",i=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return ye(this.maskTokens.slice(0,l)).run(s,t).fold((function(e){i=r.adjustPosition(e,i),o=e.concat(a).join("")})),{selection:i,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var r=this,o="",i=n,a=e.slice(0,n);return ye(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return ye(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:i,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new ve((function(e){return e.peek().char===t?(e.eat(),new de(t,e,ie.Literal)):new de(t,e,ie.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new ve((function(r){for(;!r.eof();){var o=r.peek(),i=o.char,a=o.control;if(i===a&&a===t)return r.eat(),new de(t,r,ie.Mask);if(e.test(i))return r.eat(),new de(i,r,ie.Mask);if(i===n)return r.eat(),new de(t,r,ie.Mask);r.eat_input()}return r.eat(),new de(t,r,ie.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new ve((function(e){return e.eof()?new de("",e):(e.peek().char===t&&e.eat(),new de(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new ve((function(t){for(;!t.eof();){var r=t.peek(),o=r.char,i=r.control;if(o===n&&i===n)return t.eat(),new de(o,t);if(e.test(o))return t.eat(),new de(o,t);t.eat_input()}return t.eat(),new de("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return be(n)},mask:function(n){return ge({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return be(!1)},mask:function(t){return ge({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Oe(me(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Oe(me(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Oe(me(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Oe(me(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),we={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},Ce=function(){return!1},xe=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var r in e)if(e[r]!==t[r]){n=!1;break}if(n)for(var r in t)if(!e.hasOwnProperty(r)){n=!1;break}return n},Ee=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)}}(),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)},Ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-"+Object(i.guid)(),n._service=new ke,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd;o!==r&&(n._isPasted=!0,n._selection=[r||0,o||0])},n.onChangeHandler=function(e){var t=e.currentTarget,r=t.value,o=n._selection[0]||0,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var a,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-i,u=r.length-l;a=n._service.maskInRange(r.slice(o,u),s,o,i)}else a=n._service.maskInput(r,s,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},Object(i.validatePackage)(a),n}return Ee(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},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:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},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,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,r=n[0],o=n[1],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(r=a.start,o=a.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}var s,l;s=e,l=this.props,s.includeLiterals===l.includeLiterals&&s.mask===l.mask&&s.prompt===l.prompt&&s.promptPlaceholder===l.promptPlaceholder&&xe(s.rules,l.rules)||this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props.id||this._inputId,n=!this.validityStyles||this.validity.valid,o=this.props.style||{},a=r.createElement("span",{dir:this.props.dir,className:Object(i.classNames)("k-widget k-maskedtextbox",this.props.className,{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-state-invalid":!n}),style:this.props.label?o:De({width:this.props.width},o)},r.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-textbox",value:this.value,id:t,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:function(t){return e._input=t},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:Ce,onDrop:Ce}));return this.props.label?r.createElement(x.a,{label:this.props.label,editorId:t,editorValue:this.value,editorValid:n,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:a,style:{width:this.props.width},dir:this.props.dir}):a},t.prototype.triggerOnChange=function(e,t){this.setState({value:e}),this.props.onChange&&(this._valueDuringOnChange=e,this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value}),this._valueDuringOnChange=void 0)},t.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},we,this.props.rules)},enumerable:!0,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:o.string,defaultValue:o.string,placeholder:o.string,title:o.string,dir:o.string,id:o.string,style:o.object,className:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,disabled:o.bool,readonly:o.bool,prompt:o.string,promptPlaceholder:o.string,includeLiterals:o.bool,maskValidation:o.bool,mask:o.string,rules:function(e,t,n){var r=e.rules;if(void 0!==r&&!Object.entries(r).some((function(e){return"string"!=typeof e||!(r[e]instanceof RegExp)})))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.");return null},selection:o.shape({start:o.number.isRequired,end:o.number.isRequired}),name:o.string,label:o.string,validationMessage:o.string,required:o.bool,valid:o.bool,validityStyles:o.bool,onChange:o.func},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:we,required:!1,validityStyles:!0},t}(r.Component),_e=Object(i.createPropsContext)(),Pe=Object(i.withPropsContext)(_e,Ie);Pe.displayName="KendoReactMaskedTextBox";var Se=function(){return(Se=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)},je=/\d/,Ne=function(e,t){return void 0!==e?e:t},Fe=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},Me=function(e){return(String(e).split(".")[1]||"").length},Te=function(e,t){return Math.max(Me(e),Me(t))},Re=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},Le=function(e,t,n,r,o,i,a){var s=Te(e||0,n||0),l=Be(Re((e||0)+(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Fe(l,i,a),t.selectionStart=t.selectionEnd=Ue(t.currentLooseValue,je)},Ve=function(e,t,n,r,o,i,a){var s=Te(e||0,n||0),l=Be(Re((e||0)-(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Fe(l,i,a),t.selectionStart=t.selectionEnd=Ue(t.currentLooseValue,je)},Be=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},Ae=function(e,t,n){var r=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var r=t[n][1];return e.length-r.length}(e,t);if(-1!==r&&n.selectionStart>r)n.selectionStart=n.selectionEnd=r;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},Ke=function(e,t,n,r){e.selectionStart=e.selectionEnd=t,Ae(n,r,e)},qe=function(e,t,n,r){e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,Ke(e,e.selectionStart,e.currentLooseValue,n)},He=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Ue(e,je)},ze=function(e){return e.split("").reverse().join("")},Ue=function(e,t){return e.length-ze(e).search(t)},We=function(e){return e.split(e[e.search(je)])[0]},Ye=function(e){var t=ze(e);return ze(t.split(t[t.search(je)])[0])},Ge=function(e,t){return e.search(t)},Xe=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Ze=function(e,t,n,r,o){var i="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(i&&!a)return n-1;if(a&&r)return n+1;for(var s=0,l=0;l<n;l++)je.test(e.charAt(l))&&s++;for(var u=0;s>0&&t.length>u;)je.test(t.charAt(u))&&s--,u++;return u},$e=function(e,t,n){var r=Se({},e),o=r.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),s=new RegExp("[\\d\\"+a.decimal+a.group+"]","g");return[n,r,o,i].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),s=String(r.currentLooseValue),l=String(o),u=new RegExp("[^\\d\\"+i.decimal+"]","g"),c=new RegExp("[^\\d\\"+i.decimal+"\\"+i.group+"]","g"),p=new RegExp("[\\d\\"+i.decimal+"\\"+i.group+"]"),d=s.replace(u,""),f=Ge(s,je),h=-1===f?-1:Ue(s,je),v=s.indexOf(i.decimal),m=(s.substring(0,f)+s.substring(f,h).replace(c,"")+s.substring(h,s.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(p)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(u,""),b=g.indexOf(i.decimal),y=b>-1?g.length-b-1:0,O=n.formatNumber(1,t).replace(u,""),k=O.indexOf(i.decimal),w=k>-1?O.length-k-1:0,C=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=We(n),s=We(r),l=We(o),u=We(i);return{positiveInfo:[a,Ye(n)],negativeInfo:[s,Ye(r)],zeroInfo:[l,Ye(o)],oneInfo:[u,Ye(i)]}}(t,n),x=[C.positiveInfo,C.negativeInfo,C.zeroInfo,C.oneInfo],E=1!==x.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),D=s.length>0&&s.length<l.length,I=t&&"p"===t[0]&&s&&-1===s.indexOf(i.percentSign);if(!r.isPaste){if(""===s)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==l)return r.eventValue=-0,r.currentLooseValue=Fe(r.eventValue,t,n),Ke(r,He(r.currentLooseValue,i),r.currentLooseValue,x),r;if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return n.split(t.minusSign).length!==r.split(t.minusSign).length&&n.length===r.length+t.minusSign.length}(r,i)){var _=n.parseNumber(o,t);r.eventValue=-(null!==_?_:0),r.currentLooseValue=Fe(r.eventValue,t,n);var P=Ge(r.currentLooseValue,je),S=Ge(l,je);return Ke(r,r.selectionEnd-1+(P-S),r.currentLooseValue,x),r}if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)}(r,i))return r.eventValue=n.parseNumber(r.currentLooseValue,t),Ke(r,r.selectionStart,r.currentLooseValue,x),r;if(r.currentLooseValue===i.decimal){r.eventValue=0;var j=Fe(r.eventValue,t,n);if(0===w&&y>0){var N=Ue(j,je);r.currentLooseValue=j.substring(0,N)+i.decimal+j.substring(N)}else r.currentLooseValue=j;return Ke(r,He(r.currentLooseValue,i)+1,r.currentLooseValue,x),r}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(r,i))return qe(r,t,x,n),r;if(I)return r.eventValue=n.parseNumber(s,t)/100,r.currentLooseValue=Fe(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15)return qe(r,t,x,n),r;if(d!==s&&s&&E)if(-1===x.findIndex((function(e){var t=e[0],n=e[1],r=s.indexOf(t),o=s.indexOf(n),a=0===r,l=o===s.length-n.length,u=r+t.length!==f&&-1!==f&&s[r+t.length]!==i.decimal,c=o!==h&&-1!==h&&s[o-1]!==i.decimal;return t&&n?!u&&!c&&(a&&l):t?!u&&a:!!n&&(!c&&l)})))return qe(r,t,x,n),r;if(d[d.length-1]===i.decimal&&y>0)return r.eventValue=n.parseNumber(s,t),r.currentLooseValue=m,r;if(r.currentLooseValue&&o)if((a+i.decimal+i.group).split("").findIndex((function(e){return s.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&s.length+1===l.length&&(e!==i.decimal||0!==Xe(l.replace(u,""),i.decimal))}))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;var F=Xe(d,i.decimal),M="0"===d[d.length-1];if(D&&M&&F<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Fe(r.eventValue,t,n),r;if(F>0){var T=s.substring(0,v);if(M&&(!T||0!==l.indexOf(T))){r.eventValue=n.parseNumber(r.currentLooseValue,t);var R=Fe(r.eventValue,t,n);return Ke(r,Ze(s,R,r.selectionEnd,D,u),R,x),r.currentLooseValue=R,r}if(F>y){var L=s.indexOf(i.decimal),V=s.substring(0,L)+s.substring(L,L+1+y)+s.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(V,t),r.currentLooseValue=V,Ke(r,r.selectionStart,V,x),r}if(w!==y&&F<=y&&M)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=m,r;if(F<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Fe(r.eventValue,t,n),r}}if(r.eventValue=n.parseNumber(r.currentLooseValue,t),I&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue){R=Fe(r.eventValue,t,n);1===s.length?Ke(r,He(R,i),R,x):Ke(r,Ze(s,R,r.selectionEnd,D,u),R,x),r.currentLooseValue=R}else r.currentLooseValue=Fe(n.parseNumber(d),t,n);return r},Je=Object(i.createPropsContext)(),Qe=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(Je,e),o=r.useMemo((function(){return Object(i.guid)()}),[]),s=n.id||o,l=Object(E.useInternationalization)(),u=Object(E.useLocalization)(),c=r.useRef(null),p=r.useRef(null),d=r.useRef(),f=r.useState(!1),h=f[0],v=f[1],m=r.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),g=r.useRef(!1),b=r.useRef(),y=r.useRef(n.defaultValue),O=Fe(m.current.focused&&!n.disabled?m.current.currentLooseValue:Ne(n.value,y.current),n.format,l);b.current=O,r.useEffect((function(){c.current&&c.current.setCustomValidity&&c.current.setCustomValidity(_().valid?"":n.validationMessage||"Please enter a valid value!")}));var k=r.useCallback((function(){c.current&&c.current.focus()}),[]),w=r.useCallback((function(){return void 0!==d.current?d.current:Ne(n.value,y.current)}),[n.value]),C=r.useCallback((function(){return n.name}),[n.name]),I=r.useCallback((function(){return n.required}),[n.required]),_=r.useCallback((function(){var e=void 0!==n.validationMessage,t=w();return{customError:e,valid:void 0!==n.valid?n.valid:!(m.current.valueIsOutOfRange||I()&&null==t),valueMissing:null==t}}),[n.validationMessage,n.valid,w,I]),P=r.useCallback((function(){return n.validityStyles}),[n.validityStyles]),S=r.useCallback((function(){return n}),[n]),j=r.useCallback((function(){var e={element:c.current,focus:k};return Object.defineProperty(e,"name",{get:C}),Object.defineProperty(e,"value",{get:w}),Object.defineProperty(e,"validity",{get:_}),Object.defineProperty(e,"validityStyles",{get:P}),Object.defineProperty(e,"required",{get:I}),Object.defineProperty(e,"props",{get:S}),e}),[C,w,_,P,I,k,S]);r.useImperativeHandle(t,j);var N=r.useCallback((function(){return{eventValue:Ne(n.value,y.current),prevLooseValue:b.current,currentLooseValue:c.current.value,selectionStart:c.current.selectionStart,selectionEnd:c.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:g.current,focused:m.current.focused}}),[n.value]),F=r.useCallback((function(e,t){if(!n.disabled){d.current=t.eventValue,y.current=t.eventValue;var r=Fe(Be(t.eventValue,n.min,n.max),n.format,l),o=Be(l.parseNumber(r,n.format),n.min,n.max);if(o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,y.current=o),t.valueIsCorrected){var a=p.current;a&&-1===a.className.indexOf("k-state-invalid")&&(a.className+=" k-state-invalid",window.setTimeout((function(){return a.className=a.className.replace(" k-state-invalid","")}),50))}n.value!==t.eventValue&&Object(i.dispatchEvent)(n.onChange,e,j(),{value:t.eventValue}),d.current=void 0,m.current=t,v((function(e){return!e}))}}),[n.value,n.onChange,n.disabled,v,j]),M=r.useCallback((function(e){var t=N();g.current=!1,F(e,$e(t,n.format,l))}),[n.format,n.onChange,l,F,N]),T=r.useCallback((function(e){var t=N(),r=l.parseNumber(String(t.currentLooseValue),n.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)g.current=!0;else{switch(e.keyCode){case 38:Le(r,t,n.step,n.min,n.max,n.format,l);break;case 40:Ve(r,t,n.step,n.min,n.max,n.format,l);break;case 13:if(!1===n.rangeOnEnter)return;var o=Fe(Be(r,n.min,n.max),n.format,l),i=Be(l.parseNumber(o,n.format),n.min,n.max);t.eventValue=i,t.currentLooseValue=Fe(i,n.format,l),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var a=c.current,s=l.numberSymbols();a&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=$e(t,n.format,l));break;default:return}e.preventDefault(),F(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.rangeOnEnter,F,N]),R=r.useCallback((function(){g.current=!0}),[]),L=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Le(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),F(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,F,N]),V=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Ve(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),F(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,F,N]),B=r.useCallback((function(e){document&&document.activeElement===c.current&&c.current&&!n.readOnly&&!n.disabled&&(e.nativeEvent.deltaY<0&&L(e),e.nativeEvent.deltaY>0&&V(e))}),[L,V,n.disabled,n.readOnly]),A=r.useCallback((function(e){m.current.currentLooseValue=b.current,m.current.focused=!0,Object(i.dispatchEvent)(n.onFocus,e,j(),{}),v((function(e){return!e}))}),[n.onFocus,v,j]),K=r.useCallback((function(e){m.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},Object(i.dispatchEvent)(n.onBlur,e,j(),{}),v((function(e){return!e}))}),[n.onBlur,v,j]),q=r.useCallback((function(e){document&&c.current&&(e.preventDefault(),document.activeElement!==c.current&&c.current.focus())}),[]);r.useLayoutEffect((function(){c.current&&void 0!==m.current.selectionStart&&void 0!==m.current.selectionEnd&&(c.current.selectionStart=m.current.selectionStart,c.current.selectionEnd=m.current.selectionEnd,m.current.selectionStart=void 0,m.current.selectionEnd=void 0)}),[h]);var H=!P()||_().valid,z=r.createElement("span",{dir:n.dir,style:n.label?void 0:{width:n.width},className:"k-widget k-numerictextbox"+(n.className?" "+n.className:""),"aria-disabled":n.disabled?"true":void 0},r.createElement("span",{className:Object(i.classNames)("k-numeric-wrap",{"k-state-disabled":n.disabled,"k-state-invalid":!H,"k-state-focused":m.current.focused}),ref:p},r.createElement("input",{value:null===O?"":O,tabIndex:Object(i.getTabIndex)(n.tabIndex,n.disabled),accessKey:n.accessKey,disabled:n.disabled,title:n.title,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,placeholder:n.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:n.inputType||"tel",className:"k-input k-formatted-value",id:s,name:n.name,readOnly:n.readOnly,onChange:M,onFocus:A,onBlur:K,onKeyDown:T,onPaste:R,onWheel:B,ref:c}),n.children,n.spinners&&r.createElement("span",{className:"k-select",onMouseDown:q},r.createElement("span",{className:"k-link k-link-increase","aria-label":u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),title:u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),onClick:L},r.createElement("span",{className:"k-icon k-i-arrow-n"})),r.createElement("span",{className:"k-link k-link-decrease","aria-label":u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),title:u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),onClick:V},r.createElement("span",{className:"k-icon k-i-arrow-s"})))));return n.label?r.createElement(x.a,{label:n.label,editorId:s,editorValue:null===O?"":O,editorValid:H,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:z,style:{width:n.width},dir:n.dir}):z}));Qe.propTypes={value:o.number,defaultValue:o.number,step:o.number,format:o.oneOfType([o.string,o.shape({style:o.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:o.string,currencyDisplay:o.oneOf(["symbol","code","name"]),useGrouping:o.bool,minimumIntegerDigits:o.number,minimumFractionDigits:o.number,maximumFractionDigits:o.number})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,title:o.string,placeholder:o.string,min:o.number,max:o.number,spinners:o.bool,disabled:o.bool,readOnly:o.bool,dir:o.string,name:o.string,label:o.string,validationMessage:o.string,required:o.bool,id:o.string,rangeOnEnter:o.bool,ariaLabelledBy:o.string,ariaDescribedBy:o.string,onChange:o.func,onFocus:o.func,onBlur:o.func},Qe.displayName="KendoNumericTextBox",Qe.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){}};var et=function(){return(et=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)},tt="data-slider-label",nt=function(e){var t,n,o=r.useRef(null),a=Object(i.useDir)(o),s=e.vertical?{bottom:e.position+"%",height:"1px",width:"100%"}:((t={})["rtl"===a?"right":"left"]=e.position+"%",t.width="1px",t);return r.createElement("li",{ref:o,role:"presentation",className:"k-tick k-tick-large",title:e.title,style:et({zIndex:1,position:"absolute"},s)},r.createElement("span",et({},((n={})[tt]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},rt=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)}}(),ot=function(){return(ot=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)},it=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n.buttons=function(e){return e.enabled?r.createElement(r.Fragment,null,r.createElement("a",{className:"k-button k-button-decrease",style:{position:"relative"},title:e.decrementTitle,onClick:e.decrement},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-s":n.props.vertical,"k-i-arrow-w":!n.props.vertical})})),e.children,r.createElement("a",{className:"k-button k-button-increase",style:{position:"relative"},title:e.incrementTitle,onClick:e.increment},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-n":n.props.vertical,"k-i-arrow-e":!n.props.vertical})}))):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(tt)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===i.Keys.left||e.keyCode===i.Keys.down?t=n.state.value-(n.props.step||0):e.keyCode===i.Keys.right||e.keyCode===i.Keys.up?t=n.state.value+(n.props.step||0):e.keyCode===i.Keys.home?t=n.props.min:e.keyCode===i.Keys.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),r=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+r*(n.props.max-n.props.min))},Object(i.validatePackage)(a),n}return rt(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,r=e.min,o=e.max;return void 0===n?null:{value:Math.min(Math.max(n,r),o)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t,n=this,o=Object(E.provideLocalizationService)(this),a=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,s=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},l=this.props.vertical?{paddingTop:0,height:"100%"}:{};return r.createElement("div",{ref:function(e){return n._element=e},"aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,dir:this.state.dir,role:"slider",id:this.props.id,style:this.props.style,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:Object(i.classNames)("k-slider k-widget",{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},r.createElement("div",{className:Object(i.classNames)("k-slider-wrap",{"k-slider-buttons":this.props.buttons}),style:{display:"flex",position:"relative",flexDirection:this.props.vertical?"column-reverse":"row"}},r.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:o.toLanguageString("slider.increment",D["slider.increment"]),decrementTitle:o.toLanguageString("slider.decrement",D["slider.decrement"])},r.createElement(i.Draggable,{onDrag:this.dragOver,onPress:this.dragStart},r.createElement("div",{className:"k-slider-track-wrap",style:ot({flexGrow:1,position:"relative",touchAction:"none"},s)},this.props.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ot({margin:0},l)},r.Children.map(this.props.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-n.props.min)/(n.props.max-n.props.min),vertical:n.props.vertical},e.props.children)}))),r.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return n._sliderTrack=e}},r.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:a+"%"}:{width:a+"%"}}),r.createElement("a",{className:"k-draghandle",title:o.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:this.props.vertical?{bottom:"calc("+a+"% - 8px)",zIndex:1}:(t={},t["rtl"===this.state.dir?"right":"left"]="calc("+a+"% - 8px)",t.zIndex=1,t)})))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!0,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),Object(i.dispatchEvent)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:o.number.isRequired,max:o.number.isRequired,value:o.number,vertical:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t}(r.Component),at=Object(i.createPropsContext)(),st=Object(i.withPropsContext)(at,it);st.displayName="KendoReactSlider",Object(E.registerForLocalization)(it);var lt,ut=function(){return(ut=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){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(lt||(lt={}));var ct=function(){return(ct=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)},pt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1],s=r.useCallback((function(e){var r=function(e,t){var n,r;switch(t.type){case lt.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case lt.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case lt.min:n="start"===t.key?ut({},e,{start:t.min}):ut({},e,{end:Math.max(t.min,e.start)});break;case lt.max:n="start"===t.key?ut({},e,{start:Math.min(t.max,e.end)}):ut({},e,{end:t.max});break;case lt.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;case lt.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;default:n=e}return n}(t.state||i,ct({},e,t));n&&n(r,e.event),a(r)}),[t,n]);return[i,s]},dt=Object(i.createPropsContext)(),ft=r.forwardRef((function(e,t){var n,o,s,l;Object(i.validatePackage)(a);var u=Object(i.usePropsContext)(dt,e),c=r.useRef(null),p=r.useRef(null),d=r.useRef(null),f=r.useRef(null),h=r.useRef(null),v=r.useCallback((function(){f.current&&f.current.focus()}),[f]);r.useImperativeHandle(c,(function(){return{element:p.current,focus:v,props:u}})),r.useImperativeHandle(t,(function(){return c.current}));var m=r.useMemo((function(){return u.min}),[u.min]),g=r.useMemo((function(){return u.max}),[u.max]),b=r.useMemo((function(){return void 0!==u.step?u.step:vt.step}),[u.step,vt.step]),y=Object(i.useDir)(p,u.dir),O=r.useState(""),k=O[0],w=O[1],C=pt(u.defaultValue||vt.defaultValue,{min:m,max:g,step:b,state:u.value},(function(e,t){u.onChange&&c.current&&u.onChange.call(void 0,{value:e,target:c.current,syntheticEvent:t})})),x=C[0],I=C[1],_=r.useMemo((function(){return u.value||x}),[u.value,x]),P=r.useRef(null),S=r.useRef(null),j=r.useMemo((function(){return(_.start-m)/(g-m)*100}),[_.start,m,g]),N=r.useMemo((function(){return(_.end-m)/(g-m)*100}),[_.end,m,g]),F=r.useMemo((function(){return u.vertical?{paddingTop:0,height:"100%"}:{}}),[u.vertical]),M=r.useMemo((function(){return u.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[u.vertical]),T=Object(E.useLocalization)(),R=r.useCallback((function(e){if(S.current){e.originalEvent.preventDefault();var t=S.current.getBoundingClientRect(),n=u.vertical?t.bottom-e.clientY:"rtl"===y?t.right-e.clientX:e.clientX-t.left,r=u.vertical?t.height:t.width;return m+n/r*(g-m)}}),[S,u.vertical,y,m,g,x.start,x.end,u.value&&u.value.start,u.value&&u.value.end]),L=r.useCallback((function(e){return e<=_.start?"start":e>=_.end?"end":2*e<_.end+_.start?"start":"end"}),[x.start,x.end,u.value&&u.value.start,u.value&&u.value.end]),V=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===y?lt.decrease:lt.increase,key:"start",event:e});break;case i.Keys.up:e.preventDefault(),I({type:lt.increase,key:"start",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===y?lt.increase:lt.decrease,key:"start",event:e});break;case i.Keys.down:e.preventDefault(),I({type:lt.decrease,key:"start",event:e});break;case i.Keys.home:e.preventDefault(),I({type:lt.min,key:"start",event:e});break;case i.Keys.end:e.preventDefault(),I({type:lt.max,key:"start",event:e})}}),[I]),B=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===y?lt.decrease:lt.increase,key:"end",event:e});break;case i.Keys.up:e.preventDefault(),I({type:lt.increase,key:"end",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===y?lt.increase:lt.decrease,key:"end",event:e});break;case i.Keys.down:e.preventDefault(),I({type:lt.decrease,key:"end",event:e});break;case i.Keys.home:e.preventDefault(),I({type:lt.min,key:"end",event:e});break;case i.Keys.end:e.preventDefault(),I({type:lt.max,key:"end",event:e})}}),[I,y]),A=r.useCallback((function(e){var t=R(e),n=L(t);w(n),"end"===n?h.current.focus():f.current.focus();var r="end"===n?lt.end:lt.start;I({type:r,payload:t,event:e})}),[u.vertical,m,g,I]);return Object(i.useDraggable)(S,{onPress:A,onDrag:function(e){var t=R(e),n="end"===k?lt.end:lt.start;I({type:n,payload:t,event:e})},onRelease:function(e){var t=R(e),n="end"===k?lt.end:lt.start;I({type:n,payload:t,event:e}),w("")}}),r.createElement("div",{role:"slider",id:u.id,style:u.style,ref:p,dir:y,className:Object(i.classNames)("k-widget k-slider",{"k-rtl":"rtl"===y,"k-state-disabled":u.disabled,"k-slider-vertical":u.vertical,"k-slider-horizontal":!u.vertical},u.className),"aria-labelledby":u.ariaLabelledBy,"aria-describedby":u.ariaDescribedBy},r.createElement("div",{className:"k-slider-wrap",style:{display:"flex",position:"relative",flexDirection:u.vertical?"column-reverse":"row"}},r.createElement("div",{ref:S,className:"k-slider-track-wrap",style:ct({flexGrow:1,position:"relative",touchAction:"none"},M)},u.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ct({margin:0},F)},r.Children.map(u.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-u.min)/(u.max-u.min),vertical:u.vertical},e.props.children)}))),r.createElement("div",{ref:P,className:"k-slider-track",style:u.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===y?"right":"left"]=0,n.width="100%",n)},null!==j&&null!==N&&r.createElement("div",{"data-selection":!0,ref:d,title:_.start+" - "+_.end,className:"k-slider-selection",style:u.vertical?{height:N-j+"%",bottom:j+"%"}:(o={},o["rtl"===y?"right":"left"]=j+"%",o.width=N-j+"%",o)}),r.createElement("a",{ref:f,role:"slider",tabIndex:Object(i.getTabIndex)(u.startTabIndex,u.disabled,void 0),"aria-valuemin":m,"aria-valuemax":Math.max(g,_.end),"aria-valuenow":_.start,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:T.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+j+"% - 8px)",zIndex:1}:(s={},s["rtl"===y?"right":"left"]="calc("+j+"% - 8px)",s.zIndex=1,s),onKeyDown:V}),r.createElement("a",{ref:h,role:"slider",tabIndex:Object(i.getTabIndex)(u.endTabIndex,u.disabled,void 0),"aria-valuemin":Math.min(m,_.start),"aria-valuemax":g,"aria-valuenow":_.end,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:T.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+N+"% - 8px)",zIndex:1}:(l={},l["rtl"===y?"right":"left"]="calc("+N+"% - 8px)",l.zIndex=1,l),onKeyDown:B})))))})),ht={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},defaultValue:function(e,t,n){if(e.defaultValue){var r=e.defaultValue.start,o=e.defaultValue.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},onChange:o.func,step:o.number,min:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&o>=i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or bigger than the max value.\n "):null},max:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&i<=o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or smaller than the min value.\n "):null},vertical:o.bool,disabled:o.bool,dir:o.oneOf(["ltr","rtl"])},vt={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};ft.displayName="KendoReactRangeSlider",ft.propTypes=ht,ft.defaultProps=vt;var mt=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)}}(),gt=function(){return(gt=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)},bt=function(e){function t(n){var o=e.call(this,n)||this;return o.setValidity=function(){o._input&&o._input.setCustomValidity&&o._input.setCustomValidity(o.validity.valid?"":o.props.validationMessage||o.defaultValidationMessage.toLanguageString("switch.validation",D["switch.validation"]))},o.limit=function(e,t,n){var r=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>r-o?r-o:e},o.toggle=function(e,t){o.setState({checked:e}),o.valueDuringOnChange=e,Object(i.dispatchEvent)(o.props.onChange,t,o,{value:e}),o.valueDuringOnChange=void 0},o._id=Object(i.guid)(),o.defaultValidationMessage=Object(E.provideLocalizationService)(o),o.focus=function(){o._element&&o._element.focus()},o.dummyInput=function(e){return r.createElement("input",{type:"checkbox",checked:o.props.checked,ref:function(e){o._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:i.noop})},o.handleClick=function(e){o.eventTimeStamp!==e.timeStamp&&(o.eventTimeStamp=e.timeStamp,o.toggle(!o.value,e))},o.handleKeyDown=function(e){if(!o.props.disabled){var t=e.keyCode;t!==i.Keys.space&&t!==i.Keys.enter||o.toggle(!o.value,e)}},o.handleWrapperFocus=function(e){if(!o.props.disabled){o.setState({focused:!0});var t=o.props.onFocus;t&&t.call(void 0,e)}},o.handleWrapperBlur=function(e){if(!o.props.disabled){o.setState({focused:!1});var t=o.props.onBlur;t&&t.call(void 0,e)}},Object(i.validatePackage)(a),o.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},o}return mt(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},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=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.state.focused,n=this.props,o=n.dir,a=n.disabled,s=n.id,l=n.offLabel,u=n.onLabel,c=n.tabIndex;this.dir=o||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var p=!this.validityStyles||this.validity.valid,d=Object(i.classNames)({"k-widget":!0,"k-switch":!0,"k-switch-on":this.value,"k-switch-off":!this.value,"k-state-focused":t,"k-state-disabled":a,"k-state-invalid":!p},this.props.className),f={"aria-checked":this.value,"aria-disabled":a||void 0};return r.createElement("span",{ref:function(t){e._wrapper=t},className:d,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},r.createElement("span",gt({className:"k-switch-container",id:s||this._id,role:"switch"},f,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(t){e._element=t},tabIndex:Object(i.getTabIndex)(c,a,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),r.createElement("span",{className:"k-switch-label-on"},u),r.createElement("span",{className:"k-switch-label-off"},l),r.createElement("span",{className:"k-switch-handle"})))},t.displayName="Switch",t.propTypes={accessKey:o.string,checked:o.bool,className:o.string,disabled:o.bool,defaultChecked:o.bool,dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,offLabel:o.string,required:o.bool,tabIndex:o.number,valid:o.bool,validate:o.bool,validationMessage:o.string,onBlur:o.any,onChange:o.any,onFocus:o.any,onLabel:o.string},t.defaultProps={disabled:!1,defaultChecked:!1,offLabel:"OFF",onBlur:i.noop,onFocus:i.noop,onLabel:"ON",required:!1,validityStyles:!0},t}(r.Component),yt=Object(i.createPropsContext)(),Ot=Object(i.withPropsContext)(yt,bt);Ot.displayName="KendoReactSwitch";var kt=function(){return(kt=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)},wt=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},Ct=Object(i.createPropsContext)(),xt=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(Ct,e),o=n,s=o.ariaDescribedBy,l=o.ariaLabelledBy,u=o.checked,c=o.className,p=o.children,d=o.defaultChecked,f=o.disabled,h=o.defaultValue,v=o.id,m=o.label,g=o.labelPlacement,b=o.name,y=o.labelOptional,O=o.onChange,k=o.onFocus,w=o.onBlur,C=o.tabIndex,x=o.value,I=o.required,_=o.valid,P=o.validationMessage,S=o.validityStyles,j=(o.visited,o.touched,o.modified,wt(o,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),N=r.useRef(null),F=r.useCallback((function(){N.current&&N.current.focus()}),[]),M=r.useCallback((function(){return{element:N.current,focus:F,get name(){return N.current&&N.current.name}}}),[F]);r.useImperativeHandle(t,M);var T=r.useState(d),R=T[0],L=T[1],V=r.useState(h),B=V[0],A=V[1],K="boolean"==typeof x||null===x,q=void 0!==u,H=K,z=H?x:B,U=q?u:H?void 0:R,W=void 0===U&&z,Y=W?z:U,G=W||H?null===x?x:void 0:x||z,X=null===Y||null===G,Z=r.useMemo((function(){return Object(i.guid)()}),[]),$=Object(E.useLocalization)(),J=function(e){return $.toLanguageString(e,D[e])},Q=J("checkbox.validation"),ee=J("checkbox.optionalText"),te=void 0!==_?_:!I||!!U;r.useEffect((function(){N.current&&N.current.setCustomValidity&&N.current.setCustomValidity(te?"":P||Q)}),[te,P,Q]);var ne=r.useCallback((function(e,t){H||f||(A(t),q||f||L(t)),O&&!f&&Object(i.dispatchEvent)(O,e,kt({},M(),{value:t}),{value:t})}),[q,f,O,H,M]),re=r.useCallback((function(e){var t=e.target.checked;ne(e,t)}),[ne,x]),oe=r.useCallback((function(e){if(!f){var t=e.keyCode,n=e.currentTarget.checked;t===i.Keys.space&&(e.preventDefault(),e.stopPropagation(),ne(e,!n))}}),[f,ne]),ie=r.useCallback((function(e){f||e.keyCode===i.Keys.space&&e.preventDefault()}),[f]),ae=r.useCallback((function(e){k&&!f&&Object(i.dispatchEvent)(k,e,M(),void 0)}),[k,f,M]),se=r.useCallback((function(e){w&&!f&&Object(i.dispatchEvent)(w,e,M(),void 0)}),[w,f,M]),le=Object(i.useDir)(N,n.dir),ue=Object(i.classNames)({"k-state-disabled":f},c),ce=kt({type:"checkbox",className:Object(i.classNames)({"k-checkbox":!0,"k-state-indeterminate":X,"k-state-invalid k-invalid":!(te||void 0!==S||!0===S)}),ref:N,name:b,id:v||Z,"aria-labelledby":l,"aria-describedby":s,checked:Boolean(Y),disabled:f,tabIndex:Object(i.getTabIndex)(C,f),role:"checkbox",required:void 0!==I&&I,"aria-checked":!(!U&&!Y)||!!X&&"mixed","aria-disabled":f||void 0},j,{onChange:re,onKeyDown:oe,onKeyUp:ie,onFocus:ae,onBlur:se}),pe=r.createElement(r.Fragment,null,void 0===G?r.createElement("input",kt({},ce)):r.createElement("input",kt({},ce,{value:K?void 0:null===G?"":G}))),de=r.createElement(r.Fragment,null,void 0!==m?r.createElement("label",{className:"k-checkbox-label",htmlFor:v||Z,style:{userSelect:"none"}},m,y&&r.createElement("span",{className:"k-label-optional"},ee)):null);return r.createElement(r.Fragment,null,"before"===g?r.createElement("span",{className:ue,dir:"rtl"},pe,de,p):r.createElement("span",{className:ue,dir:le},pe,de,p))}));xt.propTypes={checked:o.bool,className:o.string,defaultChecked:o.bool,defaultValue:o.any,dir:o.string,disabled:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,label:o.any,labelPlacement:o.string,labelOptional:o.bool,name:o.string,tabIndex:o.number,value:o.any,validationMessage:o.string,required:o.bool,validate:o.bool,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},xt.displayName="KendoCheckbox";var Et=function(){return(Et=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)},Dt=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},It=Object(i.createPropsContext)(),_t=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(It,e),o=n.ariaDescribedBy,s=n.checked,l=n.children,u=n.className,c=n.disabled,p=n.id,d=n.label,f=n.labelPlacement,h=n.name,v=n.style,m=n.tabIndex,g=n.value,b=n.valid,y=n.onChange,O=n.onFocus,k=n.onBlur,w=Dt(n,["ariaDescribedBy","checked","children","className","disabled","id","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),C=r.useRef(null),x=r.useCallback((function(){C.current&&C.current.focus()}),[]),E=r.useCallback((function(){return{element:C.current,focus:x}}),[x]);r.useImperativeHandle(t,E);var D=r.useMemo((function(){return Object(i.guid)()}),[]),I=r.useCallback((function(e){Object(i.dispatchEvent)(y,e,E(),{value:g})}),[y,g,c]),_=r.useCallback((function(e){O&&!c&&Object(i.dispatchEvent)(O,e,E(),void 0)}),[O,c]),P=r.useCallback((function(e){k&&!c&&Object(i.dispatchEvent)(k,e,E(),void 0)}),[k,c]),S=Et({type:"radio",id:p||D,name:h,className:Object(i.classNames)({"k-radio":!0,"k-state-invalid":!1===b,"k-invalid":!1===b},u),ref:C,disabled:c,tabIndex:Object(i.getTabIndex)(m,c),checked:s,style:v,"aria-describedby":o,value:g,onChange:I,onFocus:_,onBlur:P},w),j=r.createElement(r.Fragment,null,void 0!==d?r.createElement("label",{className:"k-radio-label",htmlFor:p||D,style:{userSelect:"none"},"aria-label":d},d):null),N=r.createElement("input",Et({},S));return"before"===f?r.createElement(r.Fragment,null,j,N,l):r.createElement(r.Fragment,null,N,j,l)}));_t.propTypes={ariaDescribedBy:o.string,checked:o.bool,className:o.string,disabled:o.bool,id:o.string,label:o.string,labelPlacement:o.string,name:o.string,style:o.object,tabIndex:o.number,value:o.any,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},_t.displayName="KendoRadioButton";var Pt=function(){return(Pt=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)},St=Object(i.createPropsContext)(),jt=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(St,e),o=n.ariaLabelledBy,s=n.ariaDescribedBy,l=n.className,u=n.data,c=n.defaultValue,p=n.disabled,d=n.name,f=n.labelPlacement,h=n.layout,v=n.style,m=n.value,g=n.valid,b=n.item,y=void 0===b?Nt.item:b,O=n.onChange,k=n.onFocus,w=r.useRef(null),C=r.useCallback((function(){w.current&&Object(i.focusFirstFocusableChild)(w.current)}),[]),x=r.useCallback((function(){return{element:w.current,focus:C}}),[C]);r.useImperativeHandle(t,x);var E=r.useState(c),D=E[0],I=E[1],_=void 0!==m,P=_?m:D,S=r.useCallback((function(e){var t=e.value;_||p||I(t),O&&!p&&Object(i.dispatchEvent)(O,e.syntheticEvent,x(),{value:t})}),[I,O,p]),j=r.useCallback((function(e){k&&!p&&Object(i.dispatchEvent)(k,e.syntheticEvent,x(),void 0)}),[k,p]),N=r.useMemo((function(){return Object(i.guid)()}),[]),F=Object(i.classNames)("k-radio-list",{"k-list-horizontal":"horizontal"===h,"k-list-vertical":"vertical"===h||void 0===h},l),M=Object(i.useRtl)(w,n.dir),T=u&&u.map((function(e,t){var n=P===e.value,o=null==P,a=Pt({},e,{valid:g,checked:n,disabled:!(!e.disabled&&!p),labelPlacement:e.labelPlacement?e.labelPlacement:f,tabIndex:e.tabIndex?e.tabIndex:o&&0===t||n?0:-1,index:t,name:d||N,onChange:S,onFocus:j});return r.createElement(y,{className:Object(i.classNames)("k-radio-item",{"k-state-disabled":a.disabled||p}),key:t,role:"radio"},r.createElement(_t,Pt({},a)))}));return r.createElement("ul",{role:"radiogroup",className:F,ref:w,dir:M,style:v,"aria-labelledby":o,"aria-describedby":s},T)})),Nt={item:function(e){return r.createElement("li",Pt({},e))}};jt.propTypes={ariaLabelledBy:o.string,ariaDescribedBy:o.string,className:o.string,data:o.arrayOf(o.object),defaultValue:o.any,dir:o.string,disabled:o.bool,labelPlacement:o.string,layout:o.string,name:o.string,style:o.object,value:o.any,onChange:o.func,onFocus:o.func},jt.defaultProps=Nt,jt.displayName="KendoRadioGroup";var Ft=function(){return(Ft=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)},Mt=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},Tt=Object(i.createPropsContext)(),Rt=r.forwardRef((function(e,t){var n=Object(i.usePropsContext)(Tt,e),o=n,a=o.ariaDescribedBy,s=o.ariaLabelledBy,l=o.autoSize,u=o.className,c=o.defaultValue,p=o.disabled,d=o.readOnly,f=o.required,h=o.rows,v=o.id,m=o.name,g=o.placeholder,b=o.style,y=o.tabIndex,O=o.value,k=o.valid,w=o.validationMessage,C=o.validityStyles,x=o.onChange,E=o.onFocus,D=o.onBlur,I=(o.visited,o.touched,o.modified,Mt(o,["ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),_=r.useRef(null),P=r.useCallback((function(){_.current&&_.current.focus()}),[]),S=r.useCallback((function(){return{element:_,focus:P,get name(){return _.current&&_.current.name}}}),[P]);r.useImperativeHandle(t,S);var j=r.useState(c),N=j[0],F=j[1],M=r.useState("auto"),T=M[0],R=M[1],L=r.useMemo((function(){return Object(i.guid)()}),[]),V=Object(i.useDir)(_,n.dir),B=void 0!==O,A=B?O:N,K=void 0!==k?k:!f||!!A;r.useEffect((function(){_.current&&_.current.setCustomValidity&&_.current.setCustomValidity(K?"":w||"")}),[K,w]),r.useLayoutEffect((function(){_.current&&R(_.current.scrollHeight+"px")}),[A]);var q=r.useCallback((function(e){var t=e.target.value;B||p||(R("auto"),F(t)),x&&!p&&Object(i.dispatchEvent)(x,e,S(),{value:t})}),[F,x,p,B]),H=r.useCallback((function(e){E&&!p&&Object(i.dispatchEvent)(E,e,S(),void 0)}),[E,p]),z=r.useCallback((function(e){D&&!p&&Object(i.dispatchEvent)(D,e,S(),void 0)}),[D,p]),U={className:Object(i.classNames)("k-textarea",{"k-state-invalid":!(K||void 0!==C||!0===C),"k-state-disabled":p},u),style:b,dir:V},W=Ft({id:v||L,name:m,className:"k-input",ref:_,disabled:p,rows:h,placeholder:g,readOnly:d,required:f,tabIndex:Object(i.getTabIndex)(y,p),style:l?{resize:"none",overflow:"hidden",height:T}:{},"aria-labelledby":s,"aria-describedby":a,"aria-multiline":!0,"aria-disabled":p||void 0,value:B?O:N},I,{onChange:q,onFocus:H,onBlur:z});return r.createElement("span",Ft({},U),r.createElement("textarea",Ft({},W)))}));Rt.propTypes={ariaDescribedBy:o.string,ariaLabelledBy:o.string,autoSize:o.bool,className:o.string,defaultValue:o.string,dir:o.string,disabled:o.bool,readOnly:o.bool,rows:o.number,id:o.string,name:o.string,placeholder:o.string,style:o.object,tabIndex:o.number,value:o.oneOfType([o.string,o.arrayOf(o.string),o.number]),onChange:o.func,onFocus:o.func,onBlur:o.func},Rt.displayName="KendoTextArea";var Lt=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),a=Object(i.useDir)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e,value:e.value}})),r.useImperativeHandle(t,(function(){return n.current}));var s=r.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=r.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),u=r.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),p=r.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),d=r.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=r.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return r.createElement("span",{id:e.id,ref:o,dir:a,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:Object(i.classNames)("k-rating-item",{"k-rtl":"rtl"===a,"k-state-selected":e.selected,"k-state-hovered":e.hovered},e.className),onClick:s,onKeyDown:l,onFocus:u,onBlur:c,onMouseEnter:d,onMouseLeave:f,onMouseMove:p},e.children)})),Vt={id:o.string,icon:o.any,dir:o.oneOf(["ltr","rtl"]),title:o.string,value:o.number,half:o.bool,selected:o.bool,hovered:o.bool};Lt.displayName="KendoReactRatingItem",Lt.propTypes=Vt,Lt.defaultProps={dir:"ltr"};var Bt,At=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},Kt=function(e,t,n){return At(e-n,n)<t&&t<e},qt=function(e,t,n,r){return null!==t&&("continues"===r?Kt(e,t,n)?At(e-n/2,n/2)<=t:e<=t:"single"===r&&(Kt(e,t,n)?At(e-n/2,n/2)===t:e===t))},Ht=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},zt=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(Bt||(Bt={}));var Ut=function(){return(Ut=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)},Wt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=function(e,t){switch(t.type){case Bt.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?At(t.payload,t.step):t.max:t.min;case Bt.deselect:return null;case Bt.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?At(e+t.step,t.step):t.max;case Bt.decrease:return void 0===t.step?e:At(e-t.step,t.step)>=t.min?At(e-t.step,t.step):t.min;case Bt.min:return void 0===t.step?e:t.min;case Bt.max:return t.max;case Bt.reset:return null;default:return e}}(t.state||i,Ut({},e,t));n&&n(r,e.event),a(r)}]},Yt=Object(i.createPropsContext)(),Gt=r.forwardRef((function(e,t){var n,o,a,s,l=Object(i.usePropsContext)(Yt,e),u=r.useRef(null),c=r.useRef(null),p=Object(i.useDir)(c,l.dir);r.useImperativeHandle(u,(function(){return{element:c.current,props:l}})),r.useImperativeHandle(t,(function(){return u.current}));for(var d,f,h=r.useCallback((function(e,t){l.onChange&&u.current&&l.onChange.call(void 0,{value:e,target:u.current,syntheticEvent:t})}),[l.onChange]),v=r.useMemo((function(){return void 0!==l.min?l.min:Zt.min}),[l.min]),m=r.useMemo((function(){return void 0!==l.max?l.max:Zt.max}),[l.max]),g=r.useMemo((function(){return l.precision||Zt.precision}),[l.precision]),b=r.useMemo((function(){return void 0!==l.step?l.step:Zt.step}),[l.step]),y=r.useMemo((function(){return l.readonly||Zt.readonly}),[l.readonly]),O=r.useMemo((function(){return l.disabled||Zt.disabled}),[l.disabled]),k=r.useMemo((function(){return l.item||Zt.item}),[l.item]),w=Wt(l.defaultValue||Zt.defaultValue,{state:l.value,min:v,max:m,step:"half"===g?b/2:b},h),C=w[0],x=w[1],E=Wt(null,{state:l.value,min:v,max:m,step:"half"===g?b/2:b,precision:g}),D=E[0],I=E[1],_=r.useMemo((function(){return l.value||C}),[l.value,C]),P=r.useMemo((function(){return D}),[D]),S=r.useMemo((function(){return l.selection||Zt.selection}),[l.selection]),j=r.useMemo((function(){return b/("half"===g?2:1)}),[b,g]),N=r.useCallback((function(e){if(e.target&&e.target.element&&!y&&!O){if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ht(p||"ltr",t,e.syntheticEvent.clientX)?At(e.target.value-b/2,j):e.target.value;x({type:Bt.select,payload:n,event:e.syntheticEvent})}else x({type:Bt.select,payload:e.target.value,event:e.syntheticEvent});l.onClick&&l.onClick.call(void 0,{value:_,target:u.current,syntheticEvent:e.syntheticEvent})}}),[l.onClick,x,_]),F=r.useCallback((function(e){if(!y&&!O){switch(e.keyCode){case i.Keys.right:e.preventDefault(),x({type:"rtl"===p?Bt.decrease:Bt.increase,event:e});break;case i.Keys.left:e.preventDefault(),x({type:"rtl"===p?Bt.increase:Bt.decrease,event:e});break;case i.Keys.home:e.preventDefault(),x({type:"rtl"===p?Bt.min:Bt.max,event:e});break;case i.Keys.end:e.preventDefault(),x({type:"rtl"===p?Bt.max:Bt.min,event:e});break;case i.Keys.esc:e.preventDefault(),x({type:Bt.deselect,event:e})}l.onKeyDown&&l.onKeyDown.call(void 0,{value:_,target:u.current,syntheticEvent:e})}}),[l.onKeyDown,x,_]),M=r.useCallback((function(e){l.onFocus&&l.onFocus.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onFocus]),T=r.useCallback((function(e){l.onBlur&&l.onBlur.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onBlur]),R=r.useCallback((function(e){if(e.target&&e.target.element)if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ht(p||"ltr",t,e.syntheticEvent.clientX)?e.target.value-b/2:e.target.value;I({type:Bt.select,payload:n,event:e.syntheticEvent})}else I({type:Bt.select,payload:e.target.value,event:e.syntheticEvent})}),[g,b,p]),L=r.useCallback((function(e){I({type:Bt.reset,event:e.syntheticEvent})}),[]),V=[],B=(d=At(m-v,j))-(f=b)*Math.floor(d/f),A=v;A<=m;A=At(A+b,j)){var K=At(A+B,j),q="half"===g&&Kt(K,null!==P?P:null!==_?_:0,b),H=qt(K,_,b,S),z=qt(K,null!==P?P:_,b,S),U=qt(K,P,b,S);V.push(r.createElement(k,{key:K,value:K,dir:p,title:String(q?At(K-b/2,j):K),icon:l.icon,half:q,selected:H||z,hovered:U,onClick:N,onMouseMove:R,onMouseLeave:L},q&&r.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===p?"right":"left"]="50%",n)},r.createElement("span",{className:Object(i.classNames)("k-icon",(o={"k-i-star-outline":!l.icon},o[l.icon+"-outline"]=l.icon,o))})),q&&r.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},r.createElement("span",{className:Object(i.classNames)("k-icon",(a={"k-i-star":!l.icon},a[""+l.icon]=l.icon,a))})),q&&r.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!q&&r.createElement("span",{className:Object(i.classNames)("k-icon",(s={"k-i-star":!l.icon&&(U||z&&!U),"k-i-star-outline":!l.icon&&!U},s[""+l.icon]=l.icon&&(U||z&&!U),s[l.icon+"-outline"]=l.icon&&!U,s))})))}return r.createElement("span",{id:l.id,style:l.style,ref:c,role:"slider",dir:p,tabIndex:Object(i.getTabIndex)(l.tabIndex,l.disabled,void 0),className:Object(i.classNames)("k-rating k-widget",{"k-rtl":"rtl"===p,"k-state-readonly":y,"k-state-disabled":O},l.className),onKeyDown:F,onFocus:M,onBlur:T,"aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":null!==_?_:void 0,"aria-disabled":O?"true":void 0,"aria-labelledby":l.ariaLabelledBy,"aria-describedby":l.ariaDescribedBy},r.createElement("input",{id:"rating",className:"k-hidden",readOnly:y,disabled:O}),r.createElement("span",{className:"k-rating-container"},V),l.label&&r.createElement("span",{className:"k-rating-label"},l.label))})),Xt={id:o.string,dir:o.oneOf(["ltr","rtl"]),selection:o.oneOf(["continues","single"]),precision:o.oneOf(["item","half"]),value:function(e,t,n){if(e.value&&e.min&&e.max&&e.step&&(!("half"===e.precision?zt(e.min,e.max,e.step/2,e.value):zt(e.min,e.max,e.step,e.value))&&"half"===e.precision))return new Error("Invalid prop + "+t+" supplied to "+n+".\n The value of the { value } property is not correct, please check your values.\n ");return null},defaultValue:o.number,min:o.number,max:o.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + "+t+" supplied to "+n+'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n '):null},hovered:o.number,label:o.string,readonly:o.bool,disabled:o.bool,half:o.bool,icon:o.string,ariaDescribedBy:o.string},Zt={dir:"ltr",min:1,max:5,step:1,item:Lt,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};Gt.displayName="KendoReactRating",Gt.propTypes=Xt,Gt.defaultProps=Zt},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.generateNavigatableId=function(e,t,n){return void 0===n&&(n="cell"),t+"_"+e+"_"+n},t.getNavigatableLevel=function(e){if(e)return parseInt(e.getAttribute(r.KEYBOARD_NAV_DATA_LEVEL)||"",10)},t.getNavigatableId=function(e){if(e){var t=e.getAttribute(r.KEYBOARD_NAV_DATA_ID);return t||void 0}},t.isNavigatable=function(e){if(!e)return!1;var t=e.getAttribute(r.KEYBOARD_NAV_DATA_ID);return Boolean(t)},t.getNavigatableElement=function(e,t){return void 0===t&&(t={level:0}),e.querySelector("["+r.KEYBOARD_NAV_DATA_LEVEL+"='"+t.level+"']")},t.getClosestNavigatableElement=function(e){return e.parentElement&&e.parentElement.closest("["+r.KEYBOARD_NAV_DATA_LEVEL+"]")},t.getActiveElement=function(e,t){return e.querySelector("["+r.KEYBOARD_NAV_DATA_ID+"='"+t+"']")},t.getClosestScope=function(e){return e.parentElement&&e.parentElement.closest("["+r.KEYBOARD_NAV_DATA_SCOPE+"]")},t.getHeaderElement=function(e){return e.querySelector("["+r.KEYBOARD_NAV_DATA_HEADER+"]")},t.getBodyElement=function(e){return e.querySelector("["+r.KEYBOARD_NAV_DATA_BODY+"]")},t.getFocusableElements=function(e,t){void 0===t&&(t={focusable:!1});var n=t.focusable?r.FOCUSABLE_ELEMENTS:r.TABBABLE_ELEMENTS;return Array.from(e.querySelectorAll(n.join(",")))},t.getNavigatableElements=function(e,t){if(void 0===t&&(t={level:0}),!e)return[];var n=r.FOCUSABLE_ELEMENTS.map((function(e){return e+"["+r.KEYBOARD_NAV_DATA_LEVEL+"='"+t.level+"']"})).join(",");return Array.from(e.querySelectorAll(n))},t.filterNavigatableElements=function(e){void 0===e&&(e={level:0});var t=r.FOCUSABLE_ELEMENTS.map((function(t){return t+"["+r.KEYBOARD_NAV_DATA_LEVEL+"='"+e.level+"']"})).join(",");return function(e){return e.matches(t)}},t.focusElement=function(e){var n=e.elementForFocus,r=e.event,o=e.contextStateRef,i=e.prevElement;o.current&&n&&n.focus&&(r.preventDefault(),n.focus(),t.isNavigatable(n)&&(n.setAttribute("tabIndex","0"),o.current.activeId=t.getNavigatableId(n)),i&&t.isNavigatable(i)&&i.setAttribute("tabIndex","-1"))},t.getIdPrefix=function(e){return e.current?e.current.idPrefix:""},t.findNextIdByRowIndex=function(e,t,n,r,o){if(!n)return[];for(var i=e+(o?-1:1);i>=0&&i<r.length;){var a=r[i][t];if(a!==n)return[a,[i,t]];i+=o?-1:1}return[]},t.findNextIdByCellIndex=function(e,t,n,r,o){if(!n)return[];for(var i=t+(o?-1:1);i>=0&&i<r[e].length;){var a=r[e][i];if(a!==n)return[a,[e,i]];i+=o?-1:1}return[]},t.findId=function(e,t){if(t)for(var n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++)if(e[n][r]===t)return[n,r]},t.getNextNavigationIndex=function(e){return e.current?e.current.navigationMatrix.length:0},t.getFilterColumnId=function(e){return e?""+e+r.KEYBOARD_NAV_FILTER_COL_SUFFIX:""},t.tableKeyboardNavigationTools={generateNavigatableId:t.generateNavigatableId,getNavigatableId:t.getNavigatableId,getNavigatableLevel:t.getNavigatableLevel,getNavigatableElement:t.getNavigatableElement,getClosestNavigatableElement:t.getClosestNavigatableElement,getActiveElement:t.getActiveElement,getClosestScope:t.getClosestScope,getHeaderElement:t.getHeaderElement,getBodyElement:t.getBodyElement,getFocusableElements:t.getFocusableElements,getNavigatableElements:t.getNavigatableElements,filterNavigatableElements:t.filterNavigatableElements,focusElement:t.focusElement,getIdPrefix:t.getIdPrefix,isNavigatable:t.isNavigatable,findNextIdByRowIndex:t.findNextIdByRowIndex,findNextIdByCellIndex:t.findNextIdByCellIndex,findId:t.findId,getNextNavigationIndex:t.getNextNavigationIndex,getFilterColumnId:t.getFilterColumnId}},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-data-tools",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639474130,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";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(27);t.HeaderThElement=function(e){var t=e.ariaSort,n=e.colSpan,a=e.rowSpan,s=e.className,l=e.style,u=e.columnId,c=e.onKeyDown,p=e.navigatable,d=e.ariaColumnIndex,f=e.ariaLabel,h=e.role,v=e.ariaSelected,m=i.useTableKeyboardNavigation(u,p);return o.createElement("th",r({"aria-sort":t,"aria-label":f,"aria-colindex":d,"aria-selected":v,colSpan:n,rowSpan:a,className:s,style:l,onKeyDown:c,role:h},m),e.children)},t.HeaderThElement.displayName="KendoReactHeaderThElement"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=[{text:r.filterContainsOperator,operator:"contains"},{text:r.filterNotContainsOperator,operator:"doesnotcontain"},{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"},{text:r.filterStartsWithOperator,operator:"startswith"},{text:r.filterEndsWithOperator,operator:"endswith"},{text:r.filterIsNullOperator,operator:"isnull"},{text:r.filterIsNotNullOperator,operator:"isnotnull"},{text:r.filterIsEmptyOperator,operator:"isempty"},{text:r.filterIsNotEmptyOperator,operator:"isnotempty"}],i=[{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"},{text:r.filterGteOperator,operator:"gte"},{text:r.filterGtOperator,operator:"gt"},{text:r.filterLteOperator,operator:"lte"},{text:r.filterLtOperator,operator:"lt"},{text:r.filterIsNullOperator,operator:"isnull"},{text:r.filterIsNotNullOperator,operator:"isnotnull"}],a=[{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"},{text:r.filterAfterOrEqualOperator,operator:"gte"},{text:r.filterAfterOperator,operator:"gt"},{text:r.filterBeforeOperator,operator:"lt"},{text:r.filterBeforeOrEqualOperator,operator:"lte"},{text:r.filterIsNullOperator,operator:"isnull"},{text:r.filterIsNotNullOperator,operator:"isnotnull"}],s=[{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"}],l=function(){function e(){}return Object.defineProperty(e,"text",{get:function(){return o.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numeric",{get:function(){return i.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"date",{get:function(){return a.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"boolean",{get:function(){return s.slice()},enumerable:!0,configurable:!0}),e}();t.Operators=l,t.stringOperator=function(e){return"contains"===e||"doesnotcontain"===e||"startswith"===e||"endswith"===e},t.unaryOperator=function(e){return"isnull"===e||"isnotnull"===e||"isempty"===e||"isnotempty"===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TABLE_ROW_INDEX_ATTRIBUTE="data-grid-row-index",t.TABLE_COL_INDEX_ATTRIBUTE="data-grid-col-index",t.TABLE_PREVENT_SELECTION_ELEMENT="data-prevent-selection"},function(e,t,n){"use strict";n.r(t),n.d(t,"PickerWrap",(function(){return zt})),n.d(t,"ToggleButton",(function(){return Ht})),n.d(t,"Calendar",(function(){return ft})),n.d(t,"CalendarPropsContext",(function(){return dt})),n.d(t,"CalendarViewEnum",(function(){return k})),n.d(t,"CalendarCell",(function(){return P})),n.d(t,"CalendarWeekCell",(function(){return F})),n.d(t,"CalendarHeaderTitle",(function(){return je})),n.d(t,"CalendarNavigationItem",(function(){return rt})),n.d(t,"DateInput",(function(){return Kt})),n.d(t,"DateInputPropsContext",(function(){return At})),n.d(t,"DatePicker",(function(){return Jt})),n.d(t,"DatePickerPropsContext",(function(){return $t})),n.d(t,"TimePicker",(function(){return Un})),n.d(t,"TimePickerPropsContext",(function(){return zn})),n.d(t,"MultiViewCalendar",(function(){return nr})),n.d(t,"MultiViewCalendarPropsContext",(function(){return tr})),n.d(t,"DateRangePicker",(function(){return lr})),n.d(t,"DateRangePickerPropsContext",(function(){return sr})),n.d(t,"DateTimePicker",(function(){return mr})),n.d(t,"DateTimePickerPropsContext",(function(){return vr}));var r,o,i,a,s,l=n(1),u=n(0),c=n(2),p=n(3),d=n(4),f={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639473940,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"},h=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}(),v=function(e){return Math.max(e,0)},m=function(e){this.offset=e},g=function(e){this.skip=e},b=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,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=o,this.bottomOffset=i,this.direction=a;var s=this.rowsForHeight(o),l=v(t-s);this.onScrollAction(new m(this.rowOffset(l))),this.onPageAction(new g(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,o=e.offsetWidth,i="vertical"===this.direction?n:t,a="vertical"===this.direction?r:o;if(this.lastScrollTop!==i){var s=this.lastScrollTop>=i;this.lastScrollTop=i;var l=this.rowHeightService.index(v(i-this.topOffset)),u=this.rowHeightService.index(v(i+a-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new m(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(this.firstLoaded))),s&&l<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=v(l-c),this.onScrollAction(new m(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(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}(),y=(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)});!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(s||(s={}));var O,k,w=((o={})[s.Forward]=function(e){return function(t){return t+e}},o[s.Backward]=function(e){return function(t){return t-e}},o),C=((i={})[s.Forward]=function(e){return function(t){return Math.min(t,e)}},i[s.Backward]=function(e){return function(t){return Math.max(t,e)}},i),x=((a={})[s.Forward]=function(e){return function(t){return t<e}},a[s.Backward]=function(e){return function(t){return t>e}},a),E=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=w[n](s),u=C[n](a),c=x[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,l=r.containerMaxScroll(),u=t===s.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference,Math.min(Math.abs(i-o),a)),p=Math.min(e,l);return{start:Math.min(Math.max(p+u*c,0),l),end:p}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?s.Backward:s.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 h(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 b(r.handleScrollAction,r.handlePageAction),r}return y(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=Object(c.classNames)("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=Object(c.classNames)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return l.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,l.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:u.number.isRequired,className:u.string,direction:u.oneOf(["horizontal","vertical"]),forceScroll:u.bool,itemHeight:u.number,itemWidth:u.number,maxScrollDifference:u.number,onScroll:u.func,onScrollAction:u.func,scrollDuration:u.number,scrollOffsetSize:u.number,skip:u.number.isRequired,tabIndex:u.number,take:u.number.isRequired,topOffset:u.number.isRequired,total:u.number.isRequired,role:u.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(l.Component),D=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)}}(),I=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)},_=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},P=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 D(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=_(t,["value"]),o=e.value,i=_(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),i=e.isRangeStart,a=e.isRangeMid,s=e.isRangeEnd,u=e.isRangeSplitStart,p=e.isRangeSplitEnd,d=e.isToday,f=e.isDisabled,h=(e.view,e.value,_(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),v="end"===this.props.activeRangeEnd&&s,m="start"===this.props.activeRangeEnd&&i,g=Object(c.classNames)("k-calendar-td",{"k-range-end":s,"k-range-mid":a,"k-range-split-end":p,"k-range-split-start":u,"k-range-start":i,"k-state-active":m||v,"k-state-pending-focus":r,"k-state-selected":o||i||s,"k-today":d,"k-weekend":n,"k-state-disabled":f},t);return l.createElement("td",I({},h,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),l.createElement("span",{className:"k-link"},this.props.children))},t}(l.Component),S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(){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)},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,N(e,["className","firstDate"]));return l.createElement("td",j({className:Object(c.classNames)("k-calendar-td",t)},n),this.props.children)},t}(l.Component);!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"}(O||(O={})),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(k||(k={}));var M={start:null,end:null};function T(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}var R,L,V,B,A,K=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},q=new Date(1980,0,1),H=new Date(1900,0,1),z=new Date(2099,11,31),U=new Date(1980,0,1),W=new Date(1980,0,1,23,59,59),Y=function(e,t){var n=Object(p.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},G=function(){return Object(p.getDate)(new Date)},X=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},Z=function(e,t,n){return null===e||!(t&&Object(p.getDate)(t)>Object(p.getDate)(e)||n&&Object(p.getDate)(n)<Object(p.getDate)(e))},$=function(e,t){var n=t||M,r=n.start,o=n.end;return!(!r||!o)&&(r<e&&e<o)},J=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Q=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},ee=function(e,t){return e.slice(t).concat(e.slice(0,t))},te=function(e,t,n){return e?t&&e<t?Object(p.cloneDate)(t):n&&e>n?Object(p.cloneDate)(n):e:e},ne=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}},re=[[]],oe=((R={})[O.Left]=function(e){return Object(p.addDecades)(e,-1)},R[O.Up]=function(e){return Object(p.addDecades)(e,-5)},R[O.Right]=function(e){return Object(p.addDecades)(e,1)},R[O.Down]=function(e){return Object(p.addDecades)(e,5)},R[O.PrevView]=function(e){return Object(p.addCenturies)(e,-1)},R[O.NextView]=function(e){return Object(p.addCenturies)(e,1)},R[O.FirstInView]=function(e){return Object(p.firstDecadeOfCentury)(e)},R[O.LastInView]=function(e){return Object(p.lastDecadeOfCentury)(e)},R),ie=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(p.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return re;var d=J(0,4),f=Object(p.firstDecadeOfCentury)(c),h=Object(p.lastDecadeOfCentury)(c),v=G();return J(0,3).map((function(e){var l=Object(p.addDecades)(f,4*e);return d.map((function(e){var c=t.normalize(Object(p.addDecades)(l,e),a,i),d=t.isEqual(c,u.start),m=t.isEqual(c,u.end),g=!d&&!m&&$(c,u),b=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return Q(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:b,isWeekend:!1,isInRange:X(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:m,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(p.firstYearOfDecade)(e).getFullYear()===Object(p.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=Object(p.firstYearOfDecade)(e).getFullYear(),o=!t||Object(p.firstYearOfDecade)(t).getFullYear()<=r,i=!n||r<=Object(p.firstYearOfDecade)(n).getFullYear();return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(p.durationInCenturies)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=oe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(p.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(p.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(p.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(p.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(p.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(p.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(p.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(p.durationInCenturies)(e,t)<n?Object(p.addCenturies)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(p.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(p.cloneDate)(n):e},e}(),ae=[[]],se=((L={})[O.Left]=function(e){return Object(p.addYears)(e,-1)},L[O.Up]=function(e){return Object(p.addYears)(e,-5)},L[O.Right]=function(e){return Object(p.addYears)(e,1)},L[O.Down]=function(e){return Object(p.addYears)(e,5)},L[O.PrevView]=function(e){return Object(p.addDecades)(e,-1)},L[O.NextView]=function(e){return Object(p.addDecades)(e,1)},L[O.FirstInView]=function(e){return Object(p.firstYearOfDecade)(e)},L[O.LastInView]=function(e){return Object(p.lastYearOfDecade)(e)},L),le=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(p.addDecades)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return ae;var d=J(0,4),f=Object(p.firstYearOfDecade)(c),h=Object(p.lastYearOfDecade)(c),v=G();return J(0,3).map((function(e){var l=Object(p.addYears)(f,4*e);return d.map((function(e){var c=t.normalize(Object(p.addYears)(l,e),a,i),d=t.isEqual(c,u.start),m=t.isEqual(c,u.end),g=!d&&!m&&$(c,u),b=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return Q(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:b,isWeekend:!1,isInRange:X(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:m,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(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===Object(p.durationInDecades)(e,t)},e.prototype.move=function(e,t){var n=se[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(p.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(p.firstYearOfDecade)(e).getFullYear()+" - "+Object(p.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(p.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(p.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),Object(p.durationInDecades)(e,t)<n?Object(p.addDecades)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(p.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(p.cloneDate)(n):e},e}(),ue=[[]],ce=((V={})[O.Left]=function(e){return Object(p.addDays)(e,-1)},V[O.Up]=function(e){return Object(p.addWeeks)(e,-1)},V[O.Right]=function(e){return Object(p.addDays)(e,1)},V[O.Down]=function(e){return Object(p.addWeeks)(e,1)},V[O.PrevView]=function(e){return Object(p.addMonths)(e,-1)},V[O.NextView]=function(e){return Object(p.addMonths)(e,1)},V[O.FirstInView]=function(e){return Object(p.firstDayOfMonth)(e)},V[O.LastInView]=function(e){return Object(p.lastDayOfMonth)(e)},V),pe=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return Object(p.addMonths)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return ue;var d=Object(p.firstDayOfMonth)(c),f=Object(p.lastDayOfMonth)(c),h=Object(p.dayOfWeek)(d,this.intl.firstDay(),-1),v=J(0,7),m=G();return J(0,6).map((function(e){var l=Object(p.addDays)(h,7*e);return v.map((function(e){var c=t.normalize(Object(p.addDays)(l,e),a,i);if(c<d||c>f)return null;var h=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!h&&!v&&$(c,u),b=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:b,isInRange:X(c,a,i),isWeekend:t.isWeekend(c),isRangeStart:h,isRangeMid:g,isRangeEnd:v,isRangeSplitStart:g&&t.isEqual(c,d),isRangeSplitEnd:g&&t.isEqual(c,f),isToday:t.isEqual(c,m),title:t.cellTitle(c),value:c}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(p.getDate)(e).getTime()===Object(p.getDate)(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&Object(p.firstDayOfMonth)(t[0])<=e&&e<=Object(p.lastDayOfMonth)(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=Object(p.getDate)(e),o=!t||Object(p.getDate)(t)<=r,i=!n||r<=Object(p.getDate)(n);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(p.durationInMonths)(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ce[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 Object(p.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(p.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),Object(p.durationInMonths)(e,t)<n?Object(p.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)?Object(p.getDate)(t):e>n&&this.isEqual(e,n)?Object(p.getDate)(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}(),de=[[]],fe=((B={})[O.Left]=function(e){return Object(p.addMonths)(e,-1)},B[O.Up]=function(e){return Object(p.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},B[O.Right]=function(e){return Object(p.addMonths)(e,1)},B[O.Down]=function(e){return Object(p.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},B[O.PrevView]=function(e){return Object(p.addYears)(e,-1)},B[O.NextView]=function(e){return Object(p.addYears)(e,1)},B[O.FirstInView]=function(e){return Object(p.firstMonthOfYear)(e)},B[O.LastInView]=function(e){return Object(p.lastMonthOfYear)(e)},B),he=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return Object(p.addYears)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return de;var d=this.abbrMonthNames(),f=Object(p.firstMonthOfYear)(c),h=Object(p.lastMonthOfYear)(c),v=f.getFullYear(),m=J(0,4),g=G();return J(0,3).map((function(e){var l=Object(p.addMonths)(f,4*e);return m.map((function(e){var c=t.normalize(Object(p.addMonths)(l,e),a,i);if(v<c.getFullYear())return null;var m=t.isEqual(c,u.start),b=t.isEqual(c,u.end),y=!m&&!b&&$(c,u),O=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return{formattedValue:d[c.getMonth()],id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:O,isInRange:X(c,a,i),isWeekend:!1,isRangeStart:m,isRangeMid:y,isRangeEnd:b,isRangeSplitEnd:y&&t.isEqual(c,h),isRangeSplitStart:y&&t.isEqual(c,f),isToday:t.isEqual(c,g),title:t.cellTitle(c),value:c}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(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=Object(p.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||Object(p.createDate)(t.getFullYear(),t.getMonth(),1)<=r,i=!n||r<=Object(p.createDate)(n.getFullYear(),n.getMonth(),1);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(p.durationInYears)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=fe[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 Object(p.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(p.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),Object(p.durationInYears)(e,t)<n?Object(p.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)?Object(p.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(p.cloneDate)(n):e},e}(),ve=((A={})[k.month]=pe,A[k.year]=he,A[k.decade]=le,A[k.century]=ie,A),me=function(){function e(e){this.bottom=k.month,this.top=k.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 ve[""+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=k[k[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}(),ge=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(c.canUseDOM){var n,r=ne("div"),o=ne("ul"),i=ne("li"),a=ne("td"),s=ne("th"),l=ne("tr"),u=ne("tbody"),p=ne("thead"),d=ne("table"),f=function(){return r('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},h=function(e,t){return new Array(e).fill("1").map(t)},v=function(e){return r(e,"k-content k-scrollable")},m=function(){return c.canUseDOM?(n||(n=r([v([o([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null},g=function(e,t,n){var o,i=e.cells,m=e.rows;return function(){return c.canUseDOM?(o||(o=function(e,t,n){return r(n?[f(),d([p([l([s("MO")])])],"k-calendar-weekdays"),v([e,e])]:[f(),v([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),d([u([l([s("1")])].concat(h(e,(function(){return l(h(t,(function(e){return a('<span class="k-link">'+e+"</span>")})))}))))])}(m,i),t,n)),o):null}},b=function(e){return e.querySelector(".k-scrollable")},y=function(e){var t=b(e);return t.className=t.className+" k-scrollable-horizontal",e},O=g({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),k=g({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),w=g({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(O(),(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(y(O()),(function(e){var n=E(e);t.calendarWidth=x(e),t.monthViewWidth=x(n),t.scrollableContentWidth=x(b(e))})),this.batch(k(),(function(e){t.yearViewHeight=C(E(e)),t.scrollableYearContentHeight=C(b(e))})),this.batch(y(k()),(function(e){t.yearViewWidth=x(E(e))})),this.batch(w(),(function(e){t.decadeViewHeight=C(E(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(y(w()),(function(e){t.decadeViewWidth=x(E(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(m(),(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 k.month:return this["month"+n];case k.year:return this["year"+n];case k.decade:return this["decade"+n];case k.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}(),be={33:O.PrevView,34:O.NextView,35:O.LastInView,36:O.FirstInView,37:O.Left,38:O.Up,39:O.Right,40:O.Down,"meta+38":O.UpperView,"meta+40":O.LowerView},ye=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return be[t]},e.prototype.move=function(e,t,n,r,o){return r?t===O.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,o),e):t===O.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,o),e):r.move(e,t):e},e}(),Oe=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}(),ke=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ee(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}(),we=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)}}(),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){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")},Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return xe("week-cell-"+n);var r=t.firstDate(e),o=t.getWeekNumber(r),i="kendo-react-calendar-week-cell-"+o,a={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?l.createElement(t.props.weekCell,Ce({},a,{key:i}),o):l.createElement(F,Ce({},a,{key:i}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return xe(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-"+e.value.getTime(),i=Ce({},r,e,{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?l.createElement(t.props.cell,Ce({},i,{key:o}),e.formattedValue):l.createElement(P,Ce({},i,{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:Object(p.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,Object(p.cloneDate)(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,Object(p.cloneDate)(e))},t}return we(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===k.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===k.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=Object(d.provideIntlService)(this),this.weekService=new ke(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=G(),i=Y(this.props.viewDate,o),a=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 l.createElement(l.Fragment,null,this.isMonthView&&this.isHorizontal&&l.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},l.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))),l.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&l.createElement("tr",{role:"presentation",className:"k-calendar-tr"},l.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),a.map((function(t,n){return l.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?Object(p.weekInYear)(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:G(),showWeekNumbers:!1},t}(l.Component);Object(d.registerForIntl)(Ee);var De,Ie=n(5),_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)}}(),Pe=function(){return(Pe=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},je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,Se(e,["view"]));return l.createElement(Ie.Button,Pe({type:"button",look:"flat"},t),this.props.children)},t}(l.PureComponent),Ne=new Date(1980,0,1),Fe=new Date(1900,0,1),Me=new Date(2099,11,31),Te=new Date(1980,0,1),Re=new Date(1980,0,1,23,59,59),Le=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)}}(),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)},Be=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 Le(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=Object(c.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?l.createElement(this.props.headerTitle,Ve({},n),e):l.createElement(je,Ve({},n),e);return l.createElement("div",{className:"k-calendar-header k-hstack"},r,l.createElement("span",{className:"k-spacer"}),l.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},t.propTypes={activeView:u.number.isRequired,currentDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,rangeLength:u.number},t.defaultProps={rangeLength:1,min:Fe,max:Me},t}(l.Component);Object(d.registerForLocalization)(Be);var Ae="multiviewcalendar.prevView",Ke="multiviewcalendar.nextView",qe="dateinput.increment",He="dateinput.decrement",ze="daterangepicker.swapStartEnd",Ue="daterangepicker.separator",We="datetimepicker.toggleDateTimeSelector",Ye="timepicker.selectNow",Ge="timepicker.toggleClock",Xe=((De={})["calendar.today"]="TODAY",De["timepicker.now"]="NOW",De["timepicker.set"]="Set",De["timepicker.cancel"]="Cancel",De["datetimepicker.date"]="Date",De["datetimepicker.time"]="Time",De["datetimepicker.cancel"]="Cancel",De["datetimepicker.set"]="Set",De["daterangepicker.start"]="Start",De["daterangepicker.end"]="End",De[Ue]=" ",De[Ye]="Select Now",De["timepicker.toggleTimeSelector"]="Toggle TimeSelector",De[Ge]="Toggle Clock",De[qe]="Increase value",De[He]="Decrease value",De["datepicker.toggleCalendar"]="Toggle calendar",De[Ae]="Navigate to previous view",De[Ke]="Navigate to next view",De[ze]="Swap start and end values",De[We]="Toggle date-time selector",De),Ze=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)}}(),$e=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:te(G(),t.min,t.max),target:t,isTodayClick:!0})},t}return Ze(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 X(G(),Object(p.getDate)(this.min),Object(p.getDate)(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=Object(d.provideLocalizationService)(this);var e=this.localization.toLanguageString("calendar.today",Xe["calendar.today"]),t=Object(c.classNames)("k-nav-today",{"k-state-disabled":this.props.disabled});return l.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onClick:u.func,disabled:u.bool},t.defaultProps={min:Fe,max:Me},t}(l.Component);Object(d.registerForLocalization)($e);var Je=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)}}(),Qe=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=te(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 l.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),l.createElement("thead",{className:"k-calendar-thead"},l.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return l.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),t.map((function(e){return l.createElement(Ee,{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===k.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:Object(p.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 Je(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=Object(d.provideIntlService)(this);var e=ee(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===k.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 X(G(),Object(p.getDate)(this.props.min),Object(p.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=te(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),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.addToDate(this.props.min,this.state.index),u=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),d=this.props.activeView!==this.lastView;this.animateToIndex=!d,(d||!Object(p.isEqualDate)(this.lastFocus,n)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n;var f=Object(c.classNames)("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===k.month,"k-calendar-yearview":this.props.activeView===k.year,"k-calendar-decadeview":this.props.activeView===k.decade,"k-calendar-centuryview":this.props.activeView===k.century}),h=this.buildDates(u,this.props.service.datesList(a,i)),v=l.createElement(l.Fragment,null,l.createElement(Be,{key:"calendar-view-list-header",currentDate:s,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement($e,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===k.month&&this.buildMonthView(u,this.weekNames),l.createElement(E,{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:h}));return l.createElement("div",{ref:function(t){e._element=t},className:f},this.props.dom.didCalculate?v:null)},t.propTypes={activeView:u.number.isRequired,bottomOffset:u.number,cellUID:u.string.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,showWeekNumbers:u.bool,smoothScroll:u.bool,take:u.number,value:u.instanceOf(Date),viewHeight:u.number,viewOffset:u.number},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(l.Component);Object(d.registerForIntl)(Qe);var et=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)}}(),tt=function(){return(tt=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)},nt=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},rt=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 et(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,nt(e,["isRangeStart","value","text"]));return l.createElement("li",tt({},n,{onClick:this.handleClick}),l.createElement("span",{className:Object(c.classNames)({"k-calendar-navigation-marker":t})},this.props.children))},t}(l.Component),ot=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)}}(),it=function(){return(it=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)},at=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=te(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(),i={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?l.createElement(n.props.navigationItem,it({},i,{key:o}),t):l.createElement(rt,it({},i,{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:Object(p.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 ot(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=te(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),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.datesList(a,i);this.props.activeView===this.lastView&&Object(p.isEqual)(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var u=l.createElement(E,{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},l.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},s.map((function(t){return e.buildNavigationItem(t)}))));return l.createElement("div",{className:"k-calendar-navigation"},l.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?u:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:u.number.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,take:u.number},t.defaultProps={take:30},t}(l.Component),st=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)}}(),lt=function(){return(lt=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)},ut=function(e){return e?e.virtualization:null},ct=function(e,t,n,r){return void 0===e&&(e=pt.defaultProps.min),void 0===t&&(t=pt.defaultProps.max),void 0!==r?null!==r&&X(Object(p.getDate)(r),e,t)?r:null:null!==n&&X(Object(p.getDate)(n),e,t)?n:null},pt=function(e){function t(n){var r=e.call(this,n)||this;r.cellUID=Object(c.guid)(),r.id=Object(c.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(ut(r.Navigation),ut(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=Object(p.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=Object(p.cloneDate)(e.value),n=Object(p.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===c.Keys.enter){if(null!==r.value&&Object(p.isEqualDate)(r.focusedDate,r.value)){var t=te(r.focusedDate,r.min,r.max);ut(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=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(p.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})},Object(c.validatePackage)(f);var o=ct(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:K(k[n.defaultActiveView],r.bottomView,r.topView),focusedDate:te(n.focusedDate||o||G(),r.min,r.max)},r.dom=new ge,r.bus=new me(r.handleViewChange),r.navigation=new ye(r.bus),r.oldValue=o,r}return st(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 Object(p.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(p.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return k[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return k[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 Oe(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?!Object(p.isEqualDate)(this.value,this.oldValue):this.value!==this.oldValue,r=K(this.state.activeView,k[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],k[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=ct(this.min,this.max,this.value,this.value),i=o?Object(p.getDate)(o):null;this.focusedDate=Object(p.getDate)(te(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=Object(d.provideIntlService)(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var a=Object(c.classNames)("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),s={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},u=[this.props.navigation&&l.createElement(at,{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}),l.createElement(Qe,{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:i,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return l.createElement("div",lt({},s,{ref:function(t){e._element=t},className:a,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}),u)},t.displayName="Calendar",t.propTypes={className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),navigation:u.bool,smoothScroll:u.bool,onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,value:u.instanceOf(Date),weekNumber:u.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&k[r]<k[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&&k[r]>k[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},t.defaultProps={disabled:!1,min:Fe,max:Me,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(l.Component),dt=Object(c.createPropsContext)(),ft=Object(c.withPropsContext)(dt,pt);ft.displayName="KendoReactCalendar",Object(d.registerForIntl)(pt);var ht=function(){this.symbols=""},vt=function(e,t){return e[t.pattern[0]]=t.type,e},mt=["k-widget","k-dateinput"],gt=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=Object(p.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?Object(p.isEqual)(e,this._value)||(this._value=Object(p.cloneDate)(e),this.modifyExisting(!0)):(this._value=Object(p.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 Object(p.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=Object(p.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(p.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 r=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),i=o.symbols,a=!1,s="",l="",u="",c=0;c<r.length;c++)i[c]===e?(l+=this.getExisting(e)?r[c]:"0",a=!0):a?u+=r[c]:s+=r[c];for(var d=null,f=this.matchMonth(t);l.length>0&&"0"===l.charAt(0);)l=l.slice(1);l.length>=4&&(l="");for(c=0;c<2;c++){var h=l+t,v=parseInt(h,10);if(!(d=this.intl.parseDate(s+h+u,this.format))&&!isNaN(v)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var m=v-1;m>-1&&m<12&&((d=Object(p.cloneDate)(this.value)).setMonth(m),d.getMonth()!==m&&(d=Object(p.lastDayOfMonth)(Object(p.addMonths)(d,-1))))}"y"===e&&(d=Object(p.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=Object(p.lastDayOfMonth)(Object(p.addMonths)(d,-1))))}if(d)return this._value=d,this.setExisting(e,!0),{value:this.value};l=""}return f&&(d=this.intl.parseDate(s+f+u,this.format))?(this._value=d,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(o.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(vt,{})[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=[],o=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(e,{pattern:n[i].pattern}).length;a>0;)r.push(this.symbols[n[i].pattern[0]]||"_"),o.push(n[i]),a--;var s=new ht;return s.symbols=r.join(""),s.partMap=o,s},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}(),bt=n(6),yt="dayperiod",Ot="hour",kt="minute",wt="second",Ct=function(e){return function(t,n){var r=Object(p.cloneDate)(t);return r[e](n),r}},xt=[{type:Ot,getter:function(e){return e.getHours()}},{type:kt,getter:function(e){return e.getMinutes()}},{type:wt,getter:function(e){return e.getSeconds()}},{type:"millisecond",getter:function(e){return e.getMilliseconds()}}],Et=function(e){return function(t){return e.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}),{})}(t)))}}(xt),Dt=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}))}}(xt),It=function(e){return function(t){var n=Object(p.cloneDate)(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},_t=Ct("setHours"),Pt=Ct("setMinutes"),St=Ct("setSeconds"),jt=function(){return new Date},Nt=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Ft=function(e,t,n){return{candidateValue:Y(q,e),maxValue:Object(p.addDays)(Y(q,n),t.getHours()<n.getHours()?0:1),minValue:Y(q,t)}},Mt=function(e,t,n){if(!e||!t||!n)return!0;var r=Ft(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},Tt=function(e,t){if(null===e||null===t)return!1;var n=Y(q,e),r=Y(q,t);return n.getTime()<r.getHours()},Rt=function(e,t){if(null===e||null===t)return!1;var n=Y(q,e);return Y(q,t).getTime()<n.getHours()},Lt=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)}}(),Vt=function(){return(Vt=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)},Bt=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.paste=!1,r._element=null,r._wrapper=null,r._inputId=Object(c.guid)(),r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=Object(d.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=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]]]}(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})},Object(c.validatePackage)(f),r.state={focused:!1},r}return Lt(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var n=Object(d.provideLocalizationService)(this),r=Vt({},t.defaultProps,this.props),o=r.min,i=r.max,a=r.name,s=r.label,u=r.id,p=this.text,f=p===this.props.placeholder?"":p,h=p===this.props.placeholder?p:void 0,v=u||this._inputId,m=!this.validityStyles||this.validity.valid,g={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===i?void 0:i.getTime(),"aria-valuetext":f};null!==this.value&&(g["aria-valuenow"]=this.value.getTime());var b=mt.slice();this.props.className&&b.push(this.props.className);var y=l.createElement(c.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var r=t.onFocus,o=t.onBlur;return l.createElement("span",{style:s?void 0:{width:e.props.width},dir:e.props.dir,className:b.join(" "),onFocus:r,onBlur:o},l.createElement("span",{className:Object(c.classNames)("k-dateinput-wrap",{"k-state-disabled":e.props.disabled,"k-state-invalid":!m}),ref:function(t){e._wrapper=t}},l.createElement("input",Vt({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:p,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:v,"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:c.noop,value:f,placeholder:h,name:a},g,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&l.createElement("span",{className:"k-select",onMouseDown:e.spinnersMouseDown},l.createElement("span",{className:"k-link k-link-increase","aria-label":n.toLanguageString(qe,Xe[qe]),title:n.toLanguageString(qe,Xe[qe]),onClick:e.increasePart},l.createElement("span",{className:"k-icon k-i-arrow-n"})),l.createElement("span",{className:"k-link k-link-decrease","aria-label":n.toLanguageString(He,Xe[He]),title:n.toLanguageString(He,Xe[He]),onClick:e.decreasePart},l.createElement("span",{className:"k-icon k-i-arrow-s"})))))}));return s?l.createElement(bt.a,{label:s,editorId:v,editorValue:p,editorValid:m,editorDisabled:this.props.disabled,children:y,style:{width:this.props.width}}):y},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=Vt({},Kt.defaultProps,this.props),n=e.formatPlaceholder,r=void 0===n?t.defaultProps.formatPlaceholder:n,o=e.format,i=void 0===o?t.defaultProps.format:o,a=e.value,s=e.defaultValue;null===this.kendoDate?(this.kendoDate=new gt(this.intl.bind(this),r,i),this.kendoDate.setValue(a||s||null)):(this.kendoDate.format=i,this.kendoDate.formatPlaceholder=r),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var l=this.kendoDate.getTextAndFormat(),u=l.text,c=l.format;return this.currentFormat=c,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?u:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e,t,n,r=(e=this.value,t=this.min,n=this.max,(null===e||!(t&&t>e||n&&n<e))&&Mt(this.value,this.props.minTime,this.props.maxTime)),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:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),t.prototype.intl=function(){return Object(d.provideIntlService)(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),t.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame((function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!Object(p.isEqual)(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.displayName="DateInput",t.propTypes={value:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),width:u.oneOfType([u.string,u.number]),tabIndex:u.number,title:u.string,steps:u.shape({year:u.number,month:u.number,day:u.number,hour:u.number,minute:u.number,second:u.number}),min:u.instanceOf(Date),max:u.instanceOf(Date),disabled:u.bool,spinners:u.bool,name:u.string,dir:u.string,label:u.string,id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaExpanded:u.oneOfType([u.bool]),onChange:u.func,validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={format:"d",formatPlaceholder:"wide",spinners:!1,disabled:!1,max:Object(p.cloneDate)(z),min:Object(p.cloneDate)(H),minTime:Object(p.cloneDate)(Te),maxTime:Object(p.cloneDate)(Re),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(l.Component),At=Object(c.createPropsContext)(),Kt=Object(c.withPropsContext)(At,Bt);Kt.displayName="KendoReactDateInput",Object(d.registerForIntl)(Bt),Object(d.registerForLocalization)(Bt);var qt=n(7),Ht=l.forwardRef((function(e,t){var n=Object(c.classNames)("k-select",e.className);return l.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)})),zt=l.forwardRef((function(e,t){var n=e._ref,r=l.useRef(null);l.useImperativeHandle(t,(function(){return r.current})),l.useImperativeHandle(n,(function(){return r.current}));var o=l.useMemo((function(){return Object(c.classNames)(e.className,"k-picker-wrap")}),[e.className]);return l.createElement("span",{ref:r,id:e.id,style:e.style,className:o,tabIndex:e.tabIndex},e.children)})),Ut=function(){return(Ut=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)},Wt=function(e){var t,n,r,o,i=(t=e.dateInput,n=l.useState(!1),r=n[0],o=n[1],l.useEffect((function(){t.current&&o(Boolean(t.current.text))})),{editorValue:r});return l.createElement(bt.a,Ut({},e,i))},Yt=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)}}(),Gt=function(){return(Gt=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)},Xt=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},Zt=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.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:Object(p.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===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))},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return Yt(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?Object(p.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=Z(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,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,f=t.max,h=t.weekNumber,v=t.focusedDate,m=t.className,g=t.width,b=t.name,y=t.validationMessage,O=t.required,k=t.validityStyles,w=t.ariaLabelledBy,C=t.ariaDescribedBy,x=this.props.popupSettings,E=x.popupClass,D=Xt(x,["popupClass"]),I=this.show,_=this.value,P=_&&Object(p.getDate)(_),S=!this.validityStyles||this.validity.valid,j=Object(c.classNames)("k-widget k-datepicker",m),N=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!S,"k-state-disabled":n,"k-state-focused":this.state.focused}),F=Object(c.classNames)("k-calendar-container k-group k-reset",E),M={disabled:n,format:a,formatPlaceholder:s,id:i,ariaLabelledBy:w,ariaDescribedBy:C,max:f,min:u,name:b,onChange:this.handleInputValueChange,required:O,tabIndex:I?-1:r,title:o,valid:this.validity.valid,validationMessage:y,validityStyles:k,value:_,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},T=Gt({show:I,anchor:this._wrapper||this._element,className:F,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},D),R={disabled:n,value:P,min:u,max:f,weekNumber:h,focusedDate:v,onChange:this.handleCalendarValueChange},L=l.createElement(c.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 l.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:j,onKeyDown:e.handleKeyDown,style:{width:g},onFocus:n,onBlur:r},l.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:N},l.createElement(e.dateInputComp,Gt({_ref:e._dateInput},M)),l.createElement(e.toggleButtonComp,{onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:Object(d.provideLocalizationService)(e).toLanguageString("datepicker.toggleCalendar",Xe["datepicker.toggleCalendar"]),className:"k-select"},l.createElement("span",{className:"k-icon k-i-calendar"}))),l.createElement(e.popupComp,Gt({},T),l.createElement(e.calendarComp,Gt({_ref:e.setCalendarRef},R))))}));return this.props.label?l.createElement(Wt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:S,editorDisabled:this.props.disabled,children:L,style:{width:this.props.width}}):L},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?Y(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:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:Kt,calendar:ft,toggleButton:Ht,popup:qt.Popup,pickerWrap:zt,disabled:!1,format:"d",max:z,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},t}(l.Component),$t=Object(c.createPropsContext)(),Jt=Object(c.withPropsContext)($t,Zt);Jt.displayName="KendoReactDatePicker",Object(d.registerForLocalization)(Zt);var Qt,en,tn,nn=function(e,t){var n=Object(p.cloneDate)(e);return n.setHours(t),n},rn=function(e){return null!==e&&e<12},on=function(e,t,n){return!t&&!n||e>=t&&e<=n},an=function(e,t,n){return!t&&!n||e>=t||e<=n},sn=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),r=rn(n),o=rn(t.getHours());if(r&&o||!r&&!o)return e;var i=this.normalizedRange(),a=i[0],s=i[1],l=void 0===s?24:s,u=n+(o?-12:12);return nn(e,Math.min(Math.max(a,u),l||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=[],o=this.normalizedRange(),i=o[0],a=o[1],s=this.intl.dateFormatNames(t);return rn(i)&&r.push({text:s.am,value:nn(this.min,i)}),null!==(n=a)&&(!n||n>11)&&r.push({text:s.pm,value:nn(this.min,Math.max(12,a))}),this.min.getHours()!==i?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]?an:on)(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}(),ln=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(c.canUseDOM){var t=ne("div"),n=ne("ul"),r=ne("li"),o=t([t([t([n([r("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),i=e&&e.querySelector(".k-time-container")||document.body,a=i.appendChild(o);this.timeListHeight=a.querySelector(".k-scrollable").offsetHeight,this.itemHeight=a.querySelector("li").offsetHeight,i.removeChild(a),this.didCalculate=!0}},e}(),un=(Qt=24,function(e){return e%Qt}),cn=function(e,t){return un(24+e-t)},pn=function(e){return function(t,n){return!n||Object(p.getDate)(t).getTime()===Object(p.getDate)(n).getTime()?t:_t(t,e)}},dn=pn(0),fn=pn(23),hn=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return _t(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,i=void 0===o?this.insertUndividedMax:o,a=e.min,s=void 0===a?this.min:a,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.boundRange=r,this.insertUndividedMax=i,this.toListItem=function(e){var n=_t(q,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 un(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(p.isEqual)(this.min,e)||!Object(p.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[dn(e,n),fn(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(cn(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(_t(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return cn(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}(),vn=function(e){return function(t){return t%e}}(60),mn=function(e,t){return vn(60+e-t)},gn=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:Pt(t,e)}},bn=gn(0),yn=gn(59),On=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Pt(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Pt(q,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return vn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(p.isEqual)(this.min,e)||!Object(p.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[bn(e,n),yn(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(mn(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(Pt(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return mn(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}(),kn=function(e){return function(t){return t%e}}(60),wn=function(e,t){return kn(60+e-t)},Cn=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:St(t,e)}},xn=Cn(0),En=Cn(59),Dn=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return St(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=St(q,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return kn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(p.isEqual)(this.min,e)||!Object(p.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[xn(e,n),En(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 wn(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(wn(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(St(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}(),In=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=((en={})[c.Keys.end]=function(e,t){return e[e.length-1]},en[c.Keys.home]=function(e,t){return e[0]},en[c.Keys.up]=function(e,t){return e[t-1]},en[c.Keys.down]=function(e,t){return e[t+1]},en),Pn=((tn={})[yt]=sn,tn[Ot]=hn,tn[kt]=On,tn[wt]=Dn,tn),Sn=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:Object(p.cloneDate)(r.min),max:Object(p.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=(_n[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 ln,r}return In(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&&Pn[this.props.part.type]){this.calculateHeights(),this.intl=Object(d.provideIntlService)(this),this.service=new Pn[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=l.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return l.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},l.createElement("span",null,t.text))})));return l.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?l.createElement(E,{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}):l.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!Pn[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:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},t.defaultProps={boundRange:!1,max:W,min:q,step:1,smoothScroll:!0},t}(l.Component);Object(d.registerForIntl)(Sn);var jn,Nn=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)}}(),Fn=function(){return(Fn=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)},Mn=new RegExp(Ot+"|"+kt+"|"+wt+"|"+yt+"|literal");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(jn||(jn={}));var Tn=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?Mn.test(r.type||""):Mn.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===jn.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&&Mt(jt(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case c.Keys.left:return e.preventDefault(),void r.focusList(jn.Left);case c.Keys.right:return e.preventDefault(),void r.focusList(jn.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=It(Dt(r.props.steps,r.props.min||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return Nn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return function(e,t,n){if(!e||!t||!n)return e;var r=Ft(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return o<i?Y(e,t):o>a?Y(e,n):e}(this.snapTime(Object(p.cloneDate)(this.props.value||q)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(d.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,i=n.onNowClick,a=n.className,s=n.disabled;this.snapTime=It(Dt(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var u=Object(c.classNames)({"k-state-disabled":s},a,"k-time-part");this.timeLists=[];var p=Object(d.provideLocalizationService)(this),f=p.toLanguageString(Ye,Xe[Ye]);return l.createElement("div",{className:u},l.createElement("div",{className:"k-time-header"},l.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&l.createElement(Ie.Button,Fn({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",look:"flat",primary:!0,title:f},{"aria-label":f},{onClick:i,tabIndex:s?-1:0}),p.toLanguageString("timepicker.now",Xe["timepicker.now"]))),l.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},l.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?l.createElement("div",{key:n,className:Object(c.classNames)("k-time-list-wrapper",{"k-state-focused":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},l.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),l.createElement(Sn,{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:s,show:e.props.show})):l.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:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:U,max:W,steps:{},boundRange:!1},t}(l.Component);Object(d.registerForIntl)(Tn),Object(d.registerForLocalization)(Tn);var Rn,Ln=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)}}(),Vn=function(){return(Vn=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){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Rn||(Rn={}));var Bn=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 c.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));default:return}},r.handleAccept=function(e){var t=r.mergeValue(Object(p.cloneDate)(r.value||jt()),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(Object(p.cloneDate)(r.value||jt()),jt());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=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}}(Et(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||q,value:r.props.value||t.defaultProps.value},r}return Ln(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?Object(p.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(d.provideIntlService)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?Object(p.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,i=t.tabIndex,a=t.className,s=t.smoothScroll,u=t.min,p=t.max,f=t.boundRange,h=t.nowButton,v=t.steps,m=Object(d.provideLocalizationService)(this),g=m.toLanguageString("timepicker.cancel",Xe["timepicker.cancel"]),b=m.toLanguageString("timepicker.set",Xe["timepicker.set"]);return l.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:i||0,className:Object(c.classNames)("k-timeselector k-reset",a,{"k-state-disabled":o}),onKeyDown:this.handleKeyDown},l.createElement(Tn,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:s,min:u,max:p,boundRange:f,disabled:o,nowButton:h,steps:v,show:this.props.show}),l.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(Ie.Button,Vn({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:g},{"aria-label":g}),g),l.createElement(Ie.Button,Vn({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",primary:!0,onClick:this.handleAccept,title:b},{"aria-label":b}),b)))},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:u.bool,className:u.string,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:U,max:W,boundRange:!1},t}(l.Component);Object(d.registerForIntl)(Bn),Object(d.registerForLocalization)(Bn);var An=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)}}(),Kn=function(){return(Kn=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)},qn=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},Hn=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.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(Kn({},e,{value:t}))},r.handleValueChange=function(e){r.setState({value:Object(p.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===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))},Object(c.validatePackage)(f),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 An(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?Object(p.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=function(e,t,n){if(null===e)return!0;var r=Ft(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a}(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:Rt(e,n),rangeUnderflow:Tt(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,i=t.id,a=t.className,s=t.format,u=t.formatPlaceholder,p=t.smoothScroll,f=t.width,h=t.name,v=t.steps,m=t.cancelButton,g=t.nowButton,b=t.validationMessage,y=t.required,O=t.validityStyles,k=t.ariaLabelledBy,w=t.ariaDescribedBy,C=this.popupSettings,x=C.popupClass,E=qn(C,["popupClass"]),D=!this.validityStyles||this.validity.valid,I=Object(c.classNames)("k-widget k-timepicker",a),_=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!D,"k-state-disabled":n,"k-state-focused":this.state.focused}),P=Object(c.classNames)("k-group k-reset",x),S={disabled:n,format:s,formatPlaceholder:u,id:i,ariaLabelledBy:k,ariaDescribedBy:w,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:h,onChange:this.handleInputValueChange,required:y,steps:v,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:b,validityStyles:O,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},j=Kn({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:P,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},E),N=l.createElement(Bn,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:m,disabled:n,nowButton:g,format:s,min:this.min,max:this.max,steps:v,smoothScroll:p,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),F=Object(d.provideLocalizationService)(this),M=F.toLanguageString(Ge,Xe[Ge]),T=F.toLanguageString("timepicker.toggleTimeSelector",Xe["timepicker.toggleTimeSelector"]),R=l.createElement(c.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 l.createElement("div",{ref:function(t){e._element=t},className:I,onKeyDown:e.handleKeyDown,style:{width:f},onFocus:n,onBlur:r},l.createElement("span",{ref:function(t){e._wrapper=t},className:_},l.createElement(e.dateInputComp,Kn({_ref:e._dateInput},S)),l.createElement("span",Kn({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:T,className:"k-select"},{"aria-controls":e._popupId,"aria-label":M}),l.createElement("span",{className:"k-icon k-i-clock"}))),e.props.popup?l.createElement(e.props.popup,Kn({},j),N):l.createElement(qt.Popup,Kn({},j),N))}));return this.props.label?l.createElement(Wt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:D,editorDisabled:this.props.disabled,children:R,style:{width:this.props.width}}):R},t.prototype.normalizeTime=function(e){return Y(q,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(this.value,e):e},t.displayName="TimePicker",t.propTypes={className:u.string,cancelButton:u.bool,nowButton:u.bool,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:W,min:U,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:Kt},t}(l.Component),zn=Object(c.createPropsContext)(),Un=Object(c.withPropsContext)(zn,Hn);Un.displayName="KendoReactTimePicker",Object(d.registerForLocalization)(Hn);var Wn=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)}}(),Yn=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:Object(p.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return Wn(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===k.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=Object(c.classNames)("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===k.month,"k-calendar-yearview":this.props.activeView===k.year,"k-calendar-decadeview":this.props.activeView===k.decade,"k-calendar-centuryview":this.props.activeView===k.century});return l.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return l.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:n.getTime()},l.createElement(Ee,{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:Fe,max:Me},t}(l.Component),Gn=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)}}(),Xn=function(){return(Xn=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)},Zn=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&X(Object(p.getDate)(n),e,t)?Object(p.getDate)(n):null},$n=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),Array.isArray(n)?n.filter((function(n){return X(n,e,t)})).map((function(e){return Object(p.getDate)(e)})):null},Jn=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?M:e},Qn=function(e,t,n){return e||t&&t[0]||n&&n.start},er=function(e){function t(n){var r=e.call(this,n)||this;r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=M,r.cellUID=Object(c.guid)(),r.activeRangeEnd="start",r.wrapperID=Object(c.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 te(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(O.PrevView)},r.handleNextButtonClick=function(){r.navigate(O.NextView)},r.handleKeyDown=function(e){if(e.keyCode===c.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{var n=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(p.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=Object(p.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=Object(p.cloneDate)(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){Object(p.isEqualDate)(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push(Object(p.cloneDate)(e.value)),o=i.slice()}else o=r.selectedDate?[Object(p.cloneDate)(r.selectedDate),Object(p.cloneDate)(e.value)]:[Object(p.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=Object(p.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=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=Zn(r.min,r.max,o),a=$n(r.min,r.max,o),s=Jn(o),l=Qn(i,a,s),u=K(k[n.defaultActiveView],r.bottomView,r.topView),d=te(n.focusedDate||l||G(),r.min,r.max);return r.state={value:o,activeView:u,focusedDate:d},r.activeRangeEnd=function(e,t){return null===e.start&&null===t?"start":null===e.end?"end":"start"}(s,i),r.bus=new me(r.handleViewChange),r.navigation=new ye(r.bus),r.calculateFocusFromValue=!1,r.lastView=u,r.lastViewsCount=r.props.views||Yn.defaultProps.views,r}return Gn(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 Object(p.cloneDate)(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return Object(p.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(p.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return k[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return k[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 X(G(),Object(p.getDate)(this.min),Object(p.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=Zn(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||Yn.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=Object(d.provideIntlService)(this),this.localization=Object(d.provideLocalizationService)(this),this.bus.configure(this.bottomView,this.topView);var t=K(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=Zn(this.min,this.max,this.value),this.selectedMultiple=$n(this.min,this.max,this.value),this.selectedRange=Jn(this.value);var n=Qn(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=te(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=Object(c.classNames)("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(Ae,Xe[Ae]),s=this.localization.toLanguageString(Ke,Xe[Ke]),u=!this.canNavigate(O.PrevView),f=!this.canNavigate(O.NextView),h={"aria-disabled":u},v={"aria-disabled":f},m=this.lastView!==t,g=this.dates&&this.service.isInArray(this.focusedDate,this.dates),b=this.lastViewsCount!==this.props.views;(!g||m||b)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||Yn.defaultProps.views));var y=Object(p.cloneDate)(this.dates&&this.dates[0]?this.dates[0]:G());return l.createElement("div",Xn({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},i),l.createElement(Be,{key:".kendo.calendar.header."+y.getTime(),activeView:t,currentDate:y,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement(Ie.Button,Xn({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:a,disabled:u,onClick:this.handlePrevButtonClick},h)),l.createElement($e,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),l.createElement(Ie.Button,Xn({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:s,disabled:f,onClick:this.handleNextButtonClick},v)))}),l.createElement(Yn,{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:u.oneOf(["start","end"]),allowReverse:u.bool,bottomView:u.oneOf(["month","year","decade","century"]),className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.oneOfType([T(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:T(u.instanceOf(Date)),end:T(u.instanceOf(Date))})]),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),mode:u.oneOf(["single","multiple","range"]),onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,topView:u.oneOf(["month","year","decade","century"]),value:u.oneOfType([T(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:T(u.instanceOf(Date).isRequired),end:T(u.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:u.bool},t.defaultProps={disabled:!1,min:Fe,max:Me,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(l.Component),tr=Object(c.createPropsContext)(),nr=Object(c.withPropsContext)(tr,er);nr.displayName="KendoReactMultiViewCalendar",Object(d.registerForIntl)(er),Object(d.registerForLocalization)(er);var rr=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)}}(),or=function(){return(or=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)},ir={display:"inline-block"},ar=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._startDateInput=l.createRef(),r._endDateInput=l.createRef(),r._popupId=Object(c.guid)(),r._startInputId=Object(c.guid)(),r._endInputId=Object(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)||M},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:Object(p.cloneDate)(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:Object(p.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||M;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},Object(c.validatePackage)(f),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 rr(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)||M},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||M,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=Object(c.classNames)("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),i=Object(d.provideLocalizationService)(this),a=i.toLanguageString("daterangepicker.start",Xe["daterangepicker.start"]),s=i.toLanguageString("daterangepicker.end",Xe["daterangepicker.end"]),u=i.toLanguageString(Ue,Xe[Ue]),p=or({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:t.start,onChange:this.handleStartChange}),f=or({label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:t.end,onChange:this.handleEndChange}),h=or({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}),v=or({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}),m=this.props.calendar?l.createElement(this.props.calendar,or({},v)):l.createElement(nr,or({},v,{ref:this.setCalendarRef})),g=l.createElement(Ie.Button,or({className:"k-select",look:"flat",title:Object(d.provideLocalizationService)(this).toLanguageString(ze,Xe[ze]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":Object(d.provideLocalizationService)(this).toLanguageString(ze,Xe[ze])}),l.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return l.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},l.createElement("span",{ref:function(t){e._wrapper=t},className:"k-daterangepicker-wrap",style:ir},this.props.startDateInput?l.createElement(this.props.startDateInput,or({},p)):l.createElement(Kt,or({},p,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?g:u,this.props.endDateInput?l.createElement(this.props.endDateInput,or({},f)):l.createElement(Kt,or({},f,{ref:this._endDateInput}))),this.props.popup?l.createElement(this.props.popup,or({},h),m):l.createElement(qt.Popup,or({},h),m))},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:u.bool,calendarSettings:u.any,className:u.string,defaultShow:u.bool,defaultValue:u.shape({start:T(u.instanceOf(Date).isRequired),end:T(u.instanceOf(Date).isRequired)}),disabled:u.bool,endDateInputSettings:u.shape(Bt.propTypes),focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),onBlur:u.func,onChange:u.func,onFocus:u.func,popupSettings:u.any,show:u.bool,startDateInputSettings:u.any,style:u.any,swapButton:u.any,tabIndex:u.number,value:u.shape({start:T(u.instanceOf(Date).isRequired),end:T(u.instanceOf(Date).isRequired)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:M,disabled:!1,format:"d",max:Me,min:Fe,swapButton:!1},t}(l.Component),sr=Object(c.createPropsContext)(),lr=Object(c.withPropsContext)(sr,ar);lr.displayName="KendoReactDateRangePicker",Object(d.registerForLocalization)(ar);var ur=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)}}(),cr=function(){return(cr=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)},pr=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||Ne});var t=n.mergeDate(n.props.value,n.props.value||Ne);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:jt()}),n.handleAccept(e,jt())},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 c.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case c.Keys.left:if(!r)return;return void n.move("left");case c.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||Ne},n}return ur(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,i=t.max,a=t.weekNumber,s=t.focusedDate,u=t.format,p=Object(c.classNames)({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),f=Object(d.provideLocalizationService)(this),h=f.toLanguageString("datetimepicker.date",Xe["datetimepicker.date"]),v=f.toLanguageString("datetimepicker.time",Xe["datetimepicker.time"]),m=f.toLanguageString("datetimepicker.cancel",Xe["datetimepicker.cancel"]),g=f.toLanguageString("datetimepicker.set",Xe["datetimepicker.set"]),b={min:o,max:i,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return l.createElement("div",{onKeyDown:this.handleKeyDown,className:p,tabIndex:-1},l.createElement("div",{className:"k-datetime-buttongroup"},l.createElement(Ie.ButtonGroup,{width:"100%"},l.createElement(Ie.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},h),l.createElement(Ie.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},v))),l.createElement("div",{className:"k-datetime-selector"},l.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?l.createElement(this.props.calendar,cr({},b)):l.createElement(ft,cr({ref:function(t){e._calendar=t}},b))),l.createElement("div",{className:"k-datetime-time-wrap"},l.createElement(Tn,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||U,max:this.maxTime||W,steps:this.props.steps,value:this.state.timeValue,format:u,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),l.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(Ie.Button,cr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:m},{"aria-label":m}),m),l.createElement(Ie.Button,cr({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:g},{"aria-label":g}),g)))},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 Object(p.isEqualDate)(e,t||G())?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?Y(t,e):t},t.prototype.mergeDate=function(e,t){return e?Y(e||G(),t):t},t}(l.Component);Object(d.registerForLocalization)(pr);var dr=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)}}(),fr=function(){return(fr=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)},hr=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.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:Object(p.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")},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return dr(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?Object(p.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=Z(this.value,this.min,this.max)&&Mt(this.value,this.props.minTime||Te,this.props.maxTime||W),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,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,p=t.max,f=t.weekNumber,h=t.focusedDate,v=t.className,m=t.width,g=t.name,b=t.validationMessage,y=t.required,O=t.validityStyles,k=t.cancelButton,w=t.minTime,C=t.maxTime,x=t.ariaLabelledBy,E=t.ariaDescribedBy,D=t.popup,I=void 0===D?qt.Popup:D,_=t.calendar,P=!this.validityStyles||this.validity.valid,S=Object(c.classNames)("k-widget k-datetimepicker",{"k-state-invalid":!P},v),j=Object(c.classNames)("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),N={id:i,ariaLabelledBy:x,ariaDescribedBy:E,format:a,formatPlaceholder:s,disabled:n,title:o,validityStyles:O,validationMessage:b,required:y,min:u,max:p,minTime:w,maxTime:C,name:g,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=l.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 l.createElement("div",{ref:function(t){e._element=t},className:S,onKeyDown:e.handleKeyDown,style:{width:m},onFocus:r,onBlur:o},l.createElement("div",{ref:function(t){e._wrapper=t},className:j},l.createElement(e.dateInputComp,fr({_ref:e._dateInput},N)),l.createElement("span",fr({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:Object(d.provideLocalizationService)(e).toLanguageString(We,Xe[We]),className:"k-select"},{"aria-controls":e._popupId,"aria-label":Object(d.provideLocalizationService)(e).toLanguageString(We,Xe[We])}),l.createElement("span",{className:"k-link k-link-date"},l.createElement("span",{className:"k-icon k-i-calendar"})))),l.createElement(I,{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"}},l.createElement(pr,{ref:function(t){e._dateTimeSelector=t},cancelButton:k,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:f,min:e.min,max:e.max,minTime:w,maxTime:C,focusedDate:h,format:a,calendar:_})))}));return this.props.label?l.createElement(Wt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:P,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:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,cancelButton:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:z,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:Kt},t}(l.Component),vr=Object(c.createPropsContext)(),mr=Object(c.withPropsContext)(vr,hr);mr.displayName="KendoReactDateTimePicker",Object(d.registerForLocalization)(hr)},function(e,t,n){"use strict";n.r(t),n.d(t,"isCompositeFilterDescriptor",(function(){return p})),n.d(t,"toODataString",(function(){return Y})),n.d(t,"toDataSourceRequestString",(function(){return Fe})),n.d(t,"toDataSourceRequest",(function(){return Me})),n.d(t,"translateDataSourceResultGroups",(function(){return Ue})),n.d(t,"translateAggregateResults",(function(){return We})),n.d(t,"orderBy",(function(){return yt})),n.d(t,"process",(function(){return wt})),n.d(t,"distinct",(function(){return kt})),n.d(t,"getter",(function(){return $})),n.d(t,"filterBy",(function(){return ht})),n.d(t,"compileFilter",(function(){return ft})),n.d(t,"groupBy",(function(){return gt})),n.d(t,"composeSortDescriptors",(function(){return $e})),n.d(t,"normalizeFilters",(function(){return N})),n.d(t,"normalizeGroups",(function(){return vt})),n.d(t,"aggregateBy",(function(){return st}));var r=function(e){return null!=e},o=function(e){return null==e},i=function(e){return Array.isArray(e)},a=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},l=function(e){return!function(e){return o(e)||0===e.trim().length}(e)},u=function(e){return!isNaN(e-parseFloat(e))},c=function(e){return e&&e.getTime},p=function(e){return r(e.filters)};var 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)};function f(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var h,v,m,g,b,y=function(e,t,n){return function(r){return e(r)?t(r):n(r)}},O=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},k=function(e){return e},w=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e()?""+t[0]+n[0]+t[1]:n[0]}},C=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},x=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:"'"+n.replace(/'/g,"''")+"'",field:t,ignoreCase:r,operator:o}},E=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:""+encodeURIComponent(n),field:t,ignoreCase:r,operator:o}},D=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{field:w((function(){return r}))(h||(h=f(["tolower(",")"],["tolower(",")"])),t),value:n,ignoreCase:r,operator:o}},I=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:n,field:t.replace(/\./g,"/"),ignoreCase:r,operator:o}},_=function(e){return s(e.value)},P=function(e){return c(e.value)},S=function(e,t){return function(n){return w((function(){return n.filters.length>1}))(v||(v=f(["(",")"],["(",")"])),n.filters.map(e).join(t(n)))}},j=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,n=Object.assign({},e);return!p(e)&&s(e.operator)&&(n.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),p(e)&&j(n),n})))},N=function(e){return r(e)&&(e=function(e){return p(e)?Object.assign({},e):{filters:i(e)?e:[e],logic:"and"}}(e),j(e)),e},F=function(e){var t=e.operator;return function(e){var n=e.field,r=e.value;return n+" "+t+" "+r}},M=function(e){return O(e,E,x,D,I)},T=function(e){return M((t=e.operator,function(e){var n=e.field,r=e.value;return t+"("+n+","+r+")"}));var t},R=function(e){return O(F(e),I,(t=e.utcDates,function(e){var n=e.field,r=e.value,o=e.ignoreCase,i=e.operator;return{value:JSON.stringify(t?r:C(r)).replace(/"/g,""),field:n,ignoreCase:o,operator:i}}));var t},L=function(e){return y(P,R(e),function(e){return O(F(e),I)}(e))},V=function(e){return y(_,function(e){return M(F(e))}(e),L(e))},B=function(e){return e+" eq -1"},A=function(e){return O(e,I)},K=function(e){return" "+e.logic+" "},q=function(e){return function(t){return function(e,t){return{contains:T(d({},t,{operator:"contains"})),doesnotcontain:O(B,T(d({},t,{operator:"indexof"}))),endswith:T(d({},t,{operator:"endswith"})),eq:V(d({},t,{operator:"eq"})),gt:V(d({},t,{operator:"gt"})),gte:V(d({},t,{operator:"ge"})),isempty:A((function(e){return e.field+" eq ''"})),isnotempty:A((function(e){return e.field+" ne ''"})),isnotnull:A((function(e){return e.field+" ne null"})),isnull:A((function(e){return e.field+" eq null"})),lt:V(d({},t,{operator:"lt"})),lte:V(d({},t,{operator:"le"})),neq:V(d({},t,{operator:"ne"})),startswith:T(d({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}},H=function(e){return S((function(t){return y(p,H(e),q(e))(t)}),K)},z=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+H(t)(N(e)):""},U=(m="",function(){return m}),W=function(e,t){return y(r,(n=e[0],function(e){return n+e}),U)(t);var n},Y=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(n){return{filter:z(t.filter||{},e),skip:W(g||(g=f(["$skip=",""],["$skip=",""])),t.skip),sort:(o=t.sort||[],i=o.filter((function(e){return r(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),i?"$orderby="+i:i),take:W(b||(b=f(["$top=",""],["$top=",""])),t.take)}[n];var o,i}}(t,e)).filter(l).join("&")},G={},X=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;G[void 0]=function(e){return e};var Z,$=function(e,t){var n=e+t;if(G[n])return G[n];var o=[];return e.replace(X,(function(e,t,n,i){o.push(r(t)?t:n||i)})),G[n]=function(e){for(var n=e,i=0;i<o.length;i++)if(n=n[o[i]],!r(n)&&t)return n;return n},G[n]},J=function(e){return function(t){return[e,t]}},Q=function(){return null},ee=function(e){return function(t){return r(e(t))}},te=function(e){return function(t){return function(e){return r(e)&&i(e)&&e.length>0}(e(t))}},ne=function(e,t){return y(e,t,Q)},re=function(e,t){return function(n){return e(n).map(t).join("~")}},oe=O.apply(void 0,[['"',""],[":","-"]].map((function(e){var t=e[0],n=e[1];return function(e){return e.replace(new RegExp(t,"g"),n)}}))),ie=(Z=".",function(e){return e.slice(0,e.indexOf(Z))}),ae=function(e){var t=e.field,n=e.dir;return t+"-"+(void 0===n?"asc":n)},se=$("take"),le=$("aggregates"),ue=$("skip"),ce=$("group"),pe=$("sort",!0),de=re(pe,ae),fe=re(ce,ae),he=re(le,(function(e){return e.field+"-"+e.aggregate})),ve=O((function(e){return"datetime'"+e+"'"}),ie,oe,JSON.stringify,C),me=O(J("page"),(function(e){var t=e.skip,n=e.take;return Math.floor((t||0)/n)+1})),ge=O(J("pageSize"),se),be=O(J("group"),fe),ye=O(J("sort"),de),Oe=O(J("aggregate"),he),ke=ne(ee(ue),me),we=ne(ee(se),ge),Ce=ne(te(ce),be),xe=ne(ee(le),Oe),Ee=O(ne(te(pe),ye),(function(e){return Object.assign({},e,{sort:(pe(e)||[]).filter((function(e){var t=e.dir;return l(t)}))})})),De=function(e){var t=e.field;return l(t)},Ie=function(e){return e.field+"~"+e.operator+"~"+e.value},_e=y(P,O(Ie,(function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:ve(n),field:t,ignoreCase:r,operator:o}})),Ie),Pe=function(e){return"~"+e.logic+"~"},Se=function(e){return S((function(t){return y(p,Se(e),function(e){return ne(De,y(_,O(Ie,x,e?E:k),_e))}(e))(t)}),Pe)},je=function(e,t){var n=e.filter;if(n&&n.filters){var r=Se(t)(n);if(r.length)return["filter",r]}return null},Ne=function(e,t){return void 0===t&&(t=!0),function(n){return{aggregates:xe(e),filter:je(e,t),group:Ce(e),skip:ke(e),sort:Ee(e),take:we(e)}[n]}},Fe=function(e){return(t=Object.keys(e).map(Ne(e)).filter(r),t.reduce((function(e,t){var n=t[0],r=t[1];return e.concat([n+"="+r])}),[])).join("&");var t},Me=function(e){return Object.keys(e).map(Ne(e,!1)).filter(r).reduce((function(e,t){var n,r=t[0],o=t[1];return d({},e,((n={})[r]=o,n))}),{})},Te=function(e,t,n){return t[e]=n,t},Re=function(e){return function(t){var n,o=t[e];return r(o)?o:t[(n=e,n.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},Le=Re("Member"),Ve=Re("AggregateMethodName"),Be=Re("Value"),Ae=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},Ke=Ae((function(e,t,n){return Te(n.toLowerCase(),t,e[n])})),qe=Ae((function(e,t,n){return Te(n,t,Ke(e[n]))})),He=function(e,t){return r(e)?e:t},ze=O((function(e){var t=e.field,n=e.hasSubgroups,r=e.value,o=e.aggregates,i=e.items;return{aggregates:qe(o),field:t,items:n?i.map(ze):i,value:r}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:He(e.Key,He(e.key,e.value))}})),Ue=function(e){return e.map(ze)},We=function(e){return(e||[]).reduce((function(e,t){return Te(Le(t),e,Te(Ve(t).toLowerCase(),e[Le(t)]||{},Be(t)))}),{})},Ye=function(e,t){return o(e)?e===t?0:-1:o(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},Ge=function(e,t){return Ye(t,e)},Xe=function(e){var t=$(e.field,!0);return function(n,r){return("asc"===e.dir?Ye:Ge)(t(n),t(r))}},Ze=function(e,t){return 0},$e=function(e){return e.filter((function(e){return r(e.dir)})).map((function(e){return Xe(e)})).reduce((function(e,t){return function(n,r){return e(n,r)||t(n,r)}}),Ze)},Je=function(e){var t=$(e,!0),n=0;return function(o,i){o[e]=o[e]||{};var a=t(i),s=function(e){return(e=r(e)&&e.getTime?e.getTime():e)+""}(a),l=o[e][s]||{__position:n++,aggregates:{},items:[],value:a};return l.items.push(i),o[e][s]=l,o}},Qe=function(e){var t=e.map((function(e){var t=$(e.field,!0),n=(e.aggregate||"").toLowerCase(),o=$(n,!0);return function(i,a){var s=i[e.field]||{},l=o(s)||{average:function(){var e=0,t=0;return{calc:function(n){u(n)?(e+=n,t++):e=n},result:function(){return u(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=u(e)||c(e)?e:t)<t&&(u(t)||c(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=u(e)||c(e)?e:t)>t&&(u(t)||c(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=r(t)?t:0,e+=t},result:function(){return e}}}}[n]();return l.calc(t(a)),s[e.aggregate]=l,i[e.field]=s,i}}));return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},et=function(e,t){return e.push(t),e},tt=function(e){return function(t){return function(n,r,o){return t(n,e(r,o))}}},nt=function(e){return function(t){return function(n,r){return e(r)?t(n,r):n}}},rt=function(e){return r(e.__value)},ot=function(e){return rt(e)?e:{__value:e,reduced:!0}},it=function(e,t,n){for(var r=t,o=0,i=n.length;o<i;o++)if(r=e(r,n[o],o),rt(r)){r=r.__value;break}return r},at=tt((function(e){return e})),st=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=at);var r={};return t.length?function(e){return void 0===e&&(e={}),Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(e){n[e]=n[e].result()}))})),e}(it(n(Qe(t)),r,e)):r},lt={or:{concat:function(e,t){return function(n){return e(n)||t(n)}},identity:function(){return!1}},and:{concat:function(e,t){return function(n){return e(n)&&t(n)}},identity:function(){return!0}}},ut={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return r(e)},isnull:function(e){return o(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},ct=/^\/Date\((.*?)\)\/$/,pt=function(e){var t=e.field,n=e.ignoreCase,o=e.value,i=e.operator;t=r(t)?t:function(e){return e},n=!r(n)||n;var l=function(e,t,n){if(!r(t))return e;var o=e;if(s(t)){var i=ct.exec(t);i?t=new Date(+i[1]):o=function(t){var r=e(t);return"string"==typeof r&&n?r.toLowerCase():u(r)?r+"":r}}return c(t)?function(e){var t=o(e);return c(t)?t.getTime():t}:o}(a(t)?t:$(t,!0),o,n);o=function(e,t){if(null!=e&&s(e)){var n=ct.exec(e);if(n)return new Date(+n[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&c(e))return e.getTime();return e}(o,n);var p=a(i)?i:ut[i];return function(e){return p(l(e),o,n)}},dt=function(e){var t=lt[e.logic];return e.filters.filter(r).map((function(e){return p(e)?dt(e):pt(e)})).reduce(t.concat,t.identity)},ft=function(e){return e&&0!==e.filters.length?dt(e):function(){return!0}},ht=function(e,t){return!r(t)||p(t)&&0===t.filters.length?e:e.filter(ft(N(t)))},vt=function(e){return(e=i(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))},mt=tt((function(e){return e})),gt=function(e,t,n,o){if(void 0===t&&(t=[]),void 0===n&&(n=mt),void 0===o&&(o=e),!(t=vt(t)).length)return e;var i=t[0],a=it(n(Je(i.field)),{},e),s=[];return Object.keys(a).forEach((function(e){Object.keys(a[e]).forEach((function(n){var l=a[e][n],u={},c=o;r(i.aggregates)&&(c=ht(o,{field:i.field,ignoreCase:!1,operator:"eq",value:l.value}),u=st(c,i.aggregates)),s[l.__position]={aggregates:u,field:e,items:t.length>1?gt(l.items,t.slice(1),mt,c):l.items,value:l.value}}))})),s},bt=function(e,t,n,r){if(!(n-t<2)){var o=t+n>>>1;bt(e,t,o,r),bt(e,o,n,r),function(e,t,n,r,o){for(var i=n-t,a=r-n,s=[],l=0;l<i;l++)s.push(e[t+l]);var u=0,c=n,p=t;do{o(e[c],s[u])<0?(e[p++]=e[c++],a--):(e[p++]=s[u++],i--)}while(a>0&&i>0);for(;i;)e[p++]=s[u++],i--;for(;a;)e[p++]=e[c++],a--}(e,t,o,n,r)}},yt=function(e,t){if(t.some((function(e){return r(e.dir)}))){e=e.slice(0);var n=$e(t);bt(e,0,e.length,n)}return e},Ot=function(e,t){return e===t},kt=function(e,t){return void 0===t&&(t=Ot),function(e,t){return e.filter((function(e,n,r){return r.findIndex(t.bind(null,e))===n}))}(e,function(e){if(s(e)){var t=$(e);e=function(e,n){return t(e)===t(n)}}return e}(t))},wt=function(e,t){var n=t.skip,o=t.take,i=t.filter,a=t.sort,s=t.group,l=vt(s||[]).concat(a||[]);l.length&&(e=yt(e,l));var u,c=r(i)&&nt.length,p=r(s)&&s.length;if(!c&&!p)return{data:o?e.slice(n,n+o):e,total:e.length};var d,f,h=[];if(c?(u=function(e,t){for(var n=0,r=0,o=e.length;r<o;r++)t(e[r])&&n++;return n}(e,d=ft(N(i))),h.push(nt(d))):u=e.length,r(n)&&r(o)&&(h.push((f=n,function(e){return function(t,n){return f--<=0?e(t,n):t}})),h.push(function(e){return function(t){return function(n,r){return e-- >0?t(n,r):ot(n)}}}(o))),h.length){var v=O.apply(void 0,h);return{data:p?gt(e,s,v,function(e,t){return t?e.filter(t):e}(e,d)):it(v(et),[],e),total:u}}return{data:p?gt(e,s):e,total:u}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Animation",(function(){return k})),n.d(t,"AnimationChild",(function(){return v})),n.d(t,"Fade",(function(){return E})),n.d(t,"Expand",(function(){return P})),n.d(t,"Push",(function(){return M})),n.d(t,"Slide",(function(){return V})),n.d(t,"Zoom",(function(){return H})),n.d(t,"Reveal",(function(){return Y})),n.d(t,"useAnimation",(function(){return G}));var r,o=n(1),i=n(0),a=n(2),s=n(16),l=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},u=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},c={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},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,v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.style,i=t.appear,l=t.enter,u=t.exit,c=t.transitionName,p=t.transitionEnterDuration,v=t.transitionExitDuration,m=t.className,g=t.onEnter,b=t.onEntering,y=t.onEntered,O=t.onExit,k=t.onExiting,w=t.onExited,C=t.onAfterExited,x=t.mountOnEnter,E=t.unmountOnExit,D=t.animationEnteringStyle,I=t.animationEnteredStyle,_=t.animationExitingStyle,P=t.animationExitedStyle,S=f(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),j=Object(a.classNames)(m,h["child-animation-container"]),N=d({transitionDelay:"0ms"},r),F={entering:d({transitionDuration:p+"ms"},D),entered:d({},I),exiting:d({transitionDuration:v+"ms"},_),exited:d({},P)},M={in:this.props.in,appear:i,enter:l,exit:u,mountOnEnter:x,unmountOnExit:E,timeout:{enter:p,exit:v},onEnter:function(t){g&&g.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){b&&b.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){y&&y.call(void 0,{animatedElement:t,target:e})},onExit:function(t){O&&O.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){k&&k.call(void 0,{animatedElement:t,target:e})},onExited:function(t){C&&C.call(void 0,{animatedElement:t,target:e}),w&&w.call(void 0,{animatedElement:t,target:e})},classNames:{appear:h[c+"-appear"]||c+"-appear",appearActive:h[c+"-appear-active"]||c+"-appear-active",enter:h[c+"-enter"]||c+"-enter",enterActive:h[c+"-enter-active"]||c+"-enter-active",exit:h[c+"-exit"]||c+"-exit",exitActive:h[c+"-exit-active"]||c+"-exit-active"}};return o.createElement(s.CSSTransition,d({},M,S),(function(t){return o.createElement("div",{style:d({},N,F[t]),className:j,ref:function(t){e._element=t}},n)}))},t.propTypes={in:i.bool,children:i.oneOfType([i.arrayOf(i.node),i.node]),transitionName:i.string.isRequired,className:i.string,appear:i.bool,enter:i.bool,exit:i.bool,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired,mountOnEnter:i.bool,unmountOnExit:i.bool,animationEnteringStyle:i.object,animationEnteredStyle:i.object,animationExitingStyle:i.object,animationExitedStyle:i.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:a.noop,onEntering:a.noop,onEntered:a.noop,onExit:a.noop,onExiting:a.noop,onExited:a.noop,onAfterExited:a.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(o.Component),m={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639473694,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"},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)}}(),b=function(){return(b=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(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},O=c,k=function(e){function t(t){var n=e.call(this,t)||this;return Object(a.validatePackage)(m),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,r=e.children,i=e.component,l=e.className,u=e.childFactory,c=(e.stackChildren,e.componentChildStyle),p=e.componentChildClassName,d=y(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),f={id:t,style:n,component:i,childFactory:u,className:Object(a.classNames)(O["animation-container"],O["animation-container-relative"],l)},h=o.Children.map(r||null,(function(e){return o.createElement(v,b({},d,{style:c,className:p}),e)}));return o.createElement(s.TransitionGroup,b({},f),h)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any,transitionName:i.string.isRequired,appear:i.bool.isRequired,enter:i.bool.isRequired,exit:i.bool.isRequired,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired},t.defaultProps={component:"div"},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)}}(),C=function(){return(C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},x=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},E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=x(e,["children"]);return o.createElement(k,C({},{transitionName:"fade"},n),t)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500},t}(o.Component),D=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)}}(),I=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)},_=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},P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=_(e,["direction","children"]),i={transitionName:"expand-"+t};return o.createElement(k,I({},i,r),n)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(o.Component),S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(){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)},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},F={position:"absolute",top:"0",left:"0"},M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=N(e,["children","direction"]);return o.createElement(k,j({},r,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?F:void 0}),t)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["up","down","left","right"]),component:i.string,id:i.string,style:i.any,stackChildren:i.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1},t}(o.Component),T=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},L=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},V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=L(e,["direction","children"]),i={transitionName:"slide-"+t};return o.createElement(k,R({},i,r),n)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["up","down","left","right"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"},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)}}(),A=function(){return(A=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)},K=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},q={position:"absolute",top:"0",left:"0"},H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return B(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=K(e,["children","direction"]);return o.createElement(k,A({},r,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?q:void 0}),t)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["in","out"]),component:i.string,id:i.string,style:i.any,stackChildren:i.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1},t}(o.Component),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(){return(U=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)},W=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},Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=a.noop);var r=e.firstChild;if(r){var o=l(r),i=u(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return z(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,r=t.children,i=t.childFactory,a=W(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,u=s.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:u?u+"px":null}).maxHeight,maxWidth:e.maxWidth};return o.createElement(k,U({},a,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:o.cloneElement(n,U({},n.props,{style:U({},n.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-"+n}),r)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(o.Component),G=function(e,t){var n=o.useRef(0),r=o.useRef(!1),i=o.useRef();o.useEffect((function(){return function(e){var t,r=e.duration,o=n.current&&1-n.current;e.onStart&&e.onStart();var a=function(s){t||(t=s);var l=(s-t+1)/r+o;l<=1?(e.onUpdate&&e.onUpdate(l),i.current=window.requestAnimationFrame(a),n.current=l):(e.onEnd&&e.onEnd(1),n.current=0)};i.current=window.requestAnimationFrame(a)}(e),function(){i.current&&window.cancelAnimationFrame(i.current)}}),t),o.useEffect((function(){r.current=!0}),[])}},function(e,t){e.exports=s},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(26)),r(n(51)),r(n(52)),r(n(30)),r(n(53)),r(n(56)),r(n(31)),r(n(29)),r(n(18))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDefaultProps={filterable:!0,editable:!0,sortable:!0,resizable:!0,reorderable:!0,groupable:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(12),i=n(28);t.useTableKeyboardNavigation=function(e,t){var n,a=r.useContext(i.TableKeyboardNavigationContext);return a&&e&&!1!==t?((n={tabIndex:a&&a.activeId&&a.activeId===e?0:-1})[o.KEYBOARD_NAV_DATA_LEVEL]=a.level,n[o.KEYBOARD_NAV_DATA_ID]=e,n):{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.TableKeyboardNavigationContext=r.createContext(void 0),t.TableKeyboardNavigationContext.displayName="KendoReactTableKeyboardNavigationContext"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(26);function i(e,t){for(var n=e[t].depth,r=null,o=t+1;o<e.length;o++)if(e[o].depth===n){r=e[o];break}return r}var a=function(e){var t=e.width?parseFloat(e.width.toString()):0;return!t&&e.children&&e.children.length&&(t=e.children.reduce((function(e,t){return a(t)+e}),0)),t};t.mapColumns=function(e){for(var t=[[]],n=0,r=e.length-1;r>=0;r--)n=Math.max(n,e[r].depth),e[r].colSpan=e[r].colSpan||1,-1!==e[r].parentIndex&&(e[e[r].parentIndex].colSpan=(e[e[r].parentIndex].colSpan||0)+e[r].colSpan);var o=[],s=1;e.forEach((function(e,r){t[e.depth]=t[e.depth]||[];var i=!1;0===t[e.depth].length&&(s<=1?s=1+(e.children.length>0?0:n-e.depth):(s--,i=!0)),e.rowSpan=1+(e.children.length>0?0:n-e.depth),e.kFirst=i,e.index=t[e.depth].length,t[e.depth].push(r),e.ariaColumnIndex=o[e.depth]?o[e.depth]+1:1;for(var a=e.depth;a<e.depth+e.rowSpan;a++)o[a]=(o[a]||0)+e.colSpan}));var l=new Array(t.length).fill(0),u=0;e.forEach((function(e){if(e.locked)if(e.left=l[e.depth],u=a(e),0===e.children.length)for(var t=e.depth;t<l.length;t++)l[t]+=u;else l[e.depth]+=u}));for(var c=new Array(t.length).fill(0),p=e.length-1;p>=0;p--){var d=e[p];if(d.locked){if(d.right=c[d.depth],u=a(d),0===d.children.length)for(var f=d.depth;f<c.length;f++)c[f]+=u;else c[d.depth]+=u;var h=i(e,p);d.rightBorder=!(h&&h.locked)}}return t},t.readColumns=function e(t,n,i){void 0===i&&(i=0);var a=[];if(!t||!t.length)return[];if(t.forEach((function(t){var s=e(t.children||[],n,i+1);a.push(Object.assign({},{depth:i},o.ColumnDefaultProps,t,{id:t.id?t.id:r.generateNavigatableId(""+n.prevId++,n.idPrefix,"column"),declarationIndex:a.length,children:s,rowSpan:0,colSpan:0,isAccessible:!0}))})),a.sort((function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)})),0===i){var s=[],l=function(e,t){return e.forEach((function(e){e.parentIndex=t,l(e.children,s.push(e)-1)}))};return l(a,-1),s}return a},t.isRtl=function(e){return Boolean(e&&"rtl"===getComputedStyle(e).direction)},t.getIndex=function(e,t){if(!t||!e||!e.originalEvent)return-1;for(var n=t.ownerDocument?t.ownerDocument.elementFromPoint(e.clientX,e.originalEvent.clientY):null;n&&n.parentElement!==t;)n=n.parentElement;for(var r=t.children,o=0;o<r.length;o++)if(r[o]===n)return o;return-1}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);t.HeaderCell=function(e){var t=e.onClick?{onClick:e.onClick}:{},n=o.createElement("span",r({className:"k-link"},t),o.createElement("span",{className:"k-column-title"},e.title||e.field||" "),e.children);return e.render?e.render.call(void 0,n,e):n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,[{allowUnsort:!0,mode:"single"}].concat(e))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(9),u=n(4),c=n(8),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value.value})})},t}return o(t,e),t.prototype.render=function(){var e=u.provideLocalizationService(this),t=this.props,n=t.filter,r=t.data,o=void 0===r?[]:r,s=t.defaultItem,p=o.map((function(t){return i({},t,{text:e.toLanguageString(t.text,c.messages[t.text]||t.text)})}));return a.createElement(l.DropDownList,{value:p.find((function(e){return e.value===n.value}))||null,onChange:this.onChange,defaultItem:s,data:p,textField:"text"})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired,data:s.arrayOf(s.shape({text:s.string,value:s.any})),defaultItem:s.any},t}(a.Component);t.EnumFilter=p,u.registerForLocalization(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)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(5),c=n(9),p=n(4),d=n(19),f=n(8),h=function(e){void 0!==e.value||d.unaryOperator(e.operator)||(e.value=d.stringOperator(e.operator)?"":null)},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFieldChange=function(e){var n=e.value.name,r=t.props.fields.find((function(e){return e.name===n})),o=t.props.filter,i=r&&!r.operators.some((function(e){return e.operator===o.operator}))?r.operators[0].operator:o.operator,a={field:n,operator:i};h(a),t.triggerOnFilterChange(o,a,e)},t.onOperatorChange=function(e){var n,r=e.value.operator,o=t.props.filter;if(d.unaryOperator(r)){o.value;var s=a(o,["value"]);n=i({},s,{operator:r})}else n=i({},o,{operator:r});h(n),t.triggerOnFilterChange(o,n,e)},t.onInputChange=function(e){var n=t.props.filter,r=e.nextFilter;if(d.unaryOperator(r.operator)){var o=t.props.fields.find((function(e){return e.name===r.field}));r=i({},r,{operator:o&&o.operators[0].operator||r.operator})}t.triggerOnFilterChange(n,r,e)},t.triggerOnFilterChange=function(e,n,r){var o={prevFilter:e,nextFilter:n,syntheticEvent:r.syntheticEvent,nativeEvent:r.nativeEvent,target:t};t.props.onChange.call(void 0,o)},t.onFilterRemove=function(e){var n={filter:t.props.filter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:t};t.props.onRemove.call(void 0,n)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.fields,n=e.filter,r=t.find((function(e){return e.name===n.field})),o=p.provideLocalizationService(this),a=(r&&r.operators||[]).map((function(e){return i({},e,{text:o.toLanguageString(e.text,f.messages[e.text]||e.text)})}));return s.createElement("div",{className:"k-filter-toolbar"},s.createElement(u.Toolbar,{keyboardNavigation:!1},s.createElement(u.ToolbarItem,{className:"k-filter-field"},s.createElement(c.DropDownList,{className:"k-filter-dropdown",data:t,textField:"label",value:t.find((function(e){return e.name===n.field})),onChange:this.onFieldChange})),s.createElement(u.ToolbarItem,{className:"k-filter-operator"},s.createElement(c.DropDownList,{data:a,textField:"text",value:a.find((function(e){return e.operator===n.operator})),onChange:this.onOperatorChange})),s.createElement(u.ToolbarItem,{className:"k-filter-value"},r&&s.createElement(r.filter,{filter:n,onFilterChange:this.onInputChange})),s.createElement(u.ToolbarItem,null,s.createElement(u.Button,{title:o.toLanguageString(f.filterClose,f.messages[f.filterClose]),icon:"close",look:"flat",type:"button",onClick:this.onFilterRemove}))))},t.propTypes={filter:l.object.isRequired,fields:l.array.isRequired,onChange:l.func.isRequired,onRemove:l.func.isRequired},t}(s.Component);t.Expression=v,p.registerForLocalization(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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(22),u=n(5),c=n(4),p=n(33),d=n(19),f=n(8),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onGroupRemove=function(){t.props.onRemove.call(void 0,{filter:t.props.filter})},t.onAddExpression=function(){var e=t.props.filter,n=t.props.fields[0],r={field:n.name,operator:n.operators[0].operator};r.value=d.stringOperator(r.operator)?"":null,t.props.onChange.call(void 0,{nextFilter:i({},e,{filters:e.filters.concat([r])}),prevFilter:e})},t.onAddGroup=function(){var e=t.props.filter;t.props.onChange.call(void 0,{nextFilter:i({},e,{filters:e.filters.concat([i({},t.props.defaultGroupFilter)])}),prevFilter:e})},t.onLogicAnd=function(){return t.changeLogic("and")},t.onLogicOr=function(){return t.changeLogic("or")},t.changeLogic=function(e){var n=t.props.filter;n.logic!==e&&t.props.onChange.call(void 0,{nextFilter:i({},n,{logic:e}),prevFilter:n})},t.replaceFilter=function(e,n){var r=t.props.filter,o=r.filters.map((function(t){return t===e?n:t}));return i({},r,{filters:o})},t.onChange=function(e){var n={nextFilter:t.replaceFilter(e.prevFilter,e.nextFilter),prevFilter:t.props.filter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:t};t.props.onChange.call(void 0,n)},t.onRemove=function(e){var n=t.props.filter,r=n.filters.filter((function(t){return t!==e.filter})),o={nextFilter:i({},n,{filters:r}),prevFilter:n,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:t};t.props.onChange.call(void 0,o)},t}return o(t,e),t.prototype.render=function(){var e=this,n=this.props,r=n.fields,o=n.filter,i=c.provideLocalizationService(this);return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-filter-toolbar"},a.createElement(u.Toolbar,{keyboardNavigation:!1},a.createElement(u.ToolbarItem,null,a.createElement(u.ButtonGroup,null,a.createElement(u.Button,{togglable:!0,onClick:this.onLogicAnd,selected:"and"===o.logic,type:"button"},i.toLanguageString(f.filterAndLogic,f.messages[f.filterAndLogic])),a.createElement(u.Button,{togglable:!0,onClick:this.onLogicOr,selected:"or"===o.logic,type:"button"},i.toLanguageString(f.filterOrLogic,f.messages[f.filterOrLogic])))),a.createElement(u.ToolbarItem,null,a.createElement(u.Button,{title:i.toLanguageString(f.filterAddExpression,f.messages[f.filterAddExpression]),icon:"filter-add-expression",type:"button",onClick:this.onAddExpression})),a.createElement(u.ToolbarItem,null,a.createElement(u.Button,{title:i.toLanguageString(f.filterAddGroup,f.messages[f.filterAddGroup]),icon:"filter-add-group",type:"button",onClick:this.onAddGroup})),a.createElement(u.ToolbarItem,null,a.createElement(u.Button,{title:i.toLanguageString(f.filterClose,f.messages[f.filterClose]),icon:"close",look:"flat",type:"button",onClick:this.onGroupRemove})))),o.filters.length>0&&a.createElement("ul",{className:"k-filter-lines"},o.filters.map((function(n,o){return a.createElement("li",{key:o,className:"k-filter-item"},l.isCompositeFilterDescriptor(n)?a.createElement(t,{filter:n,fields:r,onChange:e.onChange,onRemove:e.onRemove,defaultGroupFilter:e.props.defaultGroupFilter}):a.createElement(p.Expression,{filter:n,fields:r,onChange:e.onChange,onRemove:e.onRemove}))}))))},t.propTypes={filter:s.object.isRequired,fields:s.array.isRequired,onChange:s.func.isRequired,onRemove:s.func.isRequired,defaultGroupFilter:s.object.isRequired},t}(a.Component);t.Group=h,c.registerForLocalization(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2);t.ColumnMenuItem=function(e){return r.createElement("div",{onClick:e.onClick,className:o.classNames("k-columnmenu-item",{"k-state-selected":e.selected},{"k-state-disabled":e.disabled})},e.iconClass&&r.createElement("span",{className:"k-icon "+e.iconClass}),e.title)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(4),a=n(9),s=n(13),l=n(21),u=n(8),c=n(37),p=function(e){var t=e.filter,n=e.onFilterChange,s=e.operators,l=e.initialFilter,c=o.useCallback((function(e){var o=t,i=e.target.value.operator,a=o?r({},o,{operator:i}):{value:l.value,operator:i};n.call(void 0,e.syntheticEvent,a,o)}),[t,n,l]),p=o.useCallback((function(e){var o=e.target.value,i=t,a=i?r({},i,{value:o}):{value:o,operator:s[0].operator};n.call(void 0,e,a,i)}),[t,n,s]),d=i.useLocalization(),f=s.map((function(e){return r({},e,{text:d.toLanguageString(e.text,u.messages[e.text])})}));return o.createElement(o.Fragment,null,o.createElement(a.DropDownList,{value:f.find((function(e){return e.operator===t.operator}))||null,onChange:c,data:f,textField:"text"}),o.createElement(e.input,{value:t.value,onChange:p}))};t.ColumnMenuBooleanFilter=function(e){var t=e.filter,n=e.onFilterChange,a=o.useCallback((function(e){return n.call(void 0,e.syntheticEvent,r({},t,{value:e.value}),t)}),[t,n]),l=c.ColumnMenuOperators.boolean[0].text;return o.createElement(s.Checkbox,{onChange:a,checked:t.value,label:i.useLocalization().toLanguageString(l,u.messages[l]),labelPlacement:"after"})},t.ColumnMenuTextFilter=function(e){var t=o.useCallback((function(e){return o.createElement("input",r({},e,{value:e.value||"",className:"k-textbox"}))}),[]),n=o.useRef(c.ColumnMenuOperators.text),i=o.useRef({operator:"",value:""});return o.createElement(p,r({initialFilter:i.current,input:t,operators:e.operators||n.current},e))},t.ColumnMenuNumericFilter=function(e){var t=o.useCallback((function(e){return o.createElement(s.NumericTextBox,r({},e,{value:e.value||null}))}),[]),n=o.useRef(c.ColumnMenuOperators.numeric),i=o.useRef({operator:"",value:null});return o.createElement(p,r({initialFilter:i.current,input:t,operators:e.operators||n.current},e))},t.ColumnMenuDateFilter=function(e){var t=o.useCallback((function(e){return o.createElement(l.DatePicker,r({},e,{value:e.value||null}))}),[]),n=o.useRef(c.ColumnMenuOperators.date),i=o.useRef({operator:"",value:null});return o.createElement(p,r({initialFilter:i.current,input:t,operators:e.operators||n.current},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=[{text:r.columnMenuFilterContainsOperator,operator:"contains"},{text:r.columnMenuFilterNotContainsOperator,operator:"doesnotcontain"},{text:r.columnMenuFilterEqOperator,operator:"eq"},{text:r.columnMenuFilterNotEqOperator,operator:"neq"},{text:r.columnMenuFilterStartsWithOperator,operator:"startswith"},{text:r.columnMenuFilterEndsWithOperator,operator:"endswith"},{text:r.columnMenuFilterIsNullOperator,operator:"isnull"},{text:r.columnMenuFilterIsNotNullOperator,operator:"isnotnull"},{text:r.columnMenuFilterIsEmptyOperator,operator:"isempty"},{text:r.columnMenuFilterIsNotEmptyOperator,operator:"isnotempty"}],i=[{text:r.columnMenuFilterEqOperator,operator:"eq"},{text:r.columnMenuFilterNotEqOperator,operator:"neq"},{text:r.columnMenuFilterGteOperator,operator:"gte"},{text:r.columnMenuFilterGtOperator,operator:"gt"},{text:r.columnMenuFilterLteOperator,operator:"lte"},{text:r.columnMenuFilterLtOperator,operator:"lt"},{text:r.columnMenuFilterIsNullOperator,operator:"isnull"},{text:r.columnMenuFilterIsNotNullOperator,operator:"isnotnull"}],a=[{text:r.columnMenuFilterEqOperator,operator:"eq"},{text:r.columnMenuFilterNotEqOperator,operator:"neq"},{text:r.columnMenuFilterAfterOrEqualOperator,operator:"gte"},{text:r.columnMenuFilterAfterOperator,operator:"gt"},{text:r.columnMenuFilterBeforeOperator,operator:"lt"},{text:r.columnMenuFilterBeforeOrEqualOperator,operator:"lte"},{text:r.columnMenuFilterIsNullOperator,operator:"isnull"},{text:r.columnMenuFilterIsNotNullOperator,operator:"isnotnull"}],s=[{text:r.columnMenuFilterIsTrue,operator:""}],l=function(){function e(){}return Object.defineProperty(e,"text",{get:function(){return o.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numeric",{get:function(){return i.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"date",{get:function(){return a.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"boolean",{get:function(){return s.slice()},enumerable:!0,configurable:!0}),e}();t.ColumnMenuOperators=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(9),a=n(4),s=n(8),l=[{text:s.columnMenuFilterAndLogic,logic:"and"},{text:s.columnMenuFilterOrLogic,logic:"or"}];t.ColumnMenuFilterLogic=function(e){var t=a.useLocalization(),n=(e.data||l).map((function(e){return r({},e,{text:t.toLanguageString(e.text,s.messages[e.text])})}));return o.createElement(i.DropDownList,r({onChange:e.onChange,className:"k-filter-and",textField:"text"},e,{data:n,value:n.find((function(t){return t.logic===e.value}))}))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(23),a=n(4),s=n(8);t.ColumnMenuForm=function(e){return o.createElement("div",{className:"k-columnmenu-item-content"},o.createElement(i.Reveal,{style:{position:"relative",display:"block"}},e.show&&o.createElement("div",{className:"kendo-grid-filter-menu-container"},o.createElement("form",{className:"k-filter-menu k-group k-reset k-state-border-up",onSubmit:e.onSubmit,onReset:e.onReset},o.createElement("div",{className:"k-filter-menu-container"},e.children,o.createElement("div",{className:"k-actions k-hstack k-justify-content-stretch"},e.actions))))))},t.ColumnMenuFilterForm=function(e){var n=a.useLocalization();return o.createElement(t.ColumnMenuForm,r({},e,{actions:o.createElement(o.Fragment,null,o.createElement("button",{className:"k-button",type:"reset"},n.toLanguageString(s.columnMenuFilterClearButton,s.messages[s.columnMenuFilterClearButton])),o.createElement("button",{className:"k-button k-primary"},n.toLanguageString(s.columnMenuFilterSubmitButton,s.messages[s.columnMenuFilterSubmitButton])))}))}},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(2),i=n(20),a={};t.closestTagName=function(e,t){for(var n=e;n;){if(n.tagName===t)return n;if("TABLE"===n.tagName)return null;n=n.parentElement}return null},t.getRowIndex=function(e){if(e){var t=e.getAttribute(i.TABLE_ROW_INDEX_ATTRIBUTE);return t?parseInt(t,10):void 0}},t.getColumnIndex=function(e){if(e){var t=e.getAttribute(i.TABLE_COL_INDEX_ATTRIBUTE);return t?parseInt(t,10):void 0}},t.setSelectedState=function(e){var t=e.subItemsField||"items",n=o.getter(e.dataItemKey);return o.mapTree(e.data,t,(function(r){var i;return o.extendDataItem(r,t,((i={})[e.selectedField]=e.selectedState[n(r)],i))}))},t.getSelectedStateFromKeyDown=function(e){var n=e.event,r=e.dataItemKey,i=e.selectedState,a=n.syntheticEvent,s=n.nativeEvent,l=n.dataItems,u=n.componentId,c=n.mode,p=n.cell,d=n.selectedField,f=s.target,h=s.ctrlKey,v=s.metaKey,m=s.altKey,g=s.shiftKey;if(a.isDefaultPrevented()||s.keyCode!==o.Keys.enter)return i;var b=t.closestTagName(f,"TD"),y=t.closestTagName(f,"TR"),O=t.getColumnIndex(b),k=t.getRowIndex(y),w={};return b&&y&&void 0!==k&&void 0!==O&&(w=t.getSelectedState({selectedState:i,dataItemKey:r,event:{ctrlKey:h,metaKey:v,altKey:m,shiftKey:g,dataItems:l,cell:p,mode:c,selectedField:d,componentId:u,startColIndex:O,endColIndex:O,startRowIndex:k,endRowIndex:k,isDrag:!1,syntheticEvent:a,nativeEvent:s,target:n.target,dataItem:null}})),w},t.getSelectedState=function(e){var t,n,i=e.event,s=e.dataItemKey,l=e.selectedState,u=i.dataItems,c=i.startRowIndex,p=i.endRowIndex,d=i.startColIndex,f=i.endColIndex,h=i.cell,v=i.isDrag,m=i.ctrlKey,g=i.shiftKey,b=i.metaKey,y=i.componentId,O=i.mode,k=i.dataItem,w=o.getter(s),C={},x=null!==k;if("single"===O){var E=u.slice(c,c+1)[0],D=w(E);a[y]={rowIndex:c,colIndex:d},C[D]=!h||[d]}else if(!v&&(g||m||b||x)){if(m||b||x){a[y]={rowIndex:c,colIndex:d};E=u.slice(c,p+1)[0],D=w(E);(C=r({},l))[D]=h&&!x?(t=C[D],n=d,!t||Array.isArray(t)&&0===t.length?[n]:t.findIndex((function(e){return e===n}))>-1?t.filter((function(e){return e===n})):t.concat([n])):!C[D]}else if(g){var I=a[y]&&a[y].rowIndex||0,_=a[y]&&a[y].colIndex||0,P=Math.min(I,c,p),S=Math.max(I,c,p),j=Math.min(_,d,f),N=Math.max(_,d,f),F=[];for(T=j;T<=N;T++)F.push(T);u.slice(P,S+1).forEach((function(e){var t=w(e);C[t]=!h||F.slice()}))}}else{v||(a[y]={rowIndex:c,colIndex:d});for(var M=[],T=d;T<=f;T++)M.push(T);u.slice(c,p+1).forEach((function(e){var t=w(e);C[t]=!h||M.slice()}))}return C};var s=o.hasRelativeStackingContext();t.relativeContextElement=function(e){if(!e||!s)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}},t.getOffset=function(e){if(e&&e.ownerDocument&&e!==e.ownerDocument.body){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},t.getSelectionOptions=function(e){return{enabled:!!e&&("boolean"!=typeof e.enabled||e.enabled),drag:!!e&&Boolean(e.drag),mode:e&&e.mode?e.mode:"multiple",cell:Boolean(e&&e.cell)}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(42);t.Pager=o.Pager,r(n(46)),r(n(25)),r(n(57));var i=n(59);t.ColumnResize=i.ColumnResize;var a=n(60);t.CommonDragLogic=a.CommonDragLogic;var s=n(61);t.DragClue=s.DragClue;var l=n(62);t.DropClue=l.DropClue,r(n(63)),r(n(70)),r(n(72)),r(n(73)),r(n(27)),r(n(12)),r(n(74)),r(n(28));var u=n(12);t.tableKeyboardNavigationScopeAttributes=u.tableKeyboardNavigationScopeAttributes;var c=n(14);t.tableKeyboardNavigationTools=c.tableKeyboardNavigationTools,r(n(75)),r(n(20)),r(n(40))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(43),l=n(44),u=n(45),c=n(8),p=n(4),d=n(2),f=n(2),h=n(17),v=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.changePage=function(e,t){n.props.onPageChange&&e>0&&e<=n.totalPages&&n.props.onPageChange({target:n,skip:(e-1)*n.props.take,take:n.props.take,syntheticEvent:t,nativeEvent:t.nativeEvent})},n.onWindowResize=function(){var e=n.element;if(e&&n.props.responsive){var t=e.offsetWidth;t<600?(e.classList.remove("k-pager-md"),e.classList.add("k-pager-sm")):t>=600&&t<768?(e.classList.add("k-pager-md"),e.classList.remove("k-pager-sm")):(e.classList.remove("k-pager-md"),e.classList.remove("k-pager-sm"))}},f.validatePackage(h.packageMetadata),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize),this.onWindowResize()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize)},t.prototype.render=function(){var e,t,n,r,o=this,a=this.props,f=a.skip,h=a.take,v=a.total,m=a.pageSizes,g=a.messagesMap,b=p.provideLocalizationService(this),y=p.provideIntlService(this),O=Math.floor(f/h)+1,k="numeric"===this.props.type?i.createElement(s.PagerNumericButtons,{buttonCount:this.props.buttonCount||0,totalPages:this.totalPages,currentPage:O,pageChange:this.changePage}):i.createElement(l.PagerInput,{currentPage:O,totalPages:this.totalPages,pageChange:this.changePage,messagesMap:g}),w=g?g(c.pagerFirstPage):{messageKey:c.pagerFirstPage,defaultMessage:c.messages[c.pagerFirstPage]},C=g?g(c.pagerPreviousPage):{messageKey:c.pagerPreviousPage,defaultMessage:c.messages[c.pagerPreviousPage]},x=g?g(c.pagerNextPage):{messageKey:c.pagerNextPage,defaultMessage:c.messages[c.pagerNextPage]},E=g?g(c.pagerLastPage):{messageKey:c.pagerLastPage,defaultMessage:c.messages[c.pagerLastPage]},D=g?g(c.pagerInfo):{messageKey:c.pagerInfo,defaultMessage:c.messages[c.pagerInfo]};this.props.previousNext&&(e=this.renderButton(1,"k-link k-pager-nav k-pager-first"+(1===O?" k-state-disabled":""),b.toLanguageString(w.messageKey,w.defaultMessage),"k-icon k-i-arrow-end-left"),t=this.renderButton(O-1,"k-link k-pager-nav"+(1===O?" k-state-disabled":""),b.toLanguageString(C.messageKey,C.defaultMessage),"k-icon k-i-arrow-60-left"),n=this.renderButton(O+1,"k-link k-pager-nav"+(O>=this.totalPages?" k-state-disabled":""),b.toLanguageString(x.messageKey,x.defaultMessage),"k-icon k-i-arrow-60-right"),r=this.renderButton(this.totalPages,"k-link k-pager-nav k-pager-last"+(O>=this.totalPages?" k-state-disabled":""),b.toLanguageString(E.messageKey,E.defaultMessage),"k-icon k-i-arrow-end-right"));var I=m&&i.createElement(u.PagerPageSizes,{pageChange:this.props.onPageChange,pageSize:h,pageSizes:m,messagesMap:g}),_=this.props.info&&i.createElement("div",{className:"k-pager-info k-label"},y.format(b.toLanguageString(D.messageKey,D.defaultMessage),[Math.min(f+1,v),Math.min(f+h,v),v]));return i.createElement("div",{className:d.classNames("k-pager-wrap k-pager k-widget",this.props.className),style:this.props.style,role:"navigation",ref:function(e){return o._element=e}},e,t,k,n,r,I,_)},t.prototype.renderButton=function(e,t,n,r){var o=this;return i.createElement("a",{onClick:function(t){t.preventDefault(),o.changePage(e,t)},href:"#",className:t,title:n},i.createElement("span",{className:r}))},Object.defineProperty(t.prototype,"totalPages",{get:function(){return Math.ceil((this.props.total||0)/this.props.take)},enumerable:!0,configurable:!0}),t.propTypes={className:a.string,style:a.object,total:a.number.isRequired,skip:a.number.isRequired,take:a.number.isRequired,buttonCount:a.number,info:a.bool,type:a.oneOf(["numeric","input"]),pageSizes:a.arrayOf(a.number),previousNext:a.bool,onPageChange:a.func,messagesMap:a.func},t.defaultProps={buttonCount:10,info:!0,type:"numeric"},t}(i.Component);t.Pager=v,p.registerForIntl(v),p.registerForLocalization(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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePageChange=function(e,n){e.preventDefault(),t.props.pageChange(n,e)},t.handleSelectPageChange=function(e){e.preventDefault(),t.props.pageChange(e.target.value,e)},t}return o(t,e),t.prototype.render=function(){for(var e=this,t=this.start>1&&this.renderDots(this.start-1),n=this.end<this.props.totalPages&&this.renderDots(this.end+1),r=this.start>1&&this.renderOptionDots(this.start-1),o=this.end<this.props.totalPages&&this.renderOptionDots(this.end+1),s=[],l=this.start;l<=this.end;l++)s.push(l);var u=s.map((function(t){return i.createElement("li",{key:t},i.createElement("a",{href:"#",onClick:function(n){return e.handlePageChange(n,t)},className:a.classNames("k-link",{"k-state-selected":e.props.currentPage===t})},t))})),c=s.map((function(e){return i.createElement("option",{key:e,className:a.classNames("k-link")},e)}));return i.createElement("div",{className:"k-pager-numbers-wrap"},i.createElement("select",{className:"k-dropdown",value:this.props.currentPage,onChange:function(t){return e.handleSelectPageChange(t)}},r,c,o),i.createElement("ul",{className:"k-pager-numbers k-reset"},t,u,n))},t.prototype.renderDots=function(e){var t=this;return i.createElement("li",null,i.createElement("a",{className:"k-link",onClick:function(n){return t.handlePageChange(n,e)},href:"#"},"..."))},t.prototype.renderOptionDots=function(e){return i.createElement("option",{className:"k-link",value:e},"...")},Object.defineProperty(t.prototype,"end",{get:function(){return Math.min(this.start+this.props.buttonCount-1,this.props.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){var e=this.props.currentPage,t=this.props.buttonCount;if(e>t){var n=e%t;return 0===n?e-t+1:e-n+1}return 1},enumerable:!0,configurable:!0}),t}(i.Component);t.PagerNumericButtons=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(4),s=n(8),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._text=void 0,t.onChange=function(e){var n=t._text=e.target.value.replace(/\D/g,"");t.forceUpdate(),n&&t.props.pageChange(parseInt(n,10),e)},t.value=function(){var e=void 0===t._text?t.props.currentPage.toString():t._text;return t._text=void 0,e},t}return o(t,e),t.prototype.render=function(){var e=this,t=a.provideIntlService(this),n=a.provideLocalizationService(this),r=this.props.messagesMap?this.props.messagesMap(s.pagerPage):{messageKey:s.pagerPage,defaultMessage:s.messages[s.pagerPage]},o=this.props.messagesMap?this.props.messagesMap(s.pagerOf):{messageKey:s.pagerOf,defaultMessage:s.messages[s.pagerOf]},l=this.props.messagesMap?this.props.messagesMap(s.pagerTotalPages):{messageKey:s.pagerTotalPages,defaultMessage:s.messages[s.pagerTotalPages]};return i.createElement("span",{className:"k-pager-input k-label"},n.toLanguageString(r.messageKey,r.defaultMessage),i.createElement("input",{className:"k-textbox",value:this.value(),onBlur:function(){return e.forceUpdate()},onChange:this.onChange}),n.toLanguageString(o.messageKey,o.defaultMessage)+" "+t.format(n.toLanguageString(l.messageKey,l.defaultMessage),[this.props.totalPages]))},t}(i.Component);t.PagerInput=l,a.registerForLocalization(l)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(4),s=n(8),l=n(9),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pageSizeChange=function(e){t.props.pageChange&&t.props.pageChange({skip:0,take:parseInt(e.target.value,10)},e)},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.pageSizes.slice();0===t.filter((function(t){return t===e.props.pageSize})).length&&t.unshift(this.props.pageSize);var n=this.props.messagesMap?this.props.messagesMap(s.pagerItemPerPage):{messageKey:s.pagerItemPerPage,defaultMessage:s.messages[s.pagerItemPerPage]};return i.createElement("span",{className:"k-pager-sizes k-label"},i.createElement(l.DropDownList,{value:this.props.pageSize,data:t,onChange:this.pageSizeChange}),a.provideLocalizationService(this).toLanguageString(n.messageKey,n.defaultMessage))},t}(i.Component);t.PagerPageSizes=u,a.registerForLocalization(u)},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(11)),r(n(47)),r(n(48)),r(n(49)),r(n(50))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(9),u={emptyFilter:{operator:"eq",value:""},inputComponent:function(e){return null},operatorComponent:function(e,t){var n=t.filter,r=void 0===n?[]:n,o=t.field,s=r.find((function(e){return e.field===o}));return a.createElement(l.DropDownList,i({},e,{value:e.data.find((function(e){return e.operator===(s?s.value:"")})),onChange:function(e){if(t.onFilterChange){var n=e.target.value.operator;if(""!==n){var a=s?r.map((function(e){return e.field===o?i({},s,{value:n}):e})):r.concat([{value:n,field:o,operator:"eq"}]);t.onFilterChange.call(void 0,{filter:a,field:o,syntheticEvent:e.syntheticEvent})}else s&&t.onFilterChange.call(void 0,{filter:r.filter((function(e){return e.field!==s.field})),field:o,syntheticEvent:e.syntheticEvent})}}}))}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(u));t.BooleanFilterCell=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(21),u=n(9),c={inputComponent:function(e){return a.createElement(l.DatePicker,i({},e))},operatorComponent:function(e){return a.createElement(u.DropDownList,i({},e))},emptyFilter:{operator:"eq",value:null}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(c));t.DateFilterCell=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(9),u=n(13),c={inputComponent:function(e){return a.createElement(u.NumericTextBox,i({},e))},operatorComponent:function(e){return a.createElement(l.DropDownList,i({},e))},emptyFilter:{operator:"eq",value:null}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(c));t.NumericFilterCell=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(13),u=n(9),c={inputComponent:function(e){return a.createElement(l.Input,i({},e))},operatorComponent:function(e){return a.createElement(u.DropDownList,i({},e))},emptyFilter:{operator:"contains",value:""}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(c));t.TextFilterCell=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(18),i=n(14),a=n(4),s=n(8);t.FILTER_ROW_CLASS="k-filter-row";var l=function(e,t,n){var r=n?"k-grid-header-sticky":"";return e.some((function(e){return e.field===t}))&&(r+=" k-sorted"),r};t.FilterRow=function(e){var n=e.columns,u=e.filter,c=e.filterChange,p=e.sort,d=void 0===p?[]:p,f=e.ariaRowIndex,h=a.useLocalization();return r.createElement("tr",{className:t.FILTER_ROW_CLASS,"aria-rowindex":f,role:"row"},n.map((function(e,t){var n=void 0!==e.locked?{left:e.left,right:e.right,borderRightWidth:e.rightBorder?"1px":""}:{},a=e.filterCell||e.filter;return r.createElement(o.HeaderThElement,{columnId:i.getFilterColumnId(e.id),navigatable:e.navigatable,style:n,key:t,ariaColumnIndex:e.ariaColumnIndex,ariaLabel:a?h.toLanguageString(s.filterAriaLabel,s.messages[s.filterAriaLabel]):void 0,className:l(d,e.field,e.locked)},a&&r.createElement(a,{field:e.field,filter:u,onFilterChange:c}))})))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(29),l=n(12),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props.columnResize;e&&e.resizable&&e.setIsRtl(s.isRtl(this.element))},t.prototype.render=function(){var e=this;return a.createElement("thead",i({className:"k-grid-header",role:"presentation",ref:function(t){return e.element=t}},l.tableKeyboardNavigationHeaderAttributes),this.props.headerRow,this.props.filterRow)},t}(a.Component);t.Header=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(30),l=n(31),u=n(54),c=n(55),p=n(18),d=n(2),f=n(4),h=n(8),v={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}},m={none:"none",asc:"ascending",desc:"descending"},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellClick=function(e,n){if(e.preventDefault(),t.props.sortChange){var r=l.normalize(t.props.sortable||!1,n.sortable||!1),o=r.allowUnsort,i=r.mode,a=(t.props.sort||[]).filter((function(e){return e.field===n.field}))[0],s=v[o][a&&a.dir||""],u="single"===i?[]:(t.props.sort||[]).filter((function(e){return e.field!==n.field}));""!==s&&n.field&&u.push({field:n.field,dir:s}),t.props.sortChange(e,u,n.field)}},t.cellKeyDown=function(e,n){e.isDefaultPrevented()||e.keyCode===d.Keys.enter&&t.cellClick(e,n)},t.cells=function(e){return e.map((function(e,n){var r=t.props.columns[e],o=t.props.columnResize,l=o&&o.resizable&&r.resizable,c=t.props.sortable&&r.sortable,v=t.props.sort?t.props.sort.findIndex((function(e){return e.field===r.field})):-1,g=v>=0&&t.props.sort[v].dir||"none",b={field:r.field,onClick:c&&function(e){return t.cellClick(e,r)}||void 0,selectionChange:t.props.selectionChange,title:r.title,selectionValue:r.headerSelectionValue,render:t.props.cellRender,children:t.sortIcon(v)},y=r.columnMenu||t.props.columnMenu,O=d.classNames({"k-first":r.kFirst,"k-filterable":Boolean(y),"k-header":!0,"k-grid-header-sticky":r.locked,"k-sorted":t.props.sort&&t.props.sort.some((function(e){return e.field===r.field}))},r.headerClassName),k=void 0!==r.locked?{left:r.left,right:r.right,borderRightWidth:r.rightBorder?"1px":""}:{},w=f.provideLocalizationService(t).toLanguageString(h.sortAriaLabel,h.messages[h.sortAriaLabel]),C=r.isAccessible?{ariaSort:c?m[g]:void 0,role:"columnheader",ariaColumnIndex:r.ariaColumnIndex,ariaSelected:!1,ariaDescription:c?w:""}:{role:"presentation"},x={sort:t.props.sort,onSortChange:t.props.sortChange,filter:t.props.columnMenuFilter,onFilterChange:t.props.columnMenuFilterChange,field:r.field};return a.createElement(p.HeaderThElement,i({key:n,colSpan:r.colSpan,rowSpan:r.rowSpan,className:O,style:k,columnId:r.id,navigatable:r.navigatable,onKeyDown:c&&function(e){return t.cellKeyDown(e,r)}||void 0},C),r.headerCell&&a.createElement(r.headerCell,i({},b)),!r.headerCell&&a.createElement("span",{className:"k-cell-inner"},a.createElement(s.HeaderCell,i({},b)),y&&a.createElement(y,i({},x))),o&&l&&a.createElement(u.ColumnResizer,{key:"ColumnResizer",resize:function(e,t,n){return o.dragHandler(e,r,t,n)}}))}))},t}return o(t,e),t.prototype.sortIcon=function(e){return this.props.sort?e>=0&&[a.createElement("span",{key:1,className:"k-icon k-i-sort-"+this.props.sort[e].dir+"-sm"}),this.props.sort.length>1&&a.createElement("span",{key:2,className:"k-sort-order"},e+1)]:null},t.prototype.render=function(){var e=this;return this.props.columnsMap.map((function(t,n){return e.props.pressHandler&&a.createElement(c.ColumnDraggable,{key:n,pressHandler:e.props.pressHandler,dragHandler:e.props.dragHandler,releaseHandler:e.props.releaseHandler,ariaRowIndex:n+1},e.cells(t))||a.createElement("tr",{"aria-rowindex":n+1,role:"row"},e.cells(t))}))},t}(a.Component);t.HeaderRow=g,f.registerForLocalization(g)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onDrag=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.resize(e.event,n,!1)},t.onRelease=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.resize(e.event,n,!0)},t}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(a.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){e.draggable=t}},i.createElement("span",{className:"k-column-resizer",draggable:!1}))},t}(i.PureComponent);t.ColumnResizer=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onPress=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.pressHandler&&t.props.pressHandler(e.event,n)},t.onDrag=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.dragHandler&&t.props.dragHandler(e.event,n)},t.onRelease=function(e){t.draggable&&t.draggable.element&&t.props.releaseHandler&&t.props.releaseHandler(e.event)},t}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(a.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){e.draggable=t}},i.createElement("tr",{"aria-rowindex":this.props.ariaRowIndex,role:"row"},this.props.children))},t}(i.PureComponent);t.ColumnDraggable=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.HeaderSelectionCell=function(e){var t=[r.createElement("input",{key:0,checked:e.selectionValue,id:e.inputId,type:"checkbox",className:"k-checkbox",onChange:function(t){return e.selectionChange({field:e.field,syntheticEvent:t})}}),r.createElement("label",{key:1,className:"k-checkbox-label",htmlFor:e.inputId})];return e.render?e.render.call(void 0,t,e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(58))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableColumnsVirtualization=function(e){var t=e.enabled,n=e.columns,r=void 0===n?[]:n,o=e.tableViewPortWidth,i=e.scrollLeft,a=r.map((function(){return 1})),s=r.map((function(){return!1}));if(!t)return{colSpans:a,hiddenColumns:s};for(var l=r.map((function(e){return parseFloat((e.width||"").toString())||10})),u=0,c=0;c<r.length;c++)if(!r[c].locked){var p=c<l.length-1?l[c+1]:0;if(!(u+l[c]+p<i))break;s[c]=!0,u+=l[c]}var d=l.reduce((function(e,t){return e+t}),0);for(u=0,c=r.length-1;c>=0;c--)if(!r[c].locked){if(!(u+2*l[c]<d-o-i))break;s[c]=!0,u+=l[c]}for(var f,h,v=s.slice(),m=function(e){return e},g=v.lastIndexOf(!1),b=v.some(m),y=v.every(m);b&&v.length&&(-1!==g||y);){for(g<v.length-1&&(f=y?v.length:v.length-g-1,0===(h=v.length-f)&&(h=f-1),s[h]=!1,a[h]=f,v.splice(g+1,f));v.length&&!v[v.length-1];)v.pop();g=v.lastIndexOf(!1),b=v.some(m),y=v.every(m)}return{colSpans:a,hiddenColumns:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.resizable=!1,this.isRtl=!1,this.setIsRtl=function(e){t.isRtl=e},this.onResize=e,this.dragHandler=this.dragHandler.bind(this)}return e.prototype.dragHandler=function(e,t,n,r){var o=e.originalEvent;r||(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation());var i=n.parentElement;if(i&&i.parentElement){var a,s=i.clientWidth;if(this.isRtl?(a=n.getBoundingClientRect().right-n.offsetWidth/2-e.clientX,a+=s):a=s+e.clientX-n.getBoundingClientRect().left-n.offsetWidth/2,r||!(Math.abs(a-s)<1)){this.setWidths(t,Math.floor(a)/s);var l=this.columns.filter((function(e){return!e.children.length})).indexOf(t);this.onResize(l,s,a,o,r)}}},e.prototype.setWidths=function(e,t){for(var n=this.columns.indexOf(e),r=[],o=e.children.length,i=n+1;o>0&&i<this.columns.length;i++,o--){var a=this.columns[i];a.children.length?o+=a.children.length:r.push(a)}0===r.length&&r.push(e),r.forEach((function(e){var n=e.width?parseFloat(e.width.toString())*t:0,r=void 0===e.minResizableWidth?10:e.minResizableWidth;n<r&&(n=r),e.width=Math.floor(n)})),this.updateColElements(r)},e.prototype.updateColElements=function(e){for(var t=this.columns.filter((function(e){return!e.children.length})),n=1e-10,r=0;r<e.length;r++){var o=t.indexOf(e[r]),i=parseFloat((e[r].width||0).toString());n+=i-Math.floor(i);var a=Math.floor(i)+Math.floor(n);n-=Math.floor(n),this.setColWidth(this.colGroupMain&&this.colGroupMain.children[o],a),this.setColWidth(this.colGroupHeader&&this.colGroupHeader.children[o],a),this.setColWidth(this.colGroupFooter&&this.colGroupFooter.children[o],a)}},e.prototype.setColWidth=function(e,t){e&&(e.style.width=t+"px")},e}();t.ColumnResize=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=function(){function e(e,t,n){var r=this;this.reorderable=!1,this.groupable=!1,this.startColumn=-1,this.startGroup=-1,this.currentColumn=-1,this.currentGroup=-1,this.dropElementClue=null,this.dragElementClue=null,this.groupPanelDivElement=null,this.refGroupPanelDiv=function(e){r.groupPanelDivElement=e},this.refDropElementClue=function(e){r.dropElementClue=e},this.refDragElementClue=function(e){r.dragElementClue=e},this.pressHandler=function(e,t){e.isTouch||e.originalEvent.preventDefault();var n=r.getColumnIndex(e,t);if(r.startGroup=r.getGroupIndex(e),n>=0){var o=r.columns[n];(o.reorderable&&r.reorderable||o.groupable&&r.groupable)&&(r.startColumn=n)}},this.dragHandler=function(e,t){if(e.isTouch||e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),-1!==r.startColumn||-1!==r.startGroup){r.currentColumn=r.getColumnIndex(e,t),r.currentGroup=r.getGroupIndex(e),r.groupPanelDivElement&&r.startGroup>=0&&(r.currentGroup=Math.min(r.currentGroup,r.groupPanelDivElement.children.length-2));var n=!r.isValid();n&&(r.currentColumn=-1,r.currentGroup=-1);var o=r.currentColumn>=0?t.children[r.columns[r.currentColumn].index]:r.groupPanelDivElement&&r.groupPanelDivElement.children[r.currentGroup];r.updateDragElementClue(e,t,o,n),r.updateDropElementClue(e,t,o,n)}},this.releaseHandler=function(e){var t=r.startColumn,n=r.currentColumn,o=r.startGroup,i=r.currentGroup;r.dropElementClue&&r.dropElementClue.setState({visible:!1}),r.dragElementClue&&r.dragElementClue.setState({visible:!1});var a=r.isValid();r.startColumn=r.startGroup=r.currentColumn=r.currentGroup=-1,a&&(t>=0&&n>=0?r.columnReorder(t,n,e.originalEvent):o>=0&&i>=0?r.groupReorder(o,i,e.originalEvent):t>=0&&i>=0&&r.columnToGroup(t,i,e.originalEvent))},this.columnReorder=e,this.groupReorder=t,this.columnToGroup=n}return e.prototype.getColumnIndex=function(e,t){if(!t||t.parentElement===this.groupPanelDivElement)return-1;var n=r.getIndex(e,t);if(-1===n)return-1;for(var o=function(e){if(t.parentNode.children[e]===t)return{value:i.columns.findIndex((function(t){return t.index===n&&t.depth===e}))}},i=this,a=0;a<t.parentNode.children.length;a++){var s=o(a);if("object"==typeof s)return s.value}return-1},e.prototype.getGroupIndex=function(e){return r.getIndex(e,this.groupPanelDivElement)},e.prototype.isValid=function(){return this.startGroup>=0?this.currentGroup>=0&&this.currentGroup!==this.startGroup:-1!==this.startColumn&&(this.currentGroup>=0?!0===this.columns[this.startColumn].groupable&&!0===this.groupable:!0===this.reorderable&&this.currentColumn>=0&&this.currentColumn!==this.startColumn&&!0===this.columns[this.startColumn].reorderable&&this.columns[this.currentColumn].parentIndex===this.columns[this.startColumn].parentIndex)},e.prototype.updateDragElementClue=function(e,t,n,r){if(this.dragElementClue){var o=this.startColumn>=0?t.children[this.columns[this.startColumn].index].innerText:t.innerText;this.dragElementClue.setState({visible:!0,top:e.pageY+10,left:e.pageX,innerText:o,status:r||!n?"k-i-cancel":"k-i-add"})}},e.prototype.updateDropElementClue=function(e,t,n,r){if(this.dropElementClue)if(!r&&n){var o=n.getBoundingClientRect(),i=o.left+e.pageX-e.clientX-6;(this.currentColumn>this.startColumn||this.currentGroup>this.startGroup&&-1!==this.startGroup)&&(i+=o.width);var a=o.top+e.pageY-e.clientY;this.dropElementClue.setState({visible:!0,top:a,left:i,height:this.currentColumn>=0?t.clientHeight:o.height})}else this.dropElementClue.setState({visible:!1})},e}();t.CommonDragLogic=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(15),s=n(2),l=function(e){function t(t){var n=e.call(this,t)||this;return n.elementRef=i.createRef(),n.state={visible:!1,top:0,left:0,innerText:"",status:"k-i-cancel"},n.hiddenElementRef=i.createRef(),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.hiddenElementRef.current,t=this.state.visible&&s.canUseDOM&&a.createPortal(i.createElement("div",{ref:this.elementRef,className:"k-header k-drag-clue",style:{display:"block",position:"absolute",zIndex:2e4,padding:"8px 12px",top:this.state.top+"px",left:this.state.left+"px"}},i.createElement("span",{className:"k-icon k-drag-status "+this.state.status+" k-icon-with-modifier"},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.innerText),e&&e.ownerDocument?e.ownerDocument.body:document.body);return i.createElement(i.Fragment,null,t,i.createElement("div",{ref:this.hiddenElementRef,style:{display:"none"}}))},t}(i.PureComponent);t.DragClue=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(15),s=n(2),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={height:0,visible:!1,left:0,top:0},n.hiddenElementRef=i.createRef(),n}return o(t,e),t.prototype.render=function(){var e=this.hiddenElementRef.current,t=this.state.visible&&s.canUseDOM&&a.createPortal(i.createElement("div",{className:"k-grouping-dropclue",style:{zIndex:1e4,display:"block",top:this.state.top+"px",left:this.state.left+"px",height:this.state.height+"px"}}),e&&e.ownerDocument?e.ownerDocument.body:document.body);return i.createElement(i.Fragment,null,t,i.createElement("div",{ref:this.hiddenElementRef,style:{display:"none"}}))},t}(i.PureComponent);t.DropClue=l},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(64)),r(n(33)),r(n(69)),r(n(34)),r(n(19))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(65)),r(n(66)),r(n(67)),r(n(68)),r(n(32))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(13),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value})})},t}return o(t,e),t.prototype.render=function(){return a.createElement(l.Input,{value:this.props.filter.value||"",onChange:this.onChange})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired},t}(a.Component);t.TextFilter=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(13),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value})})},t}return o(t,e),t.prototype.render=function(){var e=this.props.filter;return a.createElement(l.NumericTextBox,{value:"number"==typeof e.value?e.value:null,onChange:this.onChange})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired},t}(a.Component);t.NumericFilter=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(21),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value})})},t}return o(t,e),t.prototype.render=function(){var e=this.props.filter;return a.createElement(l.DatePicker,{value:e.value||null,onChange:this.onChange})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired},t}(a.Component);t.DateFilter=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(32),l=n(8),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[{text:l.filterIsTrue,value:!0},{text:l.filterIsFalse,value:!1}],t}return o(t,e),t.prototype.render=function(){return i.createElement(s.EnumFilter,{filter:this.props.filter,onFilterChange:this.props.onFilterChange,data:this.props.data||this.data,defaultItem:this.props.defaultItem})},t.propTypes={filter:a.object.isRequired,onFilterChange:a.func.isRequired,data:a.arrayOf(a.shape({text:a.string,value:a.any})),defaultItem:a.any},t}(i.Component);t.BooleanFilter=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(34),u=n(2),c=n(17),p=function(e){function t(t){var n=e.call(this,t)||this;return n.onFilterChange=function(e){var t={filter:e.nextFilter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:n};n.props.onChange.call(void 0,t)},n.onGroupRemove=function(e){var t={filter:i({},n.props.value,{filters:[]}),syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:n};n.props.onChange.call(void 0,t)},u.validatePackage(c.packageMetadata),n}return o(t,e),t.prototype.render=function(){return a.createElement("div",{className:"k-widget k-filter"+(this.props.className?" "+this.props.className:""),style:this.props.style},a.createElement("ul",{className:"k-filter-container"},a.createElement("li",{className:"k-filter-group-main"},a.createElement(l.Group,{filter:this.props.value,fields:this.props.fields,onChange:this.onFilterChange,onRemove:this.onGroupRemove,defaultGroupFilter:this.props.defaultGroupFilter||{logic:"and",filters:[]}}))))},t.propTypes={className:s.string,style:s.object,fields:function(e,t){var n=e[t];return void 0===n?new Error("Property '"+t+"' is missing."):Array.isArray(n)?Object.keys(n.reduce((function(e,t){var n;return i({},e,((n={})[t.name]=1,n))}),{})).length!==n.length?new Error("Property '"+t+"' needs to contain objects with unique 'name' field."):null:new Error("Property '"+t+"' needs to be Array<FieldSettings>.")},value:s.object.isRequired,onChange:s.func.isRequired},t}(a.Component);t.Filter=p},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(71)),r(n(39)),r(n(38)),r(n(36)),r(n(35)),r(n(37))},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)},o=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 i=n(1),a=n(7),s=n(4),l=n(22),u=n(35),c=n(36),p=n(38),d=n(39),f=n(8),h=n(2),v=n(17),m=function(e){h.validatePackage(v.packageMetadata);var t=i.useRef([]),n=e.field,o=e.filter,c=e.sort,p=void 0===c?t.current:c,m=e.onSortChange,g=e.onFilterChange,b=e.initialFilter,y=e.sortAsc,O=void 0!==y&&y,k=e.sortDesc,w=void 0!==k&&k,C=e.filterContent,x=void 0===C?[]:C,E=e.expandFilters,D=void 0!==E&&E,I=i.useState(!1),_=I[0],P=I[1],S=i.useState(D),j=S[0],N=S[1],F=i.useState(n&&b?b(n):null),M=F[0],T=F[1],R=i.useRef(null),L=i.useRef(null),V=i.useRef(null),B=i.useCallback((function(){return(o||[]).find((function(e){return e.filters.every((function(e){return!l.isCompositeFilterDescriptor(e)&&e.field===n}))}))}),[o,n]),A=i.useCallback((function(){P(!1)}),[]),K=i.useCallback((function(){clearTimeout(V.current),V.current=window.setTimeout((function(){A()}))}),[A]),q=i.useCallback((function(){return clearTimeout(V.current)}),[]),H=i.useCallback((function(){P(!_),n&&b&&(N(!_&&D),T(_?M:B()||b(n)))}),[B,n,_,M,b,D]);i.useEffect((function(){_&&L.current&&L.current.focus()}),[_]);var z=i.useCallback((function(){return N(!j)}),[j]),U=i.useCallback((function(e,t){var r=p.slice(),o=r.findIndex((function(e){return e.field===n})),i={field:n,dir:t};o>=0?r[o].dir!==i.dir?r.splice(o,1,i):r.splice(o,1):r.push(i),A(),m&&m.call(void 0,e,r,n)}),[p,n,m,A]),W=i.useCallback((function(e,t,n){var o=r({},M,{filters:M.filters.slice()}),i=o.filters.indexOf(n);o.filters.splice(i,1,t),T(o)}),[M]),Y=i.useCallback((function(e){e.preventDefault();var t=(o||[]).slice(),r=B(),i=r?t.indexOf(r):-1;i>=0?t.splice(i,1,M):t.push(M),A(),g&&g.call(void 0,e,t,n)}),[o,M,n,g,A,B]),G=i.useCallback((function(e){var t=(o||[]).slice(),r=B(),i=r?t.indexOf(r):-1;i>=0&&t.splice(i,1),b&&T(b(n)),A(),g&&g.call(void 0,e,t,n)}),[o,n,g,b,A,B]),X=i.useCallback((function(e){return U(e,"asc")}),[U]),Z=i.useCallback((function(e){return U(e,"desc")}),[U]),$=i.useCallback((function(e){return M&&T(r({},M,{logic:e.value.logic}))}),[M]),J=p.find((function(e){return e.field===n}))||{dir:""},Q=x[0],ee=x[1],te=x[2],ne=s.useLocalization(),re=[O||w?i.createElement("div",{className:"k-columnmenu-item-wrapper",key:"sorting"},O&&i.createElement(u.ColumnMenuItem,{title:ne.toLanguageString(f.columnMenuSortAscending,f.messages[f.columnMenuSortAscending]),iconClass:"k-i-sort-asc-sm",selected:"asc"===J.dir,onClick:X}),w&&i.createElement(u.ColumnMenuItem,{title:ne.toLanguageString(f.columnMenuSortDescending,f.messages[f.columnMenuSortDescending]),iconClass:"k-i-sort-desc-sm",selected:"desc"===J.dir,onClick:Z})):null,M&&x.length>0?i.createElement("div",{className:"k-columnmenu-item-wrapper",key:"filtering"},i.createElement(u.ColumnMenuItem,{iconClass:"k-i-filter",title:ne.toLanguageString(f.columnMenuFilterTitle,f.messages[f.columnMenuFilterTitle]),onClick:z}),i.createElement(d.ColumnMenuFilterForm,{show:j,onSubmit:Y,onReset:G},Q&&i.createElement(Q,{filter:M.filters[0],onFilterChange:W}),ee&&i.createElement(ee,{value:M.logic,onChange:$}),te&&i.createElement(te,{filter:M.filters[1],onFilterChange:W}))):null],oe=[i.createElement("span",{ref:R,onClick:H,className:"k-grid-column-menu k-grid-filter"+(Boolean(B())?" k-state-active":""),key:"button"},i.createElement("span",{className:"k-icon k-i-more-vertical"})),i.createElement(a.Popup,{anchor:R.current,show:_,key:"popup"},i.createElement("div",{className:"k-grid-columnmenu-popup",ref:L,tabIndex:0,onBlur:K,onFocus:q,style:{outline:"none"}},e.itemsRender?e.itemsRender.call(void 0,re,{closeMenu:A,field:n}):re))];return e.render?e.render.call(void 0,oe):oe};t.ColumnMenuTextColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"and",filters:[{operator:"contains",field:e,value:""},{operator:"contains",field:e,value:""}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuTextFilter,p.ColumnMenuFilterLogic,c.ColumnMenuTextFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))},t.ColumnMenuNumericColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"or",filters:[{operator:"eq",field:e,value:null},{operator:"eq",field:e,value:null}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuNumericFilter,p.ColumnMenuFilterLogic,c.ColumnMenuNumericFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))},t.ColumnMenuDateColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"or",filters:[{operator:"eq",field:e,value:null},{operator:"eq",field:e,value:null}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuDateFilter,p.ColumnMenuFilterLogic,c.ColumnMenuDateFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))},t.ColumnMenuBooleanColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"and",filters:[{operator:"eq",field:e,value:!1}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuBooleanFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))}},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(22);function i(e,t,n){var o;return n?r({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}t.orderBy=function(e,t,n){var a=o.orderBy(e,t);return a=a.map((function(e){return function e(t,n,a){var s;if(t[a]){var l=i(t,a,o.orderBy(i(t,a),n)),u=i(l,a).map((function(t){return e(t,n,a)}));return r({},l,((s={})[a]=u,s))}return t}(e,t,n)}))},t.filterBy=function(e,t,n){var r,a=((r={})[n]=e.slice(),r);return(a=function e(t,n,r){var a=i(t,r);if(a&&a.length){a=a.map((function(t){return e(t,n,r)}));var s={filters:[{filters:n,logic:"and"},{operator:function(e){return Boolean((e[r]||[]).length)}}],logic:"or"},l=o.filterBy(a,s);return i(t,r,l)}return t}(a,t,n))[n]||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=function(e,t,n){e.items&&(e.groupId=""+n+(n&&"_")+e.value+e.field,t>1&&e.items.forEach((function(n){return o(n,t-1,e.groupId)})))};t.setGroupIds=function(e){var t=e.group;if(t&&t.length&&e.data)return e.data.forEach((function(e){return o(e,t.length,"")}))},t.getGroupIds=function(e){var t=[];return r.mapTree(e.data,"items",(function(e){e.groupId&&t.push(e.groupId)})),t},t.setExpandedState=function(e){return r.mapTree(e.data,"items",(function(t){return r.extendDataItem(t,"items",{expanded:!e.collapsedIds.some((function(e){return e===t.groupId}))})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(14),i=function(e){var t=e.navigationStateRef,n=e.scope;if(t.current&&n){var r=[],i=o.getHeaderElement(n),a=o.getBodyElement(n);if(i&&a){var s=Array.from(i.children),l=Array.from(a.children);s.concat(l).forEach((function(e,t){Array.from(e.children).forEach((function(e){var n=o.getNavigatableId(e);if(n){for(var i,a=e.rowSpan||1,s=e.colSpan||1,l=t,u=t+a;l<u;l++){if(r[l]||(r[l]=[]),void 0===i){var c=r[l].findIndex((function(e){return!e}));i=c>-1?c:r[l].length}r[l][i]=n||""}for(l=i+1,u=i+s;l<u;l++)r[t][l]=n||""}}))})),t.current.navigationMatrix=r.filter((function(e){return!!e})),t.current.lastHeaderIndex=s.length-1}}};t.tableKeyboardNavigation={onConstructor:function(e){var t=e.navigatable,n=e.contextStateRef,o=e.navigationStateRef,i=e.idPrefix;t&&(n.current={activeId:"",level:0},o.current={activeElementIsFocused:!1,prevNavigationIndexes:void 0,idPrefix:i||r.guid(),navigationMatrix:[],lastHeaderIndex:-1})},onComponentDidMount:function(e){var t=e.scope,n=e.contextStateRef,r=e.navigationStateRef;if(n.current&&r.current&&t){i(e);var a=r.current.navigationMatrix[0][0],s=o.tableKeyboardNavigationTools.getActiveElement(t,a);a&&s&&(n.current.activeId=a,s.setAttribute("tabIndex","0"))}},onGetSnapshotBeforeUpdate:function(e){var t=e.contextStateRef,n=e.navigationStateRef,r=e.document;if(t.current&&n.current&&r){var i=r.activeElement,a=o.tableKeyboardNavigationTools.getNavigatableId(i);a&&a===t.current.activeId&&(n.current.activeElementIsFocused=!0)}},onComponentDidUpdate:function(e){var t=e.scope,n=e.contextStateRef,r=e.navigationStateRef;if(i(e),n.current&&r.current&&t){if(!o.tableKeyboardNavigationTools.getActiveElement(t,n.current.activeId)){var a=r.current.navigationMatrix[0][0],s=o.tableKeyboardNavigationTools.getActiveElement(t,a);a&&s&&(n.current.activeId=a,s.setAttribute("tabIndex","0"),r.current.activeElementIsFocused&&s.focus())}r.current.activeElementIsFocused=!1}},onFocus:function(e,t){var n=t.contextStateRef;if(!e.isDefaultPrevented()&&n.current){var r=e.target,i=o.tableKeyboardNavigationTools.getNavigatableId(r);if(i&&i!==n.current.activeId){var a=o.tableKeyboardNavigationTools.getClosestScope(r);if(!a)return;var s=o.tableKeyboardNavigationTools.getActiveElement(a,n.current.activeId);s&&s.setAttribute("tabIndex","-1"),r.setAttribute("tabIndex","0"),n.current.activeId=i}}},onKeyDown:function(e,t){var n=t.contextStateRef,i=t.navigationStateRef,a=t.onNavigationAction;if(!e.isDefaultPrevented()&&n.current&&i.current)if(e.keyCode!==r.Keys.esc){var s=e.target,l=o.tableKeyboardNavigationTools.getNavigatableId(s),u=o.tableKeyboardNavigationTools.getNavigatableLevel(s),c=o.tableKeyboardNavigationTools.getClosestScope(s),p=i.current.navigationMatrix;if(void 0!==u&&c){if(e.keyCode===r.Keys.enter){var d=o.tableKeyboardNavigationTools.getNavigatableElement(s,{level:u+1});if(d)return void o.tableKeyboardNavigationTools.focusElement({elementForFocus:d,event:e,contextStateRef:n,prevElement:s});w=o.tableKeyboardNavigationTools.getFocusableElements(s)[0];return void o.tableKeyboardNavigationTools.focusElement({elementForFocus:w,event:e,contextStateRef:n,prevElement:s})}if(e.keyCode===r.Keys.up||e.keyCode===r.Keys.down||e.keyCode===r.Keys.left||e.keyCode===r.Keys.right){var f=e.keyCode===r.Keys.up||e.keyCode===r.Keys.left,h=e.keyCode===r.Keys.up||e.keyCode===r.Keys.down,v=void 0;if(i.current&&i.current.prevNavigationIndexes){var m=i.current.prevNavigationIndexes,g=m[0],b=m[1];v=p[g][b]===l?i.current.prevNavigationIndexes:o.findId(p,l)}else v=o.findId(p,l);if(v){g=v[0],b=v[1];var y=h?o.findNextIdByRowIndex(g,b,l,p,f):o.findNextIdByCellIndex(g,b,l,p,f),O=y[0],k=y[1];if(O){w=o.tableKeyboardNavigationTools.getActiveElement(c,O);o.tableKeyboardNavigationTools.focusElement({elementForFocus:w,event:e,contextStateRef:n,prevElement:s}),i.current.prevNavigationIndexes=k,a&&a({focusElement:w,event:e})}}}}}else{var w=o.tableKeyboardNavigationTools.getClosestNavigatableElement(e.target);o.tableKeyboardNavigationTools.focusElement({elementForFocus:w,event:e,contextStateRef:n})}},generateMatrix:i}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),a=n(40),s=n(20);t.TableSelection=function(e){var t=e.onRelease,n=e.childRef,l=a.getSelectionOptions(e.selectable),u=l.enabled,c=l.drag,p=l.mode,d=l.cell,f=o.useRef(null),h=o.useRef(null),v=o.useRef({clientX:0,clientY:0}),m=o.useState(null),g=m[0],b=m[1],y=o.useRef(),O=o.useRef(!1),k=o.useRef(!1),w=o.useCallback((function(e){var t=e.event;k.current=t.originalEvent.target.hasAttribute(s.TABLE_PREVENT_SELECTION_ELEMENT),!k.current&&f.current&&(y.current=a.relativeContextElement(f.current.element),v.current={clientY:t.clientY,clientX:t.clientX})}),[]),C=o.useCallback((function(e){var t=e.event,n=v.current,r=n.clientX,o=n.clientY;if(!k.current&&c&&"single"!==p&&((Math.abs(o-t.clientY)>5||Math.abs(r-t.clientX)>5)&&(O.current=!0),O.current)){var i=a.getOffset(y.current);b({top:Math.min(o,t.clientY)-i.top,left:Math.min(r,t.clientX)-i.left,width:Math.abs(t.clientX-r),height:Math.abs(t.clientY-o)})}}),[b,c,p]),x=o.useCallback((function(e){var n=e.event,r=v.current,o=r.clientX,i=r.clientY;if(!k.current&&f.current){var s=f.current.element&&f.current.element.ownerDocument;if(s){if(O.current){var l=Math.min(i,n.clientY),u=Math.min(o,n.clientX),c=Math.max(i,n.clientY),m=Math.max(o,n.clientX),g=h.current;if(!g)return;g.style.visibility="hidden";S=s.elementFromPoint(u,l);var y=s.elementFromPoint(m,c);if(g.style.visibility="",!S||!y)return;var w=a.closestTagName(S,"TD"),C=a.closestTagName(w,"TR"),x=a.closestTagName(y,"TD"),E=a.closestTagName(x,"TR"),D=a.getColumnIndex(w),I=a.getRowIndex(C),_=a.getColumnIndex(x),P=a.getRowIndex(E);void 0!==D&&void 0!==I&&void 0!==_&&void 0!==P&&t({nativeEvent:n.originalEvent,startRowIndex:I,startColIndex:D,endRowIndex:P,endColIndex:_,altKey:n.altKey,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,mode:p,cell:d,isDrag:!0})}else{var S;if(!(S=s.elementFromPoint(o,i)))return;var j=a.closestTagName(S,"TD"),N=a.closestTagName(S,"TR"),F=a.getColumnIndex(j),M=a.getRowIndex(N);j&&N&&void 0!==M&&void 0!==F&&t({nativeEvent:n.originalEvent,startRowIndex:M,startColIndex:F,endRowIndex:M,endColIndex:F,altKey:n.altKey,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,mode:p,cell:d,isDrag:!1})}b(null),O.current=!1,v.current={clientX:0,clientY:0}}}}),[b,p,d,t]);return u?o.createElement(o.Fragment,null,o.createElement(i.Draggable,{onPress:w,onDrag:C,onRelease:x,ref:f,childRef:n},e.children),g&&o.createElement("div",{ref:h,style:r({},g,{position:"fixed"}),className:"k-marquee k-marquee-color"})):o.cloneElement(o.Children.only(e.children),{ref:n})}}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("react-dom"),require("react-transition-group"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-date-math","@progress/kendo-react-intl","@progress/kendo-drawing","react-dom","react-transition-group","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactDataTools=t(require("prop-types"),require("react"),require("@progress/kendo-date-math"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("react-dom"),require("react-transition-group"),require("@progress/kendo-licensing")):e.KendoReactDataTools=t(e.PropTypes,e.React,e.KendoDateMath,e.KendoReactIntl,e.KendoDrawing,e.ReactDOM,e.ReactTransitionGroup,e.KendoLicensing)}(window,(function(e,t,n,r,o,i,a,s){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=41)}([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 v})),n.d(t,"focusFirstFocusableChild",(function(){return m})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return b})),n.d(t,"getter",(function(){return w})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return x})),n.d(t,"noop",(function(){return E})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return I})),n.d(t,"setter",(function(){return S})),n.d(t,"mapTree",(function(){return F})),n.d(t,"mapTreeItem",(function(){return M})),n.d(t,"extendDataItem",(function(){return T})),n.d(t,"getItemPath",(function(){return R})),n.d(t,"validatePackage",(function(){return V})),n.d(t,"hasRelativeStackingContext",(function(){return B})),n.d(t,"dispatchEvent",(function(){return A})),n.d(t,"AsyncFocusBlur",(function(){return H})),n.d(t,"createPropsContext",(function(){return W})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return G})),n.d(t,"useAsyncFocusBlur",(function(){return K})),n.d(t,"useRtl",(function(){return X})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return z})),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 we})),n.d(t,"DragAndDrop",(function(){return Ke})),n.d(t,"Draggable",(function(){return qe})),n.d(t,"Droppable",(function(){return He})),n.d(t,"useDraggable",(function(){return Le})),n.d(t,"useDroppable",(function(){return Ve}));var r=n(1),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=" ",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 v(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 v(e){return e.map((function(e){return h(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()}},g=function(){},b=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},y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function O(e){var t=[];return e.replace(y,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var k={};function w(e){if(k[e])return k[e];var t=O(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 C=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},x={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},E=function(){},D=function(){return!(!l||!document.body)&&(new s).scrollbarWidth},I=function(){if(!l||!document.body)return!1;var e=(new s).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},_={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function S(e){if(_[e])return _[e];var t=O(e);return _[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]]||P(t[a+1],r);o[t[i]]=n},_[e]}var 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)};function N(e,t,n){var r;return n?j({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var F=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=N(t,n).map((function(t){return e(t,n,r)}));return r(N(t,n,o))}return r(t)}(e,t,n)})).slice()},M=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)},T=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},R=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},L=n(24);function V(e){if(void 0!==L)L.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 B=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 A(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function K(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 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)},H=function(e){var t=e.children,n=K({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,q({},n))},z=function(e,t){return r.useContext(e)(t)},U=function(){return(U=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)},W=function(){return r.createContext((function(e){return e}))},Y=function(e,t){return r.forwardRef((function(n,o){var i=z(e,n);return r.createElement(t,U({},i,{ref:o}))}))};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}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}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(0),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]),v=r.useMemo((function(){return s||ie.flip}),[s]),m=r.useMemo((function(){return c("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},te[h],n)}),[o,f,h,v,n]),g=$(e,p);return r.createElement("span",ne({ref:d},u,g,{className:m,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"]),v=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:v.current}}));var m=r.useMemo((function(){return a?a.name:ue.icon}),[a]),g=r.useMemo((function(){return d||ue.themeColor}),[d]),b=r.useMemo((function(){return l||ue.size}),[l]),y=r.useMemo((function(){return s||ue.flip}),[s]),O=r.useMemo((function(){return f||ue.viewBox}),[f]),k=r.useMemo((function(){return c("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},te[b],o)}),[m,g,b,y,o]),w=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:w,ref:v},r.createElement("svg",ae({className:i,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:O,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"},ve={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},me={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"},be={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"},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)},Oe=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=Oe(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,v=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],""+ve[n]+("string"==typeof r?he[r]:r)))})),e.join(" ")}}};return r.createElement(h,ye({ref:f,className:["k-"+("p"===e?"paragraph":e),pe[i],de[a],me[s],ge[l],be[u],v(),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},we={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")},Ce=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},xe=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},Ee=function(e){return e&&e.ownerDocument||window.document},De=function(e){var t=xe(),n=Ee(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},_e=function(e){var t=De(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"}(ce||(ce={}));var Pe=function(){},Se=function(e,t,n){void 0===n&&(n={});var r,o,i,a,s=n.onIsPressedChange,l=void 0===s?Pe:s,u=n.onIsScrollingChange,c=void 0===u?Pe:u,p=n.onVelocityChange,d=void 0===p?Pe:p,f=n.onOffsetChange,h=void 0===f?Pe:f,v=n.onPageOffsetChange,m=void 0===v?Pe:v,g=n.onClientOffsetChange,b=void 0===g?Pe:g,y=n.onScrollOffsetChange,O=void 0===y?Pe:y,k=n.onInitialScrollOffsetChange,w=void 0===k?Pe:k,C=t.payload,x=C.element,E=C.hint,D=e.autoScrollDirection,I=e.scrollableParent,_=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(_.type){case ce.POINTER_DOWN:if(_.type===ce.POINTER_DOWN&&(!_.originalEvent.isPrimary||0!==_.originalEvent.button))break;case ce.MOUSE_DOWN:if(_.type===ce.MOUSE_DOWN&&_.originalEvent.which&&_.originalEvent.which>1||e.ignoreMouse)break;case ce.TOUCH_START:if(_.type===ce.TOUCH_START&&1!==_.originalEvent.touches.length)break;case ce.START:var P=I||_e(t.payload.element);w(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),b({x:_.clientX,y:_.clientY}),m({x:_.pageX,y:_.pageY}),h({x:_.offsetX,y:_.offsetY}),l(!0),C.onPress&&C.onPress(_);break;case ce.SCROLL:if(_.type===ce.SCROLL&&!e.pressed)break;var S=I||_e(x),j=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};_.scrollX=j.x-e.initialScrollOffset.x,_.scrollY=j.y-e.initialScrollOffset.y,O({x:_.scrollX,y:_.scrollY});case ce.POINTER_MOVE:if(_.type===ce.POINTER_MOVE&&!_.originalEvent.isPrimary)break;case ce.MOUSE_MOVE:case ce.TOUCH_MOVE:if(_.type===ce.TOUCH_MOVE&&1!==_.originalEvent.touches.length)break;case ce.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==_.originalEvent.type&&x){var N=Ee(x),F=I||_e(N.elementFromPoint(_.clientX,_.clientY)),M=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}(_.pageX,_.pageY,function(e,t){var n=De(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}}(F,function(e){var t=Ee(e);return t&&t.defaultView||window}(x)));d({x:D&&!1===D.horizontal?0:M.x,y:D&&!1===D.vertical?0:M.y}),c(0!==M.y||0!==M.x)}!e.drag&&C.onDragStart&&C.onDragStart(_),C.onDrag&&C.onDrag(_);var T=Ce(E||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(E||x)}))),R=e.drops.find((function(e){return e.element===T}));R&&T&&(r=_.clientX,o=_.clientY,i=I||_e(T),(a=i.getBoundingClientRect()).top<=o&&a.left<=r&&o<=a.bottom&&r<=a.right)&&T!==x?(e.drop&&e.drop.element)!==T?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_),R.onDragEnter&&R.onDragEnter(_)):R.onDragOver&&R.onDragOver(_):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}b({x:_.clientX,y:_.clientY}),m({x:_.pageX,y:_.pageY});break;case ce.POINTER_UP:if(_.type===ce.POINTER_UP&&!_.originalEvent.isPrimary)break;case ce.MOUSE_UP:case ce.TOUCH_END:if(_.type===ce.TOUCH_END&&1!==_.originalEvent.touches.length)break;case ce.END:l(!1),c(!1),C.onRelease&&C.onRelease(_),e.drop&&e.drop.onDrop&&e.drop.onDrop(_),C.onDragEnd&&C.onDragEnd(_);break;case ce.POINTER_CANCEL:case ce.CONTEXT_MENU:case ce.TOUCH_CANCEL:case ce.CANCEL:l(!1),c(!1),C.onDragEnd&&C.onDragEnd(_),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(_)}},je=function(e,t){if(e){var n,r;e===De(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)}},Ne=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])}]},Fe=r.createContext([void 0,E]),Me=r.createContext([void 0,E]),Te=r.createContext([[],E,E]),Re=r.createContext([[],E,E]);function Le(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?E:o,a=t.onRelease,s=void 0===a?E:a,l=t.onDragStart,u=void 0===l?E:l,c=t.onDrag,p=void 0===c?E:c,d=t.onDragEnd,f=void 0===d?E:d,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,b=n.autoScroll,y=void 0===b||b,O=n.scrollContainer,k=void 0===O?null:O,w=r.useState(!1),C=w[0],x=w[1],D=r.useState(!1),I=D[0],_=D[1],P=Ne(Me)[0],S=Ne(Fe),j=S[0],N=S[1],F=r.useContext(Re)[0],M=r.useContext(Te),T=M[0],R=M[1],L=M[2],V=r.useRef({x:0,y:0}),B=r.useRef(),A=r.useRef(!1),K=r.useRef(),q=r.useRef(!1),H=r.useRef({x:0,y:0}),z=r.useRef({x:0,y:0}),U=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),X=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&X,$=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=r.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),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 y&&y.boundaryElementRef&&y.boundaryElementRef.current&&y.boundaryElementRef.current.element?y.boundaryElementRef.current.element:"object"==typeof y&&y.boundaryElementRef&&y.boundaryElementRef.current?y.boundaryElementRef.current:null}),[y]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:me,onDrag:ge,onDragEnd:be,onRelease:ve,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:j?j.current:null,drop:P?P.current:null,drags:T.map((function(e){return e.current})),drops:F.map((function(e){return e.current})),pressed:C,ignoreMouse:A.current,scrollOffset:Y.current,offset:H.current,pageOffset:z.current,initialScrollOffset:G.current,clientOffset:U.current,initialClientOffset:W.current,velocity:V.current,autoScroll:Boolean("object"==typeof y?!1!==y.enabled:y),scrollableParent:ee(),autoScrollDirection:"object"==typeof y?y.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[j,P,T,F,C,y,ee,I]),ie=r.useCallback((function(e){x(e)}),[]),ae=r.useCallback((function(e){_(e)}),[]),se=r.useCallback((function(e){V.current=e}),[]),le=r.useCallback((function(e){H.current=e}),[]),ue=r.useCallback((function(e){U.current=e}),[]),ce=r.useCallback((function(e){z.current=e}),[]),pe=r.useCallback((function(e){W.current=e}),[]),de=r.useCallback((function(e){Y.current=e}),[]),fe=r.useCallback((function(e){G.current=e}),[]),he=r.useCallback((function(e){i(e)}),[i]),ve=r.useCallback((function(e){s(e)}),[s]),me=r.useCallback((function(t){N(te,{target:e.current,event:t}),u(t)}),[N,e,u]),ge=r.useCallback((function(e){p(e)}),[p]),be=r.useCallback((function(t){q.current||(N(null,{target:e.current,event:t}),f(t))}),[f,N,e]),ye=r.useCallback((function(e){Se(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]),Oe=r.useCallback((function(e){ye(e)}),[ye]),ke=r.useCallback((function(e){ye(e)}),[ye]),we=r.useCallback((function(e){ye(e)}),[ye]),Ce=r.useCallback((function(e){ye(e)}),[ye]),xe=r.useCallback((function(e){ye(e)}),[ye]),Ee=r.useCallback((function(e){ye(e)}),[ye]),De=r.useCallback((function(e){ye(e)}),[ye]),Ie=r.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Pe=r.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Le=r.useCallback((function(e){e.preventDefault(),ye(e)}),[ye]),Ve=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();A.current=!0,K.current=t.setTimeout((function(){A.current=!1}),2e3)}ye(e)}),[ye,re]),Be=r.useCallback((function(e){ye(e)}),[ye]),Ae=r.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),Ke=r.useCallback((function(){return R(te),function(){L(te)}}),[L,R]);r.useEffect((function(){var e=re();if(I){var t=Q()||_e(document.elementFromPoint(U.current.x,U.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){je(t,{x:V.current.x,y:V.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[$,Q,re,I]),r.useEffect(Ae,[Ae]),r.useEffect((function(){var e=re(),t=$(),n=ne();if(Z){if(t)_e(t).addEventListener("scroll",Be,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0});C&&(n.addEventListener("pointermove",ke),n.addEventListener("pointerup",Ce,!0),n.addEventListener("contextmenu",Ie),n.addEventListener("pointercancel",we,{passive:!0}))}else e.addEventListener("touchmove",E,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",xe,{passive:!0}),g||(t.addEventListener("touchstart",Pe,{passive:!0}),C&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ve,{passive:!0})))),C&&(n.addEventListener("mousemove",Ee,{passive:!0}),n.addEventListener("mouseup",De,{passive:!0}));return function(){if(t){var r=_e(t);r&&r.removeEventListener("scroll",Be),t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",xe),t.removeEventListener("touchstart",Pe),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ve)}n.removeEventListener("pointermove",ke),n.removeEventListener("pointerup",Ce,!0),n.removeEventListener("contextmenu",Ie),n.removeEventListener("pointercancel",we),n.removeEventListener("mousemove",Ee),n.removeEventListener("mouseup",De),e.removeEventListener("touchmove",E),e.clearTimeout(K.current)}}),[C,re,$,ne,g,Z,Ie,xe,Ee,De,we,Oe,ke,Ce,Ve,Le,Pe,Be]),r.useEffect((function(){return function(){q.current=!0}}),[]),r.useLayoutEffect(Ke,[Ke])}function Ve(e,t){void 0===t&&(t={onDragEnter:E,onDragOver:E,onDragLeave:E,onDrop:E});var n=t.onDragEnter,o=void 0===n?E:n,i=t.onDragOver,a=void 0===i?E:i,s=t.onDragLeave,l=void 0===s?E:s,u=t.onDrop,c=void 0===u?E:u,p=Ne(Me)[1],d=r.useContext(Re),f=d[1],h=d[2],v=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=r.useRef(null);r.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:b,onDragLeave:y,onDrop:O,data:e.current}}));var g=r.useCallback((function(t){p(m,{target:e.current,event:t}),o(t)}),[p,e,o]),b=r.useCallback((function(e){a(e)}),[a]),y=r.useCallback((function(t){p(null,{target:e.current,event:t}),l(t)}),[p,e,l]),O=r.useCallback((function(t){p(null,{target:e.current,event:t}),c(t)}),[p,e,c]),k=r.useCallback((function(){return f(m),function(){h(m)}}),[h,f]);r.useLayoutEffect(k,[k])}var 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)},Ae=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,Be({},t,{value:e}))}),[n,a])]},Ke=function(e){var t=Ae(null,void 0),n=t[0],o=t[1],i=Ae(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(Fe.Provider,{value:[n,o]},r.createElement(Me.Provider,{value:[a,s]},r.createElement(Te.Provider,{value:[u,function(e){c({type:Z.add,item:e})},function(e){c({type:Z.remove,item:e})}]},r.createElement(Re.Provider,{value:[d,function(e){f({type:Z.add,item:e})},function(e){f({type:Z.remove,item:e})}]},e.children))))};Ke.displayName="KendoReactDragAndDrop";var qe=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 Le(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}));qe.displayName="KendoReactDraggable";var He=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 Ve(n,{onDragEnter:a,onDragOver:s,onDragLeave:l,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));He.displayName="KendoReactDroppable"},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return A})),n.d(t,"ToolbarItem",(function(){return q})),n.d(t,"ToolbarSeparator",(function(){return z})),n.d(t,"ToolbarSpacer",(function(){return U})),n.d(t,"Button",(function(){return v})),n.d(t,"ButtonGroup",(function(){return y})),n.d(t,"SplitButton",(function(){return N})),n.d(t,"SplitButtonItem",(function(){return C})),n.d(t,"DropDownButton",(function(){return L})),n.d(t,"DropDownButtonItem",(function(){return M})),n.d(t,"Chip",(function(){return ie})),n.d(t,"ChipList",(function(){return te})),n.d(t,"FloatingActionButton",(function(){return be})),n.d(t,"FloatingActionButtonItem",(function(){return ce}));var r,o=n(1),i=n(0),a=n(2),s={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639484986,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 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(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,v=n.imageAlt,m=n.className,g=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),b=void 0!==u||void 0!==c||void 0!==p,y=void 0!==r,O={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"]]=!y&&b,e[h["button-icontext"]]=y&&b,e),[h[""+this.props.dir]],m),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:v});return o.createElement("button",d({},O,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),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)}}(),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)},b=c,y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(a.validatePackage)(s),n}return m(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),r=Object(a.classNames)([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",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={})[b["group-start"]]=r?n:0===t,i[b["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),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)}}(),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 O(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),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)}}(),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(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),x=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}},E=n(7);function D(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function I(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var _,P,S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=c,N=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=x(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 S(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===C})).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",[j[""+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(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(E.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||D(e),popupAlign:n.popupAlign||I(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),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)}}(),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(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),T=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},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(a.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==a.Keys.down?n.opened&&e.keyCode===a.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var r=R({},n.state);if(e.keyCode===a.Keys.enter||e.keyCode===a.Keys.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),r.focusedIndex=n.opened?-1:0,r.opened=!n.opened,n.dispatchPopupEvent(e,r.opened)):n.opened&&e.keyCode===a.Keys.esc&&(r.focusedIndex=-1,r.opened=!1,n.dispatchPopupEvent(e,r.opened)),n.opened){var o=x(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 T(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===M})).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(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(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(E.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||D(e),popupAlign:n.popupAlign||I(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),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)}}(),B=function(){return(B=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(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,B({target:r},i,{nativeEvent:e}))}}},Object(a.validatePackage)(s),r}return V(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),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(){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),H=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.render=function(){return o.createElement(q,{className:"k-separator"})},t}(o.PureComponent),U=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);o.useImperativeHandle(r,(function(){return{element:n.current}})),o.useImperativeHandle(t,(function(){return{element:n.current}}));var i=o.useMemo((function(){return Object(a.classNames)("k-spacer",e.className)}),[e.className]);return o.createElement("span",{ref:n,className:i})}));U.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(_||(_={})),function(e){e.toggle="toggle",e.remove="remove"}(P||(P={}));var W;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(W||(W={}));var Y;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Y||(Y={}));var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},X=o.createContext([null,function(e){}]),Z=o.createContext([null,function(e){}]),$=o.createContext([null,function(e){}]),J=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.selection){case _.single:switch(t.type){case P.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case P.remove:return t.payload===e?null:e;default:return e}case _.multiple:switch(t.type){case P.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case P.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case _.none:return null;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},Q=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case W.next:return n===t.items.length-1?e:t.items[n+1];case W.prev:return 0===n?e:t.items[n-1];case W.current:return t.payload;case W.reset:return null;default:return e}}(t.payload,G({},t,e));r(n)}]},ee=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var r=function(e,t){switch(t.type){case Y.add:break;case Y.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Y.reorder:break;default:return e}}(t.state||i,G({},e,t));n&&n(r,e.event),a(r)}]},te=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=o.useRef(null),r=o.useRef(null),i=Object(a.useDir)(r,e.dir),l=o.useMemo((function(){return e.chip||ie}),[e.chip,ie]),u=o.useMemo((function(){return e.selection||re.selection}),[e.selection,re.selection]);o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var c=o.useCallback((function(t,r){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:r})}),[e.onChange]),p=J(e.value||e.defaultValue,{selection:u,state:e.value},c),d=p[0],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]),v=ee(e.data||e.defaultData||re.defaultData,{state:e.data,valueField:e.valueField||re.valueField},h),m=v[0],g=v[1],b=o.useCallback((function(t,n){return t.push(n[e.valueField||re.valueField]),t}),[e.valueField,re.valueField]),y=o.useMemo((function(){return e.data||m}),[e.data,m]),O=o.useMemo((function(){return e.value||d}),[e.value,d]),k=o.useMemo((function(){return y.reduce(b,[])}),[y,b]),w=Q({items:k}),C=w[0],x=w[1],E=Object(a.useMouse)(e,n);return o.createElement(X.Provider,{value:[O,f]},o.createElement(Z.Provider,{value:[C,x]},o.createElement($.Provider,{value:[y,g]},o.createElement("div",G({ref:r},E,{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}),y.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(X),u=l[0],c=l[1],p=o.useContext(Z),d=p[0],f=p[1],h=o.useContext($)[1],v=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]),m=o.useMemo((function(){return d===e.value}),[e.value,d]),g=o.useMemo((function(){return e.look||se.look}),[e.look]);o.useEffect((function(){m&&r.current&&r.current.focus()}),[m]);var b=o.useCallback((function(t){c({type:P.toggle,payload:e.value,event:t})}),[e.onClick,c,e.value]),y=o.useCallback((function(t){e.removable&&(h({type:Y.remove,payload:e.value,event:t}),f({type:W.reset,payload:e.value,event:t}),c({type:P.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,c]),O=o.useCallback((function(t){switch(t.keyCode){case a.Keys.left:f({type:W.prev,payload:e.value,event:t});break;case a.Keys.right:f({type:W.next,payload:e.value,event:t});break;case a.Keys.enter:c({type:P.toggle,payload:e.value,event:t});break;case a.Keys.delete:y(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,c,y]),k=o.useCallback((function(t){f({payload:e.value,type:W.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),w=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),C=Object(a.useMouse)(e,n,{onClick:b});return o.createElement("div",oe({},C,{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":v,"k-state-focus":m,"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":v,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:k,onBlur:w,onKeyDown:O}),v&&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:y},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,v=e.onDown,m=e.onClick,g=ue(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),b=o.useRef(null),y=o.useCallback((function(){b.current&&b.current.focus()}),[]),O=o.useCallback((function(){return{element:b.current,focus:y}}),[y]);o.useImperativeHandle(t,O);var k=o.useCallback((function(e){m&&void 0!==d&&!r&&m(e,d)}),[m,d]),w=o.useMemo((function(){return Object(a.classNames)("k-fab-item",{"k-state-focus":c,"k-state-disabled":r},n)}),[n,r,c]),C=h;return o.createElement("li",le({ref:b,id:u,className:w,style:l,role:"menuitem",tabIndex:Object(a.getTabIndex)(p,r),"aria-disabled":r,"aria-label":(i||"")+" floatingactionbutton item",onClick:k,onMouseDown:v,onPointerDown:v},g),C?o.createElement(C,{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"]},ve=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},me=function(){return(me=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},be=o.forwardRef((function(e,t){Object(a.validatePackage)(s);var n=e.align,r=void 0===n?ye.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,v=e.text,m=e.positionMode,g=void 0===m?ye.positionMode:m,b=e.shape,y=void 0===b?ye.shape:b,O=e.size,k=void 0===O?ye.size:O,w=e.style,C=e.themeColor,x=void 0===C?ye.themeColor:C,D=e.tabIndex,I=e.accessKey,_=e.popupSettings,P=void 0===_?{}:_,S=e.onClick,j=e.onItemClick,N=e.onFocus,F=e.onBlur,M=e.onKeyDown,T=e.onOpen,R=e.onClose,L=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"]),V=o.useRef(null),B=o.useRef(null),A=o.useRef(null),K=o.useRef(null),q=o.useCallback((function(){B.current&&B.current.focus()}),[]),H=o.useCallback((function(){return{element:B.current,focus:q}}),[q]);o.useImperativeHandle(V,H),o.useImperativeHandle(t,(function(){return V.current}));var z=o.useState(!1),U=z[0],W=z[1],Y=o.useState(!1),G=Y[0],X=Y[1],Z=o.useState(-1),$=Z[0],J=Z[1],Q=o.useMemo((function(){return Object(a.guid)()}),[]),ee=Object(a.useDir)(B,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(ve(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"))}}(B,r,i,te)}),[B,r,i,te]),o.useEffect((function(){G&&B&&B.current&&B.current.focus()}),[G,B]);var re=o.useCallback((function(e,t){f&&Object(a.dispatchEvent)(t?T:R,e,H(),void 0)}),[T,R,f]),oe=o.useCallback((function(e){e.target&&!u&&(!f&&S?Object(a.dispatchEvent)(S,e,H(),void 0):(W(!U),X(!0),J(U?-1:0),re(e,!U)))}),[W,X,J,S,re,U,f,u]),ie=o.useCallback((function(e){X(!0),J(U?0:-1),N&&Object(a.dispatchEvent)(N,e,H(),void 0)}),[N,X,J]),ae=o.useCallback((function(e){X(!1),W(!1),J(-1),Object(a.dispatchEvent)(F,e,H(),void 0),U&&re(e,!1)}),[F,X,W,J,re]),se=o.useCallback((function(e){e.preventDefault()}),[]),le=o.useCallback((function(e,t){f&&(f[t].disabled||Object(a.dispatchEvent)(j,e,H(),{itemProps:f[t],itemIndex:t}))}),[j]),ue=o.useCallback((function(e,t){e.target&&f&&(J(t),W(!1),le(e,t),re(e,!1))}),[J,W,le,re]),be=o.useCallback((function(e){document.activeElement===B.current&&e.preventDefault()}),[B,document.activeElement]),Oe=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(),W(!U),J(U?-1:0);break;case a.Keys.esc:e.preventDefault(),W(!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)(M,e,H(),void 0)}),[M,$,J,te,W]),ke=o.useMemo((function(){return Object(a.classNames)("k-fab","k-fab-"+x,"k-fab-"+y,{"k-fab-sm":"small"===k,"k-fab-md":"medium"===k,"k-fab-lg":"large"===k,"k-state-disabled":u,"k-pos-absolute":"absolute"===g,"k-pos-fixed":"fixed"===g,"k-state-focus":G},"k-"+r.vertical+"-"+r.horizontal,l)}),[x,k,y,u,g,r,G,l]),we=f&&f.map((function(e,t){return o.createElement(ce,me({},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:be}));var n,i})),Ce=c&&!v,xe=(B.current?B.current.offsetWidth:0)/2-16;return o.createElement(o.Fragment,null,o.createElement("button",me({ref:B,id:d||Q,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?U:void 0,"aria-haspopup":!!f,"aria-label":(v||"")+" floatingactionbutton","aria-owns":f?ne:void 0,"aria-activedescendant":$>=0&&f?ne+"-"+$:void 0,tabIndex:Object(a.getTabIndex)(D,u),accessKey:I,dir:ee,disabled:u,className:ke,style:w,onClick:oe,onMouseDown:se,onFocus:ie,onBlur:ae,onKeyDown:Oe},L),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,v&&o.createElement("span",{className:"k-fab-text"},v)),o.createElement(E.Popup,{ref:K,anchor:B.current,show:U,animate:P.animate,popupClass:Object(a.classNames)("k-popup-transparent k-fab-popup",P.popupClass),anchorAlign:P.anchorAlign||de(r,te),popupAlign:P.popupAlign||fe(r,te),style:{boxShadow:"none"}},o.createElement("ul",{ref:A,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:Ce?xe:void 0,paddingRight:Ce?xe:void 0}},we)))}));be.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 ye={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};be.displayName="KendoFloatingActionButton"},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return c}));var r,o=n(1),i=n(0),a=n(2),s=((r={})["labels.optional"]="(Optional)",r),l=n(4),u={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639485148,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,v=Object(l.useLocalization)(),m=h?v.toLanguageString("labels.optional",s["labels.optional"]):"",g=m&&o.createElement("span",{className:"k-label-optional"},m),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]),y=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:b,style:d,className:y},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)}),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(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,v=Object(l.provideLocalizationService)(this),m=h?v.toLanguageString("labels.optional",s["labels.optional"]):"",g=m&&o.createElement("span",{className:"k-label-optional"},m),b=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),y=Object(a.classNames)({"k-label":!0,"k-text-error":!1===c,"k-text-disabled":p});return o.createElement("span",{className:b,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:y},t,g):o.createElement("span",{id:f,className:y},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,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupPropsContext",(function(){return se}));var r=n(1),o=n(15),i=n(0),a=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(2),u="bottom",c="center",p="middle",d="left",f="right",h="top";function v(e){return e.ownerDocument||e.document||e}var m=function(e){return v(e).defaultView},g=function(e){return v(e).documentElement},b=0;function y(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function O(e){var t=m(e),n=g(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=y()),r}var k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},w=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=o,i}(e)),{top:r,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function x(e){var t=g(e),n=m(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var D=function(e,t){var n=m(e),r=n.getComputedStyle(e),o=w(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=w(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?E(e):function(e){var t=k(e);return t?E(t):{x:0,y:0}}(t)};var _="fit",P="flip",S=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},j=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===c||a===p)&&!(i===c||i===p)){var u=i===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},N=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},F=function(e,t){for(var n,r,o=C(e),i=t;i&&(n=N(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};var M,T,R,L,V=(M=function(e){if(!B())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},R=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return R||(T=M.apply(void 0,e),R=!0),T}),B=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},A={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:V,canUseDOM:B},K=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=function(){return A.canUseDOM()?window:null},H=/auto|scroll/,z=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)},U=function(e){if(!e||!A.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},W=function(){return A.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={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,v=i.vertical||0,m=t.top,g=t.left;return s===u&&(m+=t.height),s!==c&&s!==p||(m+=Math.round(t.height/2)),d===u&&(m-=r.height,v*=-1),d!==c&&d!==p||(m-=Math.round(r.height/2),v*=-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:m+v,left:g+h}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=O(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 K.map((function(e){return{key:e,value:n[e]}}))},getWindow:q,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?w(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=w(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=D(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,v=s.vertical||0,m=0,g=0,b=i.horizontal===P,y=i.vertical===P;i.vertical===_&&(g+=S(l,c,d)),i.horizontal===_&&(m+=S(u,p,f)),y&&(g+=j({margin:v,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),b&&(m+=j({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var O=b&&0!==m,k=y&&0!==g;return{flipped:O||k,flip:{horizontal:O,vertical:k},offset:{left:m,top:g}}},scrollPosition:x,scrollableParents:function(e){var t=[];if(!A.canUseDOM())return t;for(var n=e.parentElement;n;)(H.test(z(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:U,stackingElementOffset:function(e){var t=U(e);return t?w(t):null},stackingElementScroll:function(e){var t=U(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=U(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(U(e))},windowViewPort:O,zoomLevel:W,isZoomed:function(){return W()>1},zIndex:function(e,t){if(!e||!A.canUseDOM())return null;var n=F(e,t);if(!n)return null;var r=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}},G=function(e,t){return e?{x:0,y:0}:Y.scrollPosition(t)},X=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||!Y.hasOffsetParent(n)?function(e,t,n,r){var o=G(e,t),i=A.eitherRect(Y.offset(e),n),a=2*r,s=Y.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=Y.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),Y.removeScroll(Y.addScroll(A.removeStackingOffset(A.scaleRect(i,r),l),s),o)}(t,n,a,l):function(e,t,n,r){var o=A.eitherRect(Y.position(e,t,r),n);return A.scaleRect(o,r)}(t,n,a,l),c=A.scaleRect(Y.offset(n),l);return Y.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=Y.offsetAtPoint(r,n),c=A.scaleRect(u,l),p=A.scaleRect(Y.offset(t),l),d=A.eitherRect(p,n),f=e.viewPort||Y.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var h=Y.restrictToView({anchorAlign:o,anchorRect:d,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),v=Y.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}},$="fit",J="flip",Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639484956,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=(L=function(e,t){return(L=Object.setPrototypeOf||{__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}L(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=X({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(),v=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(v,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=Y.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";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.pagerInfo="pager.info",t.pagerFirstPage="pager.firstPage",t.pagerPreviousPage="pager.previousPage",t.pagerNextPage="pager.nextPage",t.pagerLastPage="pager.lastPage",t.pagerItemPerPage="pager.itemsPerPage",t.pagerPage="pager.page",t.pagerOf="pager.of",t.pagerTotalPages="pager.totalPages",t.filterEqOperator="filter.eqOperator",t.filterNotEqOperator="filter.notEqOperator",t.filterIsNullOperator="filter.isNullOperator",t.filterIsNotNullOperator="filter.isNotNullOperator",t.filterIsEmptyOperator="filter.isEmptyOperator",t.filterIsNotEmptyOperator="filter.isNotEmptyOperator",t.filterStartsWithOperator="filter.startsWithOperator",t.filterContainsOperator="filter.containsOperator",t.filterNotContainsOperator="filter.notContainsOperator",t.filterEndsWithOperator="filter.endsWithOperator",t.filterGteOperator="filter.gteOperator",t.filterGtOperator="filter.gtOperator",t.filterLteOperator="filter.lteOperator",t.filterLtOperator="filter.ltOperator",t.filterIsTrue="filter.isTrue",t.filterIsFalse="filter.isFalse",t.filterAfterOrEqualOperator="filter.afterOrEqualOperator",t.filterAfterOperator="filter.afterOperator",t.filterBeforeOperator="filter.beforeOperator",t.filterBeforeOrEqualOperator="filter.beforeOrEqualOperator",t.filterAndLogic="filter.andLogic",t.filterOrLogic="filter.orLogic",t.filterAddExpression="filter.addExpression",t.filterAddGroup="filter.addGroup",t.filterClose="filter.close",t.columnMenuFilterClearButton="columnMenu.filterClearButton",t.columnMenuFilterSubmitButton="columnMenu.filterSubmitButton",t.columnMenuFilterTitle="columnMenu.filterTitle",t.columnMenuSortAscending="columnMenu.sortAscending",t.columnMenuSortDescending="columnMenu.sortDescending",t.columnMenuFilterEqOperator="columnMenu.filterEqOperator",t.columnMenuFilterNotEqOperator="columnMenu.filterNotEqOperator",t.columnMenuFilterIsNullOperator="columnMenu.filterIsNullOperator",t.columnMenuFilterIsNotNullOperator="columnMenu.filterIsNotNullOperator",t.columnMenuFilterIsEmptyOperator="columnMenu.filterIsEmptyOperator",t.columnMenuFilterIsNotEmptyOperator="columnMenu.filterIsNotEmptyOperator",t.columnMenuFilterStartsWithOperator="columnMenu.filterStartsWithOperator",t.columnMenuFilterContainsOperator="columnMenu.filterContainsOperator",t.columnMenuFilterNotContainsOperator="columnMenu.filterNotContainsOperator",t.columnMenuFilterEndsWithOperator="columnMenu.filterEndsWithOperator",t.columnMenuFilterGteOperator="columnMenu.filterGteOperator",t.columnMenuFilterGtOperator="columnMenu.filterGtOperator",t.columnMenuFilterLteOperator="columnMenu.filterLteOperator",t.columnMenuFilterLtOperator="columnMenu.filterLtOperator",t.columnMenuFilterIsTrue="columnMenu.filterIsTrue",t.columnMenuFilterAfterOrEqualOperator="columnMenu.filterAfterOrEqualOperator",t.columnMenuFilterAfterOperator="columnMenu.filterAfterOperator",t.columnMenuFilterBeforeOperator="columnMenu.filterBeforeOperator",t.columnMenuFilterBeforeOrEqualOperator="columnMenu.filterBeforeOrEqualOperator",t.columnMenuFilterAndLogic="columnMenu.filterAndLogic",t.columnMenuFilterOrLogic="columnMenu.filterOrLogic",t.sortAriaLabel="sort.ariaLabel",t.filterAriaLabel="filter.ariaLabel",t.messages=((r={})[t.pagerItemPerPage]="items per page",r[t.pagerInfo]="{0} - {1} of {2} items",r[t.pagerFirstPage]="Go to the first page",r[t.pagerPreviousPage]="Go to the previous page",r[t.pagerNextPage]="Go to the next page",r[t.pagerLastPage]="Go to the last page",r[t.pagerPage]="Page",r[t.pagerOf]="Of",r[t.pagerTotalPages]="{0}",r[t.sortAriaLabel]="Sortable",r[t.filterAriaLabel]="Filter",r[t.filterEqOperator]="Is equal to",r[t.filterNotEqOperator]="Is not equal to",r[t.filterIsNullOperator]="Is null",r[t.filterIsNotNullOperator]="Is not null",r[t.filterIsEmptyOperator]="Is empty",r[t.filterIsNotEmptyOperator]="Is not empty",r[t.filterStartsWithOperator]="Starts with",r[t.filterContainsOperator]="Contains",r[t.filterNotContainsOperator]="Does not contain",r[t.filterEndsWithOperator]="Ends with",r[t.filterGteOperator]="Is greater than or equal to",r[t.filterGtOperator]="Is greater than",r[t.filterLteOperator]="Is less than or equal to",r[t.filterLtOperator]="Is less than",r[t.filterIsTrue]="Is true",r[t.filterIsFalse]="Is false",r[t.filterAfterOrEqualOperator]="Is after or equal to",r[t.filterAfterOperator]="Is after",r[t.filterBeforeOperator]="Is before",r[t.filterBeforeOrEqualOperator]="Is before or equal to",r[t.filterAndLogic]="And",r[t.filterOrLogic]="Or",r[t.filterAddExpression]="Add Expression",r[t.filterAddGroup]="Add Group",r[t.filterClose]="Close",r[t.columnMenuFilterClearButton]="Clear",r[t.columnMenuFilterSubmitButton]="Filter",r[t.columnMenuFilterTitle]="Filter",r[t.columnMenuSortAscending]="Sort Ascending",r[t.columnMenuSortDescending]="Sort Descending",r[t.columnMenuFilterEqOperator]="Is equal to",r[t.columnMenuFilterNotEqOperator]="Is not equal to",r[t.columnMenuFilterIsNullOperator]="Is null",r[t.columnMenuFilterIsNotNullOperator]="Is not null",r[t.columnMenuFilterIsEmptyOperator]="Is empty",r[t.columnMenuFilterIsNotEmptyOperator]="Is not empty",r[t.columnMenuFilterStartsWithOperator]="Starts with",r[t.columnMenuFilterContainsOperator]="Contains",r[t.columnMenuFilterNotContainsOperator]="Does not contain",r[t.columnMenuFilterEndsWithOperator]="Ends with",r[t.columnMenuFilterGteOperator]="Is greater than or equal to",r[t.columnMenuFilterGtOperator]="Is greater than",r[t.columnMenuFilterLteOperator]="Is less than or equal to",r[t.columnMenuFilterLtOperator]="Is less than",r[t.columnMenuFilterIsTrue]="Is true",r[t.columnMenuFilterAfterOrEqualOperator]="Is after or equal to",r[t.columnMenuFilterAfterOperator]="Is after",r[t.columnMenuFilterBeforeOperator]="Is before",r[t.columnMenuFilterBeforeOrEqualOperator]="Is before or equal to",r[t.columnMenuFilterAndLogic]="And",r[t.columnMenuFilterOrLogic]="Or",r)},function(e,t,n){"use strict";n.r(t),n.d(t,"getValueMap",(function(){return It})),n.d(t,"getMultiSelectTreeValue",(function(){return _t})),n.d(t,"AutoComplete",(function(){return se})),n.d(t,"AutoCompletePropsContext",(function(){return ae})),n.d(t,"DropDownList",(function(){return W})),n.d(t,"DropDownListPropsContext",(function(){return U})),n.d(t,"ComboBox",(function(){return ne})),n.d(t,"ComboBoxPropsContext",(function(){return te})),n.d(t,"MultiSelect",(function(){return Oe})),n.d(t,"MultiSelectPropsContext",(function(){return ye})),n.d(t,"MultiColumnComboBox",(function(){return De})),n.d(t,"MultiColumnComboBoxPropsContext",(function(){return Ee})),n.d(t,"DropDownTree",(function(){return vt})),n.d(t,"DropDownTreePropsContext",(function(){return ht})),n.d(t,"MultiSelectTree",(function(){return Et})),n.d(t,"MultiSelectTreePropsContext",(function(){return xt}));var r,o,i=n(1),a=n(0),s=n(2),l=n(6),u=n(7),c=(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)}),p=function(){return(p=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)},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,o=e.itemsCount,a=e.popupSettings;return i.createElement(u.Popup,p({style:{width:n,direction:r},contentKey:o&&o.join()},a),t)},t}(i.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)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:"k-list-filter"},i.createElement("input",{ref:function(t){return e.input=t},value:this.props.value||"",className:"k-textbox",onChange:this.props.onChange,onKeyDown:this.props.onKeyDown}),i.createElement("span",{className:"k-icon k-i-search"}))},t}(i.Component),v=function(e){return null!=e},m=function(e,t,n){if(!v(e))return!1;var r=String(e);return n&&(r=r.toLowerCase()),0===r.indexOf(t)},g=function(e,t,n){var r=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var i=(y(e[o],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){r=o;break}}}return r},b=function(e,t,n,r){void 0===r&&(r=!1);var o=function(e){return r?e:e.toLowerCase()};return e.findIndex((function(e){return n?o(y(e,n))===o(t):o(t)===o(e.toString())}))},y=function(e,t){if(t&&v(e)){var n=t.split("."),r=e;return n.forEach((function(e){r=r?r[e]:void 0})),r}return e},O=function(e,t,n){t.forEach((function(t){var r=e.findIndex((function(e){return k(e,t,n)}));-1!==r&&e.splice(r,1)}))},k=function(e,t,n){return e===t||v(e)===v(t)&&y(e,n)===y(t,n)},w=function(e,t,n){if(t){var r=b(e,t,n,!0);return-1!==r?e[r]:e[g(e,t,n)]}return e[0]},C=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},x=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!k(e[r],t[r],n))return!1;return!0}(e.data,t.data,n))},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)}}(),D=function(e){return e.preventDefault()},I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return i.createElement("div",{onClick:this.props.onClick,onMouseDown:D,className:Object(s.classNames)("k-list-optionlabel",{"k-state-selected":t})},y(n,r)||"")},t}(i.Component),_=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(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return _(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,o=e.render,a=i.createElement("li",{id:this.props.id,role:"option","aria-selected":t,className:Object(s.classNames)("k-item",{"k-state-selected":t,"k-state-focused":this.props.focused,"k-first":Boolean(n)}),onClick:this.handleClick},y(r,this.props.textField).toString(),void 0!==n?i.createElement("div",{className:"k-group"},n):null);return void 0!==o?o.call(void 0,a,this.props):a},t}(i.Component),S=n(4),j="dropdowns.nodata",N="dropdowns.clear",F=((o={})[N]="clear",o[j]="NO DATA FOUND.",o),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)}}(),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,o=t.groupField,a=t.optionsGuid,s=t.skip,l=void 0===s?0:s,u=t.focusedIndex,c=t.highlightSelected,p=void 0===c||c,d=t.value,f=t.data,h=t.itemRender,v=Array.isArray(d);return f.map((function(t,s){var c,m,g=l+s,b=p&&(!v&&k(t,d,r)||v&&-1!==d.findIndex((function(e){return k(e,t,r)}))),O=void 0;return s>0&&void 0!==o&&(c=y(t,o),m=y(f[s-1],o),c&&m&&c!==m&&(O=c)),i.createElement(P,{id:"option-"+a+"-"+g,dataItem:t,selected:b,focused:u===s,index:g,key:g,onClick:e.props.onClick,textField:n,group:O,render:h})}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.toLanguageString(j,F[j])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,o=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,l=t.listRef,u=t.wrapperRef,c=t.listClassName,p=void 0===c?"k-list":c,d=this.renderItems();return d.length?i.createElement("div",{className:o,style:a,ref:u,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},i.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:p+" k-reset",ref:l,style:s},d)):this.renderNoValueElement(e)},t}(i.Component),R=T;Object(S.registerForLocalization)(T);var L=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!0,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight-this.list.offsetHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=r-o;if(!(i>n)){for(t=0;t<this.skip&&!(o+n+i<=r);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=r)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,r=this.container.scrollTop,o=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(o+n>=r);t++)o+=n;o=this.validateTranslate(o),t>=i&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),r=this.containerHeight*t/this.total;r=this.validateTranslate(r),this.translateTo(r),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight-this.list.offsetHeight,e)},e}(),V=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return v(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),B=function(){return(B=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(){function e(e){var t=this;this.vs=new L,this.navigation=new V,this.handleItemClick=function(e,n){var r=t.initState();r.syntheticEvent=n,t.component.handleItemSelect(e,r),t.togglePopup(r),t.applyState(r)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var r=t.component.props,o=r.textField;r.filterable&&n.events.push({type:"onFilterChange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,r=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!r),r?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var r=t.initState();r.syntheticEvent=n,t.triggerOnPageChange(r,e.skip,e.take),t.applyState(r)},this.scrollToVirtualItem=function(e,n){var r=t.vs;if(r.enabled=!1,0===e.skip)r.reset();else if(e.skip+e.pageSize===e.total)r.scrollToEnd();else{var o=r.translate;0===o&&(r.calcScrollElementHeight(),o=r.itemHeight*e.skip,r.translateTo(o-r.itemHeight)),r.container&&(r.container.scrollTop=o),t.scrollToItem(n,!0)}window.setTimeout((function(){return r.enabled=!0}),10)},this.renderScrollWrapper=function(e,n){var r=t.getPopupSettings(),o=t.vs;return o.enabled?i.createElement("div",{onScroll:function(e){o.scrollHandler(e),n&&n.call(void 0,e)},ref:o.scrollerRef,style:{height:r.height,overflowY:"scroll"}},e):e},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&i.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},r=t.width,o=!0===e.opened;void 0===r&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list;if(n&&e>=0){var r=this.vs,o=r.container||n.parentNode,i=void 0!==t?t:r.enabled;!function(e,t,n,r,o){var i=e.offsetHeight,a=t.children.item(n),s=a.offsetTop+(o?r-e.scrollTop:0),l=a.offsetHeight;if(o){var u=0;s+l>i?u=s+l-i:s<0&&(u=s),0!==u?e.scrollTop+=u:0===e.scrollTop&&0!==r&&(e.scrollTop=r)}else s+l>i+e.scrollTop?e.scrollTop=s+l-i:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,n,e,r.translate,i)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var r=e.type;delete e.type;var o=r&&t.component.props[r];o&&o.call(void 0,B({},n,e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var r=this.component.props.virtual;if(r){var o=Math.min(Math.max(0,t),Math.max(0,r.total-n));o!==r.skip&&e.events.push({type:"onPageChange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&k(e,o[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&k(e,o[o.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.basicPropTypes={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,textField:a.string,className:a.string,label:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,itemRender:a.func,listNoDataRender:a.func,focusedItemIndex:a.func,header:a.node,footer:a.node},e.propTypes=B({},e.basicPropTypes,{value:a.any,defaultValue:a.any,filterable:a.bool,filter:a.string,virtual:a.shape({pageSize:a.number.isRequired,skip:a.number.isRequired,total:a.number.isRequired}),onFilterChange:a.func,onPageChange:a.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}(),K={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639485259,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"},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)}}(),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(t){var n=e.call(this,t)||this;return n.state={},n.base=new A(n),n.searchState={word:"",last:""},n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=r.defaultItem,u=a?a.skip:0,c=-1===e&&void 0!==l?l:i[e-u],p=!k(c,n.value,s);n.triggerOnChange(c,t),p&&n.base.triggerPageChangeCornerItems(c,t)},n.renderDropDownWrapper=function(){var e=n.props,t=e.dataItemKey,r=e.data,o=void 0===r?[]:r,a=e.textField,l=e.disabled,u=e.tabIndex,c=e.loading,p=e.iconClassName,d=e.virtual,f=void 0===d?{skip:0}:d,h=e.valueRender,v=n.state.focused,m=void 0!==n.props.opened?n.props.opened:n.state.opened,g=n.value,b=o.findIndex((function(e){return k(e,g,t)})),O=y(g,a),w=i.createElement("span",{className:"k-input"},O),C=void 0!==h?h.call(void 0,w,g):w;return i.createElement("span",{ref:function(e){return n.base.wrapper=e},role:"listbox",tabIndex:Object(s.getTabIndex)(u,l),accessKey:n.props.accessKey,className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":v,"k-state-disabled":l}),onKeyDown:n.handleKeyDown,onKeyPress:n.handleKeyPress,onClick:l?void 0:n.handleWrapperClick,"aria-disabled":l||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":n.base.listBoxId,"aria-activedescendant":m?"option-"+n.base.guid+"-"+(b+f.skip):void 0,"aria-label":n.props.label,"aria-labelledby":n.props.ariaLabelledBy,"aria-describedby":n.props.ariaDescribedBy,id:n.props.id,title:n.props.title},C,i.createElement("span",{className:"k-select"},i.createElement("span",{className:Object(s.classNames)("k-icon",p,{"k-i-arrow-s":!c&&!p,"k-i-loading":c&&!p})})),n.dummySelect(g))},n.dummySelect=function(e){return i.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e=n.props,t=e.header,r=e.footer,o=e.dir,a=e.data,l=void 0===a?[]:a,u=n.base,c=u.getPopupSettings(),p=void 0!==n.props.opened?n.props.opened:n.state.opened,f=void 0!==n.props.virtual,h=void 0!==c.width?c.width:u.popupWidth,v={dir:void 0!==o?o:u.dirCalculated,width:h,popupSettings:{popupClass:c.popupClass,className:Object(s.classNames)("k-list-container k-reset",c.className),animate:c.animate,anchor:n.element,show:p,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:c.appendTo},itemsCount:[l.length]};return i.createElement(d,H({},v),n.renderListFilter(),f&&n.renderDefaultItem(),f&&t,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!f&&n.renderDefaultItem(),!f&&t,n.renderList(),!f&&r,n.base.renderScrollElement())),f&&r)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,u=e.listNoDataRender,c=e.itemRender,p=n.base.vs,d=l.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=n.base.getPopupSettings(),v="translateY("+p.translate+"px)";return i.createElement(R,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.focusedIndex(),value:n.value,textField:o,valueField:a,optionsGuid:n.base.guid,listRef:function(e){return p.list=n.base.list=e},wrapperStyle:p.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:p.enabled?void 0:"k-list-scroller",listStyle:p.enabled?{transform:v}:void 0,key:"listkey",skip:d,onClick:n.handleItemClick,itemRender:c,noDataRender:u})},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&i.createElement(h,{value:e,ref:function(e){return n._filterInput=e&&e.input},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,o=e.dataItemKey;return void 0!==r&&i.createElement(I,{defaultItem:r,textField:t,selected:k(n.value,r,o),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=i.map((function(e,t){return{item:e,itemIndex:t}})),l=n.searchState.word,u=n.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),p=s.length,d=Math.max(0,i.findIndex((function(e){return k(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},p+=1,d+=1),s=function(e,t,n){var r=e;return n&&(r=[n].concat(r)),r.slice(t).concat(r.slice(0,t))}(s,d+=c?1:0,t);for(var f,h,v,g=0,b=n.props,O=b.textField,w=b.ignoreCase;g<p;g++)if(f=y(s[g].item,O),h=c&&m(f,u,w),v=m(f,l,w),h||v){g=s[g].itemIndex;break}if(g!==p){var C=n.base.initState();C.syntheticEvent=e,n.handleItemSelect(g,C),n.applyState(C),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.filterable,a=t.disabled,l=t.leftRightKeysNavigation,u=void 0===l||l,c=t.virtual,p=void 0===c?{skip:0,total:0,pageSize:0}:c,d=void 0!==n.props.opened?n.props.opened:n.state.opened,f=e.keyCode,h=f===s.Keys.home||f===s.Keys.end,v=f===s.Keys.up||f===s.Keys.down,m=!d&&(e.altKey&&f===s.Keys.down||f===s.Keys.enter||f===s.Keys.space),g=d&&(e.altKey&&f===s.Keys.up||f===s.Keys.esc),b=u&&(f===s.Keys.left||f===s.Keys.right),y=v||!i&&(b||h),O=n.base.initState();if(O.syntheticEvent=e,!a){if(h&&n.base.vs.enabled)f===s.Keys.home?0!==p.skip?(n.base.triggerOnPageChange(O,0,p.pageSize),n._navigated=!0):n.triggerOnChange(o[0],O):p.skip<p.total-p.pageSize?(n.base.triggerOnPageChange(O,p.total-p.pageSize,p.pageSize),n._navigated=!0):n.triggerOnChange(o[o.length-1],O);else if(d&&f===s.Keys.enter){var k=n.focusedIndex();void 0!==k&&n.handleItemSelect(k,O),n.base.togglePopup(O),e.preventDefault()}else m||g?(n.base.togglePopup(O),e.preventDefault()):y&&(n.onNavigate(O,f),e.preventDefault());n.applyState(O)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&n.base.togglePopup(r),n.applyState(r)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.base.togglePopup(t),n.applyState(t)},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},Object(s.validatePackage)(K),n}return q(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this.base.wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),v(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return k(e,o,r)}))},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=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l;if(this.base.getPopupSettings().animate||c&&this.onPopupOpened(),a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var p=this.value,d=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return k(e,p,i)})),h=!k(d,p,i);c&&a?this.base.scrollToVirtualItem(a,f):c&&!a||l&&u&&p&&h&&!this._navigated?this.base.scrollToItem(f):l&&u&&this._navigated&&(this._navigated&&a&&0===a.skip?this.base.vs.reset():this._navigated&&a&&a.skip===a.total-a.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.virtual,c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=y(this.value,this.props.textField),d=!this.validityStyles||this.validity.valid,f=this.base;f.vs.enabled=void 0!==u,void 0!==u&&(f.vs.skip=u.skip,f.vs.total=u.total,f.vs.pageSize=u.pageSize);var h=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-dropdown",{"k-state-invalid":!d},r),style:o?H({},n,{width:void 0}):n,dir:a,onMouseDown:c?C:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderDropDownWrapper(),this.renderListContainer());return o?i.createElement(l.a,{label:o,editorValue:p,editorValid:d,editorDisabled:this.props.disabled,style:{width:n?n.width:void 0},children:h}):h},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.defaultItem,a=n.dataItemKey,s=n.virtual,l=void 0===s?{skip:0,total:0,pageSize:0}:s,u=this.base.vs,c=this.value,p=o.findIndex((function(e){return k(e,c,a)})),d=this.base.navigation.navigate({current:l.skip+p,max:(u.enabled?l.total:o.length)-1,min:void 0!==i?-1:0,keyCode:t});void 0!==d&&this.handleItemSelect(d,e),this.applyState(e)},t.prototype.focusedIndex=function(){var e=v(this.props.filter)?this.props.filter:this.state.text,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=void 0===o?{skip:0}:o,a=t.dataItemKey,s=t.textField,l=t.focusedItemIndex,u=this.value,c=!(r.findIndex((function(e){return k(e,u,a)}))<0&&!this.props.defaultItem);return!c&&e&&0===i.skip?l?l(r,e,s):r.indexOf(w(r,e,s)):c||0!==i.skip?void 0:0},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){k(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="DropDownList",t.propTypes=H({delay:a.number,ignoreCase:a.bool,iconClassName:a.string,defaultItem:a.any,valueRender:a.func,valueMap:a.func,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,leftRightKeysNavigation:a.bool,title:a.string},A.propTypes),t.defaultProps=H({delay:500,tabIndex:0,ignoreCase:!0},A.defaultProps,{required:!1}),t}(i.Component),U=Object(s.createPropsContext)(),W=Object(s.withPropsContext)(U,z);W.displayName="KendoReactDropDownList";var Y=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(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return Y(t,e),t.prototype.render=function(){var e=Object(S.provideLocalizationService)(this).toLanguageString(N,F[N]);return i.createElement("span",{className:"k-icon k-clear-value k-i-close",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"})},t}(i.Component),X=G;Object(S.registerForLocalization)(G);var 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)}}(),$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Z(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,r=this.props,o=r.value,i=r.suggestedText,a=r.focused,s=this.input,l=t!==o||i!==n,u=l&&t.startsWith(o)&&!(n&&i&&n.endsWith(i));a&&s&&document.activeElement!==s&&s.focus(),i&&l&&!u&&s&&s.setSelectionRange(o.length-i.length,o.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,o=t.disabled,a=t.role,s=void 0===a?"listbox":a,l=t.render,u=i.createElement("span",{className:"k-searchbar",key:"searchbar"},i.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",size:this.props.size,placeholder:this.props.placeholder,className:"k-input",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,"aria-disabled":o||void 0,disabled:o||void 0,readOnly:this.props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy}));return[l?l.call(void 0,u):u,!this.props.loading&&this.props.clearButton&&i.createElement(X,{onClick:this.props.clearButtonClick,key:"clearbutton"}),this.props.loading&&i.createElement("span",{className:"k-icon k-i-loading",key:"loading"})]},t}(i.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)}}(),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)},ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new A(n),n._inputId=Object(s.guid)(),n._suggested="",n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.virtual,s=r.dataItemKey,l=i[e-(a?a.skip:0)],u=!k(l,n.value,s);n.triggerOnChange(l,t),void 0!==n.state.text&&(t.data.text=void 0),u&&n.base.triggerPageChangeCornerItems(l,t)},n.toggleBtnClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.applyState(t)},n.onScroll=function(e){var t=n.props,r=t.data,o=void 0===r?[]:r,i=t.groupField;if(i&&o.length){for(var a=n.base,s=a.vs,l=a.list,u=n.itemHeight=n.itemHeight||(s.enabled?s.itemHeight:l?l.children[0].offsetHeight:0),c=e.target.scrollTop-s.skip*u,p=o[0][i],d=1;d<o.length&&!(u*d>c);d++)o[d]&&o[d][i]&&(p=o[d][i]);p!==n.state.group&&n.setState({group:p})}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();if(o.syntheticEvent=e,!e.altKey&&(t===s.Keys.up||t===s.Keys.down))return e.preventDefault(),n.onNavigate(o,t),void n.applyState(o);var i=function(){e.preventDefault(),n.base.togglePopup(o),n.applyState(o)};r?e.altKey&&t===s.Keys.up?i():t===s.Keys.enter?(e.preventDefault(),n.applyValueOnEnter(e.currentTarget.value,o)):t===s.Keys.esc&&n.applyValueOnRejectSuggestions(e.currentTarget.value,o):e.altKey&&t===s.Keys.down&&i()},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=e.currentTarget,i=o.value;if(n.props.suggest){var a=o.selectionEnd===i.length,s=void 0!==n.props.filter?n.props.filter:n.state.text;v(s)||(s=y(n.value,n.props.textField)||"");var l=s&&s===i,u=s&&s.length>i.length;l||u||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n._suggested="",n.base.filterChanged("",t),void 0===n.props.filter&&void 0!==n.state.text&&(t.data.text=void 0),n.triggerOnChange(null,t),(void 0!==n.props.opened?n.props.opened:n.state.opened)&&n.base.togglePopup(t),n.applyState(t)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(K),n}return J(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:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.dataItemKey,o=this.value;return n.findIndex((function(e){return k(e,o,r)}))},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=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.componentDidUpdate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.dataItemKey,a=n.virtual,s=e.virtual?e.virtual.total:0,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=void 0!==e.opened?e.opened:t.opened,c=!u&&l,p=this.value;if(this._valueOnDidUpdate=p,a&&a.total!==s)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var d=void 0!==e.value?e.value:t.value,f=o.findIndex((function(e){return k(e,p,i)})),h=!k(d,p,i);c&&a?this.base.scrollToVirtualItem(a,f):(c&&!a||l&&u&&p&&h)&&this.base.scrollToItem(f)}c&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,n=this.props,r=n.dir,o=n.disabled,a=n.clearButton,u=void 0===a?t.defaultProps.clearButton:a,c=n.label,p=n.textField,d=n.className,f=n.style,h=n.loading,m=n.iconClassName,g=n.virtual,b=this.state.focused,O=!this.validityStyles||this.validity.valid,k=void 0!==this.props.filter?this.props.filter:this.state.text,w=y(this.value,p),C=v(k)?k:w,x=u&&(!!C||v(this.value)),E=this.base,D=E.vs,I=this.props.id||this._inputId;D.enabled=void 0!==g,void 0!==g&&(D.skip=g.skip,D.total=g.total,D.pageSize=g.pageSize);var _=i.createElement("span",{className:Object(s.classNames)("k-widget k-combobox",{"k-combobox-clearable":u,"k-state-invalid":!O},d),ref:function(t){return e._element=t},style:c?Q({},f,{width:void 0}):f,dir:r},i.createElement("span",{ref:function(e){return E.wrapper=e},className:Object(s.classNames)("k-dropdown-wrap",{"k-state-disabled":o,"k-state-focused":b&&!o})},this.renderSearchBar(x,C||"",I),i.createElement("span",{className:"k-select",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}},i.createElement("span",{className:Object(s.classNames)("k-icon",m,{"k-i-arrow-s":!h&&!m,"k-i-loading":h&&!m})}))),this.renderListContainer());return c?i.createElement(l.a,{label:c,editorId:I,editorValue:C,editorValid:O,editorDisabled:o,style:{width:f?f.width:void 0},children:_}):_},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.data,o=void 0===r?[]:r,i=n.virtual,a=void 0===i?{skip:0}:i,s=this.props.filter?this.props.filter:this.state.text,l=this.getFocusedIndex(),u=this.base.vs,c=this.value;if(this._suggested="",-1===l||v(c))if(""===s)this.handleItemSelect(0,e);else{var p=a.skip+l,d=this.base.navigation.navigate({keyCode:t,current:p,max:(u.enabled?u.total:o.length)-1,min:0});void 0!==d&&this.handleItemSelect(d,e)}else this.handleItemSelect(l,e)},t.prototype.applyValueOnEnter=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=y(this.value,a)===e?this.index:b(i,e,a),c=-1!==u,p=void 0;if(this._suggested="",c)p=i[u];else{if(!s)return this.selectFocusedItem(e,t);p=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(p,t),l&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,u=y(this.value,a);if(this._suggested="",e===u||""===e&&!v(u))return l&&this.base.togglePopup(t),this.applyState(t);var c=b(i,e,a,!0),p=null;-1!==c?p=i[c]:s&&(p=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(p,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=r.virtual,l=void 0===s?{skip:0}:s,u=r.focusedItemIndex,c=void 0===u?g:u,p=l.skip,d=""===e&&0===p?0:c(i,e,a);return-1!==d?this.handleItemSelect(d+p,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=t.groupField,c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=e.getPopupSettings(),f=void 0!==p.width?p.width:e.popupWidth,h=this.state.group;return void 0===h&&void 0!==u&&(h=y(l[0],u)),i.createElement(d,{width:f,popupSettings:{animate:p.animate,anchor:this.element,show:c,popupClass:p.popupClass,className:Object(s.classNames)("k-list-container k-reset",p.className),appendTo:p.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,h&&i.createElement("div",{className:"k-group-header"},h),e.renderScrollWrapper([this.renderList(),e.renderScrollElement()],this.onScroll),o)},t.prototype.renderList=function(){var e=this,t=this.base,n=this.props,r=n.textField,o=n.dataItemKey,a=n.listNoDataRender,s=n.itemRender,l=n.data,u=void 0===l?[]:l,c=n.virtual,p=void 0===c?{skip:0}:c,d=t.getPopupSettings(),f=t.vs,h=p.skip,m=void 0!==this.props.opened?this.props.opened:this.state.opened,g="translateY("+f.translate+"px)",b=m?this.getFocusedIndex():void 0,O=void 0!==this.props.filter?this.props.filter:this.state.text,k=y(this.value,r),w=v(O)&&O!==k?null:this.value,C=this.props.list||R;return i.createElement(C,{id:t.listBoxId,show:m,data:u,focusedIndex:b,value:w,textField:r,valueField:o,groupField:this.props.groupField,optionsGuid:t.guid,listRef:function(t){f.list=e.base.list=t,e.itemHeight=0},wrapperStyle:f.enabled?{float:"left",width:"100%"}:{maxHeight:d.height},wrapperCssClass:f.enabled?void 0:"k-list-scroller",listStyle:f.enabled?{transform:g}:void 0,key:"listkey",skip:h,onClick:this.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll})},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.props,a=o.placeholder,s=o.tabIndex,l=o.disabled,u=o.data,c=void 0===u?[]:u,p=o.dataItemKey,d=o.virtual,f=void 0===d?{skip:0}:d,h=void 0!==this.props.opened?this.props.opened:this.state.opened,v=this.value,m=Math.max(0,c.findIndex((function(e){return k(e,v,p)})));return this._suggested&&!k(this._valueOnDidUpdate,v,p)&&(this._suggested=""),i.createElement($,{id:n,placeholder:a,tabIndex:s||void 0,accessKey:this.props.accessKey,value:t+this._suggested,suggestedText:this._suggested,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:h,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(m+f.skip),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.triggerOnChange=function(e,t){var n=this.value;!v(n)&&!v(e)||k(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=t.focusedItemIndex,u=void 0===l?g:l,c=this.props.filter?this.props.filter:this.state.text;return v(e)&&void 0===c?r.findIndex((function(t){return k(t,e,i)})):c?u(r,c,o):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,r=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var o=t[g(t,e,n)];if(o){var i=y(o,n);e.toLowerCase()!==i.toLowerCase()&&(r=i.substring(e.length))}}return r}(e,n,r)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.displayName="ComboBox",t.propTypes=Q({},A.propTypes,{dataItemKey:a.string,groupField:a.string,suggest:a.bool,placeholder:a.string,allowCustom:a.bool,clearButton:a.bool,iconClassName:a.string,validationMessage:a.string,required:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,list:a.any,valueRender:a.func}),t.defaultProps=Q({},A.defaultProps,{allowCustom:!1,clearButton:!0,required:!1}),t}(i.Component),te=Object(s.createPropsContext)(),ne=Object(s.withPropsContext)(te,ee);ne.displayName="KendoReactComboBox";var re=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)}}(),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=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new A(n),n._inputId=Object(s.guid)(),n._suggested="",n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props.data,o=y((void 0===r?[]:r)[e],n.props.textField);n.triggerOnChange(o,t)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.textField,s=i[e];k(n.state.focusedItem,s,a)||(t.data.focusedItem=s)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget,o=r.value,i=r.selectionEnd===o.length;t.syntheticEvent=e;var a=n._suggested,s=n.value,l=s&&s.substring(0,s.length-a.length),u=l&&l===o,c=l&&l.length>o.length,p=n.props.suggest,d=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==p&&!1!==p){u||c||!i?n._suggested="":n.suggestValue(o);var f=o+n._suggested,h={userInput:o,value:n._suggested};n.triggerOnChange(f,t,{suggestion:h})}else n._suggested="",n.triggerOnChange(o,t);(!d&&o||d&&!o)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t)},n.clearButtonClick=function(e){var t=n.base.initState(),r=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e;n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),r&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=e;var i=function(){r&&e.preventDefault()};t===s.Keys.enter||t===s.Keys.esc?(i(),n.applyInputValue(e.currentTarget.value,o,e.keyCode)):t!==s.Keys.up&&t!==s.Keys.down||(i(),n.onNavigate(o,t))},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},Object(s.validatePackage)(K),n}return re(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:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},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=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.componentDidUpdate=function(e,t){var n=this.props.data,r=void 0===n?[]:n,o=e.data,i=void 0===o?[]:o,a=this.focusedIndex(),s=r[a],l=i!==r,u=void 0!==s&&t.focusedItem!==s,c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==e.opened?e.opened:t.opened;(c&&(u||l)||!p&&c)&&this.base.scrollToItem(a),this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.dir,r=t.disabled,o=t.label,a=t.className,u=t.style,c=t.loading,p=t.suggest,d=!this.validityStyles||this.validity.valid,f=this.state.focused,h=this.base,v=this.value,m=!1!==this.props.clearButton&&!c&&!!v,g=this.props.id||this._inputId;"string"==typeof p&&(this._suggested=p);var b=i.createElement("span",{className:Object(s.classNames)("k-widget k-autocomplete",a,{"k-state-disabled":r,"k-state-focused":f&&!r,"k-state-invalid":!d}),ref:function(t){e._element=t,h.wrapper=t},style:o?oe({},u,{width:void 0}):u,dir:n},this.renderSearchBar(m,v||"",g),c&&i.createElement("span",{className:"k-icon k-i-loading"}),this.renderListContainer());return o?i.createElement(l.a,{label:o,editorId:g,editorValue:v,editorValid:d,editorDisabled:r,style:{width:u?u.width:void 0},children:b}):b},t.prototype.onNavigate=function(e,t){var n=this,r=this.value,o=this.props,i=o.data,a=void 0===i?[]:i,s=o.textField,l=o.focusedItemIndex,u=void 0!==this.state.focusedItem?a.findIndex((function(e){return k(e,n.state.focusedItem,s)})):l?l(a,r,s):a.indexOf(w(a,r,s)),c=this.base.navigation.navigate({keyCode:t,current:u,max:a.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var r=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,i=o.data,a=void 0===i?[]:i,l=o.textField;if(this._suggested="",r&&n===s.Keys.enter){var u=y(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}r&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t,n){var r=this,o=this.base,a=this.props,s=a.placeholder,l=a.tabIndex,u=a.disabled,c=a.readonly,p=this.state.focused,d=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement($,{id:n,placeholder:s,tabIndex:l||void 0,accessKey:this.props.accessKey,value:t,suggestedText:this._suggested,focused:p,name:this.props.name,ref:function(e){return r._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:o.handleFocus,onBlur:this.handleBlur,disabled:u,readOnly:c,expanded:d,owns:o.listBoxId,activedescendant:"option-"+o.guid+"-"+this.focusedIndex(),role:"combobox",clearButton:e,clearButtonClick:this.clearButtonClick,ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e=this.base,t=this.props,n=t.dir,r=t.header,o=t.footer,a=t.data,l=void 0===a?[]:a,u=e.getPopupSettings(),c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=void 0!==u.width?u.width:e.popupWidth;return i.createElement(d,{width:p,popupSettings:{animate:u.animate,anchor:this.element,show:c,popupClass:u.popupClass,className:Object(s.classNames)("k-list-container k-reset",u.className),appendTo:u.appendTo},dir:void 0!==n?n:this.base.dirCalculated,itemsCount:[l.length]},r,this.renderList(),o)},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,o=n.data,a=void 0===o?[]:o,s=n.listNoDataRender,l=n.itemRender,u=this.value,c=void 0!==this.props.opened?this.props.opened:this.state.opened;return i.createElement(R,{id:e.listBoxId,show:c,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-scroller",onClick:this.handleItemClick,itemRender:l,noDataRender:s,onMouseDown:function(e){return e.preventDefault()}})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(oe({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.textField,i=r[g(r,e,o)];if(i){var a=y(i,o);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,r=n.data,o=void 0===r?[]:r,i=n.textField,a=n.focusedItemIndex,s=void 0!==e?e:this.value;return void 0!==this.state.focusedItem?o.findIndex((function(e){return k(e,t.state.focusedItem,i)})):a?a(o,s,i):Math.max(0,o.indexOf(w(o,s,i)))},t.displayName="AutoComplete",t.propTypes=oe({},A.basicPropTypes,{suggest:a.oneOfType([a.bool,a.string]),placeholder:a.string,value:a.string,defaultValue:a.string,validationMessage:a.string,required:a.bool,readonly:a.bool,clearButton:a.bool,valueRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=oe({},A.defaultProps),t}(i.Component),ae=Object(s.createPropsContext)(),se=Object(s.withPropsContext)(ae,ie);se.displayName="KendoReactAutoComplete";var le,ue=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)}}(),ce=function(e){return e.preventDefault()},pe=function(e){return e.stopPropagation()},de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ue(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.guid,o=this.props.tag;return i.createElement("ul",{className:"k-reset",role:"listbox",id:"tagslist-"+r},n.map((function(t,a){var s=o?i.createElement(o,{tagData:t,guid:r,focusedTag:e.props.focused,onTagDelete:e.props.onTagDelete}):i.createElement("li",{className:t===e.props.focused?"k-button k-state-focused":"k-button",key:t.text+a,id:"tag-"+r+"-"+t.text.replace(/\s+/g,"-"),onMouseDown:ce,onClick:pe,"aria-selected":!0,role:"option","aria-setsize":n.length},i.createElement("span",null,t.text),i.createElement("span",{"aria-label":"delete",className:"k-select",onClick:function(n){return e.props.onTagDelete.call(void 0,t.data,n)}},i.createElement("span",{className:"k-icon k-i-close"})));return e.props.tagRender?e.props.tagRender(t,s):s})))},t}(i.Component);!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(le||(le={}));var fe,he=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)}}(),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)},me=function(e){return e.preventDefault()},ge=function(e){return e===fe.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(fe||(fe={}));var be=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:le.PopupList},n._valueItemsDuringOnChange=null,n._inputId=Object(s.guid)(),n.base=new A(n),n._tags=[],n._skipFocusEvent=!1,n.scrollToFocused=!1,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.dataItemKey,s=r.virtual,l=i[e-(s?s.skip:0)],u=n.value.findIndex((function(e){return k(e,l,a)})),c=[];-1!==u?(c=n.value).splice(u,1):c=n.value.concat([l]),(void 0!==n.props.filter?n.props.filter:n.state.text)&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(c,t),n.base.triggerPageChangeCornerItems(l,t)},n.onTagDelete=function(e,t){var r=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.base.initState();o.syntheticEvent=t,r&&n.base.togglePopup(o),n.state.focused||(o.data.focused=!0,n.focus());var i=n.value;O(i,e,n.props.dataItemKey),n.triggerOnChange(i,o),n.applyState(o)},n.itemFocus=function(e,t){var r=n.props,o=r.data,i=void 0===o?[]:o,a=r.allowCustom,s=r.virtual,l=s?s.skip:0,u=void 0!==n.props.filter?n.props.filter:n.state.text,c=n.getFocusedState().focusedIndex,p=a&&u,d=i[e-l];d&&c!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=le.PopupList):p&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(d,t)},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),r=e.currentTarget.value,o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=r),t.data.focusedIndex=void 0,o||n.base.togglePopup(t),n.base.filterChanged(r,t),n.applyState(t)},n.clearButtonClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState();r.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],r),void 0!==n.state.focusedIndex&&(r.data.focusedIndex=void 0),t&&n.base.togglePopup(r);var o=void 0!==n.props.filter?n.props.filter:n.state.text;v(o)&&""!==o&&n.base.filterChanged("",r),n.state.text&&(r.data.text=""),n.applyState(r)},n.onInputKeyDown=function(e){var t=e.keyCode,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=void 0!==n.props.opened?n.props.opened:n.state.opened,i=n.getFocusedState().focusedItem,a=n.base.initState();if(a.syntheticEvent=e,!r&&n.value.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete||t===s.Keys.backspace))return n.onTagsNavigate(e,a);var l=function(){e.preventDefault(),n.base.togglePopup(a),n.applyState(a)};o?e.altKey&&t===s.Keys.up?l():t===s.Keys.up||t===s.Keys.down?(e.preventDefault(),n.onNavigate(a,t)):t===s.Keys.enter?(e.preventDefault(),n.props.allowCustom&&r&&null===i?n.customItemSelect(e):n.selectFocusedItem(e)):t===s.Keys.esc&&l():e.altKey&&t===s.Keys.down&&l()},n.renderListContainer=function(){var e=n.base,t=n.props,r=t.header,o=t.footer,a=t.allowCustom,l=t.dir,u=t.data,c=void 0===u?[]:u,p=n.base.getPopupSettings(),f=void 0!==n.props.opened?n.props.opened:n.state.opened,h=void 0!==n.props.filter?n.props.filter:n.state.text,v=void 0!==n.props.virtual,m=void 0!==p.width?p.width:e.popupWidth,g={dir:void 0!==l?l:e.dirCalculated,width:m,popupSettings:{popupClass:p.popupClass,className:Object(s.classNames)("k-list-container k-reset",p.className),animate:p.animate,anchor:n.element,show:f,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:p.appendTo},itemsCount:[c.length,n.value.length]},b=n.getFocusedState().focusedType,y=a&&h&&i.createElement("div",{className:"k-list",key:"customitem",onClick:n.customItemSelect,onMouseDown:me},i.createElement("div",{className:Object(s.classNames)("k-item k-custom-item",{"k-state-focused":ge(b)})},h,i.createElement("span",{className:"k-icon k-i-plus",style:{float:"right"}})));return i.createElement(d,ve({},g),v&&r,n.base.renderScrollWrapper(i.createElement(i.Fragment,null,!v&&r,y,n.renderList(),!v&&o,n.base.renderScrollElement())),v&&o)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,o=e.textField,a=e.listNoDataRender,s=e.itemRender,l=e.dataItemKey,u=e.virtual,c=n.base.vs,p=u?u.skip:0,d=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.getFocusedState().focusedIndex,h=n.base.getPopupSettings(),v="translateY("+c.translate+"px)";return i.createElement(R,{id:n.base.listBoxId,show:d,data:r.slice(),focusedIndex:f-p,value:n.value,textField:o,valueField:l,optionsGuid:n.base.guid,listRef:function(e){c.list=n.base.list=e},wrapperStyle:c.enabled?{float:"left",width:"100%"}:{maxHeight:h.height},wrapperCssClass:c.enabled?void 0:"k-list-scroller",listStyle:c.enabled?{transform:v}:void 0,key:"listKey",skip:p,onClick:n.handleItemClick,itemRender:s,noDataRender:a,onMouseDown:me,onBlur:n.handleBlur})},n.customItemSelect=function(e){var t,r=void 0!==n.props.filter?n.props.filter:n.state.text,o=n.props.textField;if(r){var i=n.base.initState();i.syntheticEvent=e;var a=o?((t={})[o]=r,t):r;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var s=n.value.concat([a]);n.triggerOnChange(s,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n._input;!t&&r&&n.focusElement(r);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var r=n.base.initState();r.syntheticEvent=t,n.handleItemSelect(e,r),n.props.autoClose&&n.base.togglePopup(r),n.applyState(r)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,r=n.base.initState(),o=n.props,i=o.allowCustom,a=o.filterable;r.syntheticEvent=e,r.data.focused=!1,r.events.push({type:"onBlur"}),t&&(n.state.opened&&(r.data.opened=!1),r.events.push({type:"onClose"})),i||a||!n.state.text||(r.data.text=""),n.applyState(r)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},Object(s.validatePackage)(K),n}return he(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=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},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=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},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,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.virtual,r=n?n.skip:0,o=e.virtual?e.virtual.total:0,i=void 0!==this.props.opened?this.props.opened:this.state.opened,a=void 0!==e.opened?e.opened:t.opened,s=!a&&i,l=a&&!i;if(!this.base.getPopupSettings().animate&&l&&this.onPopupClosed(),n&&n.total!==o)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var u=this.getFocusedState(),c=u.focusedItem,p=u.focusedIndex;s&&n?this.base.scrollToVirtualItem(n,p-r):s&&!n?this.base.scrollToItem(p):i&&a&&c&&this.scrollToFocused&&this.base.scrollToItem(p-r)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.onNavigate=function(e,t){var n=this.props,r=n.allowCustom,o=n.data,i=void 0===o?[]:o,a=void 0!==this.props.opened?this.props.opened:this.state.opened,l=void 0!==this.props.filter?this.props.filter:this.state.text,u=this.getFocusedState(),c=u.focusedType,p=u.focusedIndex,d=r&&l,f=ge(c),h=this.base,v=h.vs;if(a&&t===s.Keys.up&&f)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var m=h.navigation.navigate({keyCode:t,current:p,max:(v.enabled?v.total:i.length)-1,min:d?-1:0});void 0!==m&&(this.itemFocus(m,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=t.label,a=t.dir,u=t.disabled,c=t.tags,p=t.textField,d=t.dataItemKey,f=t.virtual,h=this.state,v=h.focused,m=h.text,g=h.focusedTag,b=this.base.vs,O=this.props.id||this._inputId;b.enabled=void 0!==f,void 0!==f&&(b.skip=f.skip,b.total=f.total,b.pageSize=f.pageSize);var k=[];void 0===c?this.value.forEach((function(e){k.push({text:y(e,p),data:[e]})})):k.push.apply(k,c),this.setItems(k,this._tags);var w=!this.validityStyles||this.validity.valid,E=i.createElement("span",{ref:function(t){return e._element=t},className:Object(s.classNames)("k-widget k-multiselect",r,{"k-state-focused":v&&!u,"k-state-invalid":!w,"k-state-disabled":u}),style:o?ve({},n,{width:void 0}):n,dir:a,onFocus:this.handleFocus,onBlur:this.handleBlur},i.createElement("div",{onClick:this.handleWrapperClick,ref:function(t){return e.base.wrapper=t},className:"k-multiselect-wrap k-floatwrap",onMouseDown:C},k.length>0&&i.createElement(de,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:k,guid:this.base.guid,focused:g?k.find((function(e){return x(e,g,d)})):void 0}),this.renderSearchbar(O)),this.renderListContainer());return o?i.createElement(l.a,{label:o,editorId:O,editorValue:m||y(this.value[0],p),editorValid:w,editorDisabled:u,style:{width:n?n.width:void 0},children:E}):E},t.prototype.renderSearchbar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,o=this.props,a=o.disabled,s=o.placeholder,l=o.ariaDescribedBy,u=(void 0!==this.props.filter?this.props.filter:this.state.text)||"",c=void 0!==this.props.opened?this.props.opened:this.state.opened,p=this.getFocusedState().focusedIndex,d=!!u||this.value.length>0,f=0!==this.value.length||u?void 0:s,h=n===le.TagsList&&void 0!==r?"tag-"+this.base.guid+"-"+r.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+p;return i.createElement($,{id:e,size:Math.max((f||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:f,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:a,expanded:c,owns:this.base.listBoxId,activedescendant:h,ariaDescribedBy:"tagslist-"+this.base.guid+(l?" "+l:""),clearButton:d,clearButtonClick:this.clearButtonClick,loading:this.props.loading,ariaLabelledBy:this.props.ariaLabelledBy})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,r=this.state.focusedTag,o=this._tags,i=this.props.dataItemKey,a=r?o.findIndex((function(e){return x(e,r,i)})):-1,l=void 0,u=-1!==a;if(n===s.Keys.left)l=o[a=u?Math.max(0,a-1):o.length-1];else if(n===s.Keys.right)a===o.length-1?l=void 0:u&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===s.Keys.home)l=o[0];else if(n===s.Keys.end)l=o[o.length-1];else if(n===s.Keys.delete){if(u){var c=this.value;O(c,o[a].data,i),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.value;if(u)O(c,o[a].data,i),this.triggerOnChange(c,t);else if(!u&&o.length){var p=o.pop();O(c,p.data,i),this.triggerOnChange(c,t)}}l!==r&&(t.data.focusedTag=l,t.data.activedescendant=le.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=e.slice()),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e){var t=this.props,n=t.data,r=void 0===n?[]:n,o=t.virtual,i=this.getFocusedState().focusedIndex;void 0!==r[i-(o?o.skip:0)]&&this.handleItemClick(i,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,r=this.props,o=r.allowCustom,i=r.data,a=void 0===i?[]:i,s=r.dataItemKey,l=r.virtual,u=r.textField,c=r.focusedItemIndex,p=void 0===c?g:c,d=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-d],focusedType:fe.ListItem};var f=this.value;if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:fe.CustomItem};if(n)return{focusedItem:a[e=p(a,n,u)],focusedIndex:e+d,focusedType:fe.ListItem};if(f.length){var h=f[f.length-1];return e=a.findIndex((function(e){return k(e,h,s)})),void 0!==a[e]?{focusedIndex:e+d,focusedItem:a[e],focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}}return 0===d?{focusedItem:a[0],focusedIndex:0,focusedType:fe.ListItem}:{focusedType:fe.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.displayName="MultiSelect",t.propTypes=ve({},A.propTypes,{autoClose:a.bool,value:a.arrayOf(a.any),defaultValue:a.arrayOf(a.any),dataItemKey:a.string,placeholder:a.string,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),tagRender:a.func,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string}),t.defaultProps=ve({},A.defaultProps,{autoClose:!0,required:!1}),t}(i.Component),ye=Object(s.createPropsContext)(),Oe=Object(s.withPropsContext)(ye,be);Oe.displayName="KendoReactMultiSelect";var ke=function(){return(ke=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){return i.createElement(R,ke({},e,{listClassName:"k-grid-list"}))},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=Object(s.createPropsContext)(),De=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(Ee,e),r=i.useRef(null),o=i.useRef(null),a=Object(s.getScrollbarWidth)(),l=n.columns,u=void 0===l?_e.columns:l,c=n.popupSettings,p=void 0===c?_e.popupSettings:c,d=n.onOpen,f=n.onClose,h=n.onFocus,v=n.onBlur,m=n.onChange,g=n.onFilterChange,b=n.onPageChange,y=xe(n,["columns","popupSettings","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);i.useImperativeHandle(r,(function(){return{element:o.current&&o.current.element,focus:function(){o.current&&o.current.focus()},get value(){return o.current&&o.current.value},get name(){return o.current&&o.current.name},props:n}})),i.useImperativeHandle(t,(function(){return r.current}));var O=i.useMemo((function(){return"calc("+u.map((function(e){return t=e.width,n=_e.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")+" + "+a+"px)"}),[u,a]),k=i.useMemo((function(){return i.createElement(i.Fragment,null,n.header,i.createElement("div",{className:"k-grid-header"},i.createElement("div",{className:"k-grid-header-wrap"},i.createElement("table",{role:"presentation"},i.createElement("colgroup",null,u.map((function(e,t){return i.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:_e.width}})}))),i.createElement("tbody",null,i.createElement("tr",null,u.map((function(e,t){return i.createElement("th",{key:e.uniqueKey?e.uniqueKey:t,className:"k-header"},e.header||" ")}))))))))}),[n.header,u]),w=n.virtual?n.virtual.skip:0,C=i.useCallback((function(e,t){var r,o,a,l=u.map((function(e,n){return i.createElement("span",{className:"k-cell",style:{width:e.width?e.width:_e.width},key:e.uniqueKey?e.uniqueKey:n},e.field?Object(s.getter)(e.field)(t.dataItem):"")})),c=void 0,p=n.data||[],d=t.index-w;void 0!==n.groupField&&(r=(a=Object(s.getter)(n.groupField))(p[d]),o=a(p[d-1]),r&&o&&r!==o&&(c=r)),c&&l.push(i.createElement("div",{key:"group",className:"k-cell k-group-cell"},i.createElement("span",null,c)));var f=i.cloneElement(e,Ce({},e.props),l);return n.itemRender?n.itemRender.call(void 0,f,t):f}),[u,n.groupField,n.itemRender,n.data,w]),x=i.useCallback((function(e,t){e&&e.call(void 0,Ce({},t,{target:r.current}))}),[]),E=i.useCallback((function(e){return x(d,e)}),[d]),D=i.useCallback((function(e){return x(f,e)}),[f]),I=i.useCallback((function(e){return x(h,e)}),[h]),_=i.useCallback((function(e){return x(v,e)}),[v]),P=i.useCallback((function(e){return x(m,e)}),[m]),S=i.useCallback((function(e){return x(g,e)}),[g]),j=i.useCallback((function(e){return x(b,e)}),[b]);i.useEffect((function(){Object(s.setScrollbarWidth)()}));var N=i.useCallback((function(e){return i.createElement(we,Ce({},e))}),[]);return i.createElement(ne,Ce({},y,{list:N,popupSettings:Ce({width:O},p,{popupClass:"k-dropdowngrid-popup",className:Object(s.classNames)("k-popup-flush",p.className)}),ref:o,header:k,itemRender:C,onOpen:E,onClose:D,onFocus:I,onBlur:_,onChange:P,onFilterChange:S,onPageChange:j}))})),Ie=Ce({},ee.propTypes,{columns:a.any.isRequired}),_e={columns:[],popupSettings:{},width:"200px"};De.displayName="KendoMultiColumnComboBox",De.propTypes=Ie,De.defaultProps=_e;function Pe(e,t,n){if(Re(e))return t[Number(e)];var r=t[Number(Se(e))],o=r&&r[n]||[];return o.length?Pe(je(e),o,n):void 0}function Se(e){return Te(e)?e:e.split("_")[0]}function je(e){if(Te(e))return e;var t=e.indexOf("_");return e.substring(t+1)}function Ne(e){return Fe("0",e)}function Fe(e,t){return e=e.toString(),t?t+"_"+e:e}function Me(e){var t=e.lastIndexOf("_");return t<0?"":e.substring(0,t)}function Te(e){return""===e||e.indexOf("_")<0}function Re(e){return""!==e&&e.indexOf("_")<0}function Le(e){return e.split("_")}function Ve(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}var Be=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();function Ae(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r}function Ke(e,t){var n=Ae(t,e);return Boolean(n&&n.length)}function qe(e,t){return t.expanded(e)&&Ke(e,t.getChildrenField())}function He(e,t,n,r){var o=[],i=new Be;return i.init(e),function e(t,n,r,o,i,a){for(var s=0;s<r.length;s++){var l=r[s],u=Fe(s,o);t.hasId(Ae(n,l))&&i.push(u),Ke(l,a)&&e(t,n,Ae(a,l),u,i,a)}}(i,t,n,"",o,r),o}function ze(e,t,n){for(var r=Le(e),o=t,i=0;i<r.length;i++){var a=o[Number(r[i])];if(n.disabled(a))return!1;o=a[n.getChildrenField()]}return!0}function Ue(e,t,n,r,o){switch(r){case s.Keys.left:return Re(t)||o.expanded(e)&&ze(t,n,o)?t:Me(t);case s.Keys.right:return qe(e,o)?Ne(t):t;case s.Keys.up:return i=Number(Ve(t)),a=Me(t),i?function e(t,n,r){var o=Pe(t,n,r.getChildrenField());return qe(o,r)?e(Fe(o[r.getChildrenField()].length-1,t),n,r):t}(Fe(i-1,a),n,o):Re(t)?t:a;case s.Keys.down:return qe(e,o)?Ne(t):function e(t,n,r){var o=Me(t),i=o?Pe(o,n,r.getChildrenField()):void 0,a=i?i[r.getChildrenField()]:n,s=Number(Ve(t));return s<a.length-1?Fe(s+1,o):i?e(o,n,r):void 0}(t,n,o)||t;case s.Keys.home:return"0";case s.Keys.end:return function(){var e,t=(n.length-1).toString(),r=n[n.length-1];for(;qe(r,o);)e=r[o.getChildrenField()],t=Fe(e.length-1,t),r=e[e.length-1];return t}();default:return t}var i,a}var We=n(23),Ye=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)}}(),Ge=function(){return(Ge=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=i.createContext((function(e){return e})),Ze=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=Object(s.guid)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return Ye(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return i.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},i.createElement("div",{className:"k-mid",ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?i.createElement(s.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?i.createElement(We.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e=this;return this.props.checkboxes?i.createElement("div",{className:"k-checkbox-wrapper"},i.createElement("input",{type:"checkbox",className:"k-checkbox",checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(t){return e.checkboxElement=t}}),i.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid})):void 0},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||Ke(this.item,this.fieldsSvc.getChildrenField()))?i.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}):void 0},t.prototype.renderSubitemsIfApplicable=function(){var e=this;return qe(this.item,this.fieldsSvc)?i.createElement("ul",{className:"k-content",role:"group"},this.fieldsSvc.children(this.item).map((function(t,n){return i.createElement($e,{item:t,itemId:Fe(n,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:n})}))):void 0},t.prototype.renderItemInPart=function(){return i.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},this.props.itemUI?i.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||Ke(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!0,configurable:!0}),t.prototype.getIconClassName=function(){return Object(s.classNames)("k-icon",{"k-i-expand":!this.fieldsSvc.expanded(this.item),"k-i-collapse":this.fieldsSvc.expanded(this.item),"k-i-loading":this.fieldsSvc.expanded(this.item)&&!Ke(this.item,this.fieldsSvc.getChildrenField())})},t.prototype.getRootClassName=function(){return Object(s.classNames)("k-item k-treeview-item",{"k-state-disabled":this.fieldsSvc.disabled(this.item)})},t.prototype.getContentClassName=function(){return Object(s.classNames)("k-in",{"k-state-focused":this.props.focusedItemId===this.itemId,"k-state-selected":this.fieldsSvc.selected(this.item)})},t}(i.Component),$e=i.forwardRef((function(e,t){var n=i.useContext(Xe).call(void 0,e);return i.createElement(Ze,Ge({ref:t},n))}));$e.displayName="TreeViewItem";var Je=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return Ae(this.expandField,e)},e.prototype.selected=function(e){return Ae(this.selectField,e)},e.prototype.text=function(e){return Ae(this.textField,e)},e.prototype.disabled=function(e){return Ae(this.disableField,e)},e.prototype.hasChildren=function(e){return Ae(this.hasChildrenField,e)},e.prototype.children=function(e){var t=Ae(this.childrenField,e);return t||[]},e.prototype.checked=function(e){return Ae(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return Ae(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&Ae(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}(),Qe={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639485228,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"},et=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)}}(),tt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:"0"},n.allowExplicitFocus=!1,n.treeGuid=Object(s.guid)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:s})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t){var r=Ue(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},Object(s.validatePackage)(Qe),n}return et(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return this.fieldsSvc=new Je(this.props),i.createElement("div",{className:"k-widget k-treeview"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(t){return e._element=t},tabIndex:this.props.tabIndex},i.createElement("ul",{className:"k-treeview-lines k-group",role:"group"},this.data.map((function(t,n){return i.createElement($e,{item:t,itemId:n.toString(),treeGuid:e.treeGuid,animate:e.props.animate,focusedItemId:e.state.focusedItemId,tabbableItemId:e.state.tabbableItemId,fieldsService:e.fieldsSvc,itemUI:e.props.item,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.ariaMultiSelectable,onItemClick:e.onItemClick,onFocusDomElNeeded:e.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.onPress,onDrag:e.onDrag,onRelease:e.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.onExpandChange,onCheckChange:e.onCheckChange,key:n})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,r=function(){return ze(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===s.Keys.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===s.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||Ke(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===s.Keys.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===s.Keys.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return Pe(e,this.data,this.props.childrenField||"items")},t.prototype.dispatchCheckChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){Object(s.dispatchEvent)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):(n=e,r=this.fieldsSvc.focusIdField,o=this.data,i=this.props.childrenField,(a=He([n],r,o,i)).length?a[0]:void 0);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}var n,r,o,i,a},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!0,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!0,configurable:!0}),t.propTypes={data:a.arrayOf(a.any),animate:a.bool,tabIndex:a.number,focusIdField:a.string,getHierarchicalIndexById:a.func,onExpandChange:a.func,onItemClick:a.func,expandField:a.string,selectField:a.string,childrenField:a.string,hasChildrenField:a.string,textField:a.string,disableField:a.string,item:a.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":a.string,"aria-labelledby":a.string},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:"items",textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate"},t}(i.Component);var nt=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)}}(),rt=function(){return(rt=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){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,text:"",operationClassName:"k-i-cancel"},t}nt(t,e),t.prototype.render=function(){var e={top:this.state.top+"px",left:this.state.left+"px"};return this.state.visible&&i.createElement("div",{className:"k-header k-drag-clue",style:rt({},this.props.style,e)},i.createElement("span",{className:Object(s.classNames)("k-icon k-drag-status k-icon-with-modifier",this.state.operationClassName)},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.text)},t.prototype.show=function(e,t,n,r){this.setState({visible:!0,top:e,left:t,text:n,operationClassName:r})},t.prototype.hide=function(){this.setState({visible:!1})},t.defaultProps={style:{display:"block",position:"absolute",zIndex:2e4,padding:"4px 6px"}}})(i.PureComponent),function(){function e(e){this.event=e,this.initialized=!1,this.itemId=e.itemHierarchicalIndex,this.treeViewGuid=e.target.guid}e.prototype.init=function(){return this.initialized||(this.setDestimationMeta(document.elementFromPoint(this.event.clientX,this.event.clientY)),this.initialized=!0),this},Object.defineProperty(e.prototype,"isDropAllowed",{get:function(){return!!(this.initialized&&this.destItemId&&this.destTreeViewGuid)&&!(this.destTreeViewGuid+"_"+this.destItemId+"_").startsWith(this.treeViewGuid+"_"+this.itemId+"_")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destinationMeta",{get:function(){return{itemHierarchicalIndex:this.destItemId,treeViewGuid:this.destTreeViewGuid}},enumerable:!0,configurable:!0}),e.prototype.getDropOperation=function(){if(this.initialized&&this.isDropAllowed){var e=this.destDomNodeWithMeta.getBoundingClientRect(),t=e.top;return t+e.height-this.event.clientY<6?"after":this.event.clientY-t<6?"before":"child"}},e.prototype.setDestimationMeta=function(e){for(var t=e;t&&!t._kendoItemId;)t=t.parentNode;t&&t._kendoItemId&&(this.destDomNodeWithMeta=t,this.destItemId=t._kendoItemId,this.destTreeViewGuid=t._kendoTreeViewGuid)}}();function ot(e,t,n){var r=i.useState(t),o=r[0],a=r[1];return i.useEffect((function(){void 0!==o&&e.current&&a(e.current.offsetWidth)}),n),o}var it=function(e){return i.createElement("div",{className:"k-nodata"},i.createElement("div",null,e.children))},at=function(){return(at=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)},st=function(e){return i.createElement(i.Fragment,null,e.children)},lt=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},ut="selected",ct="items",pt={animate:!0,width:"200px",height:"200px"},dt=!1,ft=!0,ht=Object(s.createPropsContext)(),vt=i.forwardRef((function(e,t){Object(s.validatePackage)(K);var n=Object(s.usePropsContext)(ht,e),r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,p=n.dataItemKey,d=n.popupSettings,f=void 0===d?{}:d,h=n.style,m=void 0===h?{}:h,g=n.opened,b=n.disabled,O=n.onOpen,w=void 0===O?s.noop:O,C=n.onClose,x=void 0===C?s.noop:C,E=n.placeholder,D=n.label,I=n.name,_=n.selectField,P=void 0===_?ut:_,M=n.subItemsField,T=void 0===M?ct:M,R=n.validationMessage,L=n.valid,V=n.required,B=void 0===V?dt:V,A=n.validityStyles,q=void 0===A?ft:A,H=Object(s.getTabIndex)(n.tabIndex,b),z=i.useRef(null),U=i.useRef(null),W=i.useRef(null),Y=i.useRef(null),G=i.useRef(null),X=i.useRef(!1),Z=i.useState(void 0),$=Z[0],J=Z[1],Q=void 0!==n.value,ee=Q?n.value:void 0!==$?$:n.defaultValue,te=v(ee),ne=te?y(ee,n.textField):"",re=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:R,valid:L,required:B},te),oe=i.useCallback((function(){return U.current&&U.current.focus()}),[]);i.useImperativeHandle(z,(function(){return{props:n,element:U.current,actionElement:U.current,focus:oe}})),i.useImperativeHandle(t,(function(){return z.current}));var ie=Object(s.useRtl)(U,n.dir),ae=void 0!==f.width?f.width:void 0!==m.width?m.width:pt.width,se=ot(U,ae),le=at({width:se},void 0!==ie?{direction:ie}:{}),ue=i.useState(!1),ce=ue[0],pe=ue[1],de=void 0!==g?g:ce,fe=i.useState(!1),he=fe[0],ve=fe[1],me=i.useState(""),ge=me[0],be=me[1],ye=i.useCallback((function(){Y.current&&Y.current.setCustomValidity&&Y.current.setCustomValidity(re.valid?"":void 0===R?"Please select a value from the list!":R)}),[R,re]);i.useEffect(ye);var Oe=i.useCallback((function(e){if(!de){if(w){var t=at({},e);w.call(void 0,t)}void 0===g&&pe(!0)}}),[de,g,w]),ke=i.useCallback((function(e){if(de){if(x){var t=at({},e);x.call(void 0,t)}void 0===g&&pe(!1)}}),[de,g,x]),we=i.useCallback((function(e){if(!e.isDefaultPrevented()&&z.current){ve(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};(de?ke:Oe)(t)}}),[de,g,w,x]),Ce=i.useCallback((function(e){X.current=!0,e(),window.setTimeout((function(){return X.current=!1}),0)}),[]),xe=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=G.current&&G.current.element;if(z.current&&(!e.isDefaultPrevented()||W.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};if(de)if(t===s.Keys.esc||n&&t===s.Keys.up)ke(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&W.current){var i=Array.from(r.querySelectorAll(".k-treeview-item")),a=i.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(a&&0===i.indexOf(a))return Ce((function(){De(W.current)}))}Ce(s.noop)}else t===s.Keys.down&&Ce((function(){De(W.current||r)}));else n&&t===s.Keys.down&&Oe(o)}}),[de,g,w,x]),Ee=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),Ce(t===s.Keys.up?function(){De(U.current)}:function(){De(G.current&&G.current.element)}))}),[]),De=i.useCallback((function(e){e&&Ce((function(){return e.focus()}))}),[]),Ie=i.useCallback((function(){!he&&de?ke({target:z.current}):n.filterable?De(W.current):De(G.current&&G.current.element)}),[x,n.filterable,he,g,de]),_e=i.useCallback((function(){he&&De(U.current)}),[he]),Pe=i.useCallback((function(e){if(!he&&!X.current&&(ve(!0),n.onFocus&&z.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};n.onFocus.call(void 0,t)}}),[he,n.onFocus]),Se=i.useCallback((function(e){if(he&&!X.current&&z.current){ve(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};if(n.onBlur){var r=at({},t);n.onBlur.call(void 0,r)}ke(t)}}),[he,n.onBlur,de,g,x]),je=i.useCallback((function(){he&&Ce(s.noop)}),[he]),Ne=i.useCallback((function(e,t,r){if(n.onChange){var o=at({value:t,level:r?lt(r):[]},e);n.onChange.call(void 0,o)}Q||J(t)}),[n.onChange,Q]),Fe=i.useCallback((function(e){if(!k(e.item,ee,p)&&z.current){var t=e.item,n=e.itemHierarchicalIndex,r=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:r,target:z.current};Ne(o,t,n),ke(o)}}),[Q,ee,n.onChange,p,de,g,x]),Me=i.useCallback((function(e){if(z.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};Ne(t,null),ke(t),e.preventDefault()}}),[Q,n.onChange,de,g,x]),Te=i.useCallback((function(e){if(n.onExpandChange&&z.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:lt(r),item:t,nativeEvent:o,syntheticEvent:i,target:z.current};n.onExpandChange.call(void 0,a)}}),[n.onExpandChange]),Re=i.useCallback((function(e){if(n.onFilterChange&&z.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:z.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&be(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),Le=i.useMemo((function(){return Q||!te?c:Object(s.mapTree)(c,T,(function(e){var t;return Object(s.extendDataItem)(e,T,((t={})[P]=k(e,ee,p),t))}))}),[c,ee,Q,te,P,T]),Ve=n.listNoData||it,Be=n.valueHolder||st,Ae=Object(S.useLocalization)(),Ke=!q||re.valid,qe=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree k-dropdowntree-clearable",n.className),tabIndex:H,accessKey:n.accessKey,id:o,style:D?at({},m,{width:void 0}):m,dir:ie,ref:U,onKeyDown:b?void 0:xe,onMouseDown:je,onFocus:Pe,onBlur:Se,role:"listbox","aria-haspopup":"true","aria-expanded":de,"aria-disabled":b,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-dropdown-wrap",{"k-state-focused":he,"k-state-disabled":b,"k-state-invalid":!Ke}),onClick:b?void 0:we},i.createElement("span",{className:"k-input"},i.createElement(Be,{item:ee},ne||E)),te&&!b&&i.createElement("span",{onClick:Me,className:"k-icon k-clear-value k-i-close",title:Ae.toLanguageString(N,F[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("span",{className:"k-select","aria-label":"select"},i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-arrow-60-down":!n.loading,"k-i-loading":n.loading})})),i.createElement("select",{name:I,ref:Y,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,ee):ee}))),i.createElement(u.Popup,{className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===ie}),popupClass:f.popupClass,style:le,animate:f.animate,anchor:U.current,show:de,onOpen:Ie,onClose:_e,appendTo:f.appendTo},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:H,ref:W,value:void 0===n.filter?ge:n.filter,onChange:Re,onKeyDown:Ee}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(tt,{ref:G,tabIndex:H,data:Le,focusIdField:p,textField:n.textField,selectField:P,expandField:n.expandField,childrenField:T,expandIcons:!0,onItemClick:Fe,onExpandChange:Te,item:n.item}):i.createElement(Ve,null,Ae.toLanguageString(j,F[j]))));return D?i.createElement(l.a,{label:D,editorValue:ne,editorPlaceholder:E,editorValid:Ke,editorDisabled:b,editorId:o,style:{width:m?m.width:void 0},children:qe,dir:ie}):qe})),mt={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,selectField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,valueHolder:a.func,listNoData:a.func};vt.displayName="KendoReactDropDownTree",vt.propTypes=mt;var gt=function(){return(gt=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)},bt="checkField",yt="checkIndeterminateField",Ot="items",kt={animate:!0,width:"200px",height:"200px"},wt=!1,Ct=!0,xt=Object(s.createPropsContext)(),Et=i.forwardRef((function(e,t){var n=Object(s.usePropsContext)(xt,e);Object(s.validatePackage)(K);var r=i.useMemo((function(){return Object(s.guid)()}),[]),o=n.id||r,a=n.data,c=void 0===a?[]:a,p=n.dataItemKey,d=n.popupSettings,f=void 0===d?{}:d,h=n.style,v=void 0===h?{}:h,m=n.opened,g=n.disabled,b=n.onOpen,O=void 0===b?s.noop:b,w=n.onClose,C=void 0===w?s.noop:w,E=n.placeholder,D=n.label,I=n.name,_=n.checkField,P=void 0===_?bt:_,M=n.checkIndeterminateField,T=void 0===M?yt:M,R=n.subItemsField,L=void 0===R?Ot:R,V=n.validationMessage,B=n.valid,A=n.tags,q=n.value,H=n.required,z=void 0===H?wt:H,U=n.validityStyles,W=void 0===U?Ct:U,Y=Object(s.getTabIndex)(n.tabIndex,g),G=i.useRef(null),X=i.useRef(null),Z=i.useRef(null),$=i.useRef(null),J=i.useRef(null),Q=i.useRef(!1),ee=i.useRef([]),te=i.useRef(null),ne=i.useState(),re=ne[0],oe=ne[1],ie=i.useState(!1),ae=ie[0],se=ie[1],le=i.useState(!1),ue=le[0],ce=le[1],pe=i.useState(""),fe=pe[0],he=pe[1],ve=void 0!==m?m:ae,me=Boolean(Array.isArray(q)&&q.length),ge=function(e,t){var n=e.validationMessage,r=e.valid,o=e.required;return{customError:void 0!==n,valid:Boolean(void 0!==r?r:!o||t),valueMissing:!t}}({validationMessage:V,valid:B,required:z},me),be=Object(s.useRtl)(X,n.dir),ye=void 0!==f.width?f.width:void 0!==v.width?v.width:kt.width,Oe=ot(X,ye),ke=gt({width:Oe},void 0!==be?{direction:be}:{}),we=i.useCallback((function(){return X.current&&X.current.focus()}),[]);ee.current=void 0===A?(q||[]).map((function(e){return{text:y(e,n.textField),data:[e]}})):A.slice(),i.useImperativeHandle(G,(function(){return{props:n,element:X.current,actionElement:X.current,focus:we}})),i.useImperativeHandle(t,(function(){return G.current}));var Ce=i.useCallback((function(){$.current&&$.current.setCustomValidity&&$.current.setCustomValidity(ge.valid?"":void 0===V?"Please select a value from the list!":V)}),[V,ge]);i.useEffect(Ce),i.useEffect((function(){te.current&&ve&&te.current.setPosition(te.current._popup)}),[q,ve]);var xe=i.useCallback((function(e,t,r){if(n.onChange){var o=gt({items:t,operation:r},e);n.onChange.call(void 0,o)}}),[n.onChange]),Ee=i.useCallback((function(e){if(!k(e.item,q,p)&&G.current){var t=e.item,n=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:G.current};xe(r,[t],"toggle")}}),[q,p,xe]),De=i.useCallback((function(e){if(!ve){if(O){var t=gt({},e);O.call(void 0,t)}void 0===m&&se(!0)}}),[ve,m,O]),Ie=i.useCallback((function(e){if(ve){if(C){var t=gt({},e);C.call(void 0,t)}void 0===m&&se(!1)}}),[ve,m,C]),_e=i.useCallback((function(e){Q.current=!0,e(),window.setTimeout((function(){return Q.current=!1}),0)}),[]),Pe=i.useCallback((function(e){e&&_e((function(){return e.focus()}))}),[_e]),Se=i.useCallback((function(){!ue&&ve?Ie({target:G.current}):n.filterable?Pe(Z.current):Pe(J.current&&J.current.element)}),[ue,ve,Pe,Ie,n.filterable]),je=i.useCallback((function(){ue&&Pe(X.current)}),[ue,Pe]),Ne=i.useCallback((function(e){if(!ue&&!Q.current&&(ce(!0),n.onFocus&&G.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFocus.call(void 0,t)}}),[ue,n.onFocus]),Fe=i.useCallback((function(e){if(ue&&!Q.current&&G.current){ce(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(n.onBlur){var r=gt({},t);n.onBlur.call(void 0,r)}Ie(t)}}),[ue,n.onBlur,ve,m,C]),Me=i.useCallback((function(){ue&&_e(s.noop)}),[ue,_e]),Te=i.useCallback((function(e){if(!e.isDefaultPrevented()&&G.current){ce(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};ve||De(t)}}),[ve,De]),Re=i.useCallback((function(e){var t=e.keyCode,n=e.altKey,r=J.current&&J.current.element;if(G.current&&(!e.isDefaultPrevented()||Z.current!==e.target)){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};if(q&&q.length>0&&(t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end||t===s.Keys.delete)){var i=ee.current,a=re?i.findIndex((function(e){return x(e,re,p)})):-1,l=void 0,u=-1!==a;t===s.Keys.left?l=i[a=u?Math.max(0,a-1):i.length-1]:t===s.Keys.right?a===i.length-1?l=void 0:u&&(l=i[a=Math.min(i.length-1,a+1)]):t===s.Keys.home?l=i[0]:t===s.Keys.end?l=i[i.length-1]:t===s.Keys.delete&&u&&xe(o,i[a].data,"delete"),l!==re&&oe(l)}if(ve)if(t===s.Keys.esc||n&&t===s.Keys.up)Ie(o);else if(r&&r.querySelector(".k-state-focused")&&(t===s.Keys.up||t===s.Keys.down||t===s.Keys.left||t===s.Keys.right||t===s.Keys.home||t===s.Keys.end)){if(t===s.Keys.up&&Z.current){var c=Array.from(r.querySelectorAll(".k-treeview-item")),d=c.slice().reverse().find((function(e){return Boolean(e&&e.querySelector(".k-state-focused"))}));if(d&&0===c.indexOf(d))return _e((function(){Pe(Z.current)}))}_e(s.noop)}else t===s.Keys.down&&_e((function(){Pe(Z.current||r)}));else n&&t===s.Keys.down&&De(o)}}),[ve,Ie,Pe,_e,De,re,p,q,xe]),Le=i.useCallback((function(e){var t=e.keyCode;e.altKey||t!==s.Keys.up&&t!==s.Keys.down||(e.preventDefault(),_e(t===s.Keys.up?function(){Pe(X.current)}:function(){Pe(J.current&&J.current.element)}))}),[Pe,_e]),Ve=i.useCallback((function(e){if(G.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};xe(t,[],"clear"),Ie(t),e.preventDefault()}}),[xe,Ie]),Be=i.useCallback((function(e,t){Ie({target:G.current}),ue||Pe(Z.current),xe({syntheticEvent:t,nativeEvent:t.nativeEvent,target:G.current},e,"delete")}),[xe,Ie,Pe,ue]),Ae=i.useCallback((function(e){if(n.onExpandChange&&G.current){var t=e.item,r=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:(s=r,s.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:o,syntheticEvent:i,target:G.current};n.onExpandChange.call(void 0,a)}var s}),[n.onExpandChange]),Ke=i.useCallback((function(e){if(n.onFilterChange&&G.current){var t={filter:{field:n.textField,operator:"contains",value:e.target.value},syntheticEvent:e,nativeEvent:e.nativeEvent,target:G.current};n.onFilterChange.call(void 0,t),void 0===n.filter&&he(e.target.value)}}),[n.onFilterChange,n.filter,n.textField]),qe=n.listNoData||it,He=Object(S.useLocalization)(),ze=!W||ge.valid,Ue=i.createElement("span",{className:Object(s.classNames)("k-widget k-dropdowntree",n.className,{"k-state-focused":ue&&!g,"k-state-invalid":!ze,"k-state-disabled":g}),tabIndex:Y,accessKey:n.accessKey,id:o,style:D?gt({},v,{width:void 0}):v,dir:be,ref:X,onKeyDown:g?void 0:Re,onMouseDown:Me,onFocus:Ne,onBlur:Fe,role:"listbox","aria-haspopup":"true","aria-expanded":ve,"aria-disabled":g,"aria-label":D,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},i.createElement("span",{className:Object(s.classNames)("k-multiselect-wrap k-floatwrap",{"k-state-focused":ue,"k-state-disabled":g,"k-state-invalid":!ze}),onClick:g?void 0:Te},ee.current.length>0&&i.createElement(de,{tag:n.tag,onTagDelete:Be,data:ee.current,guid:r,focused:re?ee.current.find((function(e){return x(e,re,p)})):void 0}),n.loading&&i.createElement("span",{className:Object(s.classNames)("k-icon",{"k-i-loading":n.loading})}),me&&!g&&i.createElement("span",{onClick:Ve,className:"k-icon k-clear-value k-i-close",title:He.toLanguageString(N,F[N]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}}),i.createElement("select",{name:I,ref:$,tabIndex:-1,"aria-hidden":!0,title:D,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},i.createElement("option",{value:n.valueMap?n.valueMap.call(void 0,q):q}))),i.createElement(u.Popup,{popupClass:f.popupClass,className:Object(s.classNames)("k-list-container k-group k-reset k-popup-dropdowntree",f.className,{"k-rtl":"rtl"===be}),style:ke,animate:f.animate,anchor:X.current,show:ve,onOpen:Se,onClose:je,appendTo:f.appendTo,ref:te},n.filterable&&i.createElement("span",{className:"k-list-filter"},i.createElement("input",{className:"k-textbox",tabIndex:Y,ref:Z,value:void 0===n.filter?fe:n.filter,onChange:Ke,onKeyDown:Le}),i.createElement("span",{className:"k-icon k-i-zoom"})),c.length>0?i.createElement(tt,{ref:J,tabIndex:Y,data:c,focusIdField:p,textField:n.textField,checkField:P,checkIndeterminateField:T,expandField:n.expandField,childrenField:L,expandIcons:!0,onItemClick:Ee,onCheckChange:Ee,onExpandChange:Ae,checkboxes:!0,item:n.item}):i.createElement(qe,null,He.toLanguageString(j,F[j]))));return D?i.createElement(l.a,{label:D,editorValue:me,editorPlaceholder:E,editorValid:ze,editorDisabled:g,editorId:o,style:{width:v?v.width:void 0},children:Ue,dir:be}):Ue})),Dt={opened:a.bool,disabled:a.bool,dir:a.string,tabIndex:a.number,accessKey:a.string,data:a.array,value:a.any,valueMap:a.func,placeholder:a.string,dataItemKey:a.string.isRequired,textField:a.string.isRequired,checkField:a.string,checkIndeterminateField:a.string,expandField:a.string,subItemsField:a.string,className:a.string,style:a.object,label:a.string,validationMessage:a.string,validityStyles:a.bool,valid:a.bool,required:a.bool,name:a.string,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,filterable:a.bool,filter:a.string,loading:a.bool,tags:a.arrayOf(a.shape({text:a.string,data:a.arrayOf(a.any)})),popupSettings:a.shape({animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),popupClass:a.string,className:a.string,appendTo:a.any,width:a.oneOfType([a.string,a.number]),height:a.oneOfType([a.string,a.number])}),onOpen:a.func,onClose:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onFilterChange:a.func,onExpandChange:a.func,item:a.func,listNoData:a.func};Et.displayName="KendoReactMultiSelectTree",Et.propTypes=Dt;var It=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},_t=function(e,t){var n=t.items,r=t.dataItemKey,o=t.value,i=t.subItemsField,a=void 0===i?"items":i,l=t.operation,u=Object(s.getter)(r),c=It(o,u);if("clear"===l)return[];if("delete"===l){var p=It(n,u);return o.filter((function(e){return!p[u(e)]}))}for(var d,f,h=n[0],v=u(h),m=Object(s.getter)(a),g=e.slice(),b=[];g.length;){var y=g.pop();if(v===u(y)){d=b.map((function(e){return e.item})),f=y;break}b&&b.length&&b[b.length-1].parentPosition===g.length&&b.pop(),(D=m(y))&&D.length&&(b.push({item:y,parentPosition:g.length}),g.push.apply(g,D))}for(var O=(m(f)||[]).slice(),k=[];O.length;){y=O.pop();k.push(y),(D=m(y))&&D.length&&O.push.apply(O,D)}var w=[];if(!c[v]){w.push.apply(w,o),w.push(f),w.push.apply(w,k.filter((function(e){return!c[u(e)]})));for(var C=d.filter((function(e){return!c[u(e)]})),x=It(w,u),E=C.length-1;E>-1;E--){var D,I=C[E];if((D=m(I)).filter((function(e){return x[u(e)]})).length<D.length)break;w.push(I),x[u(I)]=!0}}else{var _=u(f),P=It(k,u),S=It(d,u);w.push.apply(w,o.filter((function(e){var t=u(e);return!P[t]&&_!==t&&!S[t]})))}return w}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1);t.createFilterComponent=function(e){return function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.filterChange=function(e){n.props.onFilterChange&&n.props.onFilterChange(e)},n.inputChange=function(t){var r=t.target.value,o=n.props,a=o.filter,s=void 0===a?[]:a,l=o.field,u=void 0===l?"":l,c=n.findCellFilter(),p=c?s.map((function(e){return e.field===u?i({},c,{value:r}):e})):s.concat([i({},e.emptyFilter,{value:r,field:u})]);n.filterChange({filter:p,field:u,syntheticEvent:t.syntheticEvent})},n.operatorChange=function(t){var r=t.target.value.operator,o=n.props,a=o.filter,s=void 0===a?[]:a,l=o.field,u=void 0===l?"":l,c=n.findCellFilter(),p=c?s.map((function(e){return e.field===u?i({},c,{operator:r}):e})):s.concat([i({},e.emptyFilter,{field:u,operator:r})]);n.filterChange({filter:p,field:u,syntheticEvent:t.syntheticEvent})},n.clearButtonClick=function(e){var t=n.props,r=t.filter,o=void 0===r?[]:r,i=t.field,a=void 0===i?"":i;n.filterChange({filter:o.filter((function(e){return e.field!==a})),field:a,syntheticEvent:e})},n.findCellFilter=function(){var e=n.props,t=e.filter,r=void 0===t?[]:t,o=e.field;return r.find((function(e){return e.field===o}))},n}return o(n,t),n.prototype.render=function(){var t=this.props,n=t.clearButtonTitle,r=void 0===n?"":n,o=t.operators,s=void 0===o?[]:o,l=this.findCellFilter()||i({},e.emptyFilter,{operator:""}),u=l.operator,c=l.value,p={value:s.find((function(e){return e.operator===u}))||null,onChange:this.operatorChange,className:"k-dropdown-operator",iconClassName:"k-i-filter k-icon",data:s,textField:"text",popupSettings:{width:""},components:this.props.components};return a.createElement("div",{className:"k-filtercell"},a.createElement("div",{className:"k-filtercell-wrapper"},e.inputComponent({value:c,onChange:this.inputChange,components:this.props.components}),a.createElement("div",{className:"k-filtercell-operator"},e.operatorComponent(p,this.props),a.createElement("button",{className:null!==c&&""!==c||u?"k-button k-button-icon k-clear-button-visible":"k-button k-button-icon",title:r,type:"button",onClick:this.clearButtonClick},a.createElement("span",{className:"k-icon k-i-filter-clear"})))))},n}(a.Component)}},function(e,t,n){"use strict";var r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.KEYBOARD_NAV_DATA_LEVEL="data-keyboardnavlevel",t.KEYBOARD_NAV_DATA_SCOPE="data-keyboardnavscope",t.KEYBOARD_NAV_DATA_HEADER="data-keyboardnavheader",t.KEYBOARD_NAV_DATA_BODY="data-keyboardnavbody",t.KEYBOARD_NAV_DATA_ID="data-keyboardnavid",t.KEYBOARD_NAV_DATA_ZONE="data-keyboardnavzone",t.KEYBOARD_NAV_FILTER_COL_SUFFIX="_filter";var a=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"];t.FOCUSABLE_ELEMENTS=a.concat(["[tabindex]"]),t.TABBABLE_ELEMENTS=a.concat(["[tabindex]"]).map((function(e){return e+':not([tabindex="-1"])'})),t.tableKeyboardNavigationScopeAttributes=((r={})[t.KEYBOARD_NAV_DATA_SCOPE]=!0,r),t.tableKeyboardNavigationHeaderAttributes=((o={})[t.KEYBOARD_NAV_DATA_HEADER]=!0,o),t.tableKeyboardNavigationBodyAttributes=((i={})[t.KEYBOARD_NAV_DATA_BODY]=!0,i)},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorGradient",(function(){return K})),n.d(t,"ColorGradientPropsContext",(function(){return A})),n.d(t,"ColorPalette",(function(){return Y})),n.d(t,"ColorPalettePropsContext",(function(){return W})),n.d(t,"ColorPickerPropsContext",(function(){return ee})),n.d(t,"ColorPicker",(function(){return te})),n.d(t,"FlatColorPicker",(function(){return ne})),n.d(t,"Input",(function(){return pe})),n.d(t,"InputPropsContext",(function(){return ce})),n.d(t,"MaskedTextBox",(function(){return Pe})),n.d(t,"MaskedTextBoxPropsContext",(function(){return _e})),n.d(t,"NumericTextBoxPropsContext",(function(){return Je})),n.d(t,"NumericTextBox",(function(){return Qe})),n.d(t,"Slider",(function(){return st})),n.d(t,"SliderPropsContext",(function(){return at})),n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return tt})),n.d(t,"SliderLabel",(function(){return nt})),n.d(t,"RangeSliderPropsContext",(function(){return dt})),n.d(t,"RangeSlider",(function(){return ft})),n.d(t,"Switch",(function(){return Ot})),n.d(t,"SwitchPropsContext",(function(){return yt})),n.d(t,"CheckboxPropsContext",(function(){return Ct})),n.d(t,"Checkbox",(function(){return xt})),n.d(t,"RadioGroupPropsContext",(function(){return St})),n.d(t,"RadioGroup",(function(){return jt})),n.d(t,"RadioButtonPropsContext",(function(){return It})),n.d(t,"RadioButton",(function(){return _t})),n.d(t,"TextAreaPropsContext",(function(){return Tt})),n.d(t,"TextArea",(function(){return Rt})),n.d(t,"RatingPropsContext",(function(){return Yt})),n.d(t,"Rating",(function(){return Gt})),n.d(t,"RatingItem",(function(){return Lt}));var r=n(1),o=n(0),i=n(2),a={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639485301,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"},s=function(e){return null!=e},l=function(e,t,n){return!s(e)||isNaN(e)||e<=t?t:e>=n?n:e},u=n(10),c=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(s(e)){var r=Object(u.parseColor)(e.trim(),n);if(s(r))return"hex"===t?r.toCss():r.toCssRgba()}},p=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toHSV():{}},d=function(e,t){void 0===t&&(t=!0);var n=Object(u.parseColor)(e,t);return s(n)?n.toBytes():{}},f=function(e){var t=l(e.h,0,359.9),n=l(e.s,0,1),r=l(e.v,0,1),o=l(e.a,0,1);return u.Color.fromHSV(t,n,r,o).toCssRgba()},h=function(e){return f({h:e,s:1,v:1,a:1})},v=function(e,t){var n=l(e.r,0,255),r=l(e.g,0,255),o=l(e.b,0,255),i=l(e.a,0,1),a=l(t.r,0,255),s=l(t.g,0,255),u=l(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*s+i*r),b:Math.round((1-i)*u+i*o)}},m=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},g=function(e,t){return n=m(v(e,t)),r=m(v(t,{r:0,g:0,b:0,a:1})),(Math.max(n,r)+.05)/(Math.min(n,r)+.05);var n,r},b={};var y,O,k=(y=function(e,t){return(y=Object.setPrototypeOf||{__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}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,r=c(t,"rgba");n.setState({hex:t}),s(r)&&n.props.onHexChange(t,r,e)},n.onBlur=function(){s(c(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return k(t,e),t.prototype.render=function(){return r.createElement("input",{value:this.state.hex,className:"k-input",onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(r.Component),C=n(5),x=n(6),E=n(4),D=((O={})["numerictextbox.increment"]="Increase value",O["numerictextbox.decrement"]="Decrease value",O["slider.increment"]="Increase",O["slider.decrement"]="Decrease",O["slider.dragTitle"]="Drag",O["colorGradient.r"]="r",O["colorGradient.g"]="g",O["colorGradient.b"]="b",O["colorGradient.a"]="a",O["colorGradient.hex"]="hex",O["colorGradient.contrastRatio"]="Contrast ratio",O["colorGradient.colorGradientAALevel"]="AA",O["colorGradient.colorGradientAAALevel"]="AAA",O["colorGradient.colorGradientPass"]="Pass",O["colorGradient.colorGradientFail"]="Fail",O["flatColorPicker.cancelBtn"]="Cancel",O["flatColorPicker.applyBtn"]="Apply",O["checkbox.validation"]="Please check this box if you want to proceed!",O["checkbox.optionalText"]="(Optional)",O["radioButton.validation"]="Please select option if you want to proceed!",O["switch.validation"]="Please turn on if you want to proceed!",O),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)}}(),_=function(){return(_=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)},P=["rgba","rgb","hex"],S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputMode:P[1]},t.onRgbaRChange=function(e){t.dispatchRgbaChange({r:e.value},e)},t.onRgbaGChange=function(e){t.dispatchRgbaChange({g:e.value},e)},t.onRgbaBChange=function(e){t.dispatchRgbaChange({b:e.value},e)},t.onRgbaAChange=function(e){t.dispatchRgbaChange({a:e.value},e)},t}return I(t,e),t.prototype.render=function(){var e=Object(E.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.r",D["colorGradient.hex"]),n=e.toLanguageString("colorGradient.r",D["colorGradient.r"]),o=e.toLanguageString("colorGradient.r",D["colorGradient.g"]),i=e.toLanguageString("colorGradient.r",D["colorGradient.b"]),a=e.toLanguageString("colorGradient.r",D["colorGradient.a"]);return r.createElement("div",{className:"k-colorgradient-inputs k-hstack"},r.createElement("div",{className:"k-vstack"},r.createElement(C.Button,{look:"flat",icon:"arrows-kpi",className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&r.createElement("div",{className:"k-vstack k-flex-1"},r.createElement("span",{className:"k-hex-value k-textbox"},r.createElement(w,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),r.createElement(x.b,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&r.createElement(r.Fragment,null,r.createElement("div",{className:"k-vstack"},r.createElement(Qe,{value:this.props.rgba.r,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),r.createElement(x.b,{className:"k-colorgradient-input-label"},n)),r.createElement("div",{className:"k-vstack"},r.createElement(Qe,{value:this.props.rgba.g,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),r.createElement(x.b,{className:"k-colorgradient-input-label"},o)),r.createElement("div",{className:"k-vstack"},r.createElement(Qe,{value:this.props.rgba.b,min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),r.createElement(x.b,{className:"k-colorgradient-input-label"},i))),"rgba"===this.state.inputMode&&r.createElement("div",{className:"k-vstack"},this.props.opacity&&r.createElement(Qe,{value:this.props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&r.createElement(x.b,{className:"k-colorgradient-input-label"},a)))},t.prototype.dispatchRgbaChange=function(e,t){var n=_({},this.props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=P.length-1===P.indexOf(this.state.inputMode)?0:P.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:P[e]});else{var t="rgba"===P[e]?e+1:e;this.setState({inputMode:P[t]})}},t}(r.Component),j=S;Object(E.registerForIntl)(S),Object(E.registerForLocalization)(S);var 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)}}(),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){var e=Object(E.provideLocalizationService)(this),t=e.toLanguageString("colorGradient.contrastRatio",D["colorGradient.contrastRatio"]),n=e.toLanguageString("colorGradient.colorGradientAALevel",D["colorGradient.colorGradientAALevel"]),o=e.toLanguageString("colorGradient.colorGradientAAALevel",D["colorGradient.colorGradientAAALevel"]),i=e.toLanguageString("colorGradient.colorGradientPass",D["colorGradient.colorGradientPass"]),a=e.toLanguageString("colorGradient.colorGradientFail",D["colorGradient.colorGradientFail"]),s=g(this.props.rgba,this.props.bgColor),l=4.5.toFixed(1),u=7..toFixed(1),c=t+": "+s.toFixed(2),p=n+": "+l,d=o+": "+u,f=r.createElement("span",{className:"k-contrast-validation k-text-success"},i," ",r.createElement("span",{className:"k-icon k-i-check"})),h=r.createElement("span",{className:"k-contrast-validation k-text-error"},a," ",r.createElement("span",{className:"k-icon k-i-close"}));return r.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},r.createElement("div",{className:"k-contrast-ratio"},r.createElement("span",{className:"k-contrast-ratio-text"},c),s>=4.5?r.createElement("span",{className:"k-contrast-validation k-text-success"},r.createElement("span",{className:"k-icon k-i-check"}),s>=7&&r.createElement("span",{className:"k-icon k-i-check"})):r.createElement("span",{className:"k-contrast-validation k-text-error"},r.createElement("span",{className:"k-icon k-i-close"}))),r.createElement("div",null,r.createElement("span",null,p),s>=4.5?f:h),r.createElement("div",null,r.createElement("span",null,d),s>=7?f:h))},t}(r.Component);Object(E.registerForLocalization)(F);var M=function(e,t){return 0===e.length?"":'<path d="'+e.reduce((function(e,n,r,o){return 0===r?"M "+n[0]+","+n[1]:e+" "+t(n,r,o)}),"")+'" fill="none" stroke="white" stroke-width="1"/>'},T=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),angle:Math.atan2(r,n)}},R=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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return R(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,r=this.props.metrics,o=function(e,t,i,a,s){var l=(i+a)/2,u=Object.assign({},n.props.hsva,{s:t/r.width,v:1-l/r.height}),c=g(d(f(u)),d(n.props.backgroundColor||""));return i+.5>a?c<e+1&&c>e-1?l:null:s(c,e)?o(e,t,i,a-(a-i)/2,s):o(e,t,i+(a-i)/2,a,s)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=r.width;a+=r.width/t){var s=o(e,a,0,r.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&i.push([a,s])}return i},a=(t=T,e=function(e,n,r,o){var i=t(n||e,r||e),a=i.angle+(o?Math.PI:0),s=.1*i.length;return[e[0]+Math.cos(a)*s,e[1]+Math.sin(a)*s]},function(t,n,r){var o=e(r[n-1],r[n-2],t),i=o[0],a=o[1],s=e(t,r[n-1],r[n+1],!0);return"C "+i+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});return M(i(4.5,16),a)+M(i(4.5,16,!0),a)+M(i(7,16),a)+M(i(7,16,!0),a)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(r.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)}}(),B=function(e){function t(n){var r=e.call(this,n)||this;r.onHexChange=function(e,t,n){if(r.isUncontrolled){var o=p(t);r.setState({hsva:o,backgroundColor:h(o.h),rgba:d(t),hex:e})}else!function(e,t,n){b[e]={value:t,hex:n}}(r.state.guid,t,e);r.dispatchChangeEvent(t,n,n.nativeEvent)},r.onRgbaChange=function(e,t){var n=function(e){var t=l(e.r,0,255),n=l(e.g,0,255),r=l(e.b,0,255),o=l(e.a,0,1);return u.Color.fromBytes(t,n,r,o).toCssRgba()}(e);if(r.isUncontrolled){var o=p(n),i=c(n,"hex");r.setState({hsva:o,backgroundColor:h(o.h),rgba:e,hex:i})}else!function(e,t,n){b[e]={value:t,rgba:n}}(r.state.guid,n,e);r.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},r.onAlphaSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},r.onHueSliderChange=function(e){r.handleHsvaChange(Object.assign({},r.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},r.onDrag=function(e){r.gradientWrapper.classList.add("k-dragging"),r.changePosition(e.event)},r.onRelease=function(){r.gradientWrapper.classList.remove("k-dragging")},r.onGradientWrapperClick=function(e){r.changePosition(e)},r.changePosition=function(e){var t=r.getGradientRectMetrics(),n=e.clientX-t.left,o=e.clientY-t.top,i=l(n,0,t.width),a=l(o,0,t.height),s=Object.assign({},r.state.hsva,{s:i/t.width,v:1-a/t.height});r.handleHsvaChange(s,e,e.nativeEvent)},r.onFocus=function(e){r.props.onFocus&&r.props.onFocus.call(void 0,{nativeEvent:e,target:r})},r.focus=function(){Object(i.focusFirstFocusableChild)(r.wrapper)},Object(i.validatePackage)(a);var o=n.value||n.defaultValue||c("rgba(255, 255, 255, 1)","rgba");return r.state=Object.assign({},t.getStateFromValue(o),{isFirstRender:!0,guid:Object(i.guid)()}),r}return V(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){var e;e=this.state.guid,delete b[e]},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,o=this.state.hsva.s*t.width;e.top=n+"px",e.left=o+"px"}return r.createElement("div",{className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var r=f(e);if(this.isUncontrolled){var o=c(r,"hex");this.setState({hsva:e,backgroundColor:h(e.h),rgba:d(r),hex:o})}else!function(e,t,n){b[e]={value:t,hsva:n}}(this.state.guid,r,e);this.dispatchChangeEvent(r,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){s(c(e,"hex"))||(e="rgba(255, 255, 255, 1)");var n=function(e,t){if(e){var n=b[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||p(e),r=function(e,t){if(e){var n=b[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||d(e),o=function(e,t){if(e){var n=b[e];return n&&n.value===t?n.hex:void 0}}(t,e)||c(e,"hex");return{hsva:n,backgroundColor:h(n.h),rgba:r,hex:o}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=Object(i.classNames)("k-colorgradient",{"k-state-disabled":this.props.disabled});return r.createElement("div",{id:this.props.id,className:t,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},r.createElement("div",{className:"k-colorgradient-canvas k-hstack"},r.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},r.createElement(i.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},r.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&r.createElement(L,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),r.createElement("div",{className:"k-hsv-controls k-hstack"},r.createElement(st,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled}),this.props.opacity&&r.createElement(st,{value:s(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),r.createElement(j,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled}),this.props.backgroundColor&&r.createElement(F,{bgColor:d(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:o.string,value:o.string,onChange:o.func,onFocus:o.func,opacity:o.bool,backgroundColor:o.string,disabled:o.bool,style:o.any,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={opacity:!0},t}(r.Component),A=Object(i.createPropsContext)(),K=Object(i.withPropsContext)(A,B);K.displayName="KendoReactColorGradient";var q=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],s(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(s(e)){var n=e?Object(u.parseColor)(e,!0):e,r=[e];s(n)&&r.push(n.toCss(),n.toCssRgba());for(var o=function(e){for(var n=function(n){if(r.some((function(r){return r===t.colorRows[e][n]})))return{value:{row:e,col:n}}},o=0;o<i.colorRows[e].length;o++){var a=n(o);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var l=o(a);if("object"==typeof l)return l.value}}},e.prototype.getColorAt=function(e){if(s(e)&&s(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(s(e)&&s(e.row)&&s(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),H={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},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(t){var n=e.call(this,t)||this;return n.wrapper=null,n.guid=Object(i.guid)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case i.Keys.down:n.handleCellNavigation(0,1);break;case i.Keys.up:n.handleCellNavigation(0,-1);break;case i.Keys.right:n.handleCellNavigation(1,0);break;case i.Keys.left:n.handleCellNavigation(-1,0);break;case i.Keys.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,{nativeEvent:e,target:n})},n.onBlur=function(){n.setState({focusedColor:void 0})},Object(i.validatePackage)(a),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return z(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new q;n.setColorMatrix(t.colors,t.columns);var o=n.getCellCoordsFor(this.state.selectedColor),a=n.getCellCoordsFor(this.state.focusedColor),s=Object(i.classNames)("k-colorpalette",{"k-state-disabled":this.props.disabled});return t.colors.length?r.createElement("div",{id:this.props.id,className:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},r.createElement("div",{className:"k-colorpalette-table-wrap",role:"grid"},r.createElement("table",{className:"k-colorpalette-table k-palette",role:"presentation"},r.createElement("tbody",null,this.renderRows(n.colorRows,o,a))))):""},t.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},t.prototype.handleCellNavigation=function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){Object(i.dispatchEvent)(this.props.onChange,t,this,{value:e,rgbaValue:c(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!0,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=H[this.props.palette];return s(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var o=this;return e.map((function(e,i){return r.createElement("tr",{role:"row",key:i},o.renderColumns(e,i,t,n))}))},t.prototype.renderColumns=function(e,t,n,o){var a=this,s=void 0!==n&&n.row===t,l=n&&n.col,u=void 0!==o&&o.row===t,c=o&&o.col,p="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},d=p.width+"px",f=p.height+"px";return e.map((function(e,n){var o=s&&l===n,p=Object(i.classNames)("k-colorpalette-tile",{"k-state-selected":o,"k-state-focus":u&&c===n});return r.createElement("td",{className:p,"aria-label":e,"aria-selected":!!o||!!a.props.disabled&&void 0,style:{backgroundColor:e,width:d,height:f,minWidth:d},onClick:function(t){return a.onColorClick(e,t)},id:a.createCellId({row:t,col:n}),key:n})}))},t.prototype.createCellId=function(e){return this.guid+"_"+e.row+"_"+e.col},t.displayName="ColorPalette",t.propTypes={palette:o.oneOfType([o.arrayOf(o.string.isRequired),o.string]),columns:o.number,tileSize:o.any,defaultValue:o.string,value:o.string,disabled:o.bool,tabIndex:o.number,onChange:o.func,onFocus:o.func,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={palette:"office",tileSize:24},t}(r.Component),W=Object(i.createPropsContext)(),Y=Object(i.withPropsContext)(W,U);Y.displayName="KendoReactColorPalette";var G=n(7),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)},Z=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",o=r.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),a=r.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return r.createElement(r.Fragment,null,e.input,e.button,r.createElement(G.Popup,X({style:X({},(t||{}).style,{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:o,popupAlign:a,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:Object(i.classNames)("k-reset",t.className)}),e.content))};Z.displayName="KendoPickerComponent";var $=function(){return($=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)},J={palette:"office",tileSize:24},Q=function(e){return void 0!==e},ee=Object(i.createPropsContext)(),te=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(ee,e),o=n.popupSettings,s=n.gradientSettings,l=n.paletteSettings,u=n.valid,c=n.disabled,p=n.tabIndex,d=n.view,f=n.icon,h=n.onChange,v=n.onFocus,m=n.onBlur,g=n.onActiveColorClick,b=r.useRef(null),y=r.useRef(null),O=r.useRef(null),k=r.useRef(),w=r.useRef(null),C=r.useCallback((function(){b.current&&b.current.focus()}),[]);r.useImperativeHandle(t,(function(){return{element:b.current,actionElement:w.current,focus:C}}));var x=r.useState(!1),E=x[0],D=x[1],I=r.useState(n.defaultValue),_=I[0],P=I[1],S=r.useState(!1),j=S[0],N=S[1],F=Q(n.value),M=Q(n.open),T=F?n.value:_,R=M?n.open:j,L=r.useCallback((function(e,t){M||(!e&&!t&&b&&b.current&&b.current.focus(),N(e))}),[M]),V=r.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==i.Keys.esc)return n!==i.Keys.enter||M?void(!t||n!==i.Keys.up&&n!==i.Keys.down||(e.preventDefault(),e.stopPropagation(),n===i.Keys.up&&b&&b.current&&(b.current.focus(),L(!1)),n===i.Keys.down&&L(!0))):(e.preventDefault(),e.stopPropagation(),void L(!R));L(!1)}),[R,M]),B=r.useCallback((function(){M||(y.current?y.current.focus():O.current&&O.current.focus())}),[M]),A=r.useCallback((function(){L(!R,!0)}),[R]),q=r.useCallback((function(e){g&&g.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:T})}),[g,T]),H=r.useCallback((function(e){k.current?(clearTimeout(k.current),k.current=void 0):D(!0),v&&v.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[v]),z=r.useCallback((function(){L(!1,!0),D(!1),k.current=void 0}),[]),U=r.useCallback((function(e){clearTimeout(k.current),k.current=window.setTimeout(z),m&&m.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[m]),W=r.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;F||P(n),t&&L(!1),h&&h.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[F,h]),G=r.useCallback((function(e){return W(e,!0)}),[Q,W]),X=Object(i.useDir)(b,n.dir),J=n.iconClassName||f&&"k-icon k-i-"+f,te=Object(i.classNames)({"k-widget":!0,"k-colorpicker":!0,"k-state-invalid":!1===u}),ne=r.useMemo((function(){return Object(i.classNames)({"k-picker-wrap":!0,"k-state-disabled":c,"k-state-focused":E})}),[E,c]);return r.createElement("span",{className:te,dir:X},r.createElement("span",{id:n.id,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,className:ne,ref:b,tabIndex:Object(i.getTabIndex)(p,c),title:n.title,onKeyDown:V,onFocus:H,onBlur:U},r.createElement(Z,{dir:X,open:R,onOpen:B,popupAnchor:b.current||void 0,popupSettings:$({},o),input:J?r.createElement("span",{onClick:q,className:Object(i.classNames)("k-tool-icon",J)},r.createElement("span",{className:"k-selected-color",style:{backgroundColor:T}})):r.createElement("span",{onClick:q,className:"k-selected-color",style:{backgroundColor:T}},!T&&r.createElement("span",{className:"k-icon k-i-line"})),button:r.createElement("span",{onClick:A,className:"k-select",ref:w},r.createElement("span",{className:"k-icon k-i-arrow-s"})),content:r.createElement(r.Fragment,null,("combo"===d||"gradient"===d)&&r.createElement(K,$({},s,{tabIndex:0,ref:y,value:T,onChange:W})),("combo"===d||"palette"===d)&&r.createElement(Y,$({},l,{ref:O,value:T,onChange:G})))})))}));te.propTypes={value:o.string,defaultValue:o.string,disabled:o.bool,view:o.oneOf(["gradient","palette","combo"]),dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},te.defaultProps={view:"palette",gradientSettings:{opacity:!0},paletteSettings:J},te.displayName="KendoColorPicker";var ne=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),s=r.useRef(null),l=r.useState("ColorGradient"===(e.view||"ColorGradient")),u=l[0],c=l[1],p=r.useState("rgba(255, 255, 255, 1)"),d=p[0],f=p[1],h=r.useState("rgba(255, 255, 255, 1)"),v=h[0],m=h[1],g=r.useCallback((function(){n.current&&n.current.focus()}),[n]);r.useImperativeHandle(n,(function(){return{element:o.current,focus:g,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var b=r.useCallback((function(e){("ColorGradient"===e&&!u||"ColorPalette"===e&&u)&&c(!u)}),[u]),y=r.useCallback((function(){f("rgba(255, 255, 255, 1)")}),[]),O=r.useCallback((function(e){f(e.value)}),[]),k=r.useCallback((function(){m(d)}),[d]),w=r.useCallback((function(){m("rgba(255, 255, 255, 1)")}),[]),x=r.useCallback((function(){f(v)}),[v]),E=r.useCallback((function(){o.current&&o.current.focus()}),[o]),I=r.useCallback((function(){m(d)}),[d]);return r.createElement("div",{id:e.id,style:e.style,ref:o,tabIndex:Object(i.getTabIndex)(e.tabIndex,e.disabled),className:Object(i.classNames)("k-flatcolorpicker k-coloreditor",{"k-state-disabled":e.disabled},e.className),onBlur:I},e.header||r.createElement("div",{className:"k-coloreditor-header k-hstack"},r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},r.createElement(C.ButtonGroup,null,r.createElement(C.Button,{type:"button",togglable:!0,look:"flat",selected:u,onClick:function(){return b("ColorGradient")}},r.createElement("span",{className:"k-icon k-i-color-canvas"})),r.createElement(C.Button,{type:"button",togglable:!0,look:"flat",selected:!u,onClick:function(){return b("ColorPalette")}},r.createElement("span",{className:"k-icon k-i-palette"})))),r.createElement("div",{className:"k-spacer"}),r.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},e.showClearButton&&oe.showClearButton&&r.createElement(C.Button,{type:"button",look:"flat",onClick:y},r.createElement("span",{className:"k-icon k-i-reset-color"})),e.showPreview&&oe.showPreview&&r.createElement("div",{className:"k-coloreditor-preview k-vstack"},r.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:d}}),r.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:v},onClick:x})))),r.createElement("div",{className:"k-coloreditor-views k-vstack"},u?r.createElement(K,{ref:s,value:d,onChange:O,onFocus:E}):r.createElement(Y,{value:d,onChange:O,onFocus:E})),e.showButtons&&oe.showButtons&&r.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},r.createElement(C.Button,{type:"button",className:"k-coloreditor-cancel",onClick:w},D["flatColorPicker.cancelBtn"]),r.createElement(C.Button,{type:"button",className:"k-coloreditor-apply k-primary",onClick:k},D["flatColorPicker.applyBtn"])))})),re={id:o.string,value:o.string,view:o.string,header:o.elementType,showClearButton:o.bool,showPreview:o.bool,showButtons:o.bool},oe={showClearButton:!0,showPreview:!0,showButtons:!0};ne.displayName="KendoFlatColorPicker",ne.propTypes=re,ne.defaultProps=oe;var ie,ae=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)}}(),se=function(){return(se=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)},le=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},ue=function(e){function t(n){var r=e.call(this,n)||this;return r._inputId=Object(i.guid)(),r.focus=function(){r._input&&r._input.focus()},r.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},r.setValidity=function(){r._input&&r._input.setCustomValidity&&(r.validity.valid||!r.validityStyles?r._input.classList.remove("k-state-invalid"):r._input.classList.add("k-state-invalid"),r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||""))},r.handleChange=function(e){r.setState({value:e.target.value}),r.valueDuringOnChange=e.target.value,r.props.onChange&&r.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:r}),r.valueDuringOnChange=void 0},r.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-state-empty")&&t.classList.remove("k-state-empty")}},Object(i.validatePackage)(a),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue},r}return ae(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},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,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return se({},e,{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},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}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,o=t.label,a=t.id,s=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,u=(t.validityStyles,t.style),c=le(t,["className","label","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style"]),p=a||this._inputId,d=!this.validityStyles||this.validity.valid,f=Object(i.classNames)(n,"k-textbox"),h=r.createElement("input",se({"aria-labelledby":s,"aria-describedby":l},c,{style:o?void 0:u,value:this.value,id:p,className:f,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return o?r.createElement(x.a,{label:o,editorId:p,editorValue:String(this.value),editorValid:d,editorDisabled:c.disabled,editorPlaceholder:c.placeholder,children:h,style:u,dir:c.dir}):h},t.displayName="Input",t.propTypes={label:o.string,validationMessage:o.string,required:o.bool,validate:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(r.Component),ce=Object(i.createPropsContext)(),pe=Object(i.withPropsContext)(ce,ue);pe.displayName="KendoReactInput",function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(ie||(ie={}));var de=function(){function e(e,t,n){void 0===n&&(n=ie.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),fe=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),he=function(e){return(e||"").split("")},ve=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof fe?this.parse(e):this.parse(new fe(he(e),he(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===ie.Literal},e}(),me=function(e,t){return new ve((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new de(t.literal(r),n)):new de(o?t.mask(o):t.literal(r),n)}))},ge=function(e){var t=e.prompt,n=e.promptPlaceholder;return new ve((function(e){var r=e.next().char;return new de(r===t?n:r,e)}))},be=function(e){return new ve((function(t){var n=t.next().char;return new de(e?n:"",t)}))},ye=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new ve((function(e){return new de(t,e)}))));var t},Oe=function(e){return new ve((function(t){for(var n=new de([],t);!t.eof();)n=n.concat(e.run(t));return n}))},ke=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,r=e.prompt,o=void 0===r?"":r,i=e.promptPlaceholder,a=void 0===i?" ":i,s=e.rules,l=void 0===s?{}:s,u=e.includeLiterals,c=void 0!==u&&u;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return ye(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(ye(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(ye(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,r){var o="",i=r,a=t.split("").slice(0,n),s=t.split("").slice(r);return ye(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:i,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",i=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return ye(this.maskTokens.slice(0,l)).run(s,t).fold((function(e){i=r.adjustPosition(e,i),o=e.concat(a).join("")})),{selection:i,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var r=this,o="",i=n,a=e.slice(0,n);return ye(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return ye(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:i,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new ve((function(e){return e.peek().char===t?(e.eat(),new de(t,e,ie.Literal)):new de(t,e,ie.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new ve((function(r){for(;!r.eof();){var o=r.peek(),i=o.char,a=o.control;if(i===a&&a===t)return r.eat(),new de(t,r,ie.Mask);if(e.test(i))return r.eat(),new de(i,r,ie.Mask);if(i===n)return r.eat(),new de(t,r,ie.Mask);r.eat_input()}return r.eat(),new de(t,r,ie.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new ve((function(e){return e.eof()?new de("",e):(e.peek().char===t&&e.eat(),new de(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new ve((function(t){for(;!t.eof();){var r=t.peek(),o=r.char,i=r.control;if(o===n&&i===n)return t.eat(),new de(o,t);if(e.test(o))return t.eat(),new de(o,t);t.eat_input()}return t.eat(),new de("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return be(n)},mask:function(n){return ge({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return be(!1)},mask:function(t){return ge({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Oe(me(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Oe(me(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Oe(me(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Oe(me(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),we={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},Ce=function(){return!1},xe=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var r in e)if(e[r]!==t[r]){n=!1;break}if(n)for(var r in t)if(!e.hasOwnProperty(r)){n=!1;break}return n},Ee=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)}}(),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)},Ie=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-"+Object(i.guid)(),n._service=new ke,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,r=t.selectionStart,o=t.selectionEnd;o!==r&&(n._isPasted=!0,n._selection=[r||0,o||0])},n.onChangeHandler=function(e){var t=e.currentTarget,r=t.value,o=n._selection[0]||0,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(r,e);var a,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-i,u=r.length-l;a=n._service.maskInRange(r.slice(o,u),s,o,i)}else a=n._service.maskInput(r,s,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},Object(i.validatePackage)(a),n}return Ee(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},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:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},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,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,r=n[0],o=n[1],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(r=a.start,o=a.end),null!==r&&null!==o&&this.element.setSelectionRange(r,o)}var s,l;s=e,l=this.props,s.includeLiterals===l.includeLiterals&&s.mask===l.mask&&s.prompt===l.prompt&&s.promptPlaceholder===l.promptPlaceholder&&xe(s.rules,l.rules)||this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e=this,t=this.props.id||this._inputId,n=!this.validityStyles||this.validity.valid,o=this.props.style||{},a=r.createElement("span",{dir:this.props.dir,className:Object(i.classNames)("k-widget k-maskedtextbox",this.props.className,{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-state-invalid":!n}),style:this.props.label?o:De({width:this.props.width},o)},r.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-textbox",value:this.value,id:t,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,name:this.props.name,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:function(t){return e._input=t},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:Ce,onDrop:Ce}));return this.props.label?r.createElement(x.a,{label:this.props.label,editorId:t,editorValue:this.value,editorValid:n,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:a,style:{width:this.props.width},dir:this.props.dir}):a},t.prototype.triggerOnChange=function(e,t){this.setState({value:e}),this.props.onChange&&(this._valueDuringOnChange=e,this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value}),this._valueDuringOnChange=void 0)},t.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},we,this.props.rules)},enumerable:!0,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:o.string,defaultValue:o.string,placeholder:o.string,title:o.string,dir:o.string,id:o.string,style:o.object,className:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,disabled:o.bool,readonly:o.bool,prompt:o.string,promptPlaceholder:o.string,includeLiterals:o.bool,maskValidation:o.bool,mask:o.string,rules:function(e,t,n){var r=e.rules;if(void 0!==r&&!Object.entries(r).some((function(e){return"string"!=typeof e||!(r[e]instanceof RegExp)})))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.");return null},selection:o.shape({start:o.number.isRequired,end:o.number.isRequired}),name:o.string,label:o.string,validationMessage:o.string,required:o.bool,valid:o.bool,validityStyles:o.bool,onChange:o.func},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:we,required:!1,validityStyles:!0},t}(r.Component),_e=Object(i.createPropsContext)(),Pe=Object(i.withPropsContext)(_e,Ie);Pe.displayName="KendoReactMaskedTextBox";var Se=function(){return(Se=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)},je=/\d/,Ne=function(e,t){return void 0!==e?e:t},Fe=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},Me=function(e){return(String(e).split(".")[1]||"").length},Te=function(e,t){return Math.max(Me(e),Me(t))},Re=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},Le=function(e,t,n,r,o,i,a){var s=Te(e||0,n||0),l=Be(Re((e||0)+(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Fe(l,i,a),t.selectionStart=t.selectionEnd=Ue(t.currentLooseValue,je)},Ve=function(e,t,n,r,o,i,a){var s=Te(e||0,n||0),l=Be(Re((e||0)-(n||0),s),r,o);t.eventValue=l,t.currentLooseValue=Fe(l,i,a),t.selectionStart=t.selectionEnd=Ue(t.currentLooseValue,je)},Be=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},Ae=function(e,t,n){var r=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var r=t[n][1];return e.length-r.length}(e,t);if(-1!==r&&n.selectionStart>r)n.selectionStart=n.selectionEnd=r;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},Ke=function(e,t,n,r){e.selectionStart=e.selectionEnd=t,Ae(n,r,e)},qe=function(e,t,n,r){e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,Ke(e,e.selectionStart,e.currentLooseValue,n)},He=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Ue(e,je)},ze=function(e){return e.split("").reverse().join("")},Ue=function(e,t){return e.length-ze(e).search(t)},We=function(e){return e.split(e[e.search(je)])[0]},Ye=function(e){var t=ze(e);return ze(t.split(t[t.search(je)])[0])},Ge=function(e,t){return e.search(t)},Xe=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Ze=function(e,t,n,r,o){var i="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(i&&!a)return n-1;if(a&&r)return n+1;for(var s=0,l=0;l<n;l++)je.test(e.charAt(l))&&s++;for(var u=0;s>0&&t.length>u;)je.test(t.charAt(u))&&s--,u++;return u},$e=function(e,t,n){var r=Se({},e),o=r.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),s=new RegExp("[\\d\\"+a.decimal+a.group+"]","g");return[n,r,o,i].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),s=String(r.currentLooseValue),l=String(o),u=new RegExp("[^\\d\\"+i.decimal+"]","g"),c=new RegExp("[^\\d\\"+i.decimal+"\\"+i.group+"]","g"),p=new RegExp("[\\d\\"+i.decimal+"\\"+i.group+"]"),d=s.replace(u,""),f=Ge(s,je),h=-1===f?-1:Ue(s,je),v=s.indexOf(i.decimal),m=(s.substring(0,f)+s.substring(f,h).replace(c,"")+s.substring(h,s.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(p)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(u,""),b=g.indexOf(i.decimal),y=b>-1?g.length-b-1:0,O=n.formatNumber(1,t).replace(u,""),k=O.indexOf(i.decimal),w=k>-1?O.length-k-1:0,C=function(e,t){var n=t.formatNumber(1111111.1111111,e),r=t.formatNumber(-1111111.1111111,e),o=t.formatNumber(0,e),i=t.formatNumber(1,e),a=We(n),s=We(r),l=We(o),u=We(i);return{positiveInfo:[a,Ye(n)],negativeInfo:[s,Ye(r)],zeroInfo:[l,Ye(o)],oneInfo:[u,Ye(i)]}}(t,n),x=[C.positiveInfo,C.negativeInfo,C.zeroInfo,C.oneInfo],E=1!==x.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),D=s.length>0&&s.length<l.length,I=t&&"p"===t[0]&&s&&-1===s.indexOf(i.percentSign);if(!r.isPaste){if(""===s)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==l)return r.eventValue=-0,r.currentLooseValue=Fe(r.eventValue,t,n),Ke(r,He(r.currentLooseValue,i),r.currentLooseValue,x),r;if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return n.split(t.minusSign).length!==r.split(t.minusSign).length&&n.length===r.length+t.minusSign.length}(r,i)){var _=n.parseNumber(o,t);r.eventValue=-(null!==_?_:0),r.currentLooseValue=Fe(r.eventValue,t,n);var P=Ge(r.currentLooseValue,je),S=Ge(l,je);return Ke(r,r.selectionEnd-1+(P-S),r.currentLooseValue,x),r}if(function(e,t){var n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)}(r,i))return r.eventValue=n.parseNumber(r.currentLooseValue,t),Ke(r,r.selectionStart,r.currentLooseValue,x),r;if(r.currentLooseValue===i.decimal){r.eventValue=0;var j=Fe(r.eventValue,t,n);if(0===w&&y>0){var N=Ue(j,je);r.currentLooseValue=j.substring(0,N)+i.decimal+j.substring(N)}else r.currentLooseValue=j;return Ke(r,He(r.currentLooseValue,i)+1,r.currentLooseValue,x),r}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(r,i))return qe(r,t,x,n),r;if(I)return r.eventValue=n.parseNumber(s,t)/100,r.currentLooseValue=Fe(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15)return qe(r,t,x,n),r;if(d!==s&&s&&E)if(-1===x.findIndex((function(e){var t=e[0],n=e[1],r=s.indexOf(t),o=s.indexOf(n),a=0===r,l=o===s.length-n.length,u=r+t.length!==f&&-1!==f&&s[r+t.length]!==i.decimal,c=o!==h&&-1!==h&&s[o-1]!==i.decimal;return t&&n?!u&&!c&&(a&&l):t?!u&&a:!!n&&(!c&&l)})))return qe(r,t,x,n),r;if(d[d.length-1]===i.decimal&&y>0)return r.eventValue=n.parseNumber(s,t),r.currentLooseValue=m,r;if(r.currentLooseValue&&o)if((a+i.decimal+i.group).split("").findIndex((function(e){return s.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&s.length+1===l.length&&(e!==i.decimal||0!==Xe(l.replace(u,""),i.decimal))}))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;var F=Xe(d,i.decimal),M="0"===d[d.length-1];if(D&&M&&F<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Fe(r.eventValue,t,n),r;if(F>0){var T=s.substring(0,v);if(M&&(!T||0!==l.indexOf(T))){r.eventValue=n.parseNumber(r.currentLooseValue,t);var R=Fe(r.eventValue,t,n);return Ke(r,Ze(s,R,r.selectionEnd,D,u),R,x),r.currentLooseValue=R,r}if(F>y){var L=s.indexOf(i.decimal),V=s.substring(0,L)+s.substring(L,L+1+y)+s.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(V,t),r.currentLooseValue=V,Ke(r,r.selectionStart,V,x),r}if(w!==y&&F<=y&&M)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=m,r;if(F<w)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=Fe(r.eventValue,t,n),r}}if(r.eventValue=n.parseNumber(r.currentLooseValue,t),I&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue){R=Fe(r.eventValue,t,n);1===s.length?Ke(r,He(R,i),R,x):Ke(r,Ze(s,R,r.selectionEnd,D,u),R,x),r.currentLooseValue=R}else r.currentLooseValue=Fe(n.parseNumber(d),t,n);return r},Je=Object(i.createPropsContext)(),Qe=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(Je,e),o=r.useMemo((function(){return Object(i.guid)()}),[]),s=n.id||o,l=Object(E.useInternationalization)(),u=Object(E.useLocalization)(),c=r.useRef(null),p=r.useRef(null),d=r.useRef(),f=r.useState(!1),h=f[0],v=f[1],m=r.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),g=r.useRef(!1),b=r.useRef(),y=r.useRef(n.defaultValue),O=Fe(m.current.focused&&!n.disabled?m.current.currentLooseValue:Ne(n.value,y.current),n.format,l);b.current=O,r.useEffect((function(){c.current&&c.current.setCustomValidity&&c.current.setCustomValidity(_().valid?"":n.validationMessage||"Please enter a valid value!")}));var k=r.useCallback((function(){c.current&&c.current.focus()}),[]),w=r.useCallback((function(){return void 0!==d.current?d.current:Ne(n.value,y.current)}),[n.value]),C=r.useCallback((function(){return n.name}),[n.name]),I=r.useCallback((function(){return n.required}),[n.required]),_=r.useCallback((function(){var e=void 0!==n.validationMessage,t=w();return{customError:e,valid:void 0!==n.valid?n.valid:!(m.current.valueIsOutOfRange||I()&&null==t),valueMissing:null==t}}),[n.validationMessage,n.valid,w,I]),P=r.useCallback((function(){return n.validityStyles}),[n.validityStyles]),S=r.useCallback((function(){return n}),[n]),j=r.useCallback((function(){var e={element:c.current,focus:k};return Object.defineProperty(e,"name",{get:C}),Object.defineProperty(e,"value",{get:w}),Object.defineProperty(e,"validity",{get:_}),Object.defineProperty(e,"validityStyles",{get:P}),Object.defineProperty(e,"required",{get:I}),Object.defineProperty(e,"props",{get:S}),e}),[C,w,_,P,I,k,S]);r.useImperativeHandle(t,j);var N=r.useCallback((function(){return{eventValue:Ne(n.value,y.current),prevLooseValue:b.current,currentLooseValue:c.current.value,selectionStart:c.current.selectionStart,selectionEnd:c.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:g.current,focused:m.current.focused}}),[n.value]),F=r.useCallback((function(e,t){if(!n.disabled){d.current=t.eventValue,y.current=t.eventValue;var r=Fe(Be(t.eventValue,n.min,n.max),n.format,l),o=Be(l.parseNumber(r,n.format),n.min,n.max);if(o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,y.current=o),t.valueIsCorrected){var a=p.current;a&&-1===a.className.indexOf("k-state-invalid")&&(a.className+=" k-state-invalid",window.setTimeout((function(){return a.className=a.className.replace(" k-state-invalid","")}),50))}n.value!==t.eventValue&&Object(i.dispatchEvent)(n.onChange,e,j(),{value:t.eventValue}),d.current=void 0,m.current=t,v((function(e){return!e}))}}),[n.value,n.onChange,n.disabled,v,j]),M=r.useCallback((function(e){var t=N();g.current=!1,F(e,$e(t,n.format,l))}),[n.format,n.onChange,l,F,N]),T=r.useCallback((function(e){var t=N(),r=l.parseNumber(String(t.currentLooseValue),n.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)g.current=!0;else{switch(e.keyCode){case 38:Le(r,t,n.step,n.min,n.max,n.format,l);break;case 40:Ve(r,t,n.step,n.min,n.max,n.format,l);break;case 13:if(!1===n.rangeOnEnter)return;var o=Fe(Be(r,n.min,n.max),n.format,l),i=Be(l.parseNumber(o,n.format),n.min,n.max);t.eventValue=i,t.currentLooseValue=Fe(i,n.format,l),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var a=c.current,s=l.numberSymbols();a&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=$e(t,n.format,l));break;default:return}e.preventDefault(),F(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.rangeOnEnter,F,N]),R=r.useCallback((function(){g.current=!0}),[]),L=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Le(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),F(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,F,N]),V=r.useCallback((function(e){if(!n.readOnly&&!n.disabled){var t=N();Ve(l.parseNumber(String(t.currentLooseValue),n.format),t,n.step,n.min,n.max,n.format,l),F(e,t)}}),[n.format,n.min,n.max,n.step,n.onChange,n.readOnly,n.disabled,F,N]),B=r.useCallback((function(e){document&&document.activeElement===c.current&&c.current&&!n.readOnly&&!n.disabled&&(e.nativeEvent.deltaY<0&&L(e),e.nativeEvent.deltaY>0&&V(e))}),[L,V,n.disabled,n.readOnly]),A=r.useCallback((function(e){m.current.currentLooseValue=b.current,m.current.focused=!0,Object(i.dispatchEvent)(n.onFocus,e,j(),{}),v((function(e){return!e}))}),[n.onFocus,v,j]),K=r.useCallback((function(e){m.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},Object(i.dispatchEvent)(n.onBlur,e,j(),{}),v((function(e){return!e}))}),[n.onBlur,v,j]),q=r.useCallback((function(e){document&&c.current&&(e.preventDefault(),document.activeElement!==c.current&&c.current.focus())}),[]);r.useLayoutEffect((function(){c.current&&void 0!==m.current.selectionStart&&void 0!==m.current.selectionEnd&&(c.current.selectionStart=m.current.selectionStart,c.current.selectionEnd=m.current.selectionEnd,m.current.selectionStart=void 0,m.current.selectionEnd=void 0)}),[h]);var H=!P()||_().valid,z=r.createElement("span",{dir:n.dir,style:n.label?void 0:{width:n.width},className:"k-widget k-numerictextbox"+(n.className?" "+n.className:""),"aria-disabled":n.disabled?"true":void 0},r.createElement("span",{className:Object(i.classNames)("k-numeric-wrap",{"k-state-disabled":n.disabled,"k-state-invalid":!H,"k-state-focused":m.current.focused}),ref:p},r.createElement("input",{value:null===O?"":O,tabIndex:Object(i.getTabIndex)(n.tabIndex,n.disabled),accessKey:n.accessKey,disabled:n.disabled,title:n.title,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy,placeholder:n.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:n.inputType||"tel",className:"k-input k-formatted-value",id:s,name:n.name,readOnly:n.readOnly,onChange:M,onFocus:A,onBlur:K,onKeyDown:T,onPaste:R,onWheel:B,ref:c}),n.children,n.spinners&&r.createElement("span",{className:"k-select",onMouseDown:q},r.createElement("span",{className:"k-link k-link-increase","aria-label":u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),title:u.toLanguageString("numerictextbox.increment",D["numerictextbox.increment"]),onClick:L},r.createElement("span",{className:"k-icon k-i-arrow-n"})),r.createElement("span",{className:"k-link k-link-decrease","aria-label":u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),title:u.toLanguageString("numerictextbox.decrement",D["numerictextbox.decrement"]),onClick:V},r.createElement("span",{className:"k-icon k-i-arrow-s"})))));return n.label?r.createElement(x.a,{label:n.label,editorId:s,editorValue:null===O?"":O,editorValid:H,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:z,style:{width:n.width},dir:n.dir}):z}));Qe.propTypes={value:o.number,defaultValue:o.number,step:o.number,format:o.oneOfType([o.string,o.shape({style:o.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:o.string,currencyDisplay:o.oneOf(["symbol","code","name"]),useGrouping:o.bool,minimumIntegerDigits:o.number,minimumFractionDigits:o.number,maximumFractionDigits:o.number})]),width:o.oneOfType([o.string,o.number]),tabIndex:o.number,accessKey:o.string,title:o.string,placeholder:o.string,min:o.number,max:o.number,spinners:o.bool,disabled:o.bool,readOnly:o.bool,dir:o.string,name:o.string,label:o.string,validationMessage:o.string,required:o.bool,id:o.string,rangeOnEnter:o.bool,ariaLabelledBy:o.string,ariaDescribedBy:o.string,onChange:o.func,onFocus:o.func,onBlur:o.func},Qe.displayName="KendoNumericTextBox",Qe.defaultProps={step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){}};var et=function(){return(et=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)},tt="data-slider-label",nt=function(e){var t,n,o=r.useRef(null),a=Object(i.useDir)(o),s=e.vertical?{bottom:e.position+"%",height:"1px",width:"100%"}:((t={})["rtl"===a?"right":"left"]=e.position+"%",t.width="1px",t);return r.createElement("li",{ref:o,role:"presentation",className:"k-tick k-tick-large",title:e.title,style:et({zIndex:1,position:"absolute"},s)},r.createElement("span",et({},((n={})[tt]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},rt=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)}}(),ot=function(){return(ot=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)},it=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n.buttons=function(e){return e.enabled?r.createElement(r.Fragment,null,r.createElement("a",{className:"k-button k-button-decrease",style:{position:"relative"},title:e.decrementTitle,onClick:e.decrement},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-s":n.props.vertical,"k-i-arrow-w":!n.props.vertical})})),e.children,r.createElement("a",{className:"k-button k-button-increase",style:{position:"relative"},title:e.incrementTitle,onClick:e.increment},r.createElement("span",{className:Object(i.classNames)("k-icon",{"k-i-arrow-n":n.props.vertical,"k-i-arrow-e":!n.props.vertical})}))):e.children},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(tt)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===i.Keys.left||e.keyCode===i.Keys.down?t=n.state.value-(n.props.step||0):e.keyCode===i.Keys.right||e.keyCode===i.Keys.up?t=n.state.value+(n.props.step||0):e.keyCode===i.Keys.home?t=n.props.min:e.keyCode===i.Keys.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),r=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+r*(n.props.max-n.props.min))},Object(i.validatePackage)(a),n}return rt(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,r=e.min,o=e.max;return void 0===n?null:{value:Math.min(Math.max(n,r),o)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t,n=this,o=Object(E.provideLocalizationService)(this),a=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,s=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},l=this.props.vertical?{paddingTop:0,height:"100%"}:{};return r.createElement("div",{ref:function(e){return n._element=e},"aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,dir:this.state.dir,role:"slider",id:this.props.id,style:this.props.style,tabIndex:Object(i.getTabIndex)(this.props.tabIndex,this.props.disabled,void 0),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:Object(i.classNames)("k-slider k-widget",{"k-state-focused":this.state.focused,"k-state-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},r.createElement("div",{className:Object(i.classNames)("k-slider-wrap",{"k-slider-buttons":this.props.buttons}),style:{display:"flex",position:"relative",flexDirection:this.props.vertical?"column-reverse":"row"}},r.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:o.toLanguageString("slider.increment",D["slider.increment"]),decrementTitle:o.toLanguageString("slider.decrement",D["slider.decrement"])},r.createElement(i.Draggable,{onDrag:this.dragOver,onPress:this.dragStart},r.createElement("div",{className:"k-slider-track-wrap",style:ot({flexGrow:1,position:"relative",touchAction:"none"},s)},this.props.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ot({margin:0},l)},r.Children.map(this.props.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-n.props.min)/(n.props.max-n.props.min),vertical:n.props.vertical},e.props.children)}))),r.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return n._sliderTrack=e}},r.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:a+"%"}:{width:a+"%"}}),r.createElement("a",{className:"k-draghandle",title:o.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:this.props.vertical?{bottom:"calc("+a+"% - 8px)",zIndex:1}:(t={},t["rtl"===this.state.dir?"right":"left"]="calc("+a+"% - 8px)",t.zIndex=1,t)})))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!0,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),Object(i.dispatchEvent)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:o.number.isRequired,max:o.number.isRequired,value:o.number,vertical:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string},t}(r.Component),at=Object(i.createPropsContext)(),st=Object(i.withPropsContext)(at,it);st.displayName="KendoReactSlider",Object(E.registerForLocalization)(it);var lt,ut=function(){return(ut=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){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(lt||(lt={}));var ct=function(){return(ct=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)},pt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1],s=r.useCallback((function(e){var r=function(e,t){var n,r;switch(t.type){case lt.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case lt.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case lt.min:n="start"===t.key?ut({},e,{start:t.min}):ut({},e,{end:Math.max(t.min,e.start)});break;case lt.max:n="start"===t.key?ut({},e,{start:Math.min(t.max,e.end)}):ut({},e,{end:t.max});break;case lt.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;case lt.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?ut({},e,{start:t.min}):ut({},e,{start:Math.min(r,e.end)}):r>t.max?ut({},e,{end:t.max}):ut({},e,{end:Math.max(r,e.start)});break;default:n=e}return n}(t.state||i,ct({},e,t));n&&n(r,e.event),a(r)}),[t,n]);return[i,s]},dt=Object(i.createPropsContext)(),ft=r.forwardRef((function(e,t){var n,o,s,l;Object(i.validatePackage)(a);var u=Object(i.usePropsContext)(dt,e),c=r.useRef(null),p=r.useRef(null),d=r.useRef(null),f=r.useRef(null),h=r.useRef(null),v=r.useCallback((function(){f.current&&f.current.focus()}),[f]);r.useImperativeHandle(c,(function(){return{element:p.current,focus:v,props:u}})),r.useImperativeHandle(t,(function(){return c.current}));var m=r.useMemo((function(){return u.min}),[u.min]),g=r.useMemo((function(){return u.max}),[u.max]),b=r.useMemo((function(){return void 0!==u.step?u.step:vt.step}),[u.step,vt.step]),y=Object(i.useDir)(p,u.dir),O=r.useState(""),k=O[0],w=O[1],C=pt(u.defaultValue||vt.defaultValue,{min:m,max:g,step:b,state:u.value},(function(e,t){u.onChange&&c.current&&u.onChange.call(void 0,{value:e,target:c.current,syntheticEvent:t})})),x=C[0],I=C[1],_=r.useMemo((function(){return u.value||x}),[u.value,x]),P=r.useRef(null),S=r.useRef(null),j=r.useMemo((function(){return(_.start-m)/(g-m)*100}),[_.start,m,g]),N=r.useMemo((function(){return(_.end-m)/(g-m)*100}),[_.end,m,g]),F=r.useMemo((function(){return u.vertical?{paddingTop:0,height:"100%"}:{}}),[u.vertical]),M=r.useMemo((function(){return u.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[u.vertical]),T=Object(E.useLocalization)(),R=r.useCallback((function(e){if(S.current){e.originalEvent.preventDefault();var t=S.current.getBoundingClientRect(),n=u.vertical?t.bottom-e.clientY:"rtl"===y?t.right-e.clientX:e.clientX-t.left,r=u.vertical?t.height:t.width;return m+n/r*(g-m)}}),[S,u.vertical,y,m,g,x.start,x.end,u.value&&u.value.start,u.value&&u.value.end]),L=r.useCallback((function(e){return e<=_.start?"start":e>=_.end?"end":2*e<_.end+_.start?"start":"end"}),[x.start,x.end,u.value&&u.value.start,u.value&&u.value.end]),V=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===y?lt.decrease:lt.increase,key:"start",event:e});break;case i.Keys.up:e.preventDefault(),I({type:lt.increase,key:"start",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===y?lt.increase:lt.decrease,key:"start",event:e});break;case i.Keys.down:e.preventDefault(),I({type:lt.decrease,key:"start",event:e});break;case i.Keys.home:e.preventDefault(),I({type:lt.min,key:"start",event:e});break;case i.Keys.end:e.preventDefault(),I({type:lt.max,key:"start",event:e})}}),[I]),B=r.useCallback((function(e){switch(e.keyCode){case i.Keys.right:e.preventDefault(),I({type:"rtl"===y?lt.decrease:lt.increase,key:"end",event:e});break;case i.Keys.up:e.preventDefault(),I({type:lt.increase,key:"end",event:e});break;case i.Keys.left:e.preventDefault(),I({type:"rtl"===y?lt.increase:lt.decrease,key:"end",event:e});break;case i.Keys.down:e.preventDefault(),I({type:lt.decrease,key:"end",event:e});break;case i.Keys.home:e.preventDefault(),I({type:lt.min,key:"end",event:e});break;case i.Keys.end:e.preventDefault(),I({type:lt.max,key:"end",event:e})}}),[I,y]),A=r.useCallback((function(e){var t=R(e),n=L(t);w(n),"end"===n?h.current.focus():f.current.focus();var r="end"===n?lt.end:lt.start;I({type:r,payload:t,event:e})}),[u.vertical,m,g,I]);return Object(i.useDraggable)(S,{onPress:A,onDrag:function(e){var t=R(e),n="end"===k?lt.end:lt.start;I({type:n,payload:t,event:e})},onRelease:function(e){var t=R(e),n="end"===k?lt.end:lt.start;I({type:n,payload:t,event:e}),w("")}}),r.createElement("div",{role:"slider",id:u.id,style:u.style,ref:p,dir:y,className:Object(i.classNames)("k-widget k-slider",{"k-rtl":"rtl"===y,"k-state-disabled":u.disabled,"k-slider-vertical":u.vertical,"k-slider-horizontal":!u.vertical},u.className),"aria-labelledby":u.ariaLabelledBy,"aria-describedby":u.ariaDescribedBy},r.createElement("div",{className:"k-slider-wrap",style:{display:"flex",position:"relative",flexDirection:u.vertical?"column-reverse":"row"}},r.createElement("div",{ref:S,className:"k-slider-track-wrap",style:ct({flexGrow:1,position:"relative",touchAction:"none"},M)},u.children&&r.createElement("ul",{className:"k-reset k-slider-items",style:ct({margin:0},F)},r.Children.map(u.children,(function(e){return e&&r.cloneElement(e,{position:100*(e.props.position-u.min)/(u.max-u.min),vertical:u.vertical},e.props.children)}))),r.createElement("div",{ref:P,className:"k-slider-track",style:u.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===y?"right":"left"]=0,n.width="100%",n)},null!==j&&null!==N&&r.createElement("div",{"data-selection":!0,ref:d,title:_.start+" - "+_.end,className:"k-slider-selection",style:u.vertical?{height:N-j+"%",bottom:j+"%"}:(o={},o["rtl"===y?"right":"left"]=j+"%",o.width=N-j+"%",o)}),r.createElement("a",{ref:f,role:"slider",tabIndex:Object(i.getTabIndex)(u.startTabIndex,u.disabled,void 0),"aria-valuemin":m,"aria-valuemax":Math.max(g,_.end),"aria-valuenow":_.start,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:T.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+j+"% - 8px)",zIndex:1}:(s={},s["rtl"===y?"right":"left"]="calc("+j+"% - 8px)",s.zIndex=1,s),onKeyDown:V}),r.createElement("a",{ref:h,role:"slider",tabIndex:Object(i.getTabIndex)(u.endTabIndex,u.disabled,void 0),"aria-valuemin":Math.min(m,_.start),"aria-valuemax":g,"aria-valuenow":_.end,"aria-disabled":u.disabled?"true":void 0,className:"k-draghandle",title:T.toLanguageString("slider.dragTitle",D["slider.dragTitle"]),style:u.vertical?{bottom:"calc("+N+"% - 8px)",zIndex:1}:(l={},l["rtl"===y?"right":"left"]="calc("+N+"% - 8px)",l.zIndex=1,l),onKeyDown:B})))))})),ht={value:function(e,t,n){if(e.value){var r=e.value.start,o=e.value.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},defaultValue:function(e,t,n){if(e.defaultValue){var r=e.defaultValue.start,o=e.defaultValue.end,i=e.min,a=e.max;if(r>o||r>a||r<i||o>a||o<i||o<r)return new Error("Invalid prop + "+t+" supplied to "+n+".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n ")}return null},onChange:o.func,step:o.number,min:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&o>=i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or bigger than the max value.\n "):null},max:function(e,t,n){var r=e[t],o=e.min,i=e.max;return void 0===i?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be undefined.\n "):r&&i<=o?new Error("Invalid prop + "+t+" supplied to "+n+".\n "+t+" value can not be equal to or smaller than the min value.\n "):null},vertical:o.bool,disabled:o.bool,dir:o.oneOf(["ltr","rtl"])},vt={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};ft.displayName="KendoReactRangeSlider",ft.propTypes=ht,ft.defaultProps=vt;var mt=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)}}(),gt=function(){return(gt=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)},bt=function(e){function t(n){var o=e.call(this,n)||this;return o.setValidity=function(){o._input&&o._input.setCustomValidity&&o._input.setCustomValidity(o.validity.valid?"":o.props.validationMessage||o.defaultValidationMessage.toLanguageString("switch.validation",D["switch.validation"]))},o.limit=function(e,t,n){var r=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>r-o?r-o:e},o.toggle=function(e,t){o.setState({checked:e}),o.valueDuringOnChange=e,Object(i.dispatchEvent)(o.props.onChange,t,o,{value:e}),o.valueDuringOnChange=void 0},o._id=Object(i.guid)(),o.defaultValidationMessage=Object(E.provideLocalizationService)(o),o.focus=function(){o._element&&o._element.focus()},o.dummyInput=function(e){return r.createElement("input",{type:"checkbox",checked:o.props.checked,ref:function(e){o._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:i.noop})},o.handleClick=function(e){o.eventTimeStamp!==e.timeStamp&&(o.eventTimeStamp=e.timeStamp,o.toggle(!o.value,e))},o.handleKeyDown=function(e){if(!o.props.disabled){var t=e.keyCode;t!==i.Keys.space&&t!==i.Keys.enter||o.toggle(!o.value,e)}},o.handleWrapperFocus=function(e){if(!o.props.disabled){o.setState({focused:!0});var t=o.props.onFocus;t&&t.call(void 0,e)}},o.handleWrapperBlur=function(e){if(!o.props.disabled){o.setState({focused:!1});var t=o.props.onBlur;t&&t.call(void 0,e)}},Object(i.validatePackage)(a),o.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},o}return mt(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},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=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,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.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.state.focused,n=this.props,o=n.dir,a=n.disabled,s=n.id,l=n.offLabel,u=n.onLabel,c=n.tabIndex;this.dir=o||this._wrapper&&getComputedStyle(this._wrapper).direction||void 0;var p=!this.validityStyles||this.validity.valid,d=Object(i.classNames)({"k-widget":!0,"k-switch":!0,"k-switch-on":this.value,"k-switch-off":!this.value,"k-state-focused":t,"k-state-disabled":a,"k-state-invalid":!p},this.props.className),f={"aria-checked":this.value,"aria-disabled":a||void 0};return r.createElement("span",{ref:function(t){e._wrapper=t},className:d,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus},r.createElement("span",gt({className:"k-switch-container",id:s||this._id,role:"switch"},f,{"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,ref:function(t){e._element=t},tabIndex:Object(i.getTabIndex)(c,a,void 0),accessKey:this.props.accessKey}),this.dummyInput(this.value),r.createElement("span",{className:"k-switch-label-on"},u),r.createElement("span",{className:"k-switch-label-off"},l),r.createElement("span",{className:"k-switch-handle"})))},t.displayName="Switch",t.propTypes={accessKey:o.string,checked:o.bool,className:o.string,disabled:o.bool,defaultChecked:o.bool,dir:o.string,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,offLabel:o.string,required:o.bool,tabIndex:o.number,valid:o.bool,validate:o.bool,validationMessage:o.string,onBlur:o.any,onChange:o.any,onFocus:o.any,onLabel:o.string},t.defaultProps={disabled:!1,defaultChecked:!1,offLabel:"OFF",onBlur:i.noop,onFocus:i.noop,onLabel:"ON",required:!1,validityStyles:!0},t}(r.Component),yt=Object(i.createPropsContext)(),Ot=Object(i.withPropsContext)(yt,bt);Ot.displayName="KendoReactSwitch";var kt=function(){return(kt=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)},wt=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},Ct=Object(i.createPropsContext)(),xt=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(Ct,e),o=n,s=o.ariaDescribedBy,l=o.ariaLabelledBy,u=o.checked,c=o.className,p=o.children,d=o.defaultChecked,f=o.disabled,h=o.defaultValue,v=o.id,m=o.label,g=o.labelPlacement,b=o.name,y=o.labelOptional,O=o.onChange,k=o.onFocus,w=o.onBlur,C=o.tabIndex,x=o.value,I=o.required,_=o.valid,P=o.validationMessage,S=o.validityStyles,j=(o.visited,o.touched,o.modified,wt(o,["ariaDescribedBy","ariaLabelledBy","checked","className","children","defaultChecked","disabled","defaultValue","id","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),N=r.useRef(null),F=r.useCallback((function(){N.current&&N.current.focus()}),[]),M=r.useCallback((function(){return{element:N.current,focus:F,get name(){return N.current&&N.current.name}}}),[F]);r.useImperativeHandle(t,M);var T=r.useState(d),R=T[0],L=T[1],V=r.useState(h),B=V[0],A=V[1],K="boolean"==typeof x||null===x,q=void 0!==u,H=K,z=H?x:B,U=q?u:H?void 0:R,W=void 0===U&&z,Y=W?z:U,G=W||H?null===x?x:void 0:x||z,X=null===Y||null===G,Z=r.useMemo((function(){return Object(i.guid)()}),[]),$=Object(E.useLocalization)(),J=function(e){return $.toLanguageString(e,D[e])},Q=J("checkbox.validation"),ee=J("checkbox.optionalText"),te=void 0!==_?_:!I||!!U;r.useEffect((function(){N.current&&N.current.setCustomValidity&&N.current.setCustomValidity(te?"":P||Q)}),[te,P,Q]);var ne=r.useCallback((function(e,t){H||f||(A(t),q||f||L(t)),O&&!f&&Object(i.dispatchEvent)(O,e,kt({},M(),{value:t}),{value:t})}),[q,f,O,H,M]),re=r.useCallback((function(e){var t=e.target.checked;ne(e,t)}),[ne,x]),oe=r.useCallback((function(e){if(!f){var t=e.keyCode,n=e.currentTarget.checked;t===i.Keys.space&&(e.preventDefault(),e.stopPropagation(),ne(e,!n))}}),[f,ne]),ie=r.useCallback((function(e){f||e.keyCode===i.Keys.space&&e.preventDefault()}),[f]),ae=r.useCallback((function(e){k&&!f&&Object(i.dispatchEvent)(k,e,M(),void 0)}),[k,f,M]),se=r.useCallback((function(e){w&&!f&&Object(i.dispatchEvent)(w,e,M(),void 0)}),[w,f,M]),le=Object(i.useDir)(N,n.dir),ue=Object(i.classNames)({"k-state-disabled":f},c),ce=kt({type:"checkbox",className:Object(i.classNames)({"k-checkbox":!0,"k-state-indeterminate":X,"k-state-invalid k-invalid":!(te||void 0!==S||!0===S)}),ref:N,name:b,id:v||Z,"aria-labelledby":l,"aria-describedby":s,checked:Boolean(Y),disabled:f,tabIndex:Object(i.getTabIndex)(C,f),role:"checkbox",required:void 0!==I&&I,"aria-checked":!(!U&&!Y)||!!X&&"mixed","aria-disabled":f||void 0},j,{onChange:re,onKeyDown:oe,onKeyUp:ie,onFocus:ae,onBlur:se}),pe=r.createElement(r.Fragment,null,void 0===G?r.createElement("input",kt({},ce)):r.createElement("input",kt({},ce,{value:K?void 0:null===G?"":G}))),de=r.createElement(r.Fragment,null,void 0!==m?r.createElement("label",{className:"k-checkbox-label",htmlFor:v||Z,style:{userSelect:"none"}},m,y&&r.createElement("span",{className:"k-label-optional"},ee)):null);return r.createElement(r.Fragment,null,"before"===g?r.createElement("span",{className:ue,dir:"rtl"},pe,de,p):r.createElement("span",{className:ue,dir:le},pe,de,p))}));xt.propTypes={checked:o.bool,className:o.string,defaultChecked:o.bool,defaultValue:o.any,dir:o.string,disabled:o.bool,id:o.string,ariaLabelledBy:o.string,ariaDescribedBy:o.string,label:o.any,labelPlacement:o.string,labelOptional:o.bool,name:o.string,tabIndex:o.number,value:o.any,validationMessage:o.string,required:o.bool,validate:o.bool,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},xt.displayName="KendoCheckbox";var Et=function(){return(Et=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)},Dt=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},It=Object(i.createPropsContext)(),_t=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(It,e),o=n.ariaDescribedBy,s=n.checked,l=n.children,u=n.className,c=n.disabled,p=n.id,d=n.label,f=n.labelPlacement,h=n.name,v=n.style,m=n.tabIndex,g=n.value,b=n.valid,y=n.onChange,O=n.onFocus,k=n.onBlur,w=Dt(n,["ariaDescribedBy","checked","children","className","disabled","id","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),C=r.useRef(null),x=r.useCallback((function(){C.current&&C.current.focus()}),[]),E=r.useCallback((function(){return{element:C.current,focus:x}}),[x]);r.useImperativeHandle(t,E);var D=r.useMemo((function(){return Object(i.guid)()}),[]),I=r.useCallback((function(e){Object(i.dispatchEvent)(y,e,E(),{value:g})}),[y,g,c]),_=r.useCallback((function(e){O&&!c&&Object(i.dispatchEvent)(O,e,E(),void 0)}),[O,c]),P=r.useCallback((function(e){k&&!c&&Object(i.dispatchEvent)(k,e,E(),void 0)}),[k,c]),S=Et({type:"radio",id:p||D,name:h,className:Object(i.classNames)({"k-radio":!0,"k-state-invalid":!1===b,"k-invalid":!1===b},u),ref:C,disabled:c,tabIndex:Object(i.getTabIndex)(m,c),checked:s,style:v,"aria-describedby":o,value:g,onChange:I,onFocus:_,onBlur:P},w),j=r.createElement(r.Fragment,null,void 0!==d?r.createElement("label",{className:"k-radio-label",htmlFor:p||D,style:{userSelect:"none"},"aria-label":d},d):null),N=r.createElement("input",Et({},S));return"before"===f?r.createElement(r.Fragment,null,j,N,l):r.createElement(r.Fragment,null,N,j,l)}));_t.propTypes={ariaDescribedBy:o.string,checked:o.bool,className:o.string,disabled:o.bool,id:o.string,label:o.string,labelPlacement:o.string,name:o.string,style:o.object,tabIndex:o.number,value:o.any,valid:o.bool,onChange:o.func,onFocus:o.func,onBlur:o.func},_t.displayName="KendoRadioButton";var Pt=function(){return(Pt=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)},St=Object(i.createPropsContext)(),jt=r.forwardRef((function(e,t){Object(i.validatePackage)(a);var n=Object(i.usePropsContext)(St,e),o=n.ariaLabelledBy,s=n.ariaDescribedBy,l=n.className,u=n.data,c=n.defaultValue,p=n.disabled,d=n.name,f=n.labelPlacement,h=n.layout,v=n.style,m=n.value,g=n.valid,b=n.item,y=void 0===b?Nt.item:b,O=n.onChange,k=n.onFocus,w=r.useRef(null),C=r.useCallback((function(){w.current&&Object(i.focusFirstFocusableChild)(w.current)}),[]),x=r.useCallback((function(){return{element:w.current,focus:C}}),[C]);r.useImperativeHandle(t,x);var E=r.useState(c),D=E[0],I=E[1],_=void 0!==m,P=_?m:D,S=r.useCallback((function(e){var t=e.value;_||p||I(t),O&&!p&&Object(i.dispatchEvent)(O,e.syntheticEvent,x(),{value:t})}),[I,O,p]),j=r.useCallback((function(e){k&&!p&&Object(i.dispatchEvent)(k,e.syntheticEvent,x(),void 0)}),[k,p]),N=r.useMemo((function(){return Object(i.guid)()}),[]),F=Object(i.classNames)("k-radio-list",{"k-list-horizontal":"horizontal"===h,"k-list-vertical":"vertical"===h||void 0===h},l),M=Object(i.useRtl)(w,n.dir),T=u&&u.map((function(e,t){var n=P===e.value,o=null==P,a=Pt({},e,{valid:g,checked:n,disabled:!(!e.disabled&&!p),labelPlacement:e.labelPlacement?e.labelPlacement:f,tabIndex:e.tabIndex?e.tabIndex:o&&0===t||n?0:-1,index:t,name:d||N,onChange:S,onFocus:j});return r.createElement(y,{className:Object(i.classNames)("k-radio-item",{"k-state-disabled":a.disabled||p}),key:t,role:"radio"},r.createElement(_t,Pt({},a)))}));return r.createElement("ul",{role:"radiogroup",className:F,ref:w,dir:M,style:v,"aria-labelledby":o,"aria-describedby":s},T)})),Nt={item:function(e){return r.createElement("li",Pt({},e))}};jt.propTypes={ariaLabelledBy:o.string,ariaDescribedBy:o.string,className:o.string,data:o.arrayOf(o.object),defaultValue:o.any,dir:o.string,disabled:o.bool,labelPlacement:o.string,layout:o.string,name:o.string,style:o.object,value:o.any,onChange:o.func,onFocus:o.func},jt.defaultProps=Nt,jt.displayName="KendoRadioGroup";var Ft=function(){return(Ft=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)},Mt=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},Tt=Object(i.createPropsContext)(),Rt=r.forwardRef((function(e,t){var n=Object(i.usePropsContext)(Tt,e),o=n,a=o.ariaDescribedBy,s=o.ariaLabelledBy,l=o.autoSize,u=o.className,c=o.defaultValue,p=o.disabled,d=o.readOnly,f=o.required,h=o.rows,v=o.id,m=o.name,g=o.placeholder,b=o.style,y=o.tabIndex,O=o.value,k=o.valid,w=o.validationMessage,C=o.validityStyles,x=o.onChange,E=o.onFocus,D=o.onBlur,I=(o.visited,o.touched,o.modified,Mt(o,["ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),_=r.useRef(null),P=r.useCallback((function(){_.current&&_.current.focus()}),[]),S=r.useCallback((function(){return{element:_,focus:P,get name(){return _.current&&_.current.name}}}),[P]);r.useImperativeHandle(t,S);var j=r.useState(c),N=j[0],F=j[1],M=r.useState("auto"),T=M[0],R=M[1],L=r.useMemo((function(){return Object(i.guid)()}),[]),V=Object(i.useDir)(_,n.dir),B=void 0!==O,A=B?O:N,K=void 0!==k?k:!f||!!A;r.useEffect((function(){_.current&&_.current.setCustomValidity&&_.current.setCustomValidity(K?"":w||"")}),[K,w]),r.useLayoutEffect((function(){_.current&&R(_.current.scrollHeight+"px")}),[A]);var q=r.useCallback((function(e){var t=e.target.value;B||p||(R("auto"),F(t)),x&&!p&&Object(i.dispatchEvent)(x,e,S(),{value:t})}),[F,x,p,B]),H=r.useCallback((function(e){E&&!p&&Object(i.dispatchEvent)(E,e,S(),void 0)}),[E,p]),z=r.useCallback((function(e){D&&!p&&Object(i.dispatchEvent)(D,e,S(),void 0)}),[D,p]),U={className:Object(i.classNames)("k-textarea",{"k-state-invalid":!(K||void 0!==C||!0===C),"k-state-disabled":p},u),style:b,dir:V},W=Ft({id:v||L,name:m,className:"k-input",ref:_,disabled:p,rows:h,placeholder:g,readOnly:d,required:f,tabIndex:Object(i.getTabIndex)(y,p),style:l?{resize:"none",overflow:"hidden",height:T}:{},"aria-labelledby":s,"aria-describedby":a,"aria-multiline":!0,"aria-disabled":p||void 0,value:B?O:N},I,{onChange:q,onFocus:H,onBlur:z});return r.createElement("span",Ft({},U),r.createElement("textarea",Ft({},W)))}));Rt.propTypes={ariaDescribedBy:o.string,ariaLabelledBy:o.string,autoSize:o.bool,className:o.string,defaultValue:o.string,dir:o.string,disabled:o.bool,readOnly:o.bool,rows:o.number,id:o.string,name:o.string,placeholder:o.string,style:o.object,tabIndex:o.number,value:o.oneOfType([o.string,o.arrayOf(o.string),o.number]),onChange:o.func,onFocus:o.func,onBlur:o.func},Rt.displayName="KendoTextArea";var Lt=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),a=Object(i.useDir)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e,value:e.value}})),r.useImperativeHandle(t,(function(){return n.current}));var s=r.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),l=r.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),u=r.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),p=r.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),d=r.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),f=r.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return r.createElement("span",{id:e.id,ref:o,dir:a,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:Object(i.classNames)("k-rating-item",{"k-rtl":"rtl"===a,"k-state-selected":e.selected,"k-state-hovered":e.hovered},e.className),onClick:s,onKeyDown:l,onFocus:u,onBlur:c,onMouseEnter:d,onMouseLeave:f,onMouseMove:p},e.children)})),Vt={id:o.string,icon:o.any,dir:o.oneOf(["ltr","rtl"]),title:o.string,value:o.number,half:o.bool,selected:o.bool,hovered:o.bool};Lt.displayName="KendoReactRatingItem",Lt.propTypes=Vt,Lt.defaultProps={dir:"ltr"};var Bt,At=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},Kt=function(e,t,n){return At(e-n,n)<t&&t<e},qt=function(e,t,n,r){return null!==t&&("continues"===r?Kt(e,t,n)?At(e-n/2,n/2)<=t:e<=t:"single"===r&&(Kt(e,t,n)?At(e-n/2,n/2)===t:e===t))},Ht=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},zt=function(e,t,n,r){for(var o=e;o<=t;o+=n)if(r===o)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(Bt||(Bt={}));var Ut=function(){return(Ut=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)},Wt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var r=function(e,t){switch(t.type){case Bt.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?At(t.payload,t.step):t.max:t.min;case Bt.deselect:return null;case Bt.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?At(e+t.step,t.step):t.max;case Bt.decrease:return void 0===t.step?e:At(e-t.step,t.step)>=t.min?At(e-t.step,t.step):t.min;case Bt.min:return void 0===t.step?e:t.min;case Bt.max:return t.max;case Bt.reset:return null;default:return e}}(t.state||i,Ut({},e,t));n&&n(r,e.event),a(r)}]},Yt=Object(i.createPropsContext)(),Gt=r.forwardRef((function(e,t){var n,o,a,s,l=Object(i.usePropsContext)(Yt,e),u=r.useRef(null),c=r.useRef(null),p=Object(i.useDir)(c,l.dir);r.useImperativeHandle(u,(function(){return{element:c.current,props:l}})),r.useImperativeHandle(t,(function(){return u.current}));for(var d,f,h=r.useCallback((function(e,t){l.onChange&&u.current&&l.onChange.call(void 0,{value:e,target:u.current,syntheticEvent:t})}),[l.onChange]),v=r.useMemo((function(){return void 0!==l.min?l.min:Zt.min}),[l.min]),m=r.useMemo((function(){return void 0!==l.max?l.max:Zt.max}),[l.max]),g=r.useMemo((function(){return l.precision||Zt.precision}),[l.precision]),b=r.useMemo((function(){return void 0!==l.step?l.step:Zt.step}),[l.step]),y=r.useMemo((function(){return l.readonly||Zt.readonly}),[l.readonly]),O=r.useMemo((function(){return l.disabled||Zt.disabled}),[l.disabled]),k=r.useMemo((function(){return l.item||Zt.item}),[l.item]),w=Wt(l.defaultValue||Zt.defaultValue,{state:l.value,min:v,max:m,step:"half"===g?b/2:b},h),C=w[0],x=w[1],E=Wt(null,{state:l.value,min:v,max:m,step:"half"===g?b/2:b,precision:g}),D=E[0],I=E[1],_=r.useMemo((function(){return l.value||C}),[l.value,C]),P=r.useMemo((function(){return D}),[D]),S=r.useMemo((function(){return l.selection||Zt.selection}),[l.selection]),j=r.useMemo((function(){return b/("half"===g?2:1)}),[b,g]),N=r.useCallback((function(e){if(e.target&&e.target.element&&!y&&!O){if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ht(p||"ltr",t,e.syntheticEvent.clientX)?At(e.target.value-b/2,j):e.target.value;x({type:Bt.select,payload:n,event:e.syntheticEvent})}else x({type:Bt.select,payload:e.target.value,event:e.syntheticEvent});l.onClick&&l.onClick.call(void 0,{value:_,target:u.current,syntheticEvent:e.syntheticEvent})}}),[l.onClick,x,_]),F=r.useCallback((function(e){if(!y&&!O){switch(e.keyCode){case i.Keys.right:e.preventDefault(),x({type:"rtl"===p?Bt.decrease:Bt.increase,event:e});break;case i.Keys.left:e.preventDefault(),x({type:"rtl"===p?Bt.increase:Bt.decrease,event:e});break;case i.Keys.home:e.preventDefault(),x({type:"rtl"===p?Bt.min:Bt.max,event:e});break;case i.Keys.end:e.preventDefault(),x({type:"rtl"===p?Bt.max:Bt.min,event:e});break;case i.Keys.esc:e.preventDefault(),x({type:Bt.deselect,event:e})}l.onKeyDown&&l.onKeyDown.call(void 0,{value:_,target:u.current,syntheticEvent:e})}}),[l.onKeyDown,x,_]),M=r.useCallback((function(e){l.onFocus&&l.onFocus.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onFocus]),T=r.useCallback((function(e){l.onBlur&&l.onBlur.call(void 0,{target:u.current,syntheticEvent:e})}),[l.onBlur]),R=r.useCallback((function(e){if(e.target&&e.target.element)if("half"===g){var t=e.target.element.getBoundingClientRect(),n=Ht(p||"ltr",t,e.syntheticEvent.clientX)?e.target.value-b/2:e.target.value;I({type:Bt.select,payload:n,event:e.syntheticEvent})}else I({type:Bt.select,payload:e.target.value,event:e.syntheticEvent})}),[g,b,p]),L=r.useCallback((function(e){I({type:Bt.reset,event:e.syntheticEvent})}),[]),V=[],B=(d=At(m-v,j))-(f=b)*Math.floor(d/f),A=v;A<=m;A=At(A+b,j)){var K=At(A+B,j),q="half"===g&&Kt(K,null!==P?P:null!==_?_:0,b),H=qt(K,_,b,S),z=qt(K,null!==P?P:_,b,S),U=qt(K,P,b,S);V.push(r.createElement(k,{key:K,value:K,dir:p,title:String(q?At(K-b/2,j):K),icon:l.icon,half:q,selected:H||z,hovered:U,onClick:N,onMouseMove:R,onMouseLeave:L},q&&r.createElement("span",{className:"k-rating-precision-complement",style:(n={width:"12px"},n["rtl"===p?"right":"left"]="50%",n)},r.createElement("span",{className:Object(i.classNames)("k-icon",(o={"k-i-star-outline":!l.icon},o[l.icon+"-outline"]=l.icon,o))})),q&&r.createElement("span",{className:"k-rating-precision-part",style:{width:"12px"}},r.createElement("span",{className:Object(i.classNames)("k-icon",(a={"k-i-star":!l.icon},a[""+l.icon]=l.icon,a))})),q&&r.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!q&&r.createElement("span",{className:Object(i.classNames)("k-icon",(s={"k-i-star":!l.icon&&(U||z&&!U),"k-i-star-outline":!l.icon&&!U},s[""+l.icon]=l.icon&&(U||z&&!U),s[l.icon+"-outline"]=l.icon&&!U,s))})))}return r.createElement("span",{id:l.id,style:l.style,ref:c,role:"slider",dir:p,tabIndex:Object(i.getTabIndex)(l.tabIndex,l.disabled,void 0),className:Object(i.classNames)("k-rating k-widget",{"k-rtl":"rtl"===p,"k-state-readonly":y,"k-state-disabled":O},l.className),onKeyDown:F,onFocus:M,onBlur:T,"aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":null!==_?_:void 0,"aria-disabled":O?"true":void 0,"aria-labelledby":l.ariaLabelledBy,"aria-describedby":l.ariaDescribedBy},r.createElement("input",{id:"rating",className:"k-hidden",readOnly:y,disabled:O}),r.createElement("span",{className:"k-rating-container"},V),l.label&&r.createElement("span",{className:"k-rating-label"},l.label))})),Xt={id:o.string,dir:o.oneOf(["ltr","rtl"]),selection:o.oneOf(["continues","single"]),precision:o.oneOf(["item","half"]),value:function(e,t,n){if(e.value&&e.min&&e.max&&e.step&&(!("half"===e.precision?zt(e.min,e.max,e.step/2,e.value):zt(e.min,e.max,e.step,e.value))&&"half"===e.precision))return new Error("Invalid prop + "+t+" supplied to "+n+".\n The value of the { value } property is not correct, please check your values.\n ");return null},defaultValue:o.number,min:o.number,max:o.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + "+t+" supplied to "+n+'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n '):null},hovered:o.number,label:o.string,readonly:o.bool,disabled:o.bool,half:o.bool,icon:o.string,ariaDescribedBy:o.string},Zt={dir:"ltr",min:1,max:5,step:1,item:Lt,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};Gt.displayName="KendoReactRating",Gt.propTypes=Xt,Gt.defaultProps=Zt},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.generateNavigatableId=function(e,t,n){return void 0===n&&(n="cell"),t+"_"+e+"_"+n},t.getNavigatableLevel=function(e){if(e)return parseInt(e.getAttribute(r.KEYBOARD_NAV_DATA_LEVEL)||"",10)},t.getNavigatableId=function(e){if(e){var t=e.getAttribute(r.KEYBOARD_NAV_DATA_ID);return t||void 0}},t.isNavigatable=function(e){if(!e)return!1;var t=e.getAttribute(r.KEYBOARD_NAV_DATA_ID);return Boolean(t)},t.getNavigatableElement=function(e,t){return void 0===t&&(t={level:0}),e.querySelector("["+r.KEYBOARD_NAV_DATA_LEVEL+"='"+t.level+"']")},t.getClosestNavigatableElement=function(e){return e.parentElement&&e.parentElement.closest("["+r.KEYBOARD_NAV_DATA_LEVEL+"]")},t.getActiveElement=function(e,t){return e.querySelector("["+r.KEYBOARD_NAV_DATA_ID+"='"+t+"']")},t.getClosestScope=function(e){return e.parentElement&&e.parentElement.closest("["+r.KEYBOARD_NAV_DATA_SCOPE+"]")},t.getHeaderElement=function(e){return e.querySelector("["+r.KEYBOARD_NAV_DATA_HEADER+"]")},t.getBodyElement=function(e){return e.querySelector("["+r.KEYBOARD_NAV_DATA_BODY+"]")},t.getFocusableElements=function(e,t){void 0===t&&(t={focusable:!1});var n=t.focusable?r.FOCUSABLE_ELEMENTS:r.TABBABLE_ELEMENTS;return Array.from(e.querySelectorAll(n.join(",")))},t.getNavigatableElements=function(e,t){if(void 0===t&&(t={level:0}),!e)return[];var n=r.FOCUSABLE_ELEMENTS.map((function(e){return e+"["+r.KEYBOARD_NAV_DATA_LEVEL+"='"+t.level+"']"})).join(",");return Array.from(e.querySelectorAll(n))},t.filterNavigatableElements=function(e){void 0===e&&(e={level:0});var t=r.FOCUSABLE_ELEMENTS.map((function(t){return t+"["+r.KEYBOARD_NAV_DATA_LEVEL+"='"+e.level+"']"})).join(",");return function(e){return e.matches(t)}},t.focusElement=function(e){var n=e.elementForFocus,r=e.event,o=e.contextStateRef,i=e.prevElement;o.current&&n&&n.focus&&(r.preventDefault(),n.focus(),t.isNavigatable(n)&&(n.setAttribute("tabIndex","0"),o.current.activeId=t.getNavigatableId(n)),i&&t.isNavigatable(i)&&i.setAttribute("tabIndex","-1"))},t.getIdPrefix=function(e){return e.current?e.current.idPrefix:""},t.findNextIdByRowIndex=function(e,t,n,r,o){if(!n)return[];for(var i=e+(o?-1:1);i>=0&&i<r.length;){var a=r[i][t];if(a!==n)return[a,[i,t]];i+=o?-1:1}return[]},t.findNextIdByCellIndex=function(e,t,n,r,o){if(!n)return[];for(var i=t+(o?-1:1);i>=0&&i<r[e].length;){var a=r[e][i];if(a!==n)return[a,[e,i]];i+=o?-1:1}return[]},t.findId=function(e,t){if(t)for(var n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++)if(e[n][r]===t)return[n,r]},t.getNextNavigationIndex=function(e){return e.current?e.current.navigationMatrix.length:0},t.getFilterColumnId=function(e){return e?""+e+r.KEYBOARD_NAV_FILTER_COL_SUFFIX:""},t.tableKeyboardNavigationTools={generateNavigatableId:t.generateNavigatableId,getNavigatableId:t.getNavigatableId,getNavigatableLevel:t.getNavigatableLevel,getNavigatableElement:t.getNavigatableElement,getClosestNavigatableElement:t.getClosestNavigatableElement,getActiveElement:t.getActiveElement,getClosestScope:t.getClosestScope,getHeaderElement:t.getHeaderElement,getBodyElement:t.getBodyElement,getFocusableElements:t.getFocusableElements,getNavigatableElements:t.getNavigatableElements,filterNavigatableElements:t.filterNavigatableElements,focusElement:t.focusElement,getIdPrefix:t.getIdPrefix,isNavigatable:t.isNavigatable,findNextIdByRowIndex:t.findNextIdByRowIndex,findNextIdByCellIndex:t.findNextIdByCellIndex,findId:t.findId,getNextNavigationIndex:t.getNextNavigationIndex,getFilterColumnId:t.getFilterColumnId}},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-data-tools",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639485354,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";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(27);t.HeaderThElement=function(e){var t=e.ariaSort,n=e.colSpan,a=e.rowSpan,s=e.className,l=e.style,u=e.columnId,c=e.onKeyDown,p=e.navigatable,d=e.ariaColumnIndex,f=e.ariaLabel,h=e.role,v=e.ariaSelected,m=i.useTableKeyboardNavigation(u,p);return o.createElement("th",r({"aria-sort":t,"aria-label":f,"aria-colindex":d,"aria-selected":v,colSpan:n,rowSpan:a,className:s,style:l,onKeyDown:c,role:h},m),e.children)},t.HeaderThElement.displayName="KendoReactHeaderThElement"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=[{text:r.filterContainsOperator,operator:"contains"},{text:r.filterNotContainsOperator,operator:"doesnotcontain"},{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"},{text:r.filterStartsWithOperator,operator:"startswith"},{text:r.filterEndsWithOperator,operator:"endswith"},{text:r.filterIsNullOperator,operator:"isnull"},{text:r.filterIsNotNullOperator,operator:"isnotnull"},{text:r.filterIsEmptyOperator,operator:"isempty"},{text:r.filterIsNotEmptyOperator,operator:"isnotempty"}],i=[{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"},{text:r.filterGteOperator,operator:"gte"},{text:r.filterGtOperator,operator:"gt"},{text:r.filterLteOperator,operator:"lte"},{text:r.filterLtOperator,operator:"lt"},{text:r.filterIsNullOperator,operator:"isnull"},{text:r.filterIsNotNullOperator,operator:"isnotnull"}],a=[{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"},{text:r.filterAfterOrEqualOperator,operator:"gte"},{text:r.filterAfterOperator,operator:"gt"},{text:r.filterBeforeOperator,operator:"lt"},{text:r.filterBeforeOrEqualOperator,operator:"lte"},{text:r.filterIsNullOperator,operator:"isnull"},{text:r.filterIsNotNullOperator,operator:"isnotnull"}],s=[{text:r.filterEqOperator,operator:"eq"},{text:r.filterNotEqOperator,operator:"neq"}],l=function(){function e(){}return Object.defineProperty(e,"text",{get:function(){return o.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numeric",{get:function(){return i.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"date",{get:function(){return a.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"boolean",{get:function(){return s.slice()},enumerable:!0,configurable:!0}),e}();t.Operators=l,t.stringOperator=function(e){return"contains"===e||"doesnotcontain"===e||"startswith"===e||"endswith"===e},t.unaryOperator=function(e){return"isnull"===e||"isnotnull"===e||"isempty"===e||"isnotempty"===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TABLE_ROW_INDEX_ATTRIBUTE="data-grid-row-index",t.TABLE_COL_INDEX_ATTRIBUTE="data-grid-col-index",t.TABLE_PREVENT_SELECTION_ELEMENT="data-prevent-selection"},function(e,t,n){"use strict";n.r(t),n.d(t,"PickerWrap",(function(){return zt})),n.d(t,"ToggleButton",(function(){return Ht})),n.d(t,"Calendar",(function(){return ft})),n.d(t,"CalendarPropsContext",(function(){return dt})),n.d(t,"CalendarViewEnum",(function(){return k})),n.d(t,"CalendarCell",(function(){return P})),n.d(t,"CalendarWeekCell",(function(){return F})),n.d(t,"CalendarHeaderTitle",(function(){return je})),n.d(t,"CalendarNavigationItem",(function(){return rt})),n.d(t,"DateInput",(function(){return Kt})),n.d(t,"DateInputPropsContext",(function(){return At})),n.d(t,"DatePicker",(function(){return Jt})),n.d(t,"DatePickerPropsContext",(function(){return $t})),n.d(t,"TimePicker",(function(){return Un})),n.d(t,"TimePickerPropsContext",(function(){return zn})),n.d(t,"MultiViewCalendar",(function(){return nr})),n.d(t,"MultiViewCalendarPropsContext",(function(){return tr})),n.d(t,"DateRangePicker",(function(){return lr})),n.d(t,"DateRangePickerPropsContext",(function(){return sr})),n.d(t,"DateTimePicker",(function(){return mr})),n.d(t,"DateTimePickerPropsContext",(function(){return vr}));var r,o,i,a,s,l=n(1),u=n(0),c=n(2),p=n(3),d=n(4),f={name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639485177,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"},h=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}(),v=function(e){return Math.max(e,0)},m=function(e){this.offset=e},g=function(e){this.skip=e},b=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,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=o,this.bottomOffset=i,this.direction=a;var s=this.rowsForHeight(o),l=v(t-s);this.onScrollAction(new m(this.rowOffset(l))),this.onPageAction(new g(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,o=e.offsetWidth,i="vertical"===this.direction?n:t,a="vertical"===this.direction?r:o;if(this.lastScrollTop!==i){var s=this.lastScrollTop>=i;this.lastScrollTop=i;var l=this.rowHeightService.index(v(i-this.topOffset)),u=this.rowHeightService.index(v(i+a-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new m(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(this.firstLoaded))),s&&l<=this.firstLoaded){var c=Math.floor(.3*this.take);this.firstLoaded=v(l-c),this.onScrollAction(new m(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new g(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}(),y=(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)});!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(s||(s={}));var O,k,w=((o={})[s.Forward]=function(e){return function(t){return t+e}},o[s.Backward]=function(e){return function(t){return t-e}},o),C=((i={})[s.Forward]=function(e){return function(t){return Math.min(t,e)}},i[s.Backward]=function(e){return function(t){return Math.max(t,e)}},i),x=((a={})[s.Forward]=function(e){return function(t){return t<e}},a[s.Backward]=function(e){return function(t){return t>e}},a),E=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=w[n](s),u=C[n](a),c=x[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,l=r.containerMaxScroll(),u=t===s.Backward?1:-1,c=(o=n,i=e,a=r.props.maxScrollDifference,Math.min(Math.abs(i-o),a)),p=Math.min(e,l);return{start:Math.min(Math.max(p+u*c,0),l),end:p}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?s.Backward:s.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 h(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 b(r.handleScrollAction,r.handlePageAction),r}return y(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=Object(c.classNames)("k-content k-calendar-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=Object(c.classNames)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return l.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,l.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:u.number.isRequired,className:u.string,direction:u.oneOf(["horizontal","vertical"]),forceScroll:u.bool,itemHeight:u.number,itemWidth:u.number,maxScrollDifference:u.number,onScroll:u.func,onScrollAction:u.func,scrollDuration:u.number,scrollOffsetSize:u.number,skip:u.number.isRequired,tabIndex:u.number,take:u.number.isRequired,topOffset:u.number.isRequired,total:u.number.isRequired,role:u.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(l.Component),D=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)}}(),I=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)},_=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},P=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 D(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=_(t,["value"]),o=e.value,i=_(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),i=e.isRangeStart,a=e.isRangeMid,s=e.isRangeEnd,u=e.isRangeSplitStart,p=e.isRangeSplitEnd,d=e.isToday,f=e.isDisabled,h=(e.view,e.value,_(e,["className","formattedValue","isWeekend","isFocused","isInRange","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),v="end"===this.props.activeRangeEnd&&s,m="start"===this.props.activeRangeEnd&&i,g=Object(c.classNames)("k-calendar-td",{"k-range-end":s,"k-range-mid":a,"k-range-split-end":p,"k-range-split-start":u,"k-range-start":i,"k-state-active":m||v,"k-state-pending-focus":r,"k-state-selected":o||i||s,"k-today":d,"k-weekend":n,"k-state-disabled":f},t);return l.createElement("td",I({},h,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),l.createElement("span",{className:"k-link"},this.props.children))},t}(l.Component),S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(){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)},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(e.firstDate,N(e,["className","firstDate"]));return l.createElement("td",j({className:Object(c.classNames)("k-calendar-td",t)},n),this.props.children)},t}(l.Component);!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"}(O||(O={})),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(k||(k={}));var M={start:null,end:null};function T(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}var R,L,V,B,A,K=function(e,t,n){return void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n},q=new Date(1980,0,1),H=new Date(1900,0,1),z=new Date(2099,11,31),U=new Date(1980,0,1),W=new Date(1980,0,1,23,59,59),Y=function(e,t){var n=Object(p.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},G=function(){return Object(p.getDate)(new Date)},X=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},Z=function(e,t,n){return null===e||!(t&&Object(p.getDate)(t)>Object(p.getDate)(e)||n&&Object(p.getDate)(n)<Object(p.getDate)(e))},$=function(e,t){var n=t||M,r=n.start,o=n.end;return!(!r||!o)&&(r<e&&e<o)},J=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Q=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},ee=function(e,t){return e.slice(t).concat(e.slice(0,t))},te=function(e,t,n){return e?t&&e<t?Object(p.cloneDate)(t):n&&e>n?Object(p.cloneDate)(n):e:e},ne=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}},re=[[]],oe=((R={})[O.Left]=function(e){return Object(p.addDecades)(e,-1)},R[O.Up]=function(e){return Object(p.addDecades)(e,-5)},R[O.Right]=function(e){return Object(p.addDecades)(e,1)},R[O.Down]=function(e){return Object(p.addDecades)(e,5)},R[O.PrevView]=function(e){return Object(p.addCenturies)(e,-1)},R[O.NextView]=function(e){return Object(p.addCenturies)(e,1)},R[O.FirstInView]=function(e){return Object(p.firstDecadeOfCentury)(e)},R[O.LastInView]=function(e){return Object(p.lastDecadeOfCentury)(e)},R),ie=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(p.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return re;var d=J(0,4),f=Object(p.firstDecadeOfCentury)(c),h=Object(p.lastDecadeOfCentury)(c),v=G();return J(0,3).map((function(e){var l=Object(p.addDecades)(f,4*e);return d.map((function(e){var c=t.normalize(Object(p.addDecades)(l,e),a,i),d=t.isEqual(c,u.start),m=t.isEqual(c,u.end),g=!d&&!m&&$(c,u),b=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return Q(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:b,isWeekend:!1,isInRange:X(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:m,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(p.firstYearOfDecade)(e).getFullYear()===Object(p.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=Object(p.firstYearOfDecade)(e).getFullYear(),o=!t||Object(p.firstYearOfDecade)(t).getFullYear()<=r,i=!n||r<=Object(p.firstYearOfDecade)(n).getFullYear();return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(p.durationInCenturies)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=oe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(p.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(p.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(p.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(p.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(p.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(p.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(p.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){return void 0===n&&(n=1),Object(p.durationInCenturies)(e,t)<n?Object(p.addCenturies)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(p.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(p.cloneDate)(n):e},e}(),ae=[[]],se=((L={})[O.Left]=function(e){return Object(p.addYears)(e,-1)},L[O.Up]=function(e){return Object(p.addYears)(e,-5)},L[O.Right]=function(e){return Object(p.addYears)(e,1)},L[O.Down]=function(e){return Object(p.addYears)(e,5)},L[O.PrevView]=function(e){return Object(p.addDecades)(e,-1)},L[O.NextView]=function(e){return Object(p.addDecades)(e,1)},L[O.FirstInView]=function(e){return Object(p.firstYearOfDecade)(e)},L[O.LastInView]=function(e){return Object(p.lastYearOfDecade)(e)},L),le=function(){function e(){}return e.prototype.addToDate=function(e,t){return Object(p.addDecades)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return ae;var d=J(0,4),f=Object(p.firstYearOfDecade)(c),h=Object(p.lastYearOfDecade)(c),v=G();return J(0,3).map((function(e){var l=Object(p.addYears)(f,4*e);return d.map((function(e){var c=t.normalize(Object(p.addYears)(l,e),a,i),d=t.isEqual(c,u.start),m=t.isEqual(c,u.end),g=!d&&!m&&$(c,u),b=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return Q(c,f,h)?{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:b,isWeekend:!1,isInRange:X(c,a,i),isRangeStart:d,isRangeMid:g,isRangeEnd:m,isRangeSplitEnd:g&&t.isEqual(c,h),isRangeSplitStart:g&&t.isEqual(c,f),isToday:t.isEqual(c,v),title:t.cellTitle(c),value:c}:null}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(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===Object(p.durationInDecades)(e,t)},e.prototype.move=function(e,t){var n=se[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(p.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(p.firstYearOfDecade)(e).getFullYear()+" - "+Object(p.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(e){return 4},e.prototype.skip=function(e,t){return Object(p.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(p.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),Object(p.durationInDecades)(e,t)<n?Object(p.addDecades)(e,-1):e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(p.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(p.cloneDate)(n):e},e}(),ue=[[]],ce=((V={})[O.Left]=function(e){return Object(p.addDays)(e,-1)},V[O.Up]=function(e){return Object(p.addWeeks)(e,-1)},V[O.Right]=function(e){return Object(p.addDays)(e,1)},V[O.Down]=function(e){return Object(p.addWeeks)(e,1)},V[O.PrevView]=function(e){return Object(p.addMonths)(e,-1)},V[O.NextView]=function(e){return Object(p.addMonths)(e,1)},V[O.FirstInView]=function(e){return Object(p.firstDayOfMonth)(e)},V[O.LastInView]=function(e){return Object(p.lastDayOfMonth)(e)},V),pe=function(){function e(e){this.intl=e}return e.prototype.addToDate=function(e,t){return Object(p.addMonths)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return ue;var d=Object(p.firstDayOfMonth)(c),f=Object(p.lastDayOfMonth)(c),h=Object(p.dayOfWeek)(d,this.intl.firstDay(),-1),v=J(0,7),m=G();return J(0,6).map((function(e){var l=Object(p.addDays)(h,7*e);return v.map((function(e){var c=t.normalize(Object(p.addDays)(l,e),a,i);if(c<d||c>f)return null;var h=t.isEqual(c,u.start),v=t.isEqual(c,u.end),g=!h&&!v&&$(c,u),b=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return{formattedValue:t.value(c),id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:b,isInRange:X(c,a,i),isWeekend:t.isWeekend(c),isRangeStart:h,isRangeMid:g,isRangeEnd:v,isRangeSplitStart:g&&t.isEqual(c,d),isRangeSplitEnd:g&&t.isEqual(c,f),isToday:t.isEqual(c,m),title:t.cellTitle(c),value:c}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(p.getDate)(e).getTime()===Object(p.getDate)(t).getTime()},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(e,n,r)&&o.isEqual(e,t)&&(i=!0)})),i},e.prototype.isInArray=function(e,t){return!!t.length&&Object(p.firstDayOfMonth)(t[0])<=e&&e<=Object(p.lastDayOfMonth)(t[t.length-1])},e.prototype.isInRange=function(e,t,n){var r=Object(p.getDate)(e),o=!t||Object(p.getDate)(t)<=r,i=!n||r<=Object(p.getDate)(n);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(p.durationInMonths)(e,t)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ce[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 Object(p.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(p.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),Object(p.durationInMonths)(e,t)<n?Object(p.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)?Object(p.getDate)(t):e>n&&this.isEqual(e,n)?Object(p.getDate)(n):e},e.prototype.wideMonthNames=function(){return this.intl.dateFormatNames({nameType:"wide",type:"months"})},e}(),de=[[]],fe=((B={})[O.Left]=function(e){return Object(p.addMonths)(e,-1)},B[O.Up]=function(e){return Object(p.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},B[O.Right]=function(e){return Object(p.addMonths)(e,1)},B[O.Down]=function(e){return Object(p.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},B[O.PrevView]=function(e){return Object(p.addYears)(e,-1)},B[O.NextView]=function(e){return Object(p.addYears)(e,1)},B[O.FirstInView]=function(e){return Object(p.firstMonthOfYear)(e)},B[O.LastInView]=function(e){return Object(p.lastMonthOfYear)(e)},B),he=function(){function e(e){this._intl=e}return e.prototype.addToDate=function(e,t){return Object(p.addYears)(e,t)},e.prototype.datesList=function(e,t){return J(0,t).map((function(t){return Object(p.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,r=e.focusedDate,o=e.isActiveView,i=e.max,a=e.min,s=e.selectedDate,l=e.selectionRange,u=void 0===l?M:l,c=e.viewDate;if(!c)return de;var d=this.abbrMonthNames(),f=Object(p.firstMonthOfYear)(c),h=Object(p.lastMonthOfYear)(c),v=f.getFullYear(),m=J(0,4),g=G();return J(0,3).map((function(e){var l=Object(p.addMonths)(f,4*e);return m.map((function(e){var c=t.normalize(Object(p.addMonths)(l,e),a,i);if(v<c.getFullYear())return null;var m=t.isEqual(c,u.start),b=t.isEqual(c,u.end),y=!m&&!b&&$(c,u),O=o&&(Array.isArray(s)?t.isSelectedFromArray(c,s,a,i):X(s,a,i)&&t.isEqual(c,s));return{formattedValue:d[c.getMonth()],id:""+n+c.getTime(),isFocused:t.isEqual(c,r),isSelected:O,isInRange:X(c,a,i),isWeekend:!1,isRangeStart:m,isRangeMid:y,isRangeEnd:b,isRangeSplitEnd:y&&t.isEqual(c,h),isRangeSplitStart:y&&t.isEqual(c,f),isToday:t.isEqual(c,g),title:t.cellTitle(c),value:c}}))}))},e.prototype.isSelectedFromArray=function(e,t,n,r){var o=this,i=!1;return t.forEach((function(t){X(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=Object(p.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||Object(p.createDate)(t.getFullYear(),t.getMonth(),1)<=r,i=!n||r<=Object(p.createDate)(n.getFullYear(),n.getMonth(),1);return o&&i},e.prototype.isInSameView=function(e,t){return 0===Object(p.durationInYears)(e,t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=fe[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 Object(p.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(p.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),Object(p.durationInYears)(e,t)<n?Object(p.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)?Object(p.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(p.cloneDate)(n):e},e}(),ve=((A={})[k.month]=pe,A[k.year]=he,A[k.decade]=le,A[k.century]=ie,A),me=function(){function e(e){this.bottom=k.month,this.top=k.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 ve[""+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=k[k[e+t]];return void 0!==n?n:e}(e,t));r!==e&&this.onViewChanged({view:r},n)},e}(),ge=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(c.canUseDOM){var n,r=ne("div"),o=ne("ul"),i=ne("li"),a=ne("td"),s=ne("th"),l=ne("tr"),u=ne("tbody"),p=ne("thead"),d=ne("table"),f=function(){return r('\n <span class="k-calendar-title">March 2017</span>\n <span class="k-calendar-today">TODAY</span>\n ',"k-calendar-header")},h=function(e,t){return new Array(e).fill("1").map(t)},v=function(e){return r(e,"k-content k-scrollable")},m=function(){return c.canUseDOM?(n||(n=r([v([o([i("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null},g=function(e,t,n){var o,i=e.cells,m=e.rows;return function(){return c.canUseDOM?(o||(o=function(e,t,n){return r(n?[f(),d([p([l([s("MO")])])],"k-calendar-weekdays"),v([e,e])]:[f(),v([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),d([u([l([s("1")])].concat(h(e,(function(){return l(h(t,(function(e){return a('<span class="k-link">'+e+"</span>")})))}))))])}(m,i),t,n)),o):null}},b=function(e){return e.querySelector(".k-scrollable")},y=function(e){var t=b(e);return t.className=t.className+" k-scrollable-horizontal",e},O=g({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),k=g({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),w=g({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(O(),(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(y(O()),(function(e){var n=E(e);t.calendarWidth=x(e),t.monthViewWidth=x(n),t.scrollableContentWidth=x(b(e))})),this.batch(k(),(function(e){t.yearViewHeight=C(E(e)),t.scrollableYearContentHeight=C(b(e))})),this.batch(y(k()),(function(e){t.yearViewWidth=x(E(e))})),this.batch(w(),(function(e){t.decadeViewHeight=C(E(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(y(w()),(function(e){t.decadeViewWidth=x(E(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(m(),(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 k.month:return this["month"+n];case k.year:return this["year"+n];case k.decade:return this["decade"+n];case k.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}(),be={33:O.PrevView,34:O.NextView,35:O.LastInView,36:O.FirstInView,37:O.Left,38:O.Up,39:O.Right,40:O.Down,"meta+38":O.UpperView,"meta+40":O.LowerView},ye=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return be[t]},e.prototype.move=function(e,t,n,r,o){return r?t===O.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,o),e):t===O.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,o),e):r.move(e,t):e},e}(),Oe=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}(),ke=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ee(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e}(),we=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)}}(),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){return l.createElement("td",{key:e,className:"k-calendar-td"}," ")},Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildWeekNumber=function(e,n){if(!t.firstDate(e))return xe("week-cell-"+n);var r=t.firstDate(e),o=t.getWeekNumber(r),i="kendo-react-calendar-week-cell-"+o,a={className:"k-alt",value:o,firstDate:r};return t.props.weekCell?l.createElement(t.props.weekCell,Ce({},a,{key:i}),o):l.createElement(F,Ce({},a,{key:i}),o)},t.buildRow=function(e){return e.map((function(e,n){if(!e)return xe(n);var r={"aria-selected":e.isSelected},o="kendo-react-calendar-cell-"+e.value.getTime(),i=Ce({},r,e,{isDisabled:!e.isInRange,view:t.props.activeView,onClick:t.handleClick,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave});return t.props.cell?l.createElement(t.props.cell,Ce({},i,{key:o}),e.formattedValue):l.createElement(P,Ce({},i,{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:Object(p.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,Object(p.cloneDate)(e))},t.handleMouseLeave=function(e){var n=t.props.onCellLeave;n&&n.call(void 0,Object(p.cloneDate)(e))},t}return we(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===k.month},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekNumber",{get:function(){return Boolean(this.props.showWeekNumbers&&this.props.activeView===k.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=Object(d.provideIntlService)(this),this.weekService=new ke(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=G(),i=Y(this.props.viewDate,o),a=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 l.createElement(l.Fragment,null,this.isMonthView&&this.isHorizontal&&l.createElement("thead",{role:"rowgroup",className:"k-calendar-thead"},l.createElement("tr",{role:"row",className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))),l.createElement("tbody",{role:"rowgroup",className:"k-calendar-tbody"},!this.isHorizontal&&l.createElement("tr",{role:"presentation",className:"k-calendar-tr"},l.createElement("th",{scope:"col",colSpan:n,className:"k-calendar-th"},r)),a.map((function(t,n){return l.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?Object(p.weekInYear)(e,this.intl.firstDay()):null},t.propTypes={activeRangeEnd:u.oneOf(["start","end",null]),activeView:u.number.isRequired,cellUID:u.string.isRequired,direction:u.oneOf(["horizontal","vertical"]),focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,selectedDate:u.oneOfType([u.instanceOf(Date),u.arrayOf(u.instanceOf(Date))]),showWeekNumbers:u.bool,viewDate:u.instanceOf(Date).isRequired},t.defaultProps={direction:"vertical",selectedDate:G(),showWeekNumbers:!1},t}(l.Component);Object(d.registerForIntl)(Ee);var De,Ie=n(5),_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)}}(),Pe=function(){return(Pe=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},je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.render=function(){var e=this.props,t=(e.view,Se(e,["view"]));return l.createElement(Ie.Button,Pe({type:"button",look:"flat"},t),this.props.children)},t}(l.PureComponent),Ne=new Date(1980,0,1),Fe=new Date(1900,0,1),Me=new Date(2099,11,31),Te=new Date(1980,0,1),Re=new Date(1980,0,1,23,59,59),Le=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)}}(),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)},Be=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 Le(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=Object(c.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?l.createElement(this.props.headerTitle,Ve({},n),e):l.createElement(je,Ve({},n),e);return l.createElement("div",{className:"k-calendar-header k-hstack"},r,l.createElement("span",{className:"k-spacer"}),l.createElement("span",{className:"k-calendar-nav k-hstack"},this.props.commands))},t.propTypes={activeView:u.number.isRequired,currentDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,rangeLength:u.number},t.defaultProps={rangeLength:1,min:Fe,max:Me},t}(l.Component);Object(d.registerForLocalization)(Be);var Ae="multiviewcalendar.prevView",Ke="multiviewcalendar.nextView",qe="dateinput.increment",He="dateinput.decrement",ze="daterangepicker.swapStartEnd",Ue="daterangepicker.separator",We="datetimepicker.toggleDateTimeSelector",Ye="timepicker.selectNow",Ge="timepicker.toggleClock",Xe=((De={})["calendar.today"]="TODAY",De["timepicker.now"]="NOW",De["timepicker.set"]="Set",De["timepicker.cancel"]="Cancel",De["datetimepicker.date"]="Date",De["datetimepicker.time"]="Time",De["datetimepicker.cancel"]="Cancel",De["datetimepicker.set"]="Set",De["daterangepicker.start"]="Start",De["daterangepicker.end"]="End",De[Ue]=" ",De[Ye]="Select Now",De["timepicker.toggleTimeSelector"]="Toggle TimeSelector",De[Ge]="Toggle Clock",De[qe]="Increase value",De[He]="Decrease value",De["datepicker.toggleCalendar"]="Toggle calendar",De[Ae]="Navigate to previous view",De[Ke]="Navigate to next view",De[ze]="Swap start and end values",De[We]="Toggle date-time selector",De),Ze=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)}}(),$e=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:te(G(),t.min,t.max),target:t,isTodayClick:!0})},t}return Ze(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 X(G(),Object(p.getDate)(this.min),Object(p.getDate)(this.max))},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.localization=Object(d.provideLocalizationService)(this);var e=this.localization.toLanguageString("calendar.today",Xe["calendar.today"]),t=Object(c.classNames)("k-nav-today",{"k-state-disabled":this.props.disabled});return l.createElement("span",{className:t,onClick:this.handleClick},e)},t.propTypes={max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onClick:u.func,disabled:u.bool},t.defaultProps={min:Fe,max:Me},t}(l.Component);Object(d.registerForLocalization)($e);var Je=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)}}(),Qe=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=te(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 l.createElement("table",{key:"calendar-view-list-weekdays",className:"k-calendar-table k-calendar-weekdays"},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),l.createElement("thead",{className:"k-calendar-thead"},l.createElement("tr",{className:"k-calendar-tr"},t.map((function(e,t){return l.createElement("th",{key:t,className:"k-calendar-th"},e)})))))},n.buildDates=function(e,t){var r=n.props.cellUID;return l.createElement("table",{className:"k-calendar-table",ref:function(e){return n.table=e}},l.createElement("colgroup",null,e.map((function(e,t){return l.createElement("col",{key:t})}))),t.map((function(e){return l.createElement(Ee,{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===k.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:Object(p.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 Je(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=Object(d.provideIntlService)(this);var e=ee(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===k.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 X(G(),Object(p.getDate)(this.props.min),Object(p.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=te(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),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.addToDate(this.props.min,this.state.index),u=new Array(this.props.service.rowLength(this.weekNumber)).fill(""),d=this.props.activeView!==this.lastView;this.animateToIndex=!d,(d||!Object(p.isEqualDate)(this.lastFocus,n)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(n,this.props.min)),this.lastFocus=n;var f=Object(c.classNames)("k-calendar-view k-vstack",{"k-calendar-monthview":this.props.activeView===k.month,"k-calendar-yearview":this.props.activeView===k.year,"k-calendar-decadeview":this.props.activeView===k.decade,"k-calendar-centuryview":this.props.activeView===k.century}),h=this.buildDates(u,this.props.service.datesList(a,i)),v=l.createElement(l.Fragment,null,l.createElement(Be,{key:"calendar-view-list-header",currentDate:s,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement($e,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}))}),this.props.activeView===k.month&&this.buildMonthView(u,this.weekNames),l.createElement(E,{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:h}));return l.createElement("div",{ref:function(t){e._element=t},className:f},this.props.dom.didCalculate?v:null)},t.propTypes={activeView:u.number.isRequired,bottomOffset:u.number,cellUID:u.string.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,showWeekNumbers:u.bool,smoothScroll:u.bool,take:u.number,value:u.instanceOf(Date),viewHeight:u.number,viewOffset:u.number},t.defaultProps={take:5,showWeekNumbers:!1,smoothScroll:!0},t}(l.Component);Object(d.registerForIntl)(Qe);var et=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)}}(),tt=function(){return(tt=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)},nt=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},rt=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 et(t,e),t.prototype.render=function(){var e=this.props,t=e.isRangeStart,n=(e.value,e.text,nt(e,["isRangeStart","value","text"]));return l.createElement("li",tt({},n,{onClick:this.handleClick}),l.createElement("span",{className:Object(c.classNames)({"k-calendar-navigation-marker":t})},this.props.children))},t}(l.Component),ot=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)}}(),it=function(){return(it=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)},at=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=te(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(),i={text:t,value:e,isRangeStart:r,view:n.props.activeView,onClick:n.handleDateChange};return n.props.navigationItem?l.createElement(n.props.navigationItem,it({},i,{key:o}),t):l.createElement(rt,it({},i,{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:Object(p.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 ot(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=te(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),a=this.props.service.addToDate(this.props.min,r),s=this.props.service.datesList(a,i);this.props.activeView===this.lastView&&Object(p.isEqual)(n,this.lastFocus)||(this.indexToScroll=this.props.service.skip(n,this.props.min));var u=l.createElement(E,{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},l.createElement("ul",{ref:function(t){e.list=t},className:"k-reset"},s.map((function(t){return e.buildNavigationItem(t)}))));return l.createElement("div",{className:"k-calendar-navigation"},l.createElement("span",{className:"k-calendar-navigation-highlight"}),this.props.dom.didCalculate?u:null)},t.prototype.getTake=function(e,t){return Math.min(t-e,this.take)},t.propTypes={activeView:u.number.isRequired,focusedDate:u.instanceOf(Date).isRequired,max:u.instanceOf(Date).isRequired,min:u.instanceOf(Date).isRequired,onChange:u.func,take:u.number},t.defaultProps={take:30},t}(l.Component),st=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)}}(),lt=function(){return(lt=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)},ut=function(e){return e?e.virtualization:null},ct=function(e,t,n,r){return void 0===e&&(e=pt.defaultProps.min),void 0===t&&(t=pt.defaultProps.max),void 0!==r?null!==r&&X(Object(p.getDate)(r),e,t)?r:null:null!==n&&X(Object(p.getDate)(n),e,t)?n:null},pt=function(e){function t(n){var r=e.call(this,n)||this;r.cellUID=Object(c.guid)(),r.id=Object(c.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(ut(r.Navigation),ut(r.calendarViewList),e)},r.handleNavigationChange=function(e){if(!r.props.disabled){r.didNavigationChange=!0;var t=Object(p.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=Object(p.cloneDate)(e.value),n=Object(p.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===c.Keys.enter){if(null!==r.value&&Object(p.isEqualDate)(r.focusedDate,r.value)){var t=te(r.focusedDate,r.min,r.max);ut(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=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(p.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})},Object(c.validatePackage)(f);var o=ct(r.min,r.max,r.props.defaultValue||t.defaultProps.defaultValue,r.props.value);return r.state={value:o,activeView:K(k[n.defaultActiveView],r.bottomView,r.topView),focusedDate:te(n.focusedDate||o||G(),r.min,r.max)},r.dom=new ge,r.bus=new me(r.handleViewChange),r.navigation=new ye(r.bus),r.oldValue=o,r}return st(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 Object(p.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(p.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return k[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return k[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 Oe(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?!Object(p.isEqualDate)(this.value,this.oldValue):this.value!==this.oldValue,r=K(this.state.activeView,k[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView],k[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]),o=ct(this.min,this.max,this.value,this.value),i=o?Object(p.getDate)(o):null;this.focusedDate=Object(p.getDate)(te(n&&null!==o?o:this.state.focusedDate,this.min,this.max)),this.intl=Object(d.provideIntlService)(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(r,this.intl);var a=Object(c.classNames)("k-widget k-calendar k-calendar-infinite",{"k-state-disabled":this.props.disabled,"k-week-number":this.props.weekNumber},this.props.className),s={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},u=[this.props.navigation&&l.createElement(at,{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}),l.createElement(Qe,{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:i,cellUID:this.cellUID,headerTitle:this.props.headerTitle})];return l.createElement("div",lt({},s,{ref:function(t){e._element=t},className:a,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}),u)},t.displayName="Calendar",t.propTypes={className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),navigation:u.bool,smoothScroll:u.bool,onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,value:u.instanceOf(Date),weekNumber:u.bool,topView:function(e,t,n){var r=e[t],o=e.bottomView;return r&&o&&k[r]<k[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&&k[r]>k[o]?new Error("Invalid prop + "+t+" suplied to "+n+".\n "+t+" can not be bigger than topView.\n "):null}},t.defaultProps={disabled:!1,min:Fe,max:Me,navigation:!0,defaultActiveView:"month",defaultValue:null,smoothScroll:!0,topView:"century",bottomView:"month"},t}(l.Component),dt=Object(c.createPropsContext)(),ft=Object(c.withPropsContext)(dt,pt);ft.displayName="KendoReactCalendar",Object(d.registerForIntl)(pt);var ht=function(){this.symbols=""},vt=function(e,t){return e[t.pattern[0]]=t.type,e},mt=["k-widget","k-dateinput"],gt=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=Object(p.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?Object(p.isEqual)(e,this._value)||(this._value=Object(p.cloneDate)(e),this.modifyExisting(!0)):(this._value=Object(p.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 Object(p.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=Object(p.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(p.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 r=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),i=o.symbols,a=!1,s="",l="",u="",c=0;c<r.length;c++)i[c]===e?(l+=this.getExisting(e)?r[c]:"0",a=!0):a?u+=r[c]:s+=r[c];for(var d=null,f=this.matchMonth(t);l.length>0&&"0"===l.charAt(0);)l=l.slice(1);l.length>=4&&(l="");for(c=0;c<2;c++){var h=l+t,v=parseInt(h,10);if(!(d=this.intl.parseDate(s+h+u,this.format))&&!isNaN(v)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var m=v-1;m>-1&&m<12&&((d=Object(p.cloneDate)(this.value)).setMonth(m),d.getMonth()!==m&&(d=Object(p.lastDayOfMonth)(Object(p.addMonths)(d,-1))))}"y"===e&&(d=Object(p.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=Object(p.lastDayOfMonth)(Object(p.addMonths)(d,-1))))}if(d)return this._value=d,this.setExisting(e,!0),{value:this.value};l=""}return f&&(d=this.intl.parseDate(s+f+u,this.format))?(this._value=d,this.setExisting(e,!0),{value:this.value}):("0"===t&&(this.leadingZero=this.isAbbrMonth(o.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(vt,{})[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=[],o=[],i=0;i<n.length;i++)for(var a=this.intl.formatDate(e,{pattern:n[i].pattern}).length;a>0;)r.push(this.symbols[n[i].pattern[0]]||"_"),o.push(n[i]),a--;var s=new ht;return s.symbols=r.join(""),s.partMap=o,s},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}(),bt=n(6),yt="dayperiod",Ot="hour",kt="minute",wt="second",Ct=function(e){return function(t,n){var r=Object(p.cloneDate)(t);return r[e](n),r}},xt=[{type:Ot,getter:function(e){return e.getHours()}},{type:kt,getter:function(e){return e.getMinutes()}},{type:wt,getter:function(e){return e.getSeconds()}},{type:"millisecond",getter:function(e){return e.getMilliseconds()}}],Et=function(e){return function(t){return e.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}),{})}(t)))}}(xt),Dt=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}))}}(xt),It=function(e){return function(t){var n=Object(p.cloneDate)(t);return n.setHours.apply(n,e.map((function(e){return e(n)}))),n}},_t=Ct("setHours"),Pt=Ct("setMinutes"),St=Ct("setSeconds"),jt=function(){return new Date},Nt=function(e,t,n){void 0===n&&(n=1);for(var r=[],o=e;o<t;o+=n)r.push(o);return r},Ft=function(e,t,n){return{candidateValue:Y(q,e),maxValue:Object(p.addDays)(Y(q,n),t.getHours()<n.getHours()?0:1),minValue:Y(q,t)}},Mt=function(e,t,n){if(!e||!t||!n)return!0;var r=Ft(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a},Tt=function(e,t){if(null===e||null===t)return!1;var n=Y(q,e),r=Y(q,t);return n.getTime()<r.getHours()},Rt=function(e,t){if(null===e||null===t)return!1;var n=Y(q,e);return Y(q,t).getTime()<n.getHours()},Lt=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)}}(),Vt=function(){return(Vt=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)},Bt=function(e){function t(n){var r=e.call(this,n)||this;return r.kendoDate=null,r.paste=!1,r._element=null,r._wrapper=null,r._inputId=Object(c.guid)(),r.focus=function(){r._element&&r._element.focus()},r.setValidity=function(){r.element&&r.element.setCustomValidity&&r.element.setCustomValidity(r.validity.valid?"":r.props.validationMessage||t.defaultProps.validationMessage)},r.updateOnPaste=function(e){if(r.element&&r.kendoDate){var t=Object(d.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=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]]]}(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})},Object(c.validatePackage)(f),r.state={focused:!1},r}return Lt(t,e),t.prototype.componentDidMount=function(){this.setValidity(),this.wrapper&&this.wrapper.addEventListener("wheel",this.nativeWheel,{passive:!1})},t.prototype.componentDidUpdate=function(e,t){this._lastSelectedSymbol&&t.focused===this.state.focused?this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol)):this.selection.start===this.selection.end&&this.setSelection({start:0,end:this.currentFormat.length}),this.setValidity()},t.prototype.componentWillUnmount=function(){this.wrapper&&this.wrapper.removeEventListener("wheel",this.nativeWheel)},t.prototype.render=function(){var e=this;this.props._ref&&(this.props._ref.current=this);var n=Object(d.provideLocalizationService)(this),r=Vt({},t.defaultProps,this.props),o=r.min,i=r.max,a=r.name,s=r.label,u=r.id,p=this.text,f=p===this.props.placeholder?"":p,h=p===this.props.placeholder?p:void 0,v=u||this._inputId,m=!this.validityStyles||this.validity.valid,g={"aria-valuemin":null===o?void 0:o.getTime(),"aria-valuemax":null===i?void 0:i.getTime(),"aria-valuetext":f};null!==this.value&&(g["aria-valuenow"]=this.value.getTime());var b=mt.slice();this.props.className&&b.push(this.props.className);var y=l.createElement(c.AsyncFocusBlur,{onFocus:this.elementOnFocus,onBlur:this.elementOnBlur},(function(t){var r=t.onFocus,o=t.onBlur;return l.createElement("span",{style:s?void 0:{width:e.props.width},dir:e.props.dir,className:b.join(" "),onFocus:r,onBlur:o},l.createElement("span",{className:Object(c.classNames)("k-dateinput-wrap",{"k-state-disabled":e.props.disabled,"k-state-invalid":!m}),ref:function(t){e._wrapper=t}},l.createElement("input",Vt({role:"spinbutton",tabIndex:e.props.tabIndex,disabled:e.props.disabled,title:void 0!==e.props.title?e.props.title:p,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",className:"k-input",id:v,"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:c.noop,value:f,placeholder:h,name:a},g,{ref:function(t){return e._element=t}})),e.props.children,e.props.spinners&&l.createElement("span",{className:"k-select",onMouseDown:e.spinnersMouseDown},l.createElement("span",{className:"k-link k-link-increase","aria-label":n.toLanguageString(qe,Xe[qe]),title:n.toLanguageString(qe,Xe[qe]),onClick:e.increasePart},l.createElement("span",{className:"k-icon k-i-arrow-n"})),l.createElement("span",{className:"k-link k-link-decrease","aria-label":n.toLanguageString(He,Xe[He]),title:n.toLanguageString(He,Xe[He]),onClick:e.decreasePart},l.createElement("span",{className:"k-icon k-i-arrow-s"})))))}));return s?l.createElement(bt.a,{label:s,editorId:v,editorValue:p,editorValid:m,editorDisabled:this.props.disabled,children:y,style:{width:this.props.width}}):y},Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:this.kendoDate&&this.kendoDate.getDateObject()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return void 0!==this.props.min?this.props.min:t.defaultProps.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return void 0!==this.props.max?this.props.max:t.defaultProps.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var e=Vt({},Kt.defaultProps,this.props),n=e.formatPlaceholder,r=void 0===n?t.defaultProps.formatPlaceholder:n,o=e.format,i=void 0===o?t.defaultProps.format:o,a=e.value,s=e.defaultValue;null===this.kendoDate?(this.kendoDate=new gt(this.intl.bind(this),r,i),this.kendoDate.setValue(a||s||null)):(this.kendoDate.format=i,this.kendoDate.formatPlaceholder=r),void 0!==a&&this.value!==a&&this.kendoDate.setValue(a);var l=this.kendoDate.getTextAndFormat(),u=l.text,c=l.format;return this.currentFormat=c,null===e.placeholder||void 0===e.placeholder||this.state.focused||this.kendoDate.hasValue()?u:e.placeholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e,t,n,r=(e=this.value,t=this.min,n=this.max,(null===e||!(t&&t>e||n&&n<e))&&Mt(this.value,this.props.minTime,this.props.maxTime)),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:this.value&&this.max.getTime()<this.value.getTime()||!1,rangeUnderflow:this.value&&this.value.getTime()<this.min.getTime()||!1,valid:a,valueMissing:null===this.value}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!0,configurable:!0}),t.prototype.intl=function(){return Object(d.provideIntlService)(this)},Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!0,configurable:!0}),t.prototype.setSelection=function(e){var t=this;this._lastSelectedSymbol=this.currentFormat[e.start],window.requestAnimationFrame((function(){t.element&&document.activeElement===t.element&&t.element.setSelectionRange(e.start,e.end)}))},t.prototype.triggerChange=function(e,t){this.valueDuringOnChange=this.value,this.forceUpdate(),this.props.onChange&&!Object(p.isEqual)(t,this.value)&&this.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.value,target:this}),this.valueDuringOnChange=void 0},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&"_"!==this.currentFormat[n]){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&"_"!==this.currentFormat[r]){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection,n=t.start,r=t.end;if(n<r&&this.currentFormat[n]!==this.currentFormat[r-1])this.setSelection(this.selectionByIndex(e>0?n:r-1));else{for(var o=this.currentFormat[n],i=n+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===o||"_"===this.currentFormat[i]);)i+=e;if("_"!==this.currentFormat[i]){for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;i>a&&(a+1!==n||i+1!==r)?this.setSelection({start:a+1,end:i+1}):i<a&&(i!==n||a!==r)&&this.setSelection({start:i,end:a})}}},t.prototype.modifyDateSegmentValue=function(e,t){if(this.kendoDate){var n=this.value,r=this.currentFormat[this.selection.start],o=this.kendoDate.symbolMap(r),i=((this.props.steps||{})[o]||1)*e;this.kendoDate.modifyPart(r,i),this.triggerChange(t,n)}},t.displayName="DateInput",t.propTypes={value:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),width:u.oneOfType([u.string,u.number]),tabIndex:u.number,title:u.string,steps:u.shape({year:u.number,month:u.number,day:u.number,hour:u.number,minute:u.number,second:u.number}),min:u.instanceOf(Date),max:u.instanceOf(Date),disabled:u.bool,spinners:u.bool,name:u.string,dir:u.string,label:u.string,id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,ariaExpanded:u.oneOfType([u.bool]),onChange:u.func,validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={format:"d",formatPlaceholder:"wide",spinners:!1,disabled:!1,max:Object(p.cloneDate)(z),min:Object(p.cloneDate)(H),minTime:Object(p.cloneDate)(Te),maxTime:Object(p.cloneDate)(Re),required:!1,validityStyles:!0,validationMessage:"Please enter a valid value!",placeholder:null},t}(l.Component),At=Object(c.createPropsContext)(),Kt=Object(c.withPropsContext)(At,Bt);Kt.displayName="KendoReactDateInput",Object(d.registerForIntl)(Bt),Object(d.registerForLocalization)(Bt);var qt=n(7),Ht=l.forwardRef((function(e,t){var n=Object(c.classNames)("k-select",e.className);return l.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)})),zt=l.forwardRef((function(e,t){var n=e._ref,r=l.useRef(null);l.useImperativeHandle(t,(function(){return r.current})),l.useImperativeHandle(n,(function(){return r.current}));var o=l.useMemo((function(){return Object(c.classNames)(e.className,"k-picker-wrap")}),[e.className]);return l.createElement("span",{ref:r,id:e.id,style:e.style,className:o,tabIndex:e.tabIndex},e.children)})),Ut=function(){return(Ut=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)},Wt=function(e){var t,n,r,o,i=(t=e.dateInput,n=l.useState(!1),r=n[0],o=n[1],l.useEffect((function(){t.current&&o(Boolean(t.current.text))})),{editorValue:r});return l.createElement(bt.a,Ut({},e,i))},Yt=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)}}(),Gt=function(){return(Gt=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)},Xt=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},Zt=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.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:Object(p.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===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))},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return Yt(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?Object(p.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=Z(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,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,f=t.max,h=t.weekNumber,v=t.focusedDate,m=t.className,g=t.width,b=t.name,y=t.validationMessage,O=t.required,k=t.validityStyles,w=t.ariaLabelledBy,C=t.ariaDescribedBy,x=this.props.popupSettings,E=x.popupClass,D=Xt(x,["popupClass"]),I=this.show,_=this.value,P=_&&Object(p.getDate)(_),S=!this.validityStyles||this.validity.valid,j=Object(c.classNames)("k-widget k-datepicker",m),N=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!S,"k-state-disabled":n,"k-state-focused":this.state.focused}),F=Object(c.classNames)("k-calendar-container k-group k-reset",E),M={disabled:n,format:a,formatPlaceholder:s,id:i,ariaLabelledBy:w,ariaDescribedBy:C,max:f,min:u,name:b,onChange:this.handleInputValueChange,required:O,tabIndex:I?-1:r,title:o,valid:this.validity.valid,validationMessage:y,validityStyles:k,value:_,label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},T=Gt({show:I,anchor:this._wrapper||this._element,className:F,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},D),R={disabled:n,value:P,min:u,max:f,weekNumber:h,focusedDate:v,onChange:this.handleCalendarValueChange},L=l.createElement(c.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 l.createElement("span",{role:"group","aria-expanded":e.show,ref:function(t){e._element=t},className:j,onKeyDown:e.handleKeyDown,style:{width:g},onFocus:n,onBlur:r},l.createElement(e.pickerWrapComp,{_ref:function(t){e._wrapper=t},className:N},l.createElement(e.dateInputComp,Gt({_ref:e._dateInput},M)),l.createElement(e.toggleButtonComp,{onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:Object(d.provideLocalizationService)(e).toLanguageString("datepicker.toggleCalendar",Xe["datepicker.toggleCalendar"]),className:"k-select"},l.createElement("span",{className:"k-icon k-i-calendar"}))),l.createElement(e.popupComp,Gt({},T),l.createElement(e.calendarComp,Gt({_ref:e.setCalendarRef},R))))}));return this.props.label?l.createElement(Wt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:S,editorDisabled:this.props.disabled,children:L,style:{width:this.props.width}}):L},t.prototype.setShow=function(e){this.show!==e&&this.setState({show:e})},t.prototype.mergeTime=function(e){return this.value&&e?Y(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:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,dateInput:Kt,calendar:ft,toggleButton:Ht,popup:qt.Popup,pickerWrap:zt,disabled:!1,format:"d",max:z,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0},t}(l.Component),$t=Object(c.createPropsContext)(),Jt=Object(c.withPropsContext)($t,Zt);Jt.displayName="KendoReactDatePicker",Object(d.registerForLocalization)(Zt);var Qt,en,tn,nn=function(e,t){var n=Object(p.cloneDate)(e);return n.setHours(t),n},rn=function(e){return null!==e&&e<12},on=function(e,t,n){return!t&&!n||e>=t&&e<=n},an=function(e,t,n){return!t&&!n||e>=t||e<=n},sn=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),r=rn(n),o=rn(t.getHours());if(r&&o||!r&&!o)return e;var i=this.normalizedRange(),a=i[0],s=i[1],l=void 0===s?24:s,u=n+(o?-12:12);return nn(e,Math.min(Math.max(a,u),l||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=[],o=this.normalizedRange(),i=o[0],a=o[1],s=this.intl.dateFormatNames(t);return rn(i)&&r.push({text:s.am,value:nn(this.min,i)}),null!==(n=a)&&(!n||n>11)&&r.push({text:s.pm,value:nn(this.min,Math.max(12,a))}),this.min.getHours()!==i?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]?an:on)(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}(),ln=function(){function e(){this.didCalculate=!1}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(c.canUseDOM){var t=ne("div"),n=ne("ul"),r=ne("li"),o=t([t([t([n([r("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),i=e&&e.querySelector(".k-time-container")||document.body,a=i.appendChild(o);this.timeListHeight=a.querySelector(".k-scrollable").offsetHeight,this.itemHeight=a.querySelector("li").offsetHeight,i.removeChild(a),this.didCalculate=!0}},e}(),un=(Qt=24,function(e){return e%Qt}),cn=function(e,t){return un(24+e-t)},pn=function(e){return function(t,n){return!n||Object(p.getDate)(t).getTime()===Object(p.getDate)(n).getTime()?t:_t(t,e)}},dn=pn(0),fn=pn(23),hn=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return _t(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,r=void 0===n?this.boundRange:n,o=e.insertUndividedMax,i=void 0===o?this.insertUndividedMax:o,a=e.min,s=void 0===a?this.min:a,l=e.max,u=void 0===l?this.max:l,c=e.part,p=e.step,d=void 0===p?this.step:p;this.boundRange=r,this.insertUndividedMax=i,this.toListItem=function(e){var n=_t(q,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 un(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(p.isEqual)(this.min,e)||!Object(p.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[dn(e,n),fn(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(cn(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(_t(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return cn(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}(),vn=function(e){return function(t){return t%e}}(60),mn=function(e,t){return vn(60+e-t)},gn=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:Pt(t,e)}},bn=gn(0),yn=gn(59),On=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return Pt(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=Pt(q,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return vn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(p.isEqual)(this.min,e)||!Object(p.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[bn(e,n),yn(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(mn(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(Pt(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return mn(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}(),kn=function(e){return function(t){return t%e}}(60),wn=function(e,t){return kn(60+e-t)},Cn=function(e){return function(t,n){return!n||t.getMinutes()===n.getMinutes()&&t.getHours()===n.getHours()?t:St(t,e)}},xn=Cn(0),En=Cn(59),Dn=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return St(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,r=void 0===n?this.insertUndividedMax:n,o=e.min,i=void 0===o?this.min:o,a=e.max,s=void 0===a?this.max:a,l=e.part,u=e.step,c=void 0===u?this.step:u;this.insertUndividedMax=r,this.toListItem=function(e){var n=St(q,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=i,this.max=s,this.step=c},e.prototype.data=function(e){var t,n,r=this,o=this.range(e)[0],i=(t=o,n=this.step,function(e){return kn(t+e*n)}),a=Nt(0,this.countFromMin(e)).map((function(e){return r.toListItem(i(e))}));return this.addLast(a),e&&this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!Object(p.isEqual)(this.min,e)||!Object(p.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[xn(e,n),En(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 wn(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(wn(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(St(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}(),In=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=((en={})[c.Keys.end]=function(e,t){return e[e.length-1]},en[c.Keys.home]=function(e,t){return e[0]},en[c.Keys.up]=function(e,t){return e[t-1]},en[c.Keys.down]=function(e,t){return e[t+1]},en),Pn=((tn={})[yt]=sn,tn[Ot]=hn,tn[kt]=On,tn[wt]=Dn,tn),Sn=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:Object(p.cloneDate)(r.min),max:Object(p.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=(_n[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 ln,r}return In(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&&Pn[this.props.part.type]){this.calculateHeights(),this.intl=Object(d.provideIntlService)(this),this.service=new Pn[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=l.createElement("ul",{style:{transform:n,msTransform:n},className:"k-reset"},t.map((function(t,n){return l.createElement("li",{key:n,className:"k-item",onClick:function(){e.handleChange(t)}},l.createElement("span",null,t.text))})));return l.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?l.createElement(E,{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}):l.createElement("div",{className:"k-time-container"},o))}},t.propTypes={id:u.number,max:u.instanceOf(Date),min:u.instanceOf(Date),part:function(e,t,n){var r=e[t];if(!r||!Pn[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:u.instanceOf(Date),smoothScroll:u.bool,show:u.bool},t.defaultProps={boundRange:!1,max:W,min:q,step:1,smoothScroll:!0},t}(l.Component);Object(d.registerForIntl)(Sn);var jn,Nn=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)}}(),Fn=function(){return(Fn=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)},Mn=new RegExp(Ot+"|"+kt+"|"+wt+"|"+yt+"|literal");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(jn||(jn={}));var Tn=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?Mn.test(r.type||""):Mn.test(e.type||"")},r.focusList=function(e){r.timeLists.length&&r.timeLists.reduce(r.listReducer,[]).map((function(t){return e===jn.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&&Mt(jt(),r.min,r.max)},r.handleKeyDown=function(e){switch(e.keyCode){case c.Keys.left:return e.preventDefault(),void r.focusList(jn.Left);case c.Keys.right:return e.preventDefault(),void r.focusList(jn.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=It(Dt(r.props.steps,r.props.min||t.defaultProps.min)),r.state={activeListIndex:-1},r.hasActiveButton=r.hasActiveButton.bind(r),r}return Nn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return function(e,t,n){if(!e||!t||!n)return e;var r=Ft(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return o<i?Y(e,t):o>a?Y(e,n):e}(this.snapTime(Object(p.cloneDate)(this.props.value||q)),this.min,this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(d.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,i=n.onNowClick,a=n.className,s=n.disabled;this.snapTime=It(Dt(this.steps,this.min)),this.dateFormatParts=this.intl.splitDateFormat(r||t.defaultProps.format).filter(this.timeFormatFilter);var u=Object(c.classNames)({"k-state-disabled":s},a,"k-time-part");this.timeLists=[];var p=Object(d.provideLocalizationService)(this),f=p.toLanguageString(Ye,Xe[Ye]);return l.createElement("div",{className:u},l.createElement("div",{className:"k-time-header"},l.createElement("span",{className:"k-title"},this.intl.formatDate(this.value,this.dateFormatParts.reduce(this.timeFormatReducer,""))),this.showNowButton()&&l.createElement(Ie.Button,Fn({type:"button",ref:function(t){e._nowButton=t},className:"k-time-now",look:"flat",primary:!0,title:f},{"aria-label":f},{onClick:i,tabIndex:s?-1:0}),p.toLanguageString("timepicker.now",Xe["timepicker.now"]))),l.createElement("div",{className:"k-time-list-container",onKeyDown:this.handleKeyDown},l.createElement("span",{className:"k-time-highlight"}),this.dateFormatParts.map((function(t,n){return"literal"!==t.type?l.createElement("div",{key:n,className:Object(c.classNames)("k-time-list-wrapper",{"k-state-focused":n===e.state.activeListIndex}),role:"presentation",tabIndex:-1},l.createElement("span",{className:"k-title",onMouseDown:function(e){e.preventDefault()}},e.intl.dateFieldName(t)),l.createElement(Sn,{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:s,show:e.props.show})):l.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:u.bool,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,nowButton:!0,cancelButton:!0,format:"hh:mm a",min:U,max:W,steps:{},boundRange:!1},t}(l.Component);Object(d.registerForIntl)(Tn),Object(d.registerForLocalization)(Tn);var Rn,Ln=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)}}(),Vn=function(){return(Vn=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){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Rn||(Rn={}));var Bn=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 c.Keys.enter:return void(r.hasActiveButton()||r.handleAccept(e));default:return}},r.handleAccept=function(e){var t=r.mergeValue(Object(p.cloneDate)(r.value||jt()),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(Object(p.cloneDate)(r.value||jt()),jt());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=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}}(Et(r.dateFormatParts)),r.hasActiveButton=r.hasActiveButton.bind(r),r.state={current:r.props.value||q,value:r.props.value||t.defaultProps.value},r}return Ln(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?Object(p.cloneDate)(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intl",{get:function(){return Object(d.provideIntlService)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return null!==this.state.current?Object(p.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,i=t.tabIndex,a=t.className,s=t.smoothScroll,u=t.min,p=t.max,f=t.boundRange,h=t.nowButton,v=t.steps,m=Object(d.provideLocalizationService)(this),g=m.toLanguageString("timepicker.cancel",Xe["timepicker.cancel"]),b=m.toLanguageString("timepicker.set",Xe["timepicker.set"]);return l.createElement("div",{ref:function(t){e._element=t},tabIndex:o?void 0:i||0,className:Object(c.classNames)("k-timeselector k-reset",a,{"k-state-disabled":o}),onKeyDown:this.handleKeyDown},l.createElement(Tn,{ref:function(t){e.timePart=t},value:this.current,onChange:this.handleChange,onNowClick:this.handleNowClick,format:n,smoothScroll:s,min:u,max:p,boundRange:f,disabled:o,nowButton:h,steps:v,show:this.props.show}),l.createElement("div",{className:"k-time-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(Ie.Button,Vn({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:g},{"aria-label":g}),g),l.createElement(Ie.Button,Vn({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",primary:!0,onClick:this.handleAccept,title:b},{"aria-label":b}),b)))},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:u.bool,className:u.string,disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),max:u.instanceOf(Date),min:u.instanceOf(Date),nowButton:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,value:u.instanceOf(Date),show:u.bool},t.defaultProps={value:null,disabled:!1,cancelButton:!0,format:"t",min:U,max:W,boundRange:!1},t}(l.Component);Object(d.registerForIntl)(Bn),Object(d.registerForLocalization)(Bn);var An=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)}}(),Kn=function(){return(Kn=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)},qn=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},Hn=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.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(Kn({},e,{value:t}))},r.handleValueChange=function(e){r.setState({value:Object(p.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===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))},Object(c.validatePackage)(f),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 An(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?Object(p.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=function(e,t,n){if(null===e)return!0;var r=Ft(e,t,n),o=r.candidateValue,i=r.minValue,a=r.maxValue;return i<=o&&o<=a}(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:Rt(e,n),rangeUnderflow:Tt(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,i=t.id,a=t.className,s=t.format,u=t.formatPlaceholder,p=t.smoothScroll,f=t.width,h=t.name,v=t.steps,m=t.cancelButton,g=t.nowButton,b=t.validationMessage,y=t.required,O=t.validityStyles,k=t.ariaLabelledBy,w=t.ariaDescribedBy,C=this.popupSettings,x=C.popupClass,E=qn(C,["popupClass"]),D=!this.validityStyles||this.validity.valid,I=Object(c.classNames)("k-widget k-timepicker",a),_=Object(c.classNames)("k-picker-wrap",{"k-state-invalid":!D,"k-state-disabled":n,"k-state-focused":this.state.focused}),P=Object(c.classNames)("k-group k-reset",x),S={disabled:n,format:s,formatPlaceholder:u,id:i,ariaLabelledBy:k,ariaDescribedBy:w,max:this.normalizeTime(this.max),min:this.normalizeTime(this.min),name:h,onChange:this.handleInputValueChange,required:y,steps:v,tabIndex:this.show?-1:r,title:o,valid:this.validity.valid,validationMessage:b,validityStyles:O,value:this.value&&this.normalizeTime(this.value),label:void 0,placeholder:this.state.focused?null:this.props.placeholder,ariaHasPopup:!0,ariaExpanded:this.show},j=Kn({show:this.show,animate:null!==this._wrapper,anchor:this._wrapper,className:P,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"}},E),N=l.createElement(Bn,{ref:this.setTimeSelectorRef,show:this.show,cancelButton:m,disabled:n,nowButton:g,format:s,min:this.min,max:this.max,steps:v,smoothScroll:p,value:this.value,onChange:this.handleValueChange,onReject:this.handleValueReject}),F=Object(d.provideLocalizationService)(this),M=F.toLanguageString(Ge,Xe[Ge]),T=F.toLanguageString("timepicker.toggleTimeSelector",Xe["timepicker.toggleTimeSelector"]),R=l.createElement(c.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 l.createElement("div",{ref:function(t){e._element=t},className:I,onKeyDown:e.handleKeyDown,style:{width:f},onFocus:n,onBlur:r},l.createElement("span",{ref:function(t){e._wrapper=t},className:_},l.createElement(e.dateInputComp,Kn({_ref:e._dateInput},S)),l.createElement("span",Kn({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleIconClick,title:T,className:"k-select"},{"aria-controls":e._popupId,"aria-label":M}),l.createElement("span",{className:"k-icon k-i-clock"}))),e.props.popup?l.createElement(e.props.popup,Kn({},j),N):l.createElement(qt.Popup,Kn({},j),N))}));return this.props.label?l.createElement(Wt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:D,editorDisabled:this.props.disabled,children:R,style:{width:this.props.width}}):R},t.prototype.normalizeTime=function(e){return Y(q,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(this.value,e):e},t.displayName="TimePicker",t.propTypes={className:u.string,cancelButton:u.bool,nowButton:u.bool,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,steps:u.shape({hour:u.number,minute:u.number,second:u.number}),smoothScroll:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"t",max:W,min:U,popupSettings:{},tabIndex:0,steps:{},required:!1,validityStyles:!0,dateInput:Kt},t}(l.Component),zn=Object(c.createPropsContext)(),Un=Object(c.withPropsContext)(zn,Hn);Un.displayName="KendoReactTimePicker",Object(d.registerForLocalization)(Hn);var Wn=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)}}(),Yn=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:Object(p.cloneDate)(e.value),target:n,isTodayClick:t};r.call(void 0,o)}},n}return Wn(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===k.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=Object(c.classNames)("k-calendar-view k-hstack k-align-items-start k-justify-content-center",{"k-calendar-monthview":this.props.activeView===k.month,"k-calendar-yearview":this.props.activeView===k.year,"k-calendar-decadeview":this.props.activeView===k.decade,"k-calendar-centuryview":this.props.activeView===k.century});return l.createElement("div",{ref:function(t){e._element=t},className:n},this.props.dates.map((function(n){return l.createElement("table",{className:"k-calendar-table k-calendar-content k-content",key:n.getTime()},l.createElement(Ee,{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:Fe,max:Me},t}(l.Component),Gn=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)}}(),Xn=function(){return(Xn=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)},Zn=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),n instanceof Date&&!Array.isArray(n)&&X(Object(p.getDate)(n),e,t)?Object(p.getDate)(n):null},$n=function(e,t,n){return void 0===e&&(e=er.defaultProps.min),void 0===t&&(t=er.defaultProps.max),Array.isArray(n)?n.filter((function(n){return X(n,e,t)})).map((function(e){return Object(p.getDate)(e)})):null},Jn=function(e){return"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?M:e},Qn=function(e,t,n){return e||t&&t[0]||n&&n.start},er=function(e){function t(n){var r=e.call(this,n)||this;r.selectedDate=null,r.selectedMultiple=null,r.selectedRange=M,r.cellUID=Object(c.guid)(),r.activeRangeEnd="start",r.wrapperID=Object(c.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 te(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(O.PrevView)},r.handleNextButtonClick=function(){r.navigate(O.NextView)},r.handleKeyDown=function(e){if(e.keyCode===c.Keys.enter){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:r.focusedDate,target:r};r.handleDateChange.call(void 0,t)}else{var n=te(r.navigation.move(r.focusedDate,r.navigation.action(e),r.state.activeView,r.service,e),r.min,r.max);if(Object(p.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=Object(p.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=Object(p.cloneDate)(e.value);break;case"multiple":if(Array.isArray(r.selectedMultiple)){var i=r.selectedMultiple.slice(),a=-1;i.forEach((function(t,n){Object(p.isEqualDate)(t,e.value)&&(a=n)})),-1!==a?i.splice(a,1):i.push(Object(p.cloneDate)(e.value)),o=i.slice()}else o=r.selectedDate?[Object(p.cloneDate)(r.selectedDate),Object(p.cloneDate)(e.value)]:[Object(p.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=Object(p.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=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=Zn(r.min,r.max,o),a=$n(r.min,r.max,o),s=Jn(o),l=Qn(i,a,s),u=K(k[n.defaultActiveView],r.bottomView,r.topView),d=te(n.focusedDate||l||G(),r.min,r.max);return r.state={value:o,activeView:u,focusedDate:d},r.activeRangeEnd=function(e,t){return null===e.start&&null===t?"start":null===e.end?"end":"start"}(s,i),r.bus=new me(r.handleViewChange),r.navigation=new ye(r.bus),r.calculateFocusFromValue=!1,r.lastView=u,r.lastViewsCount=r.props.views||Yn.defaultProps.views,r}return Gn(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 Object(p.cloneDate)(this._focusedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return Object(p.getDate)(void 0!==this.props.min?this.props.min:t.defaultProps.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return Object(p.getDate)(void 0!==this.props.max?this.props.max:t.defaultProps.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomView",{get:function(){return k[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topView",{get:function(){return k[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 X(G(),Object(p.getDate)(this.min),Object(p.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=Zn(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||Yn.defaultProps.views},t.prototype.render=function(){var e=this;this.props._ref&&this.props._ref(this),this.intl=Object(d.provideIntlService)(this),this.localization=Object(d.provideLocalizationService)(this),this.bus.configure(this.bottomView,this.topView);var t=K(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(t,this.intl),this.selectedDate=Zn(this.min,this.max,this.value),this.selectedMultiple=$n(this.min,this.max,this.value),this.selectedRange=Jn(this.value);var n=Qn(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=te(this.calculateFocusFromValue&&null!==n?n:this.state.focusedDate,this.min,this.max);var r=Object(c.classNames)("k-widget k-calendar k-calendar-range",{"k-state-disabled":this.props.disabled},this.props.className),o=this.rangeWithFocused(this.selectedRange,this.focusedDate),i={"aria-disabled":this.props.disabled,"aria-activedescendant":this.cellUID+this.focusedDate.getTime()},a=this.localization.toLanguageString(Ae,Xe[Ae]),s=this.localization.toLanguageString(Ke,Xe[Ke]),u=!this.canNavigate(O.PrevView),f=!this.canNavigate(O.NextView),h={"aria-disabled":u},v={"aria-disabled":f},m=this.lastView!==t,g=this.dates&&this.service.isInArray(this.focusedDate,this.dates),b=this.lastViewsCount!==this.props.views;(!g||m||b)&&(this.dates=this.service.datesList(this.focusedDate,this.props.views||Yn.defaultProps.views));var y=Object(p.cloneDate)(this.dates&&this.dates[0]?this.dates[0]:G());return l.createElement("div",Xn({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},i),l.createElement(Be,{key:".kendo.calendar.header."+y.getTime(),activeView:t,currentDate:y,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,commands:l.createElement(l.Fragment,null,l.createElement(Ie.Button,Xn({type:"button",className:"k-nav-prev",icon:"arrow-chevron-left",look:"flat",title:a,disabled:u,onClick:this.handlePrevButtonClick},h)),l.createElement($e,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),l.createElement(Ie.Button,Xn({type:"button",className:"k-nav-next",icon:"arrow-chevron-right",look:"flat",title:s,disabled:f,onClick:this.handleNextButtonClick},v)))}),l.createElement(Yn,{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:u.oneOf(["start","end"]),allowReverse:u.bool,bottomView:u.oneOf(["month","year","decade","century"]),className:u.string,defaultActiveView:u.oneOf(["month","year","decade","century"]),defaultValue:u.oneOfType([T(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:T(u.instanceOf(Date)),end:T(u.instanceOf(Date))})]),disabled:u.bool,focusedDate:u.instanceOf(Date),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),mode:u.oneOf(["single","multiple","range"]),onBlur:u.func,onChange:u.func,onFocus:u.func,tabIndex:u.number,topView:u.oneOf(["month","year","decade","century"]),value:u.oneOfType([T(u.instanceOf(Date)),u.arrayOf(u.instanceOf(Date)),u.shape({start:T(u.instanceOf(Date).isRequired),end:T(u.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:u.bool},t.defaultProps={disabled:!1,min:Fe,max:Me,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",tabIndex:0,bottomView:"month",views:2,allowReverse:!1},t}(l.Component),tr=Object(c.createPropsContext)(),nr=Object(c.withPropsContext)(tr,er);nr.displayName="KendoReactMultiViewCalendar",Object(d.registerForIntl)(er),Object(d.registerForLocalization)(er);var rr=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)}}(),or=function(){return(or=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)},ir={display:"inline-block"},ar=function(e){function t(n){var r=e.call(this,n)||this;return r._element=null,r._wrapper=null,r._calendar=null,r._startDateInput=l.createRef(),r._endDateInput=l.createRef(),r._popupId=Object(c.guid)(),r._startInputId=Object(c.guid)(),r._endInputId=Object(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)||M},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:Object(p.cloneDate)(e.value||void 0)};r.handleChange(t,e)},r.handleStartChange=function(e){var t={start:Object(p.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||M;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},Object(c.validatePackage)(f),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 rr(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)||M},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||M,n=(this.props.startDateInputSettings||{}).id||this._startInputId,r=(this.props.endDateInputSettings||{}).id||this._endInputId,o=Object(c.classNames)("k-daterangepicker",{"k-state-disabled":this.props.disabled},this.props.className),i=Object(d.provideLocalizationService)(this),a=i.toLanguageString("daterangepicker.start",Xe["daterangepicker.start"]),s=i.toLanguageString("daterangepicker.end",Xe["daterangepicker.end"]),u=i.toLanguageString(Ue,Xe[Ue]),p=or({label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.startDateInputSettings,{value:t.start,onChange:this.handleStartChange}),f=or({label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,ariaHasPopup:!0,ariaExpanded:this.show},this.props.endDateInputSettings,{value:t.end,onChange:this.handleEndChange}),h=or({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}),v=or({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}),m=this.props.calendar?l.createElement(this.props.calendar,or({},v)):l.createElement(nr,or({},v,{ref:this.setCalendarRef})),g=l.createElement(Ie.Button,or({className:"k-select",look:"flat",title:Object(d.provideLocalizationService)(this).toLanguageString(ze,Xe[ze]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick},{"aria-controls":n+" "+r,"aria-label":Object(d.provideLocalizationService)(this).toLanguageString(ze,Xe[ze])}),l.createElement("span",{style:{transform:"rotate(90deg)"},className:"k-icon k-i-arrows-swap"}));return l.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},l.createElement("span",{ref:function(t){e._wrapper=t},className:"k-daterangepicker-wrap",style:ir},this.props.startDateInput?l.createElement(this.props.startDateInput,or({},p)):l.createElement(Kt,or({},p,{ref:this._startDateInput})),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?g:u,this.props.endDateInput?l.createElement(this.props.endDateInput,or({},f)):l.createElement(Kt,or({},f,{ref:this._endDateInput}))),this.props.popup?l.createElement(this.props.popup,or({},h),m):l.createElement(qt.Popup,or({},h),m))},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:u.bool,calendarSettings:u.any,className:u.string,defaultShow:u.bool,defaultValue:u.shape({start:T(u.instanceOf(Date).isRequired),end:T(u.instanceOf(Date).isRequired)}),disabled:u.bool,endDateInputSettings:u.shape(Bt.propTypes),focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,max:u.instanceOf(Date),min:u.instanceOf(Date),onBlur:u.func,onChange:u.func,onFocus:u.func,popupSettings:u.any,show:u.bool,startDateInputSettings:u.any,style:u.any,swapButton:u.any,tabIndex:u.number,value:u.shape({start:T(u.instanceOf(Date).isRequired),end:T(u.instanceOf(Date).isRequired)})},t.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:M,disabled:!1,format:"d",max:Me,min:Fe,swapButton:!1},t}(l.Component),sr=Object(c.createPropsContext)(),lr=Object(c.withPropsContext)(sr,ar);lr.displayName="KendoReactDateRangePicker",Object(d.registerForLocalization)(ar);var ur=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)}}(),cr=function(){return(cr=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)},pr=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||Ne});var t=n.mergeDate(n.props.value,n.props.value||Ne);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:jt()}),n.handleAccept(e,jt())},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 c.Keys.enter:return void(!n.hasActiveButton()&&n.hasDateValue&&n.handleAccept(e));case c.Keys.left:if(!r)return;return void n.move("left");case c.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||Ne},n}return ur(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,i=t.max,a=t.weekNumber,s=t.focusedDate,u=t.format,p=Object(c.classNames)({"k-date-tab":"date"===this.state.tab,"k-time-tab":"time"===this.state.tab,"k-state-disabled":n},"k-datetime-wrap"),f=Object(d.provideLocalizationService)(this),h=f.toLanguageString("datetimepicker.date",Xe["datetimepicker.date"]),v=f.toLanguageString("datetimepicker.time",Xe["datetimepicker.time"]),m=f.toLanguageString("datetimepicker.cancel",Xe["datetimepicker.cancel"]),g=f.toLanguageString("datetimepicker.set",Xe["datetimepicker.set"]),b={min:o,max:i,weekNumber:a,focusedDate:s,disabled:n||"date"!==this.state.tab,value:this.state.dateValue,onChange:this.handleCalendarValueChange,navigation:!1};return l.createElement("div",{onKeyDown:this.handleKeyDown,className:p,tabIndex:-1},l.createElement("div",{className:"k-datetime-buttongroup"},l.createElement(Ie.ButtonGroup,{width:"100%"},l.createElement(Ie.Button,{type:"button",selected:"date"===this.state.tab,togglable:!0,onClick:this.handleDateClick},h),l.createElement(Ie.Button,{type:"button",selected:"time"===this.state.tab,togglable:!0,onClick:this.handleTimeClick},v))),l.createElement("div",{className:"k-datetime-selector"},l.createElement("div",{className:"k-datetime-calendar-wrap",ref:function(t){return e._calendarWrap=t}},this.props.calendar?l.createElement(this.props.calendar,cr({},b)):l.createElement(ft,cr({ref:function(t){e._calendar=t}},b))),l.createElement("div",{className:"k-datetime-time-wrap"},l.createElement(Tn,{key:1,onNowClick:this.handleNowClick,disabled:n||"time"!==this.state.tab,ref:function(t){e._timePart=t},min:this.minTime||U,max:this.maxTime||W,steps:this.props.steps,value:this.state.timeValue,format:u,onChange:this.handleTimeListContainerChange,onMount:this.handleTimePartMount}))),l.createElement("div",{className:"k-datetime-footer k-actions k-hstack k-justify-content-stretch"},r&&l.createElement(Ie.Button,cr({type:"button",ref:function(t){e._cancelButton=t},className:"k-time-cancel",onClick:this.handleReject,title:m},{"aria-label":m}),m),l.createElement(Ie.Button,cr({type:"button",ref:function(t){e._acceptButton=t},className:"k-time-accept",disabled:!this.hasDateValue,onClick:this.handleAccept,title:g},{"aria-label":g}),g)))},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 Object(p.isEqualDate)(e,t||G())?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?Y(t,e):t},t.prototype.mergeDate=function(e,t){return e?Y(e||G(),t):t},t}(l.Component);Object(d.registerForLocalization)(pr);var dr=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)}}(),fr=function(){return(fr=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)},hr=function(e){function t(n){var r=e.call(this,n)||this;return r._popupId=Object(c.guid)(),r._element=null,r._wrapper=null,r._dateInput=l.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:Object(p.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")},Object(c.validatePackage)(f),r.state={value:r.props.defaultValue||t.defaultProps.defaultValue,show:r.props.defaultShow||t.defaultProps.defaultShow,focused:!1},r}return dr(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?Object(p.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=Z(this.value,this.min,this.max)&&Mt(this.value,this.props.minTime||Te,this.props.maxTime||W),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,i=t.id,a=t.format,s=t.formatPlaceholder,u=t.min,p=t.max,f=t.weekNumber,h=t.focusedDate,v=t.className,m=t.width,g=t.name,b=t.validationMessage,y=t.required,O=t.validityStyles,k=t.cancelButton,w=t.minTime,C=t.maxTime,x=t.ariaLabelledBy,E=t.ariaDescribedBy,D=t.popup,I=void 0===D?qt.Popup:D,_=t.calendar,P=!this.validityStyles||this.validity.valid,S=Object(c.classNames)("k-widget k-datetimepicker",{"k-state-invalid":!P},v),j=Object(c.classNames)("k-picker-wrap",{"k-state-disabled":n,"k-state-focused":this.state.focused}),N={id:i,ariaLabelledBy:x,ariaDescribedBy:E,format:a,formatPlaceholder:s,disabled:n,title:o,validityStyles:O,validationMessage:b,required:y,min:u,max:p,minTime:w,maxTime:C,name:g,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=l.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 l.createElement("div",{ref:function(t){e._element=t},className:S,onKeyDown:e.handleKeyDown,style:{width:m},onFocus:r,onBlur:o},l.createElement("div",{ref:function(t){e._wrapper=t},className:j},l.createElement(e.dateInputComp,fr({_ref:e._dateInput},N)),l.createElement("span",fr({role:"button",onMouseDown:e.handleIconMouseDown,onClick:e.handleDateIconClick,title:Object(d.provideLocalizationService)(e).toLanguageString(We,Xe[We]),className:"k-select"},{"aria-controls":e._popupId,"aria-label":Object(d.provideLocalizationService)(e).toLanguageString(We,Xe[We])}),l.createElement("span",{className:"k-link k-link-date"},l.createElement("span",{className:"k-icon k-i-calendar"})))),l.createElement(I,{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"}},l.createElement(pr,{ref:function(t){e._dateTimeSelector=t},cancelButton:k,steps:e.props.steps,value:e.value,onChange:e.handleValueChange,onReject:e.handleReject,disabled:n,weekNumber:f,min:e.min,max:e.max,minTime:w,maxTime:C,focusedDate:h,format:a,calendar:_})))}));return this.props.label?l.createElement(Wt,{dateInput:this._dateInput,label:this.props.label,editorId:i,editorValid:P,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:u.string,defaultShow:u.bool,defaultValue:u.instanceOf(Date),disabled:u.bool,focusedDate:u.instanceOf(Date),format:u.oneOfType([u.string,u.shape({skeleton:u.string,pattern:u.string,date:u.oneOf(["short","medium","long","full"]),time:u.oneOf(["short","medium","long","full"]),datetime:u.oneOf(["short","medium","long","full"]),era:u.oneOf(["narrow","short","long"]),year:u.oneOf(["numeric","2-digit"]),month:u.oneOf(["numeric","2-digit","narrow","short","long"]),day:u.oneOf(["numeric","2-digit"]),weekday:u.oneOf(["narrow","short","long"]),hour:u.oneOf(["numeric","2-digit"]),hour12:u.bool,minute:u.oneOf(["numeric","2-digit"]),second:u.oneOf(["numeric","2-digit"]),timeZoneName:u.oneOf(["short","long"])})]),formatPlaceholder:u.oneOfType([u.oneOf(["wide","narrow","short","formatPattern"]),u.shape({year:u.string,month:u.string,day:u.string,hour:u.string,minute:u.string,second:u.string})]),id:u.string,ariaLabelledBy:u.string,ariaDescribedBy:u.string,min:u.instanceOf(Date),max:u.instanceOf(Date),name:u.string,popupSettings:u.shape({animate:u.bool,appendTo:u.any,popupClass:u.string}),show:u.bool,tabIndex:u.number,title:u.string,value:u.instanceOf(Date),weekNumber:u.bool,width:u.oneOfType([u.number,u.string]),validationMessage:u.string,required:u.bool,validate:u.bool,valid:u.bool,cancelButton:u.bool},t.defaultProps={defaultShow:!1,defaultValue:null,disabled:!1,format:"g",max:z,min:H,popupSettings:{},tabIndex:0,weekNumber:!1,required:!1,validityStyles:!0,cancelButton:!0,dateInput:Kt},t}(l.Component),vr=Object(c.createPropsContext)(),mr=Object(c.withPropsContext)(vr,hr);mr.displayName="KendoReactDateTimePicker",Object(d.registerForLocalization)(hr)},function(e,t,n){"use strict";n.r(t),n.d(t,"isCompositeFilterDescriptor",(function(){return p})),n.d(t,"toODataString",(function(){return Y})),n.d(t,"toDataSourceRequestString",(function(){return Fe})),n.d(t,"toDataSourceRequest",(function(){return Me})),n.d(t,"translateDataSourceResultGroups",(function(){return Ue})),n.d(t,"translateAggregateResults",(function(){return We})),n.d(t,"orderBy",(function(){return yt})),n.d(t,"process",(function(){return wt})),n.d(t,"distinct",(function(){return kt})),n.d(t,"getter",(function(){return $})),n.d(t,"filterBy",(function(){return ht})),n.d(t,"compileFilter",(function(){return ft})),n.d(t,"groupBy",(function(){return gt})),n.d(t,"composeSortDescriptors",(function(){return $e})),n.d(t,"normalizeFilters",(function(){return N})),n.d(t,"normalizeGroups",(function(){return vt})),n.d(t,"aggregateBy",(function(){return st}));var r=function(e){return null!=e},o=function(e){return null==e},i=function(e){return Array.isArray(e)},a=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},l=function(e){return!function(e){return o(e)||0===e.trim().length}(e)},u=function(e){return!isNaN(e-parseFloat(e))},c=function(e){return e&&e.getTime},p=function(e){return r(e.filters)};var 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)};function f(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var h,v,m,g,b,y=function(e,t,n){return function(r){return e(r)?t(r):n(r)}},O=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},k=function(e){return e},w=function(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e()?""+t[0]+n[0]+t[1]:n[0]}},C=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},x=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:"'"+n.replace(/'/g,"''")+"'",field:t,ignoreCase:r,operator:o}},E=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:""+encodeURIComponent(n),field:t,ignoreCase:r,operator:o}},D=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{field:w((function(){return r}))(h||(h=f(["tolower(",")"],["tolower(",")"])),t),value:n,ignoreCase:r,operator:o}},I=function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:n,field:t.replace(/\./g,"/"),ignoreCase:r,operator:o}},_=function(e){return s(e.value)},P=function(e){return c(e.value)},S=function(e,t){return function(n){return w((function(){return n.filters.length>1}))(v||(v=f(["(",")"],["(",")"])),n.filters.map(e).join(t(n)))}},j=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,n=Object.assign({},e);return!p(e)&&s(e.operator)&&(n.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),p(e)&&j(n),n})))},N=function(e){return r(e)&&(e=function(e){return p(e)?Object.assign({},e):{filters:i(e)?e:[e],logic:"and"}}(e),j(e)),e},F=function(e){var t=e.operator;return function(e){var n=e.field,r=e.value;return n+" "+t+" "+r}},M=function(e){return O(e,E,x,D,I)},T=function(e){return M((t=e.operator,function(e){var n=e.field,r=e.value;return t+"("+n+","+r+")"}));var t},R=function(e){return O(F(e),I,(t=e.utcDates,function(e){var n=e.field,r=e.value,o=e.ignoreCase,i=e.operator;return{value:JSON.stringify(t?r:C(r)).replace(/"/g,""),field:n,ignoreCase:o,operator:i}}));var t},L=function(e){return y(P,R(e),function(e){return O(F(e),I)}(e))},V=function(e){return y(_,function(e){return M(F(e))}(e),L(e))},B=function(e){return e+" eq -1"},A=function(e){return O(e,I)},K=function(e){return" "+e.logic+" "},q=function(e){return function(t){return function(e,t){return{contains:T(d({},t,{operator:"contains"})),doesnotcontain:O(B,T(d({},t,{operator:"indexof"}))),endswith:T(d({},t,{operator:"endswith"})),eq:V(d({},t,{operator:"eq"})),gt:V(d({},t,{operator:"gt"})),gte:V(d({},t,{operator:"ge"})),isempty:A((function(e){return e.field+" eq ''"})),isnotempty:A((function(e){return e.field+" ne ''"})),isnotnull:A((function(e){return e.field+" ne null"})),isnull:A((function(e){return e.field+" eq null"})),lt:V(d({},t,{operator:"lt"})),lte:V(d({},t,{operator:"le"})),neq:V(d({},t,{operator:"ne"})),startswith:T(d({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}},H=function(e){return S((function(t){return y(p,H(e),q(e))(t)}),K)},z=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+H(t)(N(e)):""},U=(m="",function(){return m}),W=function(e,t){return y(r,(n=e[0],function(e){return n+e}),U)(t);var n},Y=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(n){return{filter:z(t.filter||{},e),skip:W(g||(g=f(["$skip=",""],["$skip=",""])),t.skip),sort:(o=t.sort||[],i=o.filter((function(e){return r(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),i?"$orderby="+i:i),take:W(b||(b=f(["$top=",""],["$top=",""])),t.take)}[n];var o,i}}(t,e)).filter(l).join("&")},G={},X=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;G[void 0]=function(e){return e};var Z,$=function(e,t){var n=e+t;if(G[n])return G[n];var o=[];return e.replace(X,(function(e,t,n,i){o.push(r(t)?t:n||i)})),G[n]=function(e){for(var n=e,i=0;i<o.length;i++)if(n=n[o[i]],!r(n)&&t)return n;return n},G[n]},J=function(e){return function(t){return[e,t]}},Q=function(){return null},ee=function(e){return function(t){return r(e(t))}},te=function(e){return function(t){return function(e){return r(e)&&i(e)&&e.length>0}(e(t))}},ne=function(e,t){return y(e,t,Q)},re=function(e,t){return function(n){return e(n).map(t).join("~")}},oe=O.apply(void 0,[['"',""],[":","-"]].map((function(e){var t=e[0],n=e[1];return function(e){return e.replace(new RegExp(t,"g"),n)}}))),ie=(Z=".",function(e){return e.slice(0,e.indexOf(Z))}),ae=function(e){var t=e.field,n=e.dir;return t+"-"+(void 0===n?"asc":n)},se=$("take"),le=$("aggregates"),ue=$("skip"),ce=$("group"),pe=$("sort",!0),de=re(pe,ae),fe=re(ce,ae),he=re(le,(function(e){return e.field+"-"+e.aggregate})),ve=O((function(e){return"datetime'"+e+"'"}),ie,oe,JSON.stringify,C),me=O(J("page"),(function(e){var t=e.skip,n=e.take;return Math.floor((t||0)/n)+1})),ge=O(J("pageSize"),se),be=O(J("group"),fe),ye=O(J("sort"),de),Oe=O(J("aggregate"),he),ke=ne(ee(ue),me),we=ne(ee(se),ge),Ce=ne(te(ce),be),xe=ne(ee(le),Oe),Ee=O(ne(te(pe),ye),(function(e){return Object.assign({},e,{sort:(pe(e)||[]).filter((function(e){var t=e.dir;return l(t)}))})})),De=function(e){var t=e.field;return l(t)},Ie=function(e){return e.field+"~"+e.operator+"~"+e.value},_e=y(P,O(Ie,(function(e){var t=e.field,n=e.value,r=e.ignoreCase,o=e.operator;return{value:ve(n),field:t,ignoreCase:r,operator:o}})),Ie),Pe=function(e){return"~"+e.logic+"~"},Se=function(e){return S((function(t){return y(p,Se(e),function(e){return ne(De,y(_,O(Ie,x,e?E:k),_e))}(e))(t)}),Pe)},je=function(e,t){var n=e.filter;if(n&&n.filters){var r=Se(t)(n);if(r.length)return["filter",r]}return null},Ne=function(e,t){return void 0===t&&(t=!0),function(n){return{aggregates:xe(e),filter:je(e,t),group:Ce(e),skip:ke(e),sort:Ee(e),take:we(e)}[n]}},Fe=function(e){return(t=Object.keys(e).map(Ne(e)).filter(r),t.reduce((function(e,t){var n=t[0],r=t[1];return e.concat([n+"="+r])}),[])).join("&");var t},Me=function(e){return Object.keys(e).map(Ne(e,!1)).filter(r).reduce((function(e,t){var n,r=t[0],o=t[1];return d({},e,((n={})[r]=o,n))}),{})},Te=function(e,t,n){return t[e]=n,t},Re=function(e){return function(t){var n,o=t[e];return r(o)?o:t[(n=e,n.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},Le=Re("Member"),Ve=Re("AggregateMethodName"),Be=Re("Value"),Ae=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},Ke=Ae((function(e,t,n){return Te(n.toLowerCase(),t,e[n])})),qe=Ae((function(e,t,n){return Te(n,t,Ke(e[n]))})),He=function(e,t){return r(e)?e:t},ze=O((function(e){var t=e.field,n=e.hasSubgroups,r=e.value,o=e.aggregates,i=e.items;return{aggregates:qe(o),field:t,items:n?i.map(ze):i,value:r}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:He(e.Key,He(e.key,e.value))}})),Ue=function(e){return e.map(ze)},We=function(e){return(e||[]).reduce((function(e,t){return Te(Le(t),e,Te(Ve(t).toLowerCase(),e[Le(t)]||{},Be(t)))}),{})},Ye=function(e,t){return o(e)?e===t?0:-1:o(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},Ge=function(e,t){return Ye(t,e)},Xe=function(e){var t=$(e.field,!0);return function(n,r){return("asc"===e.dir?Ye:Ge)(t(n),t(r))}},Ze=function(e,t){return 0},$e=function(e){return e.filter((function(e){return r(e.dir)})).map((function(e){return Xe(e)})).reduce((function(e,t){return function(n,r){return e(n,r)||t(n,r)}}),Ze)},Je=function(e){var t=$(e,!0),n=0;return function(o,i){o[e]=o[e]||{};var a=t(i),s=function(e){return(e=r(e)&&e.getTime?e.getTime():e)+""}(a),l=o[e][s]||{__position:n++,aggregates:{},items:[],value:a};return l.items.push(i),o[e][s]=l,o}},Qe=function(e){var t=e.map((function(e){var t=$(e.field,!0),n=(e.aggregate||"").toLowerCase(),o=$(n,!0);return function(i,a){var s=i[e.field]||{},l=o(s)||{average:function(){var e=0,t=0;return{calc:function(n){u(n)?(e+=n,t++):e=n},result:function(){return u(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=u(e)||c(e)?e:t)<t&&(u(t)||c(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=u(e)||c(e)?e:t)>t&&(u(t)||c(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=r(t)?t:0,e+=t},result:function(){return e}}}}[n]();return l.calc(t(a)),s[e.aggregate]=l,i[e.field]=s,i}}));return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},et=function(e,t){return e.push(t),e},tt=function(e){return function(t){return function(n,r,o){return t(n,e(r,o))}}},nt=function(e){return function(t){return function(n,r){return e(r)?t(n,r):n}}},rt=function(e){return r(e.__value)},ot=function(e){return rt(e)?e:{__value:e,reduced:!0}},it=function(e,t,n){for(var r=t,o=0,i=n.length;o<i;o++)if(r=e(r,n[o],o),rt(r)){r=r.__value;break}return r},at=tt((function(e){return e})),st=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=at);var r={};return t.length?function(e){return void 0===e&&(e={}),Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(e){n[e]=n[e].result()}))})),e}(it(n(Qe(t)),r,e)):r},lt={or:{concat:function(e,t){return function(n){return e(n)||t(n)}},identity:function(){return!1}},and:{concat:function(e,t){return function(n){return e(n)&&t(n)}},identity:function(){return!0}}},ut={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return r(e)},isnull:function(e){return o(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},ct=/^\/Date\((.*?)\)\/$/,pt=function(e){var t=e.field,n=e.ignoreCase,o=e.value,i=e.operator;t=r(t)?t:function(e){return e},n=!r(n)||n;var l=function(e,t,n){if(!r(t))return e;var o=e;if(s(t)){var i=ct.exec(t);i?t=new Date(+i[1]):o=function(t){var r=e(t);return"string"==typeof r&&n?r.toLowerCase():u(r)?r+"":r}}return c(t)?function(e){var t=o(e);return c(t)?t.getTime():t}:o}(a(t)?t:$(t,!0),o,n);o=function(e,t){if(null!=e&&s(e)){var n=ct.exec(e);if(n)return new Date(+n[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&c(e))return e.getTime();return e}(o,n);var p=a(i)?i:ut[i];return function(e){return p(l(e),o,n)}},dt=function(e){var t=lt[e.logic];return e.filters.filter(r).map((function(e){return p(e)?dt(e):pt(e)})).reduce(t.concat,t.identity)},ft=function(e){return e&&0!==e.filters.length?dt(e):function(){return!0}},ht=function(e,t){return!r(t)||p(t)&&0===t.filters.length?e:e.filter(ft(N(t)))},vt=function(e){return(e=i(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))},mt=tt((function(e){return e})),gt=function(e,t,n,o){if(void 0===t&&(t=[]),void 0===n&&(n=mt),void 0===o&&(o=e),!(t=vt(t)).length)return e;var i=t[0],a=it(n(Je(i.field)),{},e),s=[];return Object.keys(a).forEach((function(e){Object.keys(a[e]).forEach((function(n){var l=a[e][n],u={},c=o;r(i.aggregates)&&(c=ht(o,{field:i.field,ignoreCase:!1,operator:"eq",value:l.value}),u=st(c,i.aggregates)),s[l.__position]={aggregates:u,field:e,items:t.length>1?gt(l.items,t.slice(1),mt,c):l.items,value:l.value}}))})),s},bt=function(e,t,n,r){if(!(n-t<2)){var o=t+n>>>1;bt(e,t,o,r),bt(e,o,n,r),function(e,t,n,r,o){for(var i=n-t,a=r-n,s=[],l=0;l<i;l++)s.push(e[t+l]);var u=0,c=n,p=t;do{o(e[c],s[u])<0?(e[p++]=e[c++],a--):(e[p++]=s[u++],i--)}while(a>0&&i>0);for(;i;)e[p++]=s[u++],i--;for(;a;)e[p++]=e[c++],a--}(e,t,o,n,r)}},yt=function(e,t){if(t.some((function(e){return r(e.dir)}))){e=e.slice(0);var n=$e(t);bt(e,0,e.length,n)}return e},Ot=function(e,t){return e===t},kt=function(e,t){return void 0===t&&(t=Ot),function(e,t){return e.filter((function(e,n,r){return r.findIndex(t.bind(null,e))===n}))}(e,function(e){if(s(e)){var t=$(e);e=function(e,n){return t(e)===t(n)}}return e}(t))},wt=function(e,t){var n=t.skip,o=t.take,i=t.filter,a=t.sort,s=t.group,l=vt(s||[]).concat(a||[]);l.length&&(e=yt(e,l));var u,c=r(i)&&nt.length,p=r(s)&&s.length;if(!c&&!p)return{data:o?e.slice(n,n+o):e,total:e.length};var d,f,h=[];if(c?(u=function(e,t){for(var n=0,r=0,o=e.length;r<o;r++)t(e[r])&&n++;return n}(e,d=ft(N(i))),h.push(nt(d))):u=e.length,r(n)&&r(o)&&(h.push((f=n,function(e){return function(t,n){return f--<=0?e(t,n):t}})),h.push(function(e){return function(t){return function(n,r){return e-- >0?t(n,r):ot(n)}}}(o))),h.length){var v=O.apply(void 0,h);return{data:p?gt(e,s,v,function(e,t){return t?e.filter(t):e}(e,d)):it(v(et),[],e),total:u}}return{data:p?gt(e,s):e,total:u}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Animation",(function(){return k})),n.d(t,"AnimationChild",(function(){return v})),n.d(t,"Fade",(function(){return E})),n.d(t,"Expand",(function(){return P})),n.d(t,"Push",(function(){return M})),n.d(t,"Slide",(function(){return V})),n.d(t,"Zoom",(function(){return H})),n.d(t,"Reveal",(function(){return Y})),n.d(t,"useAnimation",(function(){return G}));var r,o=n(1),i=n(0),a=n(2),s=n(16),l=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},u=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},c={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},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,v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.style,i=t.appear,l=t.enter,u=t.exit,c=t.transitionName,p=t.transitionEnterDuration,v=t.transitionExitDuration,m=t.className,g=t.onEnter,b=t.onEntering,y=t.onEntered,O=t.onExit,k=t.onExiting,w=t.onExited,C=t.onAfterExited,x=t.mountOnEnter,E=t.unmountOnExit,D=t.animationEnteringStyle,I=t.animationEnteredStyle,_=t.animationExitingStyle,P=t.animationExitedStyle,S=f(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),j=Object(a.classNames)(m,h["child-animation-container"]),N=d({transitionDelay:"0ms"},r),F={entering:d({transitionDuration:p+"ms"},D),entered:d({},I),exiting:d({transitionDuration:v+"ms"},_),exited:d({},P)},M={in:this.props.in,appear:i,enter:l,exit:u,mountOnEnter:x,unmountOnExit:E,timeout:{enter:p,exit:v},onEnter:function(t){g&&g.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){b&&b.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){y&&y.call(void 0,{animatedElement:t,target:e})},onExit:function(t){O&&O.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){k&&k.call(void 0,{animatedElement:t,target:e})},onExited:function(t){C&&C.call(void 0,{animatedElement:t,target:e}),w&&w.call(void 0,{animatedElement:t,target:e})},classNames:{appear:h[c+"-appear"]||c+"-appear",appearActive:h[c+"-appear-active"]||c+"-appear-active",enter:h[c+"-enter"]||c+"-enter",enterActive:h[c+"-enter-active"]||c+"-enter-active",exit:h[c+"-exit"]||c+"-exit",exitActive:h[c+"-exit-active"]||c+"-exit-active"}};return o.createElement(s.CSSTransition,d({},M,S),(function(t){return o.createElement("div",{style:d({},N,F[t]),className:j,ref:function(t){e._element=t}},n)}))},t.propTypes={in:i.bool,children:i.oneOfType([i.arrayOf(i.node),i.node]),transitionName:i.string.isRequired,className:i.string,appear:i.bool,enter:i.bool,exit:i.bool,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired,mountOnEnter:i.bool,unmountOnExit:i.bool,animationEnteringStyle:i.object,animationEnteredStyle:i.object,animationExitingStyle:i.object,animationExitedStyle:i.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:a.noop,onEntering:a.noop,onEntered:a.noop,onExit:a.noop,onExiting:a.noop,onExited:a.noop,onAfterExited:a.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(o.Component),m={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639484926,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"},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)}}(),b=function(){return(b=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(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},O=c,k=function(e){function t(t){var n=e.call(this,t)||this;return Object(a.validatePackage)(m),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,r=e.children,i=e.component,l=e.className,u=e.childFactory,c=(e.stackChildren,e.componentChildStyle),p=e.componentChildClassName,d=y(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),f={id:t,style:n,component:i,childFactory:u,className:Object(a.classNames)(O["animation-container"],O["animation-container-relative"],l)},h=o.Children.map(r||null,(function(e){return o.createElement(v,b({},d,{style:c,className:p}),e)}));return o.createElement(s.TransitionGroup,b({},f),h)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any,transitionName:i.string.isRequired,appear:i.bool.isRequired,enter:i.bool.isRequired,exit:i.bool.isRequired,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired},t.defaultProps={component:"div"},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)}}(),C=function(){return(C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},x=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},E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=x(e,["children"]);return o.createElement(k,C({},{transitionName:"fade"},n),t)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500},t}(o.Component),D=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)}}(),I=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)},_=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},P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=_(e,["direction","children"]),i={transitionName:"expand-"+t};return o.createElement(k,I({},i,r),n)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(o.Component),S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(){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)},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},F={position:"absolute",top:"0",left:"0"},M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=N(e,["children","direction"]);return o.createElement(k,j({},r,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?F:void 0}),t)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["up","down","left","right"]),component:i.string,id:i.string,style:i.any,stackChildren:i.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1},t}(o.Component),T=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},L=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},V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,r=L(e,["direction","children"]),i={transitionName:"slide-"+t};return o.createElement(k,R({},i,r),n)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["up","down","left","right"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"},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)}}(),A=function(){return(A=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)},K=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},q={position:"absolute",top:"0",left:"0"},H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return B(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,r=K(e,["children","direction"]);return o.createElement(k,A({},r,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?q:void 0}),t)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["in","out"]),component:i.string,id:i.string,style:i.any,stackChildren:i.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1},t}(o.Component),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(){return(U=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)},W=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},Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=a.noop);var r=e.firstChild;if(r){var o=l(r),i=u(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return z(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,r=t.children,i=t.childFactory,a=W(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,u=s.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:u?u+"px":null}).maxHeight,maxWidth:e.maxWidth};return o.createElement(k,U({},a,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:o.cloneElement(n,U({},n.props,{style:U({},n.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-"+n}),r)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(o.Component),G=function(e,t){var n=o.useRef(0),r=o.useRef(!1),i=o.useRef();o.useEffect((function(){return function(e){var t,r=e.duration,o=n.current&&1-n.current;e.onStart&&e.onStart();var a=function(s){t||(t=s);var l=(s-t+1)/r+o;l<=1?(e.onUpdate&&e.onUpdate(l),i.current=window.requestAnimationFrame(a),n.current=l):(e.onEnd&&e.onEnd(1),n.current=0)};i.current=window.requestAnimationFrame(a)}(e),function(){i.current&&window.cancelAnimationFrame(i.current)}}),t),o.useEffect((function(){r.current=!0}),[])}},function(e,t){e.exports=s},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(26)),r(n(51)),r(n(52)),r(n(30)),r(n(53)),r(n(56)),r(n(31)),r(n(29)),r(n(18))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDefaultProps={filterable:!0,editable:!0,sortable:!0,resizable:!0,reorderable:!0,groupable:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(12),i=n(28);t.useTableKeyboardNavigation=function(e,t){var n,a=r.useContext(i.TableKeyboardNavigationContext);return a&&e&&!1!==t?((n={tabIndex:a&&a.activeId&&a.activeId===e?0:-1})[o.KEYBOARD_NAV_DATA_LEVEL]=a.level,n[o.KEYBOARD_NAV_DATA_ID]=e,n):{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.TableKeyboardNavigationContext=r.createContext(void 0),t.TableKeyboardNavigationContext.displayName="KendoReactTableKeyboardNavigationContext"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(26);function i(e,t){for(var n=e[t].depth,r=null,o=t+1;o<e.length;o++)if(e[o].depth===n){r=e[o];break}return r}var a=function(e){var t=e.width?parseFloat(e.width.toString()):0;return!t&&e.children&&e.children.length&&(t=e.children.reduce((function(e,t){return a(t)+e}),0)),t};t.mapColumns=function(e){for(var t=[[]],n=0,r=e.length-1;r>=0;r--)n=Math.max(n,e[r].depth),e[r].colSpan=e[r].colSpan||1,-1!==e[r].parentIndex&&(e[e[r].parentIndex].colSpan=(e[e[r].parentIndex].colSpan||0)+e[r].colSpan);var o=[],s=1;e.forEach((function(e,r){t[e.depth]=t[e.depth]||[];var i=!1;0===t[e.depth].length&&(s<=1?s=1+(e.children.length>0?0:n-e.depth):(s--,i=!0)),e.rowSpan=1+(e.children.length>0?0:n-e.depth),e.kFirst=i,e.index=t[e.depth].length,t[e.depth].push(r),e.ariaColumnIndex=o[e.depth]?o[e.depth]+1:1;for(var a=e.depth;a<e.depth+e.rowSpan;a++)o[a]=(o[a]||0)+e.colSpan}));var l=new Array(t.length).fill(0),u=0;e.forEach((function(e){if(e.locked)if(e.left=l[e.depth],u=a(e),0===e.children.length)for(var t=e.depth;t<l.length;t++)l[t]+=u;else l[e.depth]+=u}));for(var c=new Array(t.length).fill(0),p=e.length-1;p>=0;p--){var d=e[p];if(d.locked){if(d.right=c[d.depth],u=a(d),0===d.children.length)for(var f=d.depth;f<c.length;f++)c[f]+=u;else c[d.depth]+=u;var h=i(e,p);d.rightBorder=!(h&&h.locked)}}return t},t.readColumns=function e(t,n,i){void 0===i&&(i=0);var a=[];if(!t||!t.length)return[];if(t.forEach((function(t){var s=e(t.children||[],n,i+1);a.push(Object.assign({},{depth:i},o.ColumnDefaultProps,t,{id:t.id?t.id:r.generateNavigatableId(""+n.prevId++,n.idPrefix,"column"),declarationIndex:a.length,children:s,rowSpan:0,colSpan:0,isAccessible:!0}))})),a.sort((function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)})),0===i){var s=[],l=function(e,t){return e.forEach((function(e){e.parentIndex=t,l(e.children,s.push(e)-1)}))};return l(a,-1),s}return a},t.isRtl=function(e){return Boolean(e&&"rtl"===getComputedStyle(e).direction)},t.getIndex=function(e,t){if(!t||!e||!e.originalEvent)return-1;for(var n=t.ownerDocument?t.ownerDocument.elementFromPoint(e.clientX,e.originalEvent.clientY):null;n&&n.parentElement!==t;)n=n.parentElement;for(var r=t.children,o=0;o<r.length;o++)if(r[o]===n)return o;return-1}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);t.HeaderCell=function(e){var t=e.onClick?{onClick:e.onClick}:{},n=o.createElement("span",r({className:"k-link"},t),o.createElement("span",{className:"k-column-title"},e.title||e.field||" "),e.children);return e.render?e.render.call(void 0,n,e):n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,[{allowUnsort:!0,mode:"single"}].concat(e))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(9),u=n(4),c=n(8),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value.value})})},t}return o(t,e),t.prototype.render=function(){var e=u.provideLocalizationService(this),t=this.props,n=t.filter,r=t.data,o=void 0===r?[]:r,s=t.defaultItem,p=o.map((function(t){return i({},t,{text:e.toLanguageString(t.text,c.messages[t.text]||t.text)})}));return a.createElement(l.DropDownList,{value:p.find((function(e){return e.value===n.value}))||null,onChange:this.onChange,defaultItem:s,data:p,textField:"text"})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired,data:s.arrayOf(s.shape({text:s.string,value:s.any})),defaultItem:s.any},t}(a.Component);t.EnumFilter=p,u.registerForLocalization(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)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),l=n(0),u=n(5),c=n(9),p=n(4),d=n(19),f=n(8),h=function(e){void 0!==e.value||d.unaryOperator(e.operator)||(e.value=d.stringOperator(e.operator)?"":null)},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFieldChange=function(e){var n=e.value.name,r=t.props.fields.find((function(e){return e.name===n})),o=t.props.filter,i=r&&!r.operators.some((function(e){return e.operator===o.operator}))?r.operators[0].operator:o.operator,a={field:n,operator:i};h(a),t.triggerOnFilterChange(o,a,e)},t.onOperatorChange=function(e){var n,r=e.value.operator,o=t.props.filter;if(d.unaryOperator(r)){o.value;var s=a(o,["value"]);n=i({},s,{operator:r})}else n=i({},o,{operator:r});h(n),t.triggerOnFilterChange(o,n,e)},t.onInputChange=function(e){var n=t.props.filter,r=e.nextFilter;if(d.unaryOperator(r.operator)){var o=t.props.fields.find((function(e){return e.name===r.field}));r=i({},r,{operator:o&&o.operators[0].operator||r.operator})}t.triggerOnFilterChange(n,r,e)},t.triggerOnFilterChange=function(e,n,r){var o={prevFilter:e,nextFilter:n,syntheticEvent:r.syntheticEvent,nativeEvent:r.nativeEvent,target:t};t.props.onChange.call(void 0,o)},t.onFilterRemove=function(e){var n={filter:t.props.filter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:t};t.props.onRemove.call(void 0,n)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.fields,n=e.filter,r=t.find((function(e){return e.name===n.field})),o=p.provideLocalizationService(this),a=(r&&r.operators||[]).map((function(e){return i({},e,{text:o.toLanguageString(e.text,f.messages[e.text]||e.text)})}));return s.createElement("div",{className:"k-filter-toolbar"},s.createElement(u.Toolbar,{keyboardNavigation:!1},s.createElement(u.ToolbarItem,{className:"k-filter-field"},s.createElement(c.DropDownList,{className:"k-filter-dropdown",data:t,textField:"label",value:t.find((function(e){return e.name===n.field})),onChange:this.onFieldChange})),s.createElement(u.ToolbarItem,{className:"k-filter-operator"},s.createElement(c.DropDownList,{data:a,textField:"text",value:a.find((function(e){return e.operator===n.operator})),onChange:this.onOperatorChange})),s.createElement(u.ToolbarItem,{className:"k-filter-value"},r&&s.createElement(r.filter,{filter:n,onFilterChange:this.onInputChange})),s.createElement(u.ToolbarItem,null,s.createElement(u.Button,{title:o.toLanguageString(f.filterClose,f.messages[f.filterClose]),icon:"close",look:"flat",type:"button",onClick:this.onFilterRemove}))))},t.propTypes={filter:l.object.isRequired,fields:l.array.isRequired,onChange:l.func.isRequired,onRemove:l.func.isRequired},t}(s.Component);t.Expression=v,p.registerForLocalization(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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(22),u=n(5),c=n(4),p=n(33),d=n(19),f=n(8),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onGroupRemove=function(){t.props.onRemove.call(void 0,{filter:t.props.filter})},t.onAddExpression=function(){var e=t.props.filter,n=t.props.fields[0],r={field:n.name,operator:n.operators[0].operator};r.value=d.stringOperator(r.operator)?"":null,t.props.onChange.call(void 0,{nextFilter:i({},e,{filters:e.filters.concat([r])}),prevFilter:e})},t.onAddGroup=function(){var e=t.props.filter;t.props.onChange.call(void 0,{nextFilter:i({},e,{filters:e.filters.concat([i({},t.props.defaultGroupFilter)])}),prevFilter:e})},t.onLogicAnd=function(){return t.changeLogic("and")},t.onLogicOr=function(){return t.changeLogic("or")},t.changeLogic=function(e){var n=t.props.filter;n.logic!==e&&t.props.onChange.call(void 0,{nextFilter:i({},n,{logic:e}),prevFilter:n})},t.replaceFilter=function(e,n){var r=t.props.filter,o=r.filters.map((function(t){return t===e?n:t}));return i({},r,{filters:o})},t.onChange=function(e){var n={nextFilter:t.replaceFilter(e.prevFilter,e.nextFilter),prevFilter:t.props.filter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:t};t.props.onChange.call(void 0,n)},t.onRemove=function(e){var n=t.props.filter,r=n.filters.filter((function(t){return t!==e.filter})),o={nextFilter:i({},n,{filters:r}),prevFilter:n,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:t};t.props.onChange.call(void 0,o)},t}return o(t,e),t.prototype.render=function(){var e=this,n=this.props,r=n.fields,o=n.filter,i=c.provideLocalizationService(this);return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-filter-toolbar"},a.createElement(u.Toolbar,{keyboardNavigation:!1},a.createElement(u.ToolbarItem,null,a.createElement(u.ButtonGroup,null,a.createElement(u.Button,{togglable:!0,onClick:this.onLogicAnd,selected:"and"===o.logic,type:"button"},i.toLanguageString(f.filterAndLogic,f.messages[f.filterAndLogic])),a.createElement(u.Button,{togglable:!0,onClick:this.onLogicOr,selected:"or"===o.logic,type:"button"},i.toLanguageString(f.filterOrLogic,f.messages[f.filterOrLogic])))),a.createElement(u.ToolbarItem,null,a.createElement(u.Button,{title:i.toLanguageString(f.filterAddExpression,f.messages[f.filterAddExpression]),icon:"filter-add-expression",type:"button",onClick:this.onAddExpression})),a.createElement(u.ToolbarItem,null,a.createElement(u.Button,{title:i.toLanguageString(f.filterAddGroup,f.messages[f.filterAddGroup]),icon:"filter-add-group",type:"button",onClick:this.onAddGroup})),a.createElement(u.ToolbarItem,null,a.createElement(u.Button,{title:i.toLanguageString(f.filterClose,f.messages[f.filterClose]),icon:"close",look:"flat",type:"button",onClick:this.onGroupRemove})))),o.filters.length>0&&a.createElement("ul",{className:"k-filter-lines"},o.filters.map((function(n,o){return a.createElement("li",{key:o,className:"k-filter-item"},l.isCompositeFilterDescriptor(n)?a.createElement(t,{filter:n,fields:r,onChange:e.onChange,onRemove:e.onRemove,defaultGroupFilter:e.props.defaultGroupFilter}):a.createElement(p.Expression,{filter:n,fields:r,onChange:e.onChange,onRemove:e.onRemove}))}))))},t.propTypes={filter:s.object.isRequired,fields:s.array.isRequired,onChange:s.func.isRequired,onRemove:s.func.isRequired,defaultGroupFilter:s.object.isRequired},t}(a.Component);t.Group=h,c.registerForLocalization(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2);t.ColumnMenuItem=function(e){return r.createElement("div",{onClick:e.onClick,className:o.classNames("k-columnmenu-item",{"k-state-selected":e.selected},{"k-state-disabled":e.disabled})},e.iconClass&&r.createElement("span",{className:"k-icon "+e.iconClass}),e.title)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(4),a=n(9),s=n(13),l=n(21),u=n(8),c=n(37),p=function(e){var t=e.filter,n=e.onFilterChange,s=e.operators,l=e.initialFilter,c=o.useCallback((function(e){var o=t,i=e.target.value.operator,a=o?r({},o,{operator:i}):{value:l.value,operator:i};n.call(void 0,e.syntheticEvent,a,o)}),[t,n,l]),p=o.useCallback((function(e){var o=e.target.value,i=t,a=i?r({},i,{value:o}):{value:o,operator:s[0].operator};n.call(void 0,e,a,i)}),[t,n,s]),d=i.useLocalization(),f=s.map((function(e){return r({},e,{text:d.toLanguageString(e.text,u.messages[e.text])})}));return o.createElement(o.Fragment,null,o.createElement(a.DropDownList,{value:f.find((function(e){return e.operator===t.operator}))||null,onChange:c,data:f,textField:"text"}),o.createElement(e.input,{value:t.value,onChange:p}))};t.ColumnMenuBooleanFilter=function(e){var t=e.filter,n=e.onFilterChange,a=o.useCallback((function(e){return n.call(void 0,e.syntheticEvent,r({},t,{value:e.value}),t)}),[t,n]),l=c.ColumnMenuOperators.boolean[0].text;return o.createElement(s.Checkbox,{onChange:a,checked:t.value,label:i.useLocalization().toLanguageString(l,u.messages[l]),labelPlacement:"after"})},t.ColumnMenuTextFilter=function(e){var t=o.useCallback((function(e){return o.createElement("input",r({},e,{value:e.value||"",className:"k-textbox"}))}),[]),n=o.useRef(c.ColumnMenuOperators.text),i=o.useRef({operator:"",value:""});return o.createElement(p,r({initialFilter:i.current,input:t,operators:e.operators||n.current},e))},t.ColumnMenuNumericFilter=function(e){var t=o.useCallback((function(e){return o.createElement(s.NumericTextBox,r({},e,{value:e.value||null}))}),[]),n=o.useRef(c.ColumnMenuOperators.numeric),i=o.useRef({operator:"",value:null});return o.createElement(p,r({initialFilter:i.current,input:t,operators:e.operators||n.current},e))},t.ColumnMenuDateFilter=function(e){var t=o.useCallback((function(e){return o.createElement(l.DatePicker,r({},e,{value:e.value||null}))}),[]),n=o.useRef(c.ColumnMenuOperators.date),i=o.useRef({operator:"",value:null});return o.createElement(p,r({initialFilter:i.current,input:t,operators:e.operators||n.current},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=[{text:r.columnMenuFilterContainsOperator,operator:"contains"},{text:r.columnMenuFilterNotContainsOperator,operator:"doesnotcontain"},{text:r.columnMenuFilterEqOperator,operator:"eq"},{text:r.columnMenuFilterNotEqOperator,operator:"neq"},{text:r.columnMenuFilterStartsWithOperator,operator:"startswith"},{text:r.columnMenuFilterEndsWithOperator,operator:"endswith"},{text:r.columnMenuFilterIsNullOperator,operator:"isnull"},{text:r.columnMenuFilterIsNotNullOperator,operator:"isnotnull"},{text:r.columnMenuFilterIsEmptyOperator,operator:"isempty"},{text:r.columnMenuFilterIsNotEmptyOperator,operator:"isnotempty"}],i=[{text:r.columnMenuFilterEqOperator,operator:"eq"},{text:r.columnMenuFilterNotEqOperator,operator:"neq"},{text:r.columnMenuFilterGteOperator,operator:"gte"},{text:r.columnMenuFilterGtOperator,operator:"gt"},{text:r.columnMenuFilterLteOperator,operator:"lte"},{text:r.columnMenuFilterLtOperator,operator:"lt"},{text:r.columnMenuFilterIsNullOperator,operator:"isnull"},{text:r.columnMenuFilterIsNotNullOperator,operator:"isnotnull"}],a=[{text:r.columnMenuFilterEqOperator,operator:"eq"},{text:r.columnMenuFilterNotEqOperator,operator:"neq"},{text:r.columnMenuFilterAfterOrEqualOperator,operator:"gte"},{text:r.columnMenuFilterAfterOperator,operator:"gt"},{text:r.columnMenuFilterBeforeOperator,operator:"lt"},{text:r.columnMenuFilterBeforeOrEqualOperator,operator:"lte"},{text:r.columnMenuFilterIsNullOperator,operator:"isnull"},{text:r.columnMenuFilterIsNotNullOperator,operator:"isnotnull"}],s=[{text:r.columnMenuFilterIsTrue,operator:""}],l=function(){function e(){}return Object.defineProperty(e,"text",{get:function(){return o.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numeric",{get:function(){return i.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"date",{get:function(){return a.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"boolean",{get:function(){return s.slice()},enumerable:!0,configurable:!0}),e}();t.ColumnMenuOperators=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(9),a=n(4),s=n(8),l=[{text:s.columnMenuFilterAndLogic,logic:"and"},{text:s.columnMenuFilterOrLogic,logic:"or"}];t.ColumnMenuFilterLogic=function(e){var t=a.useLocalization(),n=(e.data||l).map((function(e){return r({},e,{text:t.toLanguageString(e.text,s.messages[e.text])})}));return o.createElement(i.DropDownList,r({onChange:e.onChange,className:"k-filter-and",textField:"text"},e,{data:n,value:n.find((function(t){return t.logic===e.value}))}))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(23),a=n(4),s=n(8);t.ColumnMenuForm=function(e){return o.createElement("div",{className:"k-columnmenu-item-content"},o.createElement(i.Reveal,{style:{position:"relative",display:"block"}},e.show&&o.createElement("div",{className:"kendo-grid-filter-menu-container"},o.createElement("form",{className:"k-filter-menu k-group k-reset k-state-border-up",onSubmit:e.onSubmit,onReset:e.onReset},o.createElement("div",{className:"k-filter-menu-container"},e.children,o.createElement("div",{className:"k-actions k-hstack k-justify-content-stretch"},e.actions))))))},t.ColumnMenuFilterForm=function(e){var n=a.useLocalization();return o.createElement(t.ColumnMenuForm,r({},e,{actions:o.createElement(o.Fragment,null,o.createElement("button",{className:"k-button",type:"reset"},n.toLanguageString(s.columnMenuFilterClearButton,s.messages[s.columnMenuFilterClearButton])),o.createElement("button",{className:"k-button k-primary"},n.toLanguageString(s.columnMenuFilterSubmitButton,s.messages[s.columnMenuFilterSubmitButton])))}))}},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(2),i=n(20),a={};t.closestTagName=function(e,t){for(var n=e;n;){if(n.tagName===t)return n;if("TABLE"===n.tagName)return null;n=n.parentElement}return null},t.getRowIndex=function(e){if(e){var t=e.getAttribute(i.TABLE_ROW_INDEX_ATTRIBUTE);return t?parseInt(t,10):void 0}},t.getColumnIndex=function(e){if(e){var t=e.getAttribute(i.TABLE_COL_INDEX_ATTRIBUTE);return t?parseInt(t,10):void 0}},t.setSelectedState=function(e){var t=e.subItemsField||"items",n=o.getter(e.dataItemKey);return o.mapTree(e.data,t,(function(r){var i;return o.extendDataItem(r,t,((i={})[e.selectedField]=e.selectedState[n(r)],i))}))},t.getSelectedStateFromKeyDown=function(e){var n=e.event,r=e.dataItemKey,i=e.selectedState,a=n.syntheticEvent,s=n.nativeEvent,l=n.dataItems,u=n.componentId,c=n.mode,p=n.cell,d=n.selectedField,f=s.target,h=s.ctrlKey,v=s.metaKey,m=s.altKey,g=s.shiftKey;if(a.isDefaultPrevented()||s.keyCode!==o.Keys.enter)return i;var b=t.closestTagName(f,"TD"),y=t.closestTagName(f,"TR"),O=t.getColumnIndex(b),k=t.getRowIndex(y),w={};return b&&y&&void 0!==k&&void 0!==O&&(w=t.getSelectedState({selectedState:i,dataItemKey:r,event:{ctrlKey:h,metaKey:v,altKey:m,shiftKey:g,dataItems:l,cell:p,mode:c,selectedField:d,componentId:u,startColIndex:O,endColIndex:O,startRowIndex:k,endRowIndex:k,isDrag:!1,syntheticEvent:a,nativeEvent:s,target:n.target,dataItem:null}})),w},t.getSelectedState=function(e){var t,n,i=e.event,s=e.dataItemKey,l=e.selectedState,u=i.dataItems,c=i.startRowIndex,p=i.endRowIndex,d=i.startColIndex,f=i.endColIndex,h=i.cell,v=i.isDrag,m=i.ctrlKey,g=i.shiftKey,b=i.metaKey,y=i.componentId,O=i.mode,k=i.dataItem,w=o.getter(s),C={},x=null!==k;if("single"===O){var E=u.slice(c,c+1)[0],D=w(E);a[y]={rowIndex:c,colIndex:d},C[D]=!h||[d]}else if(!v&&(g||m||b||x)){if(m||b||x){a[y]={rowIndex:c,colIndex:d};E=u.slice(c,p+1)[0],D=w(E);(C=r({},l))[D]=h&&!x?(t=C[D],n=d,!t||Array.isArray(t)&&0===t.length?[n]:t.findIndex((function(e){return e===n}))>-1?t.filter((function(e){return e===n})):t.concat([n])):!C[D]}else if(g){var I=a[y]&&a[y].rowIndex||0,_=a[y]&&a[y].colIndex||0,P=Math.min(I,c,p),S=Math.max(I,c,p),j=Math.min(_,d,f),N=Math.max(_,d,f),F=[];for(T=j;T<=N;T++)F.push(T);u.slice(P,S+1).forEach((function(e){var t=w(e);C[t]=!h||F.slice()}))}}else{v||(a[y]={rowIndex:c,colIndex:d});for(var M=[],T=d;T<=f;T++)M.push(T);u.slice(c,p+1).forEach((function(e){var t=w(e);C[t]=!h||M.slice()}))}return C};var s=o.hasRelativeStackingContext();t.relativeContextElement=function(e){if(!e||!s)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}},t.getOffset=function(e){if(e&&e.ownerDocument&&e!==e.ownerDocument.body){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},t.getSelectionOptions=function(e){return{enabled:!!e&&("boolean"!=typeof e.enabled||e.enabled),drag:!!e&&Boolean(e.drag),mode:e&&e.mode?e.mode:"multiple",cell:Boolean(e&&e.cell)}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(42);t.Pager=o.Pager,r(n(46)),r(n(25)),r(n(57));var i=n(59);t.ColumnResize=i.ColumnResize;var a=n(60);t.CommonDragLogic=a.CommonDragLogic;var s=n(61);t.DragClue=s.DragClue;var l=n(62);t.DropClue=l.DropClue,r(n(63)),r(n(70)),r(n(72)),r(n(73)),r(n(27)),r(n(12)),r(n(74)),r(n(28));var u=n(12);t.tableKeyboardNavigationScopeAttributes=u.tableKeyboardNavigationScopeAttributes;var c=n(14);t.tableKeyboardNavigationTools=c.tableKeyboardNavigationTools,r(n(75)),r(n(20)),r(n(40))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(43),l=n(44),u=n(45),c=n(8),p=n(4),d=n(2),f=n(2),h=n(17),v=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.changePage=function(e,t){n.props.onPageChange&&e>0&&e<=n.totalPages&&n.props.onPageChange({target:n,skip:(e-1)*n.props.take,take:n.props.take,syntheticEvent:t,nativeEvent:t.nativeEvent})},n.onWindowResize=function(){var e=n.element;if(e&&n.props.responsive){var t=e.offsetWidth;t<600?(e.classList.remove("k-pager-md"),e.classList.add("k-pager-sm")):t>=600&&t<768?(e.classList.add("k-pager-md"),e.classList.remove("k-pager-sm")):(e.classList.remove("k-pager-md"),e.classList.remove("k-pager-sm"))}},f.validatePackage(h.packageMetadata),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize),this.onWindowResize()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize)},t.prototype.render=function(){var e,t,n,r,o=this,a=this.props,f=a.skip,h=a.take,v=a.total,m=a.pageSizes,g=a.messagesMap,b=p.provideLocalizationService(this),y=p.provideIntlService(this),O=Math.floor(f/h)+1,k="numeric"===this.props.type?i.createElement(s.PagerNumericButtons,{buttonCount:this.props.buttonCount||0,totalPages:this.totalPages,currentPage:O,pageChange:this.changePage}):i.createElement(l.PagerInput,{currentPage:O,totalPages:this.totalPages,pageChange:this.changePage,messagesMap:g}),w=g?g(c.pagerFirstPage):{messageKey:c.pagerFirstPage,defaultMessage:c.messages[c.pagerFirstPage]},C=g?g(c.pagerPreviousPage):{messageKey:c.pagerPreviousPage,defaultMessage:c.messages[c.pagerPreviousPage]},x=g?g(c.pagerNextPage):{messageKey:c.pagerNextPage,defaultMessage:c.messages[c.pagerNextPage]},E=g?g(c.pagerLastPage):{messageKey:c.pagerLastPage,defaultMessage:c.messages[c.pagerLastPage]},D=g?g(c.pagerInfo):{messageKey:c.pagerInfo,defaultMessage:c.messages[c.pagerInfo]};this.props.previousNext&&(e=this.renderButton(1,"k-link k-pager-nav k-pager-first"+(1===O?" k-state-disabled":""),b.toLanguageString(w.messageKey,w.defaultMessage),"k-icon k-i-arrow-end-left"),t=this.renderButton(O-1,"k-link k-pager-nav"+(1===O?" k-state-disabled":""),b.toLanguageString(C.messageKey,C.defaultMessage),"k-icon k-i-arrow-60-left"),n=this.renderButton(O+1,"k-link k-pager-nav"+(O>=this.totalPages?" k-state-disabled":""),b.toLanguageString(x.messageKey,x.defaultMessage),"k-icon k-i-arrow-60-right"),r=this.renderButton(this.totalPages,"k-link k-pager-nav k-pager-last"+(O>=this.totalPages?" k-state-disabled":""),b.toLanguageString(E.messageKey,E.defaultMessage),"k-icon k-i-arrow-end-right"));var I=m&&i.createElement(u.PagerPageSizes,{pageChange:this.props.onPageChange,pageSize:h,pageSizes:m,messagesMap:g}),_=this.props.info&&i.createElement("div",{className:"k-pager-info k-label"},y.format(b.toLanguageString(D.messageKey,D.defaultMessage),[Math.min(f+1,v),Math.min(f+h,v),v]));return i.createElement("div",{className:d.classNames("k-pager-wrap k-pager k-widget",this.props.className),style:this.props.style,role:"navigation",ref:function(e){return o._element=e}},e,t,k,n,r,I,_)},t.prototype.renderButton=function(e,t,n,r){var o=this;return i.createElement("a",{onClick:function(t){t.preventDefault(),o.changePage(e,t)},href:"#",className:t,title:n},i.createElement("span",{className:r}))},Object.defineProperty(t.prototype,"totalPages",{get:function(){return Math.ceil((this.props.total||0)/this.props.take)},enumerable:!0,configurable:!0}),t.propTypes={className:a.string,style:a.object,total:a.number.isRequired,skip:a.number.isRequired,take:a.number.isRequired,buttonCount:a.number,info:a.bool,type:a.oneOf(["numeric","input"]),pageSizes:a.arrayOf(a.number),previousNext:a.bool,onPageChange:a.func,messagesMap:a.func},t.defaultProps={buttonCount:10,info:!0,type:"numeric"},t}(i.Component);t.Pager=v,p.registerForIntl(v),p.registerForLocalization(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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePageChange=function(e,n){e.preventDefault(),t.props.pageChange(n,e)},t.handleSelectPageChange=function(e){e.preventDefault(),t.props.pageChange(e.target.value,e)},t}return o(t,e),t.prototype.render=function(){for(var e=this,t=this.start>1&&this.renderDots(this.start-1),n=this.end<this.props.totalPages&&this.renderDots(this.end+1),r=this.start>1&&this.renderOptionDots(this.start-1),o=this.end<this.props.totalPages&&this.renderOptionDots(this.end+1),s=[],l=this.start;l<=this.end;l++)s.push(l);var u=s.map((function(t){return i.createElement("li",{key:t},i.createElement("a",{href:"#",onClick:function(n){return e.handlePageChange(n,t)},className:a.classNames("k-link",{"k-state-selected":e.props.currentPage===t})},t))})),c=s.map((function(e){return i.createElement("option",{key:e,className:a.classNames("k-link")},e)}));return i.createElement("div",{className:"k-pager-numbers-wrap"},i.createElement("select",{className:"k-dropdown",value:this.props.currentPage,onChange:function(t){return e.handleSelectPageChange(t)}},r,c,o),i.createElement("ul",{className:"k-pager-numbers k-reset"},t,u,n))},t.prototype.renderDots=function(e){var t=this;return i.createElement("li",null,i.createElement("a",{className:"k-link",onClick:function(n){return t.handlePageChange(n,e)},href:"#"},"..."))},t.prototype.renderOptionDots=function(e){return i.createElement("option",{className:"k-link",value:e},"...")},Object.defineProperty(t.prototype,"end",{get:function(){return Math.min(this.start+this.props.buttonCount-1,this.props.totalPages)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){var e=this.props.currentPage,t=this.props.buttonCount;if(e>t){var n=e%t;return 0===n?e-t+1:e-n+1}return 1},enumerable:!0,configurable:!0}),t}(i.Component);t.PagerNumericButtons=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(4),s=n(8),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._text=void 0,t.onChange=function(e){var n=t._text=e.target.value.replace(/\D/g,"");t.forceUpdate(),n&&t.props.pageChange(parseInt(n,10),e)},t.value=function(){var e=void 0===t._text?t.props.currentPage.toString():t._text;return t._text=void 0,e},t}return o(t,e),t.prototype.render=function(){var e=this,t=a.provideIntlService(this),n=a.provideLocalizationService(this),r=this.props.messagesMap?this.props.messagesMap(s.pagerPage):{messageKey:s.pagerPage,defaultMessage:s.messages[s.pagerPage]},o=this.props.messagesMap?this.props.messagesMap(s.pagerOf):{messageKey:s.pagerOf,defaultMessage:s.messages[s.pagerOf]},l=this.props.messagesMap?this.props.messagesMap(s.pagerTotalPages):{messageKey:s.pagerTotalPages,defaultMessage:s.messages[s.pagerTotalPages]};return i.createElement("span",{className:"k-pager-input k-label"},n.toLanguageString(r.messageKey,r.defaultMessage),i.createElement("input",{className:"k-textbox",value:this.value(),onBlur:function(){return e.forceUpdate()},onChange:this.onChange}),n.toLanguageString(o.messageKey,o.defaultMessage)+" "+t.format(n.toLanguageString(l.messageKey,l.defaultMessage),[this.props.totalPages]))},t}(i.Component);t.PagerInput=l,a.registerForLocalization(l)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(4),s=n(8),l=n(9),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pageSizeChange=function(e){t.props.pageChange&&t.props.pageChange({skip:0,take:parseInt(e.target.value,10)},e)},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.pageSizes.slice();0===t.filter((function(t){return t===e.props.pageSize})).length&&t.unshift(this.props.pageSize);var n=this.props.messagesMap?this.props.messagesMap(s.pagerItemPerPage):{messageKey:s.pagerItemPerPage,defaultMessage:s.messages[s.pagerItemPerPage]};return i.createElement("span",{className:"k-pager-sizes k-label"},i.createElement(l.DropDownList,{value:this.props.pageSize,data:t,onChange:this.pageSizeChange}),a.provideLocalizationService(this).toLanguageString(n.messageKey,n.defaultMessage))},t}(i.Component);t.PagerPageSizes=u,a.registerForLocalization(u)},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(11)),r(n(47)),r(n(48)),r(n(49)),r(n(50))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(9),u={emptyFilter:{operator:"eq",value:""},inputComponent:function(e){return null},operatorComponent:function(e,t){var n=t.filter,r=void 0===n?[]:n,o=t.field,s=r.find((function(e){return e.field===o}));return a.createElement(l.DropDownList,i({},e,{value:e.data.find((function(e){return e.operator===(s?s.value:"")})),onChange:function(e){if(t.onFilterChange){var n=e.target.value.operator;if(""!==n){var a=s?r.map((function(e){return e.field===o?i({},s,{value:n}):e})):r.concat([{value:n,field:o,operator:"eq"}]);t.onFilterChange.call(void 0,{filter:a,field:o,syntheticEvent:e.syntheticEvent})}else s&&t.onFilterChange.call(void 0,{filter:r.filter((function(e){return e.field!==s.field})),field:o,syntheticEvent:e.syntheticEvent})}}}))}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(u));t.BooleanFilterCell=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(21),u=n(9),c={inputComponent:function(e){return a.createElement(l.DatePicker,i({},e))},operatorComponent:function(e){return a.createElement(u.DropDownList,i({},e))},emptyFilter:{operator:"eq",value:null}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(c));t.DateFilterCell=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(9),u=n(13),c={inputComponent:function(e){return a.createElement(u.NumericTextBox,i({},e))},operatorComponent:function(e){return a.createElement(l.DropDownList,i({},e))},emptyFilter:{operator:"eq",value:null}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(c));t.NumericFilterCell=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(11),l=n(13),u=n(9),c={inputComponent:function(e){return a.createElement(l.Input,i({},e))},operatorComponent:function(e){return a.createElement(u.DropDownList,i({},e))},emptyFilter:{operator:"contains",value:""}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s.createFilterComponent(c));t.TextFilterCell=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(18),i=n(14),a=n(4),s=n(8);t.FILTER_ROW_CLASS="k-filter-row";var l=function(e,t,n){var r=n?"k-grid-header-sticky":"";return e.some((function(e){return e.field===t}))&&(r+=" k-sorted"),r};t.FilterRow=function(e){var n=e.columns,u=e.filter,c=e.filterChange,p=e.sort,d=void 0===p?[]:p,f=e.ariaRowIndex,h=a.useLocalization();return r.createElement("tr",{className:t.FILTER_ROW_CLASS,"aria-rowindex":f,role:"row"},n.map((function(e,t){var n=void 0!==e.locked?{left:e.left,right:e.right,borderRightWidth:e.rightBorder?"1px":""}:{},a=e.filterCell||e.filter;return r.createElement(o.HeaderThElement,{columnId:i.getFilterColumnId(e.id),navigatable:e.navigatable,style:n,key:t,ariaColumnIndex:e.ariaColumnIndex,ariaLabel:a?h.toLanguageString(s.filterAriaLabel,s.messages[s.filterAriaLabel]):void 0,className:l(d,e.field,e.locked)},a&&r.createElement(a,{field:e.field,filter:u,onFilterChange:c}))})))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(29),l=n(12),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props.columnResize;e&&e.resizable&&e.setIsRtl(s.isRtl(this.element))},t.prototype.render=function(){var e=this;return a.createElement("thead",i({className:"k-grid-header",role:"presentation",ref:function(t){return e.element=t}},l.tableKeyboardNavigationHeaderAttributes),this.props.headerRow,this.props.filterRow)},t}(a.Component);t.Header=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(30),l=n(31),u=n(54),c=n(55),p=n(18),d=n(2),f=n(4),h=n(8),v={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}},m={none:"none",asc:"ascending",desc:"descending"},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellClick=function(e,n){if(e.preventDefault(),t.props.sortChange){var r=l.normalize(t.props.sortable||!1,n.sortable||!1),o=r.allowUnsort,i=r.mode,a=(t.props.sort||[]).filter((function(e){return e.field===n.field}))[0],s=v[o][a&&a.dir||""],u="single"===i?[]:(t.props.sort||[]).filter((function(e){return e.field!==n.field}));""!==s&&n.field&&u.push({field:n.field,dir:s}),t.props.sortChange(e,u,n.field)}},t.cellKeyDown=function(e,n){e.isDefaultPrevented()||e.keyCode===d.Keys.enter&&t.cellClick(e,n)},t.cells=function(e){return e.map((function(e,n){var r=t.props.columns[e],o=t.props.columnResize,l=o&&o.resizable&&r.resizable,c=t.props.sortable&&r.sortable,v=t.props.sort?t.props.sort.findIndex((function(e){return e.field===r.field})):-1,g=v>=0&&t.props.sort[v].dir||"none",b={field:r.field,onClick:c&&function(e){return t.cellClick(e,r)}||void 0,selectionChange:t.props.selectionChange,title:r.title,selectionValue:r.headerSelectionValue,render:t.props.cellRender,children:t.sortIcon(v)},y=r.columnMenu||t.props.columnMenu,O=d.classNames({"k-first":r.kFirst,"k-filterable":Boolean(y),"k-header":!0,"k-grid-header-sticky":r.locked,"k-sorted":t.props.sort&&t.props.sort.some((function(e){return e.field===r.field}))},r.headerClassName),k=void 0!==r.locked?{left:r.left,right:r.right,borderRightWidth:r.rightBorder?"1px":""}:{},w=f.provideLocalizationService(t).toLanguageString(h.sortAriaLabel,h.messages[h.sortAriaLabel]),C=r.isAccessible?{ariaSort:c?m[g]:void 0,role:"columnheader",ariaColumnIndex:r.ariaColumnIndex,ariaSelected:!1,ariaDescription:c?w:""}:{role:"presentation"},x={sort:t.props.sort,onSortChange:t.props.sortChange,filter:t.props.columnMenuFilter,onFilterChange:t.props.columnMenuFilterChange,field:r.field};return a.createElement(p.HeaderThElement,i({key:n,colSpan:r.colSpan,rowSpan:r.rowSpan,className:O,style:k,columnId:r.id,navigatable:r.navigatable,onKeyDown:c&&function(e){return t.cellKeyDown(e,r)}||void 0},C),r.headerCell&&a.createElement(r.headerCell,i({},b)),!r.headerCell&&a.createElement("span",{className:"k-cell-inner"},a.createElement(s.HeaderCell,i({},b)),y&&a.createElement(y,i({},x))),o&&l&&a.createElement(u.ColumnResizer,{key:"ColumnResizer",resize:function(e,t,n){return o.dragHandler(e,r,t,n)}}))}))},t}return o(t,e),t.prototype.sortIcon=function(e){return this.props.sort?e>=0&&[a.createElement("span",{key:1,className:"k-icon k-i-sort-"+this.props.sort[e].dir+"-sm"}),this.props.sort.length>1&&a.createElement("span",{key:2,className:"k-sort-order"},e+1)]:null},t.prototype.render=function(){var e=this;return this.props.columnsMap.map((function(t,n){return e.props.pressHandler&&a.createElement(c.ColumnDraggable,{key:n,pressHandler:e.props.pressHandler,dragHandler:e.props.dragHandler,releaseHandler:e.props.releaseHandler,ariaRowIndex:n+1},e.cells(t))||a.createElement("tr",{"aria-rowindex":n+1,role:"row"},e.cells(t))}))},t}(a.Component);t.HeaderRow=g,f.registerForLocalization(g)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onDrag=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.resize(e.event,n,!1)},t.onRelease=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.resize(e.event,n,!0)},t}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(a.Draggable,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){e.draggable=t}},i.createElement("span",{className:"k-column-resizer",draggable:!1}))},t}(i.PureComponent);t.ColumnResizer=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onPress=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.pressHandler&&t.props.pressHandler(e.event,n)},t.onDrag=function(e){var n=t.draggable&&t.draggable.element;n&&t.props.dragHandler&&t.props.dragHandler(e.event,n)},t.onRelease=function(e){t.draggable&&t.draggable.element&&t.props.releaseHandler&&t.props.releaseHandler(e.event)},t}return o(t,e),t.prototype.render=function(){var e=this;return i.createElement(a.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){e.draggable=t}},i.createElement("tr",{"aria-rowindex":this.props.ariaRowIndex,role:"row"},this.props.children))},t}(i.PureComponent);t.ColumnDraggable=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.HeaderSelectionCell=function(e){var t=[r.createElement("input",{key:0,checked:e.selectionValue,id:e.inputId,type:"checkbox",className:"k-checkbox",onChange:function(t){return e.selectionChange({field:e.field,syntheticEvent:t})}}),r.createElement("label",{key:1,className:"k-checkbox-label",htmlFor:e.inputId})];return e.render?e.render.call(void 0,t,e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(58))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableColumnsVirtualization=function(e){var t=e.enabled,n=e.columns,r=void 0===n?[]:n,o=e.tableViewPortWidth,i=e.scrollLeft,a=r.map((function(){return 1})),s=r.map((function(){return!1}));if(!t)return{colSpans:a,hiddenColumns:s};for(var l=r.map((function(e){return parseFloat((e.width||"").toString())||10})),u=0,c=0;c<r.length;c++)if(!r[c].locked){var p=c<l.length-1?l[c+1]:0;if(!(u+l[c]+p<i))break;s[c]=!0,u+=l[c]}var d=l.reduce((function(e,t){return e+t}),0);for(u=0,c=r.length-1;c>=0;c--)if(!r[c].locked){if(!(u+2*l[c]<d-o-i))break;s[c]=!0,u+=l[c]}for(var f,h,v=s.slice(),m=function(e){return e},g=v.lastIndexOf(!1),b=v.some(m),y=v.every(m);b&&v.length&&(-1!==g||y);){for(g<v.length-1&&(f=y?v.length:v.length-g-1,0===(h=v.length-f)&&(h=f-1),s[h]=!1,a[h]=f,v.splice(g+1,f));v.length&&!v[v.length-1];)v.pop();g=v.lastIndexOf(!1),b=v.some(m),y=v.every(m)}return{colSpans:a,hiddenColumns:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.resizable=!1,this.isRtl=!1,this.setIsRtl=function(e){t.isRtl=e},this.onResize=e,this.dragHandler=this.dragHandler.bind(this)}return e.prototype.dragHandler=function(e,t,n,r){var o=e.originalEvent;r||(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation());var i=n.parentElement;if(i&&i.parentElement){var a,s=i.clientWidth;if(this.isRtl?(a=n.getBoundingClientRect().right-n.offsetWidth/2-e.clientX,a+=s):a=s+e.clientX-n.getBoundingClientRect().left-n.offsetWidth/2,r||!(Math.abs(a-s)<1)){this.setWidths(t,Math.floor(a)/s);var l=this.columns.filter((function(e){return!e.children.length})).indexOf(t);this.onResize(l,s,a,o,r)}}},e.prototype.setWidths=function(e,t){for(var n=this.columns.indexOf(e),r=[],o=e.children.length,i=n+1;o>0&&i<this.columns.length;i++,o--){var a=this.columns[i];a.children.length?o+=a.children.length:r.push(a)}0===r.length&&r.push(e),r.forEach((function(e){var n=e.width?parseFloat(e.width.toString())*t:0,r=void 0===e.minResizableWidth?10:e.minResizableWidth;n<r&&(n=r),e.width=Math.floor(n)})),this.updateColElements(r)},e.prototype.updateColElements=function(e){for(var t=this.columns.filter((function(e){return!e.children.length})),n=1e-10,r=0;r<e.length;r++){var o=t.indexOf(e[r]),i=parseFloat((e[r].width||0).toString());n+=i-Math.floor(i);var a=Math.floor(i)+Math.floor(n);n-=Math.floor(n),this.setColWidth(this.colGroupMain&&this.colGroupMain.children[o],a),this.setColWidth(this.colGroupHeader&&this.colGroupHeader.children[o],a),this.setColWidth(this.colGroupFooter&&this.colGroupFooter.children[o],a)}},e.prototype.setColWidth=function(e,t){e&&(e.style.width=t+"px")},e}();t.ColumnResize=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),o=function(){function e(e,t,n){var r=this;this.reorderable=!1,this.groupable=!1,this.startColumn=-1,this.startGroup=-1,this.currentColumn=-1,this.currentGroup=-1,this.dropElementClue=null,this.dragElementClue=null,this.groupPanelDivElement=null,this.refGroupPanelDiv=function(e){r.groupPanelDivElement=e},this.refDropElementClue=function(e){r.dropElementClue=e},this.refDragElementClue=function(e){r.dragElementClue=e},this.pressHandler=function(e,t){e.isTouch||e.originalEvent.preventDefault();var n=r.getColumnIndex(e,t);if(r.startGroup=r.getGroupIndex(e),n>=0){var o=r.columns[n];(o.reorderable&&r.reorderable||o.groupable&&r.groupable)&&(r.startColumn=n)}},this.dragHandler=function(e,t){if(e.isTouch||e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),-1!==r.startColumn||-1!==r.startGroup){r.currentColumn=r.getColumnIndex(e,t),r.currentGroup=r.getGroupIndex(e),r.groupPanelDivElement&&r.startGroup>=0&&(r.currentGroup=Math.min(r.currentGroup,r.groupPanelDivElement.children.length-2));var n=!r.isValid();n&&(r.currentColumn=-1,r.currentGroup=-1);var o=r.currentColumn>=0?t.children[r.columns[r.currentColumn].index]:r.groupPanelDivElement&&r.groupPanelDivElement.children[r.currentGroup];r.updateDragElementClue(e,t,o,n),r.updateDropElementClue(e,t,o,n)}},this.releaseHandler=function(e){var t=r.startColumn,n=r.currentColumn,o=r.startGroup,i=r.currentGroup;r.dropElementClue&&r.dropElementClue.setState({visible:!1}),r.dragElementClue&&r.dragElementClue.setState({visible:!1});var a=r.isValid();r.startColumn=r.startGroup=r.currentColumn=r.currentGroup=-1,a&&(t>=0&&n>=0?r.columnReorder(t,n,e.originalEvent):o>=0&&i>=0?r.groupReorder(o,i,e.originalEvent):t>=0&&i>=0&&r.columnToGroup(t,i,e.originalEvent))},this.columnReorder=e,this.groupReorder=t,this.columnToGroup=n}return e.prototype.getColumnIndex=function(e,t){if(!t||t.parentElement===this.groupPanelDivElement)return-1;var n=r.getIndex(e,t);if(-1===n)return-1;for(var o=function(e){if(t.parentNode.children[e]===t)return{value:i.columns.findIndex((function(t){return t.index===n&&t.depth===e}))}},i=this,a=0;a<t.parentNode.children.length;a++){var s=o(a);if("object"==typeof s)return s.value}return-1},e.prototype.getGroupIndex=function(e){return r.getIndex(e,this.groupPanelDivElement)},e.prototype.isValid=function(){return this.startGroup>=0?this.currentGroup>=0&&this.currentGroup!==this.startGroup:-1!==this.startColumn&&(this.currentGroup>=0?!0===this.columns[this.startColumn].groupable&&!0===this.groupable:!0===this.reorderable&&this.currentColumn>=0&&this.currentColumn!==this.startColumn&&!0===this.columns[this.startColumn].reorderable&&this.columns[this.currentColumn].parentIndex===this.columns[this.startColumn].parentIndex)},e.prototype.updateDragElementClue=function(e,t,n,r){if(this.dragElementClue){var o=this.startColumn>=0?t.children[this.columns[this.startColumn].index].innerText:t.innerText;this.dragElementClue.setState({visible:!0,top:e.pageY+10,left:e.pageX,innerText:o,status:r||!n?"k-i-cancel":"k-i-add"})}},e.prototype.updateDropElementClue=function(e,t,n,r){if(this.dropElementClue)if(!r&&n){var o=n.getBoundingClientRect(),i=o.left+e.pageX-e.clientX-6;(this.currentColumn>this.startColumn||this.currentGroup>this.startGroup&&-1!==this.startGroup)&&(i+=o.width);var a=o.top+e.pageY-e.clientY;this.dropElementClue.setState({visible:!0,top:a,left:i,height:this.currentColumn>=0?t.clientHeight:o.height})}else this.dropElementClue.setState({visible:!1})},e}();t.CommonDragLogic=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)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(15),s=n(2),l=function(e){function t(t){var n=e.call(this,t)||this;return n.elementRef=i.createRef(),n.state={visible:!1,top:0,left:0,innerText:"",status:"k-i-cancel"},n.hiddenElementRef=i.createRef(),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.hiddenElementRef.current,t=this.state.visible&&s.canUseDOM&&a.createPortal(i.createElement("div",{ref:this.elementRef,className:"k-header k-drag-clue",style:{display:"block",position:"absolute",zIndex:2e4,padding:"8px 12px",top:this.state.top+"px",left:this.state.left+"px"}},i.createElement("span",{className:"k-icon k-drag-status "+this.state.status+" k-icon-with-modifier"},i.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.innerText),e&&e.ownerDocument?e.ownerDocument.body:document.body);return i.createElement(i.Fragment,null,t,i.createElement("div",{ref:this.hiddenElementRef,style:{display:"none"}}))},t}(i.PureComponent);t.DragClue=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(15),s=n(2),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={height:0,visible:!1,left:0,top:0},n.hiddenElementRef=i.createRef(),n}return o(t,e),t.prototype.render=function(){var e=this.hiddenElementRef.current,t=this.state.visible&&s.canUseDOM&&a.createPortal(i.createElement("div",{className:"k-grouping-dropclue",style:{zIndex:1e4,display:"block",top:this.state.top+"px",left:this.state.left+"px",height:this.state.height+"px"}}),e&&e.ownerDocument?e.ownerDocument.body:document.body);return i.createElement(i.Fragment,null,t,i.createElement("div",{ref:this.hiddenElementRef,style:{display:"none"}}))},t}(i.PureComponent);t.DropClue=l},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(64)),r(n(33)),r(n(69)),r(n(34)),r(n(19))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(65)),r(n(66)),r(n(67)),r(n(68)),r(n(32))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(13),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value})})},t}return o(t,e),t.prototype.render=function(){return a.createElement(l.Input,{value:this.props.filter.value||"",onChange:this.onChange})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired},t}(a.Component);t.TextFilter=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(13),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value})})},t}return o(t,e),t.prototype.render=function(){var e=this.props.filter;return a.createElement(l.NumericTextBox,{value:"number"==typeof e.value?e.value:null,onChange:this.onChange})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired},t}(a.Component);t.NumericFilter=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(21),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){t.props.onFilterChange.call(void 0,{nextFilter:i({},t.props.filter,{value:e.value})})},t}return o(t,e),t.prototype.render=function(){var e=this.props.filter;return a.createElement(l.DatePicker,{value:e.value||null,onChange:this.onChange})},t.propTypes={filter:s.object.isRequired,onFilterChange:s.func.isRequired},t}(a.Component);t.DateFilter=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=n(32),l=n(8),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[{text:l.filterIsTrue,value:!0},{text:l.filterIsFalse,value:!1}],t}return o(t,e),t.prototype.render=function(){return i.createElement(s.EnumFilter,{filter:this.props.filter,onFilterChange:this.props.onFilterChange,data:this.props.data||this.data,defaultItem:this.props.defaultItem})},t.propTypes={filter:a.object.isRequired,onFilterChange:a.func.isRequired,data:a.arrayOf(a.shape({text:a.string,value:a.any})),defaultItem:a.any},t}(i.Component);t.BooleanFilter=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)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=n(34),u=n(2),c=n(17),p=function(e){function t(t){var n=e.call(this,t)||this;return n.onFilterChange=function(e){var t={filter:e.nextFilter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:n};n.props.onChange.call(void 0,t)},n.onGroupRemove=function(e){var t={filter:i({},n.props.value,{filters:[]}),syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:n};n.props.onChange.call(void 0,t)},u.validatePackage(c.packageMetadata),n}return o(t,e),t.prototype.render=function(){return a.createElement("div",{className:"k-widget k-filter"+(this.props.className?" "+this.props.className:""),style:this.props.style},a.createElement("ul",{className:"k-filter-container"},a.createElement("li",{className:"k-filter-group-main"},a.createElement(l.Group,{filter:this.props.value,fields:this.props.fields,onChange:this.onFilterChange,onRemove:this.onGroupRemove,defaultGroupFilter:this.props.defaultGroupFilter||{logic:"and",filters:[]}}))))},t.propTypes={className:s.string,style:s.object,fields:function(e,t){var n=e[t];return void 0===n?new Error("Property '"+t+"' is missing."):Array.isArray(n)?Object.keys(n.reduce((function(e,t){var n;return i({},e,((n={})[t.name]=1,n))}),{})).length!==n.length?new Error("Property '"+t+"' needs to contain objects with unique 'name' field."):null:new Error("Property '"+t+"' needs to be Array<FieldSettings>.")},value:s.object.isRequired,onChange:s.func.isRequired},t}(a.Component);t.Filter=p},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(71)),r(n(39)),r(n(38)),r(n(36)),r(n(35)),r(n(37))},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)},o=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 i=n(1),a=n(7),s=n(4),l=n(22),u=n(35),c=n(36),p=n(38),d=n(39),f=n(8),h=n(2),v=n(17),m=function(e){h.validatePackage(v.packageMetadata);var t=i.useRef([]),n=e.field,o=e.filter,c=e.sort,p=void 0===c?t.current:c,m=e.onSortChange,g=e.onFilterChange,b=e.initialFilter,y=e.sortAsc,O=void 0!==y&&y,k=e.sortDesc,w=void 0!==k&&k,C=e.filterContent,x=void 0===C?[]:C,E=e.expandFilters,D=void 0!==E&&E,I=i.useState(!1),_=I[0],P=I[1],S=i.useState(D),j=S[0],N=S[1],F=i.useState(n&&b?b(n):null),M=F[0],T=F[1],R=i.useRef(null),L=i.useRef(null),V=i.useRef(null),B=i.useCallback((function(){return(o||[]).find((function(e){return e.filters.every((function(e){return!l.isCompositeFilterDescriptor(e)&&e.field===n}))}))}),[o,n]),A=i.useCallback((function(){P(!1)}),[]),K=i.useCallback((function(){clearTimeout(V.current),V.current=window.setTimeout((function(){A()}))}),[A]),q=i.useCallback((function(){return clearTimeout(V.current)}),[]),H=i.useCallback((function(){P(!_),n&&b&&(N(!_&&D),T(_?M:B()||b(n)))}),[B,n,_,M,b,D]);i.useEffect((function(){_&&L.current&&L.current.focus()}),[_]);var z=i.useCallback((function(){return N(!j)}),[j]),U=i.useCallback((function(e,t){var r=p.slice(),o=r.findIndex((function(e){return e.field===n})),i={field:n,dir:t};o>=0?r[o].dir!==i.dir?r.splice(o,1,i):r.splice(o,1):r.push(i),A(),m&&m.call(void 0,e,r,n)}),[p,n,m,A]),W=i.useCallback((function(e,t,n){var o=r({},M,{filters:M.filters.slice()}),i=o.filters.indexOf(n);o.filters.splice(i,1,t),T(o)}),[M]),Y=i.useCallback((function(e){e.preventDefault();var t=(o||[]).slice(),r=B(),i=r?t.indexOf(r):-1;i>=0?t.splice(i,1,M):t.push(M),A(),g&&g.call(void 0,e,t,n)}),[o,M,n,g,A,B]),G=i.useCallback((function(e){var t=(o||[]).slice(),r=B(),i=r?t.indexOf(r):-1;i>=0&&t.splice(i,1),b&&T(b(n)),A(),g&&g.call(void 0,e,t,n)}),[o,n,g,b,A,B]),X=i.useCallback((function(e){return U(e,"asc")}),[U]),Z=i.useCallback((function(e){return U(e,"desc")}),[U]),$=i.useCallback((function(e){return M&&T(r({},M,{logic:e.value.logic}))}),[M]),J=p.find((function(e){return e.field===n}))||{dir:""},Q=x[0],ee=x[1],te=x[2],ne=s.useLocalization(),re=[O||w?i.createElement("div",{className:"k-columnmenu-item-wrapper",key:"sorting"},O&&i.createElement(u.ColumnMenuItem,{title:ne.toLanguageString(f.columnMenuSortAscending,f.messages[f.columnMenuSortAscending]),iconClass:"k-i-sort-asc-sm",selected:"asc"===J.dir,onClick:X}),w&&i.createElement(u.ColumnMenuItem,{title:ne.toLanguageString(f.columnMenuSortDescending,f.messages[f.columnMenuSortDescending]),iconClass:"k-i-sort-desc-sm",selected:"desc"===J.dir,onClick:Z})):null,M&&x.length>0?i.createElement("div",{className:"k-columnmenu-item-wrapper",key:"filtering"},i.createElement(u.ColumnMenuItem,{iconClass:"k-i-filter",title:ne.toLanguageString(f.columnMenuFilterTitle,f.messages[f.columnMenuFilterTitle]),onClick:z}),i.createElement(d.ColumnMenuFilterForm,{show:j,onSubmit:Y,onReset:G},Q&&i.createElement(Q,{filter:M.filters[0],onFilterChange:W}),ee&&i.createElement(ee,{value:M.logic,onChange:$}),te&&i.createElement(te,{filter:M.filters[1],onFilterChange:W}))):null],oe=[i.createElement("span",{ref:R,onClick:H,className:"k-grid-column-menu k-grid-filter"+(Boolean(B())?" k-state-active":""),key:"button"},i.createElement("span",{className:"k-icon k-i-more-vertical"})),i.createElement(a.Popup,{anchor:R.current,show:_,key:"popup"},i.createElement("div",{className:"k-grid-columnmenu-popup",ref:L,tabIndex:0,onBlur:K,onFocus:q,style:{outline:"none"}},e.itemsRender?e.itemsRender.call(void 0,re,{closeMenu:A,field:n}):re))];return e.render?e.render.call(void 0,oe):oe};t.ColumnMenuTextColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"and",filters:[{operator:"contains",field:e,value:""},{operator:"contains",field:e,value:""}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuTextFilter,p.ColumnMenuFilterLogic,c.ColumnMenuTextFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))},t.ColumnMenuNumericColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"or",filters:[{operator:"eq",field:e,value:null},{operator:"eq",field:e,value:null}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuNumericFilter,p.ColumnMenuFilterLogic,c.ColumnMenuNumericFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))},t.ColumnMenuDateColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"or",filters:[{operator:"eq",field:e,value:null},{operator:"eq",field:e,value:null}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuDateFilter,p.ColumnMenuFilterLogic,c.ColumnMenuDateFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))},t.ColumnMenuBooleanColumn=function(e){var t=e.field,n=o(e,["field"]),a=i.useCallback((function(e){return{logic:"and",filters:[{operator:"eq",field:e,value:!1}]}}),[]),s=Boolean(e.field),l=s?[c.ColumnMenuBooleanFilter]:[];return i.createElement(m,r({sortAsc:s,sortDesc:s,filterContent:l,initialFilter:s?a:void 0,field:t},n))}},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(22);function i(e,t,n){var o;return n?r({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}t.orderBy=function(e,t,n){var a=o.orderBy(e,t);return a=a.map((function(e){return function e(t,n,a){var s;if(t[a]){var l=i(t,a,o.orderBy(i(t,a),n)),u=i(l,a).map((function(t){return e(t,n,a)}));return r({},l,((s={})[a]=u,s))}return t}(e,t,n)}))},t.filterBy=function(e,t,n){var r,a=((r={})[n]=e.slice(),r);return(a=function e(t,n,r){var a=i(t,r);if(a&&a.length){a=a.map((function(t){return e(t,n,r)}));var s={filters:[{filters:n,logic:"and"},{operator:function(e){return Boolean((e[r]||[]).length)}}],logic:"or"},l=o.filterBy(a,s);return i(t,r,l)}return t}(a,t,n))[n]||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=function(e,t,n){e.items&&(e.groupId=""+n+(n&&"_")+e.value+e.field,t>1&&e.items.forEach((function(n){return o(n,t-1,e.groupId)})))};t.setGroupIds=function(e){var t=e.group;if(t&&t.length&&e.data)return e.data.forEach((function(e){return o(e,t.length,"")}))},t.getGroupIds=function(e){var t=[];return r.mapTree(e.data,"items",(function(e){e.groupId&&t.push(e.groupId)})),t},t.setExpandedState=function(e){return r.mapTree(e.data,"items",(function(t){return r.extendDataItem(t,"items",{expanded:!e.collapsedIds.some((function(e){return e===t.groupId}))})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(14),i=function(e){var t=e.navigationStateRef,n=e.scope;if(t.current&&n){var r=[],i=o.getHeaderElement(n),a=o.getBodyElement(n);if(i&&a){var s=Array.from(i.children),l=Array.from(a.children);s.concat(l).forEach((function(e,t){Array.from(e.children).forEach((function(e){var n=o.getNavigatableId(e);if(n){for(var i,a=e.rowSpan||1,s=e.colSpan||1,l=t,u=t+a;l<u;l++){if(r[l]||(r[l]=[]),void 0===i){var c=r[l].findIndex((function(e){return!e}));i=c>-1?c:r[l].length}r[l][i]=n||""}for(l=i+1,u=i+s;l<u;l++)r[t][l]=n||""}}))})),t.current.navigationMatrix=r.filter((function(e){return!!e})),t.current.lastHeaderIndex=s.length-1}}};t.tableKeyboardNavigation={onConstructor:function(e){var t=e.navigatable,n=e.contextStateRef,o=e.navigationStateRef,i=e.idPrefix;t&&(n.current={activeId:"",level:0},o.current={activeElementIsFocused:!1,prevNavigationIndexes:void 0,idPrefix:i||r.guid(),navigationMatrix:[],lastHeaderIndex:-1})},onComponentDidMount:function(e){var t=e.scope,n=e.contextStateRef,r=e.navigationStateRef;if(n.current&&r.current&&t){i(e);var a=r.current.navigationMatrix[0][0],s=o.tableKeyboardNavigationTools.getActiveElement(t,a);a&&s&&(n.current.activeId=a,s.setAttribute("tabIndex","0"))}},onGetSnapshotBeforeUpdate:function(e){var t=e.contextStateRef,n=e.navigationStateRef,r=e.document;if(t.current&&n.current&&r){var i=r.activeElement,a=o.tableKeyboardNavigationTools.getNavigatableId(i);a&&a===t.current.activeId&&(n.current.activeElementIsFocused=!0)}},onComponentDidUpdate:function(e){var t=e.scope,n=e.contextStateRef,r=e.navigationStateRef;if(i(e),n.current&&r.current&&t){if(!o.tableKeyboardNavigationTools.getActiveElement(t,n.current.activeId)){var a=r.current.navigationMatrix[0][0],s=o.tableKeyboardNavigationTools.getActiveElement(t,a);a&&s&&(n.current.activeId=a,s.setAttribute("tabIndex","0"),r.current.activeElementIsFocused&&s.focus())}r.current.activeElementIsFocused=!1}},onFocus:function(e,t){var n=t.contextStateRef;if(!e.isDefaultPrevented()&&n.current){var r=e.target,i=o.tableKeyboardNavigationTools.getNavigatableId(r);if(i&&i!==n.current.activeId){var a=o.tableKeyboardNavigationTools.getClosestScope(r);if(!a)return;var s=o.tableKeyboardNavigationTools.getActiveElement(a,n.current.activeId);s&&s.setAttribute("tabIndex","-1"),r.setAttribute("tabIndex","0"),n.current.activeId=i}}},onKeyDown:function(e,t){var n=t.contextStateRef,i=t.navigationStateRef,a=t.onNavigationAction;if(!e.isDefaultPrevented()&&n.current&&i.current)if(e.keyCode!==r.Keys.esc){var s=e.target,l=o.tableKeyboardNavigationTools.getNavigatableId(s),u=o.tableKeyboardNavigationTools.getNavigatableLevel(s),c=o.tableKeyboardNavigationTools.getClosestScope(s),p=i.current.navigationMatrix;if(void 0!==u&&c){if(e.keyCode===r.Keys.enter){var d=o.tableKeyboardNavigationTools.getNavigatableElement(s,{level:u+1});if(d)return void o.tableKeyboardNavigationTools.focusElement({elementForFocus:d,event:e,contextStateRef:n,prevElement:s});w=o.tableKeyboardNavigationTools.getFocusableElements(s)[0];return void o.tableKeyboardNavigationTools.focusElement({elementForFocus:w,event:e,contextStateRef:n,prevElement:s})}if(e.keyCode===r.Keys.up||e.keyCode===r.Keys.down||e.keyCode===r.Keys.left||e.keyCode===r.Keys.right){var f=e.keyCode===r.Keys.up||e.keyCode===r.Keys.left,h=e.keyCode===r.Keys.up||e.keyCode===r.Keys.down,v=void 0;if(i.current&&i.current.prevNavigationIndexes){var m=i.current.prevNavigationIndexes,g=m[0],b=m[1];v=p[g][b]===l?i.current.prevNavigationIndexes:o.findId(p,l)}else v=o.findId(p,l);if(v){g=v[0],b=v[1];var y=h?o.findNextIdByRowIndex(g,b,l,p,f):o.findNextIdByCellIndex(g,b,l,p,f),O=y[0],k=y[1];if(O){w=o.tableKeyboardNavigationTools.getActiveElement(c,O);o.tableKeyboardNavigationTools.focusElement({elementForFocus:w,event:e,contextStateRef:n,prevElement:s}),i.current.prevNavigationIndexes=k,a&&a({focusElement:w,event:e})}}}}}else{var w=o.tableKeyboardNavigationTools.getClosestNavigatableElement(e.target);o.tableKeyboardNavigationTools.focusElement({elementForFocus:w,event:e,contextStateRef:n})}},generateMatrix:i}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),a=n(40),s=n(20);t.TableSelection=function(e){var t=e.onRelease,n=e.childRef,l=a.getSelectionOptions(e.selectable),u=l.enabled,c=l.drag,p=l.mode,d=l.cell,f=o.useRef(null),h=o.useRef(null),v=o.useRef({clientX:0,clientY:0}),m=o.useState(null),g=m[0],b=m[1],y=o.useRef(),O=o.useRef(!1),k=o.useRef(!1),w=o.useCallback((function(e){var t=e.event;k.current=t.originalEvent.target.hasAttribute(s.TABLE_PREVENT_SELECTION_ELEMENT),!k.current&&f.current&&(y.current=a.relativeContextElement(f.current.element),v.current={clientY:t.clientY,clientX:t.clientX})}),[]),C=o.useCallback((function(e){var t=e.event,n=v.current,r=n.clientX,o=n.clientY;if(!k.current&&c&&"single"!==p&&((Math.abs(o-t.clientY)>5||Math.abs(r-t.clientX)>5)&&(O.current=!0),O.current)){var i=a.getOffset(y.current);b({top:Math.min(o,t.clientY)-i.top,left:Math.min(r,t.clientX)-i.left,width:Math.abs(t.clientX-r),height:Math.abs(t.clientY-o)})}}),[b,c,p]),x=o.useCallback((function(e){var n=e.event,r=v.current,o=r.clientX,i=r.clientY;if(!k.current&&f.current){var s=f.current.element&&f.current.element.ownerDocument;if(s){if(O.current){var l=Math.min(i,n.clientY),u=Math.min(o,n.clientX),c=Math.max(i,n.clientY),m=Math.max(o,n.clientX),g=h.current;if(!g)return;g.style.visibility="hidden";S=s.elementFromPoint(u,l);var y=s.elementFromPoint(m,c);if(g.style.visibility="",!S||!y)return;var w=a.closestTagName(S,"TD"),C=a.closestTagName(w,"TR"),x=a.closestTagName(y,"TD"),E=a.closestTagName(x,"TR"),D=a.getColumnIndex(w),I=a.getRowIndex(C),_=a.getColumnIndex(x),P=a.getRowIndex(E);void 0!==D&&void 0!==I&&void 0!==_&&void 0!==P&&t({nativeEvent:n.originalEvent,startRowIndex:I,startColIndex:D,endRowIndex:P,endColIndex:_,altKey:n.altKey,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,mode:p,cell:d,isDrag:!0})}else{var S;if(!(S=s.elementFromPoint(o,i)))return;var j=a.closestTagName(S,"TD"),N=a.closestTagName(S,"TR"),F=a.getColumnIndex(j),M=a.getRowIndex(N);j&&N&&void 0!==M&&void 0!==F&&t({nativeEvent:n.originalEvent,startRowIndex:M,startColIndex:F,endRowIndex:M,endColIndex:F,altKey:n.altKey,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,mode:p,cell:d,isDrag:!1})}b(null),O.current=!1,v.current={clientX:0,clientY:0}}}}),[b,p,d,t]);return u?o.createElement(o.Fragment,null,o.createElement(i.Draggable,{onPress:w,onDrag:C,onRelease:x,ref:f,childRef:n},e.children),g&&o.createElement("div",{ref:h,style:r({},g,{position:"fixed"}),className:"k-marquee k-marquee-color"})):o.cloneElement(o.Children.only(e.children),{ref:n})}}])}));
|