UNPKG

@progress/kendo-react-grid

Version:
1 lines • 423 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-react-intl"),require("react-dom"),require("react-transition-group"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-react-intl","react-dom","react-transition-group","react-dom/server"],t):"object"==typeof exports?exports.KendoReactGrid=t(require("prop-types"),require("react"),require("@progress/kendo-react-intl"),require("react-dom"),require("react-transition-group"),require("react-dom/server")):e.KendoReactGrid=t(e.PropTypes,e.React,e.KendoReactIntl,e.ReactDOM,e.ReactTransitionGroup,e.ReactDOMServer)}(window,function(e,t,n,r,i,o){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=30)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var r,i=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)?i.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(" ")},o=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},a={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},s=function(){},l=function(){return function(){}}(),u=n(1),p=n(0),c=(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])},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(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,o=e.value,a=e.placeholder,s=e.valid,l=e.style,p=i({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(o||a),"k-state-invalid":!s&&void 0!==s},r);return u.createElement("span",{className:p,onFocus:this.handleFocus,onBlur:this.handleBlur,style:l},this.props.children,t?n?u.createElement("label",{htmlFor:n,className:"k-label"},t):u.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:p.string,id:p.string,value:p.string,placeholder:p.string,valid:p.bool},t}(u.Component);function h(e,t,n,r){if(e){var i={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(i,r))}}var f=function(){return"undefined"==typeof window},v=function(e,t){return function(n){return t(e(n))}},m=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},g=function(e,t,n){return e.removeEventListener&&e.removeEventListener(t,n)},y=function(){},b=function(e){return e.preventDefault()},w=/touch/;function k(e){return e.type.match(w)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var O=function(e){var t=this,n=e.press;void 0===n&&(n=y);var r=e.drag;void 0===r&&(r=y);var i=e.release;void 0===i&&(i=y);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=v(k,n),this._dragHandler=v(k,r),this._releaseHandler=v(k,i),this._ignoreMouse=!1,this._mouseOnly=o,this._touchAction,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(m(document,"mousemove",t._mousemove),m(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){g(document,"mousemove",t._mousemove),g(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(m(t._element,"pointermove",t._pointermove),m(t._element,"pointerup",t._pointerup),m(t._element,"contextmenu",b),t._touchAction=e.target.style.touchAction,e.target.style.touchAction="none",e.target.setPointerCapture(e.pointerId),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(g(t._element,"pointermove",t._pointermove),g(t._element,"pointerup",t._pointerup),g(t._element,"contextmenu",b),e.target.style.touchAction=t._touchAction,e.target.releasePointerCapture(e.pointerId),t._releaseHandler(e))}};O.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},O.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?m(e,"pointerdown",this._pointerdown):(m(e,"mousedown",this._mousedown),this._mouseOnly||(m(e,"touchstart",this._touchstart),m(e,"touchmove",this._touchmove),m(e,"touchend",this._touchend)))},O.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return g(e,"pointerdown",this._pointerdown),g(e,"pointermove",this._pointermove),void g(e,"pointerup",this._pointerup);g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend))},O.prototype._usePointers=function(){return!this._mouseOnly&&O.supportPointerEvent()},O.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},O.default=O;var _=O,C=function(){var 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])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new _({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t}return C(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){var e=this;return u.cloneElement(u.Children.only(this.props.children),{ref:function(t){return e.element=t}})},t.propTypes={children:p.element.isRequired},t}(u.PureComponent);n.d(t,"classNames",function(){return i}),n.d(t,"guid",function(){return o}),n.d(t,"Keys",function(){return a}),n.d(t,"noop",function(){return s}),n.d(t,"FloatingLabel",function(){return d}),n.d(t,"FormComponent",function(){return l}),n.d(t,"dispatchEvent",function(){return h}),n.d(t,"isServerRendering",function(){return f}),n.d(t,"Draggable",function(){return x})},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(7),o=n(0),a=n(29),s=n(15),l=n(2),u="bottom",p="center",c="middle",d="left",h="right",f="top",v=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,o=e.margin;void 0===o&&(o={});var a=n.horizontal,s=n.vertical,l=i.horizontal,d=i.vertical,f=o.horizontal||0,v=o.vertical||0,m=t.top,g=t.left;return s===u&&(m+=t.height),s!==p&&s!==c||(m+=Math.round(t.height/2)),d===u&&(m-=r.height,v*=-1),d!==p&&d!==c||(m-=Math.round(r.height/2),v*=-1),a===h&&(g+=t.width),a!==p&&a!==c||(g+=Math.round(t.width/2)),l===h&&(g-=r.width,f*=-1),l!==p&&l!==c||(g-=Math.round(r.width/2),f*=-1),{top:m+v,left:g+f}};function m(e){return e.ownerDocument||e.document||e}var g=function(e){return m(e).defaultView},y=function(e){return m(e).documentElement},b=0;function w(){if(!b&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),b=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return b}function k(e){var t=g(e),n=y(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=w()),r}var O=function(e){if(!e.getBoundingClientRect){var t=k(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||y(e)},C=function(e){return _(e)===e.ownerDocument.body},x=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=i,o}(e)),{top:r,left:n,height:t.height,width:t.width}},S=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function P(e){var t=y(e),n=g(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var D=function(e,t){var n=g(e),r=n.getComputedStyle(e),i=x(e),o=t||_(e),a=e.ownerDocument,s=o!==a.body&&o!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var u=n.getComputedStyle(o);(l=x(o)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:i.top-l.top,left:i.left-l.left,height:i.height,width:i.width}},I=function(e,t){return e?E(e):function(e){var t=_(e);return t?E(t):{x:0,y:0}}(t)};var j,T="fit",N="flip",F=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},M=function(e){var t=e.offset,n=e.size,r=e.anchorSize,i=e.viewPortSize,o=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==o&&!(a===p||a===c)&&!(o===p||o===c)){var u=o===f||o===d;t<0&&u?t+(s=n+r+l)+n>i&&(s=0):t>=0&&!u&&(t+n>i&&(s+=-(r+n+l)),t+s<0&&(s=0))}return s},R=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,o=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=r.top,u=r.left,p=r.height,c=r.width,d=a.height,h=a.width,f=s.horizontal||0,v=s.vertical||0,m=0,g=0,y=o.horizontal===N,b=o.vertical===N;o.vertical===T&&(g+=F(l,p,d)),o.horizontal===T&&(m+=F(u,c,h)),b&&(g+=M({margin:v,offset:l,size:p,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),y&&(m+=M({margin:f,offset:u,size:c,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var w=y&&0!==m,k=b&&0!==g;return{flipped:w||k,flip:{horizontal:w,vertical:k},offset:{left:m,top:g}}},V=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},L=function(e,t){for(var n,r,i=S(e),o=t;o&&(n=V(o),!(r=i.reduce(function(e,t){return e.concat(n.filter(function(e){return e===t}))},[])[0]));)o=o.parentElement;return r},H=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},A=function(){return"undefined"!=typeof document&&!!document.body},z=function(){return"undefined"!=typeof window},B=/auto|scroll/,q=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},K=1e3/60,G=function(){if(!A())return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}(),U="fit",W="flip",Y="left",X="center",Z="right",$="bottom",J="top",Q=function(e,t,n){var r,i,o,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(i,o),r||(i=o=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var p=t-(u-s);return i=this,o=arguments,p<=0||p>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,p)),a}},ee=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,i=e.elementAlign,o=e.offset,a=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,o):this.relativeRect(t,n,o);return this._dom.align({anchorAlign:r,anchorRect:a,elementAlign:i,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var r=this._dom,i=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(H(r.offset(e),n),r.stackingElementOffset(t)),o=r.stackingElementScroll(t),a=r.addScroll(i,o),s=this.elementScrollPosition(e,t),l=r.removeScroll(a,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return H(this._dom.position(e,t),n)},e}(),te=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return v(e)},e.prototype.boundingOffset=function(e){return O(e)},e.prototype.getWindow=function(){return z()?window:null},e.prototype.isBodyOffset=function(e){return C(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?x(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,r=t.top;e.style.left="0px",e.style.top="0px";var i=x(e);return e.style.left=n,e.style.top=r,i},e.prototype.position=function(e,t){return e&&t?function(e,t){var n=t?_(t):null,r=D(e,n),i=r.top,o=r.left,a=r.height,s=r.width,l=I(n,e),u=l.x;return{top:i+l.y,left:o+u,height:a,width:s}}(e,L(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),r=t,i=this.isBodyOffset(e),o=n.top,a=n.left,i&&(a=0,o=0),{top:o+r.top,left:a+r.left,height:n.height,width:n.width};var n,r,i,o,a},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return R(e)},e.prototype.scrollPosition=function(e){return P(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!A()||!z())return t;for(var n=e.parentElement;n;)B.test(q(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?x(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!G)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return k(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!A()||!z())return null;var n=L(e,t);if(!n)return null;var r=[e].concat(S(e,n)).reduce(function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e},0);return r?r+1:null}(e,t)},e.prototype.zoomLevel=function(){return A()&&z()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),ne=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,r=e.anchor,i=e.currentLocation,o=e.element,a=e.anchorAlign,s=e.elementAlign,l=e.collisions,u=this._dom,p=e.viewPort||u.stackingElementViewPort(o)||u.windowViewPort(o),c=H(u.offset(r),i),d=(t=u.staticOffset(o),(n=i)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(o,d),f=u.restrictToView({anchorAlign:a,anchorRect:c,collisions:l,elementAlign:s,elementRect:h,viewPort:p});return{flipped:f.flipped,offset:u.addOffset(d,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),re=(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oe={left:-1e3,top:0},ae="k-animation-container-shown",se=function(e){return i.findDOMNode(e)},le=function(e){function t(t){var n=e.call(this,t)||this;return n._exitingAnimation=!1,n._prevShow=!1,n.onOpened=function(){var e=se(n);n.props.show&&e.classList.add(ae),n.attachRepositionHandlers(e),n.props.open&&n.props.open.call(void 0,{target:n})},n.onClosing=function(){n.props.show||se(n).classList.remove(ae);n.detachRepositionHandlers()},n.onClosed=function(){n._exitingAnimation&&(n._exitingAnimation=!1,n.forceUpdate()),n.props.close&&n.props.close.call(void 0,{target:n})},n.position=function(e,t,r){var i=e.anchorAlign,o=e.popupAlign,a=e.collision,s=e.offset,l=n._alignService.alignElement({anchor:r,element:t,elementAlign:o,anchorAlign:i,offset:s});return n._positionService.positionElement({anchor:r,anchorAlign:i,collisions:a,element:t,currentLocation:l,elementAlign:o})},n._flipped=!1,n._offset=n.props.offset,n._prevShow=t.show,n._domService=new te,n._alignService=new ee(n._domService),n._positionService=new ne(n._domService),n.onOpened=n.onOpened.bind(n),n.onClosing=n.onClosing.bind(n),n.reposition=Q(n.reposition.bind(n),K),n}return re(t,e),t.prototype.componentDidUpdate=function(){this._prevShow=this.props.show},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=e.popupClass,a=e.show,u=e.id,p=e.appendTo,c=void 0===p?z()?document.body:void 0:p;if(a){var d=this.calculatePosition(this.props,c);this._offset=d.offset,this._flipped=!!d.flipped}var h=this._flipped&&a?"up":"down",f=this.transitionDuration,v=f.transitionEnterDuration,m=f.transitionExitDuration,g=Object.assign({},{position:"absolute"},this.props.style||{},ie({},this._offset));if(this._exitingAnimation=this._exitingAnimation||this._prevShow&&!a,(a||this._exitingAnimation)&&c){var y=r.createElement(s.Slide,{componentChildClassName:Object(l.classNames)(o,"k-popup"),className:Object(l.classNames)(n),id:u,onEntered:this.onOpened,onExiting:this.onClosing,onExited:this.onClosed,direction:h,style:g,transitionEnterDuration:v,transitionExitDuration:m,appear:!0},a?t:null);return i.createPortal(y,c)}return null},Object.defineProperty(t.prototype,"transitionDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},enumerable:!0,configurable:!0}),t.prototype.calculatePosition=function(e,t){if(!t||!z())return{flipped:!1,offset:e.offset};var n=document.createElement("div");t.appendChild(n);var i=Object.assign({},e.style||{},ie({visibility:"hidden"},oe)),o={className:Object(l.classNames)(e.popupClass,"k-popup","k-child-animation-container")},s=r.createElement("div",{className:Object(l.classNames)("k-animation-container",ae,e.className),style:i},r.Children.map(e.children,function(e,t){return r.createElement("div",ie({key:t},o),e)}));n.innerHTML=a.renderToStaticMarkup(s);var u=this.position(e,n.firstChild,e.anchor);return n.parentNode.removeChild(n),u},t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map(function(e){return e.addEventListener("scroll",t.reposition)}),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map(function(t){return t.removeEventListener("scroll",e.reposition)}),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.forceUpdate()},t.propTypes={anchor:function(e){var t=e.anchor;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed.")},appendTo:function(e){var t=e.appendTo;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed.")},className:o.string,id:o.string,popupClass:o.string,collision:o.shape({horizontal:o.oneOf([U,W]),vertical:o.oneOf([U,W])}),anchorAlign:o.shape({horizontal:o.oneOf([Y,X,Z]),vertical:o.oneOf([J,X,$])}),popupAlign:o.shape({horizontal:o.oneOf([Y,X,Z]),vertical:o.oneOf([J,X,$])}),offset:o.shape({left:o.number,top:o.number}),children:o.oneOfType([o.element,o.node]),show:o.bool,animate:o.oneOfType([o.bool,o.shape({openDuration:o.number,closeDuration:o.number})])},t.defaultProps={collision:{horizontal:U,vertical:W},anchorAlign:{horizontal:Y,vertical:$},popupAlign:{horizontal:Y,vertical:J},offset:oe,animate:!0,show:!1},t}(r.Component);n.d(t,"Popup",function(){return le})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.noRecords="grid.noRecords",t.pagerInfo="grid.pagerInfo",t.pagerFirstPage="grid.pagerFirstPage",t.pagerPreviousPage="grid.pagerPreviousPage",t.pagerNextPage="grid.pagerNextPage",t.pagerLastPage="grid.pagerLastPage",t.pagerItemPerPage="grid.pagerItemsPerPage",t.pagerPage="grid.pagerPage",t.pagerOf="grid.pagerOf",t.groupPanelEmpty="grid.groupPanelEmpty",t.filterClearButton="grid.filterClearButton",t.filterSubmitButton="grid.filterSubmitButton",t.filterTitle="grid.filterTitle",t.sortAscending="grid.sortAscending",t.sortDescending="grid.sortDescending",t.messages=((r={})[t.noRecords]="No records available",r[t.groupPanelEmpty]="Drag a column header and drop it here to group by that column",r[t.filterClearButton]="Clear",r[t.filterSubmitButton]="Filter",r[t.filterTitle]="Filter",r[t.sortAscending]="Sort Ascending",r[t.sortDescending]="Sort Descending",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["grid.filterEqOperator"]="Is equal to",r["grid.filterNotEqOperator"]="Is not equal to",r["grid.filterIsNullOperator"]="Is null",r["grid.filterIsNotNullOperator"]="Is not null",r["grid.filterIsEmptyOperator"]="Is empty",r["grid.filterIsNotEmptyOperator"]="Is not empty",r["grid.filterStartsWithOperator"]="Starts with",r["grid.filterContainsOperator"]="Contains",r["grid.filterNotContainsOperator"]="Does not contain",r["grid.filterEndsWithOperator"]="Ends with",r["grid.filterGteOperator"]="Is greater than or equal to",r["grid.filterGtOperator"]="Is greater than",r["grid.filterLteOperator"]="Is less than or equal to",r["grid.filterLtOperator"]="Is less than",r["grid.filterIsTrue"]="Is true",r["grid.filterIsFalse"]="Is false",r["grid.filterBooleanAll"]="(All)",r["grid.filterAfterOrEqualOperator"]="Is after or equal to",r["grid.filterAfterOperator"]="Is after",r["grid.filterBeforeOperator"]="Is before",r["grid.filterBeforeOrEqualOperator"]="Is before or equal to",r["grid.filterAndLogic"]="And",r["grid.filterOrLogic"]="Or",r)},function(e,t,n){"use strict";function r(e,t){var n=(e||"").split("."),r=t;return n.forEach(function(e){r=r?r[e]:void 0}),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getNestedValue=r,t.flatData=function e(t,n,i,o,a,s,l){void 0===l&&(l=0);for(var u=l,p=0;p<n.length;p++)if(a&&void 0!==n[p].value&&void 0!==n[p].items){u=Math.max(u,l+1);var c=void 0===s||void 0===r(s,n[p])||r(s,n[p]);t[t.length]={dataIndex:-1,dataItem:n[p],level:l,rowType:"groupHeader",expanded:c},c&&(u=Math.max(e(t,n[p].items,i,o,a,s,l+1),u)),("always"===i||c&&"visible"===i)&&(t[t.length]={dataIndex:-1,dataItem:n[p],rowType:"groupFooter",level:l,expanded:c})}else t[t.length]={dataIndex:++o.index,dataItem:n[p],rowType:"data",level:l,expanded:void 0===s||r(s,n[p])};return u},t.getIndex=function(e,t){if(!t||!e||!e.originalEvent)return-1;for(var n=document.elementFromPoint(e.clientX,e.originalEvent.clientY);n&&n.parentElement!==t;)n=n.parentElement;for(var r=t.children,i=0;i<r.length;i++)if(r[i]===n)return i;return-1};var i=["sortChange","filterChange","groupChange","pageChange","expandChange","selectionChange","headerSelectionChange","rowClick","itemChange","dataStateChange","columnResize","columnReorder"],o=function(e,t){return"The "+e+" event handler property is deprecated, use https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-"+t+" instead"};t.checkPropCompatibility=function(e){for(var t=0;t<i.length;t++){var n=i[t];if(void 0!==e[n]){var r="on"+n.charAt(0).toUpperCase()+n.slice(1);console.warn(o(n,r))}}},t.mapColumns=function(e){for(var t=[[]],n=0,r=e.length-1;r>=0;r--)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 i=0;e.forEach(function(e){i=Math.max(i,e.depth)});var o=1;e.forEach(function(e,r){t[e.depth]=t[e.depth]||[];var a=!1;0===t[e.depth].length&&(o<=1?o=1+(e.children.length>0?0:i-e.depth):(o--,a=!0)),e.rowSpan=1+(e.children.length>0?0:i-e.depth),e.kFirst=a,e.index=t[e.depth].length,t[e.depth].push(r),e.locked&&0===e.children.length&&(e.left=n,n+=e.width?parseFloat(e.width.toString()):0)});for(var a=!1,s=0,l=e.length-1;l>=0;l--){var u=e[l];u.locked&&0===u.children.length&&(u.right=s,s+=u.width?parseFloat(u.width.toString()):0,u.rightBorder=!a),a=u.locked||!1}return t};var a=n(16);t.readColumns=function e(t,n,r){void 0===r&&(r=0);var i=[];if(!t)return[];t&&void 0===t.length&&(t=[t]),t.forEach(function(t,o){t=t.props?t.props:t;var s=n[o]||null,l=e(t.children,s&&s.children||[],r+1);i.push(Object.assign({depth:r},a.GridColumn.defaultProps,l.length?{cell:function(){return null},filterCell:function(){return null}}:{},s?{width:s.width,orderIndex:s.orderIndex}:{},t,{declarationIndex:i.length,children:l,rowSpan:0,colSpan:0}))});if(i.sort(function(e,t){return e.orderIndex===t.orderIndex?e.declarationIndex-t.declarationIndex:(e.orderIndex||0)-(t.orderIndex||0)}),0===r){var o=[],s=function(e,t){return e.forEach(function(e){e.parentIndex=t,s(e.children,o.push(e)-1)})};return s(i,-1),o}return i},t.autoGenerateColumns=function(e,t,n){var r=[];Array.isArray(e)?r=e:e&&(r=e.data);var i=[];if(r.length>0){var o=r[0];if(t)for(var s=0;s<t.length;s++)o=o.items&&o.items[0];Object.getOwnPropertyNames(o).forEach(function(e){e!==n&&i.push(Object.assign({declarationIndex:-1,parentIndex:-1,depth:0,colSpan:0,rowSpan:0,index:0,left:0,right:0,rightBorder:!1,children:[]},a.GridColumn.defaultProps,{field:e}))})}return i}},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.filterLogicList=[{text:"grid.filterAndLogic",value:"and"},{text:"grid.filterOrLogic",value:"or"}],t.operators={text:[{text:"grid.filterEqOperator",value:"eq"},{text:"grid.filterNotEqOperator",value:"neq"},{text:"grid.filterContainsOperator",value:"contains"},{text:"grid.filterNotContainsOperator",value:"doesnotcontain"},{text:"grid.filterStartsWithOperator",value:"startswith"},{text:"grid.filterEndsWithOperator",value:"endswith"},{text:"grid.filterIsNullOperator",value:"isnull"},{text:"grid.filterIsNotNullOperator",value:"isnotnull"},{text:"grid.filterIsEmptyOperator",value:"isempty"},{text:"grid.filterIsNotEmptyOperator",value:"isnotempty"}],numeric:[{text:"grid.filterEqOperator",value:"eq"},{text:"grid.filterNotEqOperator",value:"neq"},{text:"grid.filterGteOperator",value:"gte"},{text:"grid.filterGtOperator",value:"gt"},{text:"grid.filterLteOperator",value:"lte"},{text:"grid.filterLtOperator",value:"lt"},{text:"grid.filterIsNullOperator",value:"isnull"},{text:"grid.filterIsNotNullOperator",value:"isnotnull"}],date:[{text:"grid.filterEqOperator",value:"eq"},{text:"grid.filterNotEqOperator",value:"neq"},{text:"grid.filterAfterOrEqualOperator",value:"gte"},{text:"grid.filterAfterOperator",value:"gt"},{text:"grid.filterBeforeOperator",value:"lt"},{text:"grid.filterBeforeOrEqualOperator",value:"lte"},{text:"grid.filterIsNullOperator",value:"isnull"},{text:"grid.filterIsNotNullOperator",value:"isnotnull"}],boolean:[{text:"grid.filterBooleanAll",value:""},{text:"grid.filterIsTrue",value:!0},{text:"grid.filterIsFalse",value:!1}]},t.IsUnaryFilter=function(e){return"isnull"===e||"isnotnull"===e||"isempty"===e||"isnotempty"===e},t.operatorMap=function(e,t){return e.map(function(e){return{text:t.toLanguageString(e.text,r.messages[e.text]),operator:e.value}})},t.defaultOperators={text:"contains",numeric:"eq",date:"eq",boolean:"eq"},t.defaultHideSecondFilter={text:!1,numeric:!1,date:!1,boolean:!0},t.cellInputChange=function(e,n,r){var i=r.operator;switch(r.filterType){case"numeric":i&&!t.IsUnaryFilter(i)||(i=t.defaultOperators.numeric),null===e&&i===t.defaultOperators.numeric&&(i="");break;case"date":i&&!t.IsUnaryFilter(i)||(i=t.defaultOperators.date),null===e&&i===t.defaultOperators.date&&(i="");break;case"text":i&&!t.IsUnaryFilter(i)||(i=t.defaultOperators.text),e||i!==t.defaultOperators.text||(i="");break;default:return}r.onChange({value:e,operator:i,syntheticEvent:n})},t.cellBoolDropdownChange=function(e,n){var r=e.target.value;n({value:r.operator,operator:""===r.operator?"":t.defaultOperators.boolean,syntheticEvent:e.syntheticEvent})},t.cellOperatorChange=function(e,n,r){var i=n,o=e.target.value;e.target.state.opened&&(t.IsUnaryFilter(o.operator)&&(i=null),r({value:i,operator:o.operator,syntheticEvent:e.syntheticEvent}))}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])},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 o=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){t.props.onClick&&t.props.onClick(e)},t}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.iconClass,r=e.selected;return o.createElement("div",{onClick:this.onClick,className:"k-columnmenu-item "+(r?"k-state-selected":"")},n&&o.createElement("span",{className:"k-icon "+n}),t)},t}(o.Component);t.GridColumnMenuItem=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])},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 o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.children;return o.createElement("div",{className:"k-columnmenu-item-wrapper"},e)},t}(o.Component);t.GridColumnMenuItemGroup=a},function(e,t,n){"use strict";n.r(t);var r,i=n(1),o=n(0),a=n(2),s=function(e){return e?new Date(e.getTime()):null},l=function(e,t){var n=s(e);return 0===t&&23===n.getHours()&&n.setHours(n.getHours()+2),n},u=function(e,t){var n=s(e);return n.setDate(n.getDate()+t),l(n,e.getHours())},p=function(e,t,n,r,i,o,a){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0);var s=new Date(e,t,n,r,i,o,a);return e>-1&&e<100&&s.setFullYear(s.getFullYear()-1900),l(s,r)},c=function(e){var t=p(e.getFullYear(),e.getMonth()+1,1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return u(t,-1)},d=function(e,t){var n=s(e),r=(12+(n.getMonth()+t)%12)%12;return n.setMonth(n.getMonth()+t),function(e,t){return e.getMonth()!==t?c(d(e,-1)):e}(l(n,e.getHours()),r)},h=function(e,t){return u(e,7*t)},f=function(e,t){var n=e.getMonth(),r=p(t,n,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return r.getMonth()===n?r:c(d(r,-1))},v=function(e,t){return l(f(e,e.getFullYear()+t),e.getHours())},m=function(e,t){return v(e,10*t)},g=function(e,t){return v(e,100*t)};!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(r||(r={}));var y,b=function(e,t,n){void 0===n&&(n=r.Forward);var i=s(e),o=(t-i.getDay()+7*n)%7;return i.setDate(i.getDate()+o),l(i,e.getHours())};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(y||(y={}));var w,k,O,_,C,x=function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},S=function(e,t){return t.getFullYear()-e.getFullYear()},P=function(e,t){return f(e,t(e.getFullYear()))},E=function(e){return P(e,function(e){return e-e%10})},D=function(e,t){return(E(t).getFullYear()-E(e).getFullYear())/10},I=function(e){return P(e,function(e){return e-e%100})},j=function(e,t){return(I(t).getFullYear()-I(e).getFullYear())/100},T=function(e){return p(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0)},N=function(e){return p(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},F=function(e,t){var n=e.getDate(),r=p(e.getFullYear(),t,n,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return r.getDate()===n?r:c(d(r,-1))},M=function(e){return F(e,0)},R=function(e,t){return!e&&!t||e&&t&&e.getTime()===t.getTime()},V=function(e,t){return!e&&!t||e&&t&&R(T(e),T(t))},L=function(e){return F(e,11)},H=function(e){return P(e,function(e){return e-e%10+9})},A=function(e){return P(e,function(e){return e-e%100+90})},z=function(e,t){return t!==y.Monday?u(function(e,t){return b(e,t,r.Backward)}(e,t),4):u(e,4-(e.getDay()||7))},B=function(e,t){var n=p(e.getFullYear(),0,1,-6),r=z(e,t).getTime()-n.getTime(),i=Math.floor(r/864e5);return 1+Math.floor(i/7)},q=n(3),K=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,i=0;i<e;i++)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}(),G=function(e){return Math.max(e,0)},U=function(){return function(e){this.offset=e}}(),W=function(){return function(e){this.skip=e}}(),Y=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,i,o,a){void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=i,this.bottomOffset=o,this.direction=a;var s=this.rowsForHeight(i),l=G(t-s);this.onScrollAction(new U(this.rowOffset(l))),this.onPageAction(new W(l))},e.prototype.onScroll=function(e){var t=e.scrollLeft,n=e.scrollTop,r=e.offsetHeight,i=e.offsetWidth,o="vertical"===this.direction?n:t,a="vertical"===this.direction?r:i;if(this.lastScrollTop!==o){var s=this.lastScrollTop>=o;this.lastScrollTop=o;var l=this.rowHeightService.index(G(o-this.topOffset)),u=this.rowHeightService.index(G(o+a-this.bottomOffset));if(!s&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,this.onScrollAction(new U(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new W(this.firstLoaded))),s&&l<=this.firstLoaded){var p=Math.floor(.3*this.take);this.firstLoaded=G(l-p),this.onScrollAction(new U(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new W(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}(),X=(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}w(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"}(C||(C={}));var Z,$,J=function(e,t,n){return Math.min(Math.abs(t-e),n)},Q=17,ee=((k={})[C.Forward]=function(e){return function(t){return t+e}},k[C.Backward]=function(e){return function(t){return t-e}},k),te=((O={})[C.Forward]=function(e){return function(t){return Math.min(t,e)}},O[C.Backward]=function(e){return function(t){return Math.max(t,e)}},O),ne=((_={})[C.Forward]=function(e){return function(t){return t<e}},_[C.Backward]=function(e){return function(t){return t>e}},_),re=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){r.rowHeightService&&(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),i=r.scrollRange(t,n),o=i.start,a=i.end;if(o!==a){var s=r.scrollStep(o,a),l=ee[n](s),u=te[n](a),p=ne[n](l(a)),c=function(e){r.animationInProgress=!0;var t=l(e);r.scrollTo(u(t)),p(t)?r.cancelAnimation=window.requestAnimationFrame(function(){c(t)}):r.animationInProgress=!1};r.cancelAnimation=window.requestAnimationFrame(function(){c(o)})}}},r.scrollToBottom=function(){r.rowHeightService&&r.scrollTo(r.rowHeightService.totalHeight()+r.props.bottomOffset)},r.scrollStep=function(e,n){var i=r.props.scrollDuration||t.defaultProps.scrollDuration;return Math.abs(n-e)/(i/Q)},r.scrollRange=function(e,t){var n=r.containerScrollPosition;if(parseInt(""+e,10)===parseInt(""+n,10))return{start:e,end:e};var i=r.containerMaxScroll(),o=t===C.Backward?1:-1,a=J(n,e,r.props.maxScrollDifference),s=Math.min(e,i);return{start:Math.min(Math.max(s+o*a,0),i),end:s}},r.containerMaxScroll=function(){return r.containerScrollSize-r.containerOffsetSize},r.getContainerScrollDirection=function(e){return e<r.containerScrollPosition?C.Backward:C.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 K(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),i=r.props.onScrollAction,o={index:n,target:t,scrollAction:r.scrollAction,pageAction:r.pageAction,animationInProgress:r.animationInProgress};i&&i.call(void 0,o),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 Y(r.handleScrollAction,r.handlePageAction),r}return X(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),i=r+this.rowHeightService.height(e);return r>=t&&i<=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(a.classNames)("k-content k-scrollable",{"k-scrollable-horizontal":"horizontal"===this.direction},this.props.className),o=Object(a.classNames)("k-scrollable-placeholder",{"k-scrollable-horizontal-placeholder":"horizontal"===this.direction});return i.createElement("div",{ref:function(t){e.scrollContainer=t},onScroll:this.handleScroll,className:r,tabIndex:this.props.tabIndex,role:this.props.role},this.props.children,i.createElement("div",{style:n,className:o}))},t.propTypes={bottomOffset:o.number.isRequired,className:o.string,direction:o.oneOf(["horizontal","vertical"]),forceScroll:o.bool,itemHeight:o.number,itemWidth:o.number,maxScrollDifference:o.number,onScroll:o.func,onScrollAction:o.func,scrollDuration:o.number,scrollOffsetSize:o.number,skip:o.number.isRequired,tabIndex:o.number,take:o.number.isRequired,topOffset:o.number.isRequired,total:o.number.isRequired,role:o.string},t.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100},t}(i.Component),ie=function(){var 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])};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=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ae=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},se=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,i=n.value;r&&r.call(void 0,i,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 ie(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.value,r=ae(t,["value"]),i=e.value,o=ae(e,["value"]);return!((!(n&&i)||n.getTime()===i.getTime())&&function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}(r,o))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.formattedValue,e.isWeekend),r=e.isFocused,o=e.isSelected,s=e.isRangeStart,l=e.isRangeMid,u=e.isRangeEnd,p=e.isRangeSplitStart,c=e.isRangeSplitEnd,d=e.isToday,h=e.isDisabled,f=(e.view,e.value,ae(e,["className","formattedValue","isWeekend","isFocused","isSelected","isRangeStart","isRangeMid","isRangeEnd","isRangeSplitStart","isRangeSplitEnd","isToday","isDisabled","view","value"])),v="end"===this.props.activeRangeEnd&&u,m="start"===this.props.activeRangeEnd&&s,g=Object(a.classNames)({"k-range-end":u,"k-range-mid":l,"k-range-split-end":c,"k-range-split-start":p,"k-range-start":s,"k-state-active":m||v,"k-state-pending-focus":r,"k-state-selected":o||s||u,"k-today":d,"k-weekend":n,"k-state-disabled":h},t);return i.createElement("td",oe({},f,{className:g,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),i.createElement("span",{className:"k-link"},this.props.children))},t}(i.Component),le=function(){var 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])};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)}}(),ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),t.prototype.render=function(){return i.createElement("td",ue({},this.props),this.props.children)},t}(i.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"}(Z||(Z={})),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}($||($={}));var ce,de,he,fe,ve,me={start:null,end:null},ge=function(e,t,n){return void 0===t||void 0===n?e:t<=e&&e<=n?e:e<t?t:n},ye=new Date(1980,0,1),be=new Date(1900,0,1),we=new Date(2099,11,31),ke=new Date(1980,0,1),Oe=new Date(1980,0,1,23,59,59),_e=function(e,t){var n=s(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},Ce=function(){return T(new Date)},xe=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},Se=function(e,t,n){return null===e||!(t&&T(t)>T(e)||n&&T(n)<T(e))},Pe=function(e,t){var n=t||me,r=n.start,i=n.end;return!(!r||!i)&&(r<e&&e<i)},Ee=function(e,t,n){void 0===n&&(n=1);for(var r=[],i=e;i<t;i+=n)r.push(i);return r},De=function(e,t){return e.slice(t).concat(e.slice(0,t))},Ie=function(e,t,n){return e?t&&e<t?s(t):n&&e>n?s(n):e:e},je=function(e){return function(t,n,r){void 0===n&&(n=""),void 0===r&&(r={});var i=document.createElement(e);return i.className=n,Object.keys(r).map(function(e){return i.style[e]=r[e]}),"string"==t