@progress/kendo-react-popup 5.4.0-dev.202205250548 → 5.4.0-dev.202206081230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactPopup=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactPopup=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactDOM)}(window,(function(e,t,n,r){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=4)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.Popup=r.Popup,t.PopupPropsContext=r.PopupPropsContext},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(6);t.PopupPropsContext=o.createContext((function(e){return e})),t.Popup=o.forwardRef((function(e,n){var l=o.useContext(t.PopupPropsContext).call(void 0,e);return o.createElement(i.PopupWithoutContext,r({ref:n},l))})),t.Popup.displayName="Popup"},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 l=n(0),u=n(7),a=n(1),c=n(8),s=n(11),f=n(12),p=n(9),d=n(10);function h(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 v,m={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(v||(v={}));var g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:v.hidden,previous:v.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:v.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,r=t.anchorAlign,o=t.popupAlign,i=t.collision,l=t.offset,u=t.anchor,a=t.margin,c=t.scale,s=t.positionMode,p=f.alignElement({anchor:u,anchorAlign:r,element:e,elementAlign:o,offset:l,margin:a,positionMode:s,scale:c}),d=f.positionElement({anchor:u,anchorAlign:r,element:e,elementAlign:o,collisions:i,currentLocation:p,margin:n.props.margin});if(e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},n.props.onPosition){var h={target:n,flipped:d.flipped,fitted:d.fitted};n.props.onPosition.call(void 0,h)}},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){if(n.props.popupAlign){var o,i=n.props.popupAlign,l=i.horizontal,u=i.vertical;o="left"===l&&"center"===u?"right":"right"===l&&"center"===u?"left":"top"===u?"down":"up";n._collisions&&n._collisions.flipped&&(o={down:"up",up:"down",left:"right",right:"left"}[o]),c.slide(e,o,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===v.hiding&&n.state.previous===v.shown&&n.setState({current:v.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},s.validatePackage(d.packageMetadata),n.reposition=p.throttle(n.reposition.bind(n),p.FRAME_DURATION),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,r=e.anchor,o=e.anchorAlign,l=e.appendTo,u=e.collision,a=e.popupAlign,c=e.className,s=e.popupClass,f=e.style,p=e.offset,d=e.contentKey,m=i({},t,{props:{show:n,anchor:r,anchorAlign:o,appendTo:l,collision:u,popupAlign:a,className:c,popupClass:s,style:f,offset:p,contentKey:d}});return e.show?t.current===v.hidden||t.current===v.hiding?i({},m,{current:v.showing,previous:t.current}):t.current===v.showing?i({},m,{current:v.shown,previous:t.current}):t.current!==v.shown||h(p,t.props.offset)&&h(o,t.props.anchorAlign)&&h(l,t.props.appendTo)&&h(u,t.props.collision)&&h(a,t.props.popupAlign)&&h(f,t.props.style)&&r===t.props.anchor&&s===t.props.popupClass&&c===t.props.className?m:i({},m,{current:v.reposition,previous:t.current}):t.current===v.hiding||t.current===v.hidden?i({},m,{current:v.hidden,previous:t.current}):i({},m,{current:v.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===v.showing&&this._popup?this.show(this._popup):this.state.current===v.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===v.reposition&&this.state.previous===v.shown?this.setState({current:v.shown,previous:this.state.current}):this.state.current===v.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===v.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,r=t.className,o=t.popupClass,a=t.show,c=t.id,f=t.positionMode,p=this.props.appendTo?this.props.appendTo:s.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===v.reposition&&this.state.previous===v.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:f,top:0,left:-1e4},this.props.style||{}),h=this.state.current===v.hiding;if((a||h)&&p){var m=this.getCurrentZIndex(),g=l.createElement(s.ZIndexContext.Provider,{value:m},l.createElement("div",{className:s.classNames("k-animation-container","k-animation-container-relative",r),id:c,ref:function(t){return e._popup=t},style:i({zIndex:m},d)},l.createElement("div",{className:s.classNames("k-popup",o,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?u.createPortal(g,p):g}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=f.domUtils.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:v.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:a.oneOfType([a.string,a.arrayOf(a.string),a.object]),id:a.string,popupClass:a.oneOfType([a.string,a.arrayOf(a.string),a.object]),collision:a.shape({horizontal:a.oneOf([f.Collision.fit,f.Collision.flip,f.Collision.none]),vertical:a.oneOf([f.Collision.fit,f.Collision.flip,f.Collision.none])}),anchorAlign:a.shape({horizontal:a.oneOf([f.AlignPoint.left,f.AlignPoint.center,f.AlignPoint.right]),vertical:a.oneOf([f.AlignPoint.top,f.AlignPoint.center,f.AlignPoint.bottom])}),popupAlign:a.shape({horizontal:a.oneOf([f.AlignPoint.left,f.AlignPoint.center,f.AlignPoint.right]),vertical:a.oneOf([f.AlignPoint.top,f.AlignPoint.center,f.AlignPoint.bottom])}),offset:a.shape({left:a.number,top:a.number}),children:a.oneOfType([a.element,a.node]),show:a.bool,animate:a.oneOfType([a.bool,a.shape({openDuration:a.number,closeDuration:a.number})]),margin:a.shape({horizontal:a.number,vertical:a.number}),positionMode:a.oneOf(["fixed","absolute"]),scale:a.number,style:a.object,onClose:a.func,onPosition:a.func,onOpen:a.func},t.defaultProps={collision:{horizontal:f.Collision.fit,vertical:f.Collision.flip},anchorAlign:{horizontal:f.AlignPoint.left,vertical:f.AlignPoint.bottom},popupAlign:{horizontal:f.AlignPoint.left,vertical:f.AlignPoint.top},offset:m,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.ZIndexContext,t.displayName="PopupComponent",t}(l.Component);t.PopupWithoutContext=g},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},o="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent);t.slide=function(e,t,n,i,l){if(0===n)return l();var u="k-slide-"+t+"-"+i,a=u+"-active",c=function(t){t.target===e&&(e.removeEventListener("transitionend",c),r(e),l())};e.addEventListener("transitionend",c);var s=e.ownerDocument;if(s){var f=s.defaultView;if(f){var p=function(){r(e),e.classList.add(u),f.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};o?f.requestAnimationFrame(p):p()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDifferentOffset=function(e,t){var n=e.left,r=e.top,o=t.left,i=t.top;return Math.abs(n-o)>=1||Math.abs(r-i)>=1},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.FRAME_DURATION=1e3/60,t.throttle=function(e,t,n){var r,o,i,l;void 0===n&&(n={});var u=0;n=n||{};var a=function(){u=!1===n.leading?0:(new Date).getTime(),r=null,l=e.apply(o,i),r||(o=i=null)};return function(){var c=(new Date).getTime();u||!1!==n.leading||(u=c);var s=t-(c-u);return o=this,i=arguments,s<=0||s>t?(r&&(clearTimeout(r),r=null),u=c,l=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=window.setTimeout(a,s)),l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653456532,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return o})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return u})),n.d(t,"canUseDOM",(function(){return a})),n.d(t,"canUseRef",(function(){return c})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return f})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return d})),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 y})),n.d(t,"getter",(function(){return C})),n.d(t,"guid",(function(){return E})),n.d(t,"Keys",(function(){return k})),n.d(t,"noop",(function(){return x})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return P})),n.d(t,"setter",(function(){return T})),n.d(t,"mapTree",(function(){return N})),n.d(t,"mapTreeItem",(function(){return A})),n.d(t,"extendDataItem",(function(){return L})),n.d(t,"getItemPath",(function(){return j})),n.d(t,"validatePackage",(function(){return z})),n.d(t,"hasRelativeStackingContext",(function(){return U})),n.d(t,"dispatchEvent",(function(){return H})),n.d(t,"AsyncFocusBlur",(function(){return B})),n.d(t,"createPropsContext",(function(){return V})),n.d(t,"withPropsContext",(function(){return F})),n.d(t,"useDir",(function(){return q})),n.d(t,"useAsyncFocusBlur",(function(){return W})),n.d(t,"useRtl",(function(){return Z})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return X})),n.d(t,"COLLECTION_ACTION",(function(){return G})),n.d(t,"useCollection",(function(){return Q})),n.d(t,"useDocument",(function(){return ee})),n.d(t,"useWindow",(function(){return te})),n.d(t,"Icon",(function(){return le})),n.d(t,"SvgIcon",(function(){return se})),n.d(t,"Typography",(function(){return Ee})),n.d(t,"DragAndDrop",(function(){return Te})),n.d(t,"Draggable",(function(){return Be})),n.d(t,"Droppable",(function(){return Ye})),n.d(t,"useDraggable",(function(){return Ke})),n.d(t,"useDroppable",(function(){return Xe})),n.d(t,"kendoThemeMaps",(function(){return Ve}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var l=function(){return"undefined"!=typeof document?document:{}},u=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=l();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},o=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):r(e)}))};return o(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")},f=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=h(r,t[n])}}function h(e,t){if(Array.isArray(e))return v(e);if(e instanceof Date)return f(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(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(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function w(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var O={};function C(e){if(O[e])return O[e];var t=w(e);return O[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},O[e]}O.undefined=function(){};var E=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},k={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},x=function(){},D=function(){return!(!a||!document.body)&&(new u).scrollbarWidth},P=function(){if(!a||!document.body)return!1;var e=(new u).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},M={undefined:function(e){return e}},R=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(M[e])return M[e];var t=w(e);return M[e]=function(e,n,r){for(var o=e,i=t.length-1,l=0;l<i&&o;l++)o=o[t[l]]=o[t[l]]||R(t[l+1],r);o[t[i]]=n},M[e]}var S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function _(e,t,n){var r;return n?S({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var N=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=_(t,n).map((function(t){return e(t,n,r)}));return r(_(t,n,o))}return r(t)}(e,t,n)})).slice()},A=function(e,t,n,r){for(var o=e,i=[],l=0;l<t.length;l++)o=o[t[l]],o=Array.isArray(o)?o:o[n],i.push(o);var u=i.length>1?i[i.length-2]:e,a=t[t.length-1],c=r(u[a]);u.splice(a,1,c)},L=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},j=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},I=n(2);function z(e){if(void 0!==I)I.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 U=function(e){if(!a)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function H(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function W(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,l=r.useRef(!1),u=r.useRef(0),a=r.useCallback((function(e){clearTimeout(u.current),u.current=window.setTimeout((function(){return e()}))}),[u]),c=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(u.current),o&&o.call.apply(o,[void 0].concat(e)),l.current||(l.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[l,t,o]),s=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)),a((function(){l.current&&n&&(l.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[l,a,n,i]);return r.useEffect((function(){return function(){clearTimeout(u.current)}}),[]),{onFocus:c,onBlur:s}}var K=function(){return(K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(e){var t=e.children,n=W({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,K({},n))},X=function(e,t){return r.useContext(e)(t)},Y=function(){return(Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},V=function(){return r.createContext((function(e){return e}))},F=function(e,t){return r.forwardRef((function(n,o){var i=X(e,n);return r.createElement(t,Y({},i,{ref:o}))}))};function q(e,t,n){var o=r.useState(t),i=o[0],l=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}function Z(e,t,n){var o=r.useState(t),i=o[0],l=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}var G,$=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"}(G||(G={}));var Q=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case G.add:t.current.push(e.item);break;case G.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=function(e){var t=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return r.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},te=function(e){var t=ee(e);return r.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},ne=n(1),re={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},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,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.className,o=e.name,i=e.themeColor,l=e.size,u=e.flip,a=e.style,c=ie(e,["className","name","themeColor","size","flip","style"]),f=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(f,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return f.current}));var d=r.useMemo((function(){return i||ue.themeColor}),[i]),h=r.useMemo((function(){return l||ue.size}),[l]),v=r.useMemo((function(){return u||ue.flip}),[u]),m=r.useMemo((function(){return s("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},re[h],n)}),[o,d,h,v,n]),g=$(e,f);return r.createElement("span",oe({ref:p},c,g,{className:m,style:a,role:"presentation"}))}));le.propTypes={style:ne.object,classNames:ne.string,name:ne.string,themeColor:ne.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ne.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ne.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default"};le.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)},ce=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},se=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,l=e.icon,u=e.flip,a=e.size,c=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,h=ce(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 l?l.name:fe.icon}),[l]),g=r.useMemo((function(){return p||fe.themeColor}),[p]),y=r.useMemo((function(){return a||fe.size}),[a]),b=r.useMemo((function(){return u||fe.flip}),[u]),w=r.useMemo((function(){return d||fe.viewBox}),[d]),O=r.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},re[y],o)}),[m,g,y,b,o]),C=r.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},c):e.width?ae({width:e.width,height:e.width},c):e.height?ae({width:e.height,height:e.height},c):ae({},c)}),[e.width,e.height,c]);return r.createElement("span",{className:O,style:C,ref:v},r.createElement("svg",ae({className:i,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:w,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},h),l?void 0:n))}));se.propTypes={style:ne.object,classNames:ne.string,children:ne.any,icon:ne.object,themeColor:ne.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ne.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ne.oneOf(["default","horizontal","vertical","both"])};var fe={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};se.displayName="KendoSvgIcon";var 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"},he={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"},ve={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},me={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ge={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ye={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"},we=function(){return(we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<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},Ce=function(e){var t=r.forwardRef((function(t,n){var o=t.id,i=t.style,l=t.className,u=t.fontSize,a=t.fontWeight,c=t.textAlign,s=t.textTransform,f=t.themeColor,p=t.margin,d=Oe(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=r.useRef(null),v=r.useRef(null);r.useImperativeHandle(h,(function(){return{element:v.current,props:t}})),r.useImperativeHandle(n,(function(){return h.current}));var m=e,g=function(){if(void 0!==p){if("string"==typeof p)return[he[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-"+p];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,r;null!==p[t]&&void 0!==p[t]&&e.push((n=t,r=p[t],""+me[n]+("string"==typeof r?ve[r]:r)))})),e.join(" ")}}};return r.createElement(m,we({id:o,ref:v,className:["k-"+("p"===e?"paragraph":e),pe[u],de[a],ge[c],ye[s],be[f],g(),l].filter((function(e){return void 0!==e})).join(" "),style:i},d),t.children)}));return t.propTypes={style:ne.object,className:ne.string,fontSize:ne.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ne.oneOf(["light","normal","bold"]),margin:ne.oneOfType([ne.number,ne.object,ne.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ne.oneOf(["left","right","center","justify"]),textTransform:ne.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ne.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Ee={h1:Ce("h1"),h2:Ce("h2"),h3:Ce("h3"),h4:Ce("h4"),h5:Ce("h5"),h6:Ce("h6"),p:Ce("p"),code:Ce("code"),pre:Ce("pre")},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)},xe=function(e,t,n){var o=r.useState(t||e),i=o[0],l=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){l(e),n&&n.call(void 0,ke({},t,{value:e}))}),[n,l])]},De=r.createContext([void 0,x]),Pe=r.createContext([void 0,x]),Me=r.createContext([[],x,x]),Re=r.createContext([[],x,x]),Te=function(e){var t=xe(null,void 0),n=t[0],o=t[1],i=xe(null,void 0),l=i[0],u=i[1],a=Q([]),c=a[0],s=a[1],f=Q([]),p=f[0],d=f[1];return r.createElement(De.Provider,{value:[n,o]},r.createElement(Pe.Provider,{value:[l,u]},r.createElement(Me.Provider,{value:[c,function(e){s({type:G.add,item:e})},function(e){s({type:G.remove,item:e})}]},r.createElement(Re.Provider,{value:[p,function(e){d({type:G.add,item:e})},function(e){d({type:G.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Se,_e=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),l=Math.min(r.left+r.width,n.left+n.width),u=Math.min(r.top+r.height,n.top+n.height),a=l-i,c=u-o;if(i<l&&o<u){var s=r.width*r.height,f=n.width*n.height,p=a*c;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Ne=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},Ae=function(e){return e&&e.ownerDocument||window.document},Le=function(e){var t=Ne(),n=Ae(e);return t.edge||t.safari?n.body:n.documentElement},je=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},Ie=function(e){var t=Le(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!je(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!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"}(Se||(Se={}));var ze=function(){},Ue=function(e,t,n){void 0===n&&(n={});var r,o,i,l,u=n.onIsPressedChange,a=void 0===u?ze:u,c=n.onIsScrollingChange,s=void 0===c?ze:c,f=n.onVelocityChange,p=void 0===f?ze:f,d=n.onOffsetChange,h=void 0===d?ze:d,v=n.onPageOffsetChange,m=void 0===v?ze:v,g=n.onClientOffsetChange,y=void 0===g?ze:g,b=n.onScrollOffsetChange,w=void 0===b?ze:b,O=n.onInitialScrollOffsetChange,C=void 0===O?ze:O,E=t.payload,k=E.element,x=E.hint,D=e.autoScrollDirection,P=e.scrollableParent,M=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(M.type){case Se.POINTER_DOWN:if(M.type===Se.POINTER_DOWN&&(!M.originalEvent.isPrimary||0!==M.originalEvent.button))break;case Se.MOUSE_DOWN:if(M.type===Se.MOUSE_DOWN&&M.originalEvent.which&&M.originalEvent.which>1||e.ignoreMouse)break;case Se.TOUCH_START:if(M.type===Se.TOUCH_START&&1!==M.originalEvent.touches.length)break;case Se.START:var R=P||Ie(t.payload.element);C(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),y({x:M.clientX,y:M.clientY}),m({x:M.pageX,y:M.pageY}),h({x:M.offsetX,y:M.offsetY}),a(!0),E.onPress&&E.onPress(M);break;case Se.SCROLL:if(M.type===Se.SCROLL&&!e.pressed)break;var T=P||Ie(k),S=T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop};M.scrollX=S.x-e.initialScrollOffset.x,M.scrollY=S.y-e.initialScrollOffset.y,w({x:M.scrollX,y:M.scrollY});case Se.POINTER_MOVE:if(M.type===Se.POINTER_MOVE&&!M.originalEvent.isPrimary)break;case Se.MOUSE_MOVE:case Se.TOUCH_MOVE:if(M.type===Se.TOUCH_MOVE&&1!==M.originalEvent.touches.length)break;case Se.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==M.originalEvent.type&&k){var _=Ae(k),N=P||Ie(_.elementFromPoint(M.clientX,M.clientY)),A=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}(M.pageX,M.pageY,function(e,t){var n=Le(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(N,function(e){var t=Ae(e);return t&&t.defaultView||window}(k)));p({x:D&&!1===D.horizontal?0:A.x,y:D&&!1===D.vertical?0:A.y}),s(0!==A.y||0!==A.x)}!e.drag&&E.onDragStart&&E.onDragStart(M),E.onDrag&&E.onDrag(M);var L=_e(x||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||k)}))),j=e.drops.find((function(e){return e.element===L}));j&&L&&(r=M.clientX,o=M.clientY,i=P||Ie(L),(l=i.getBoundingClientRect()).top<=o&&l.left<=r&&o<=l.bottom&&r<=l.right)&&L!==k?(e.drop&&e.drop.element)!==L?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(M),j.onDragEnter&&j.onDragEnter(M)):j.onDragOver&&j.onDragOver(M):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(M)}y({x:M.clientX,y:M.clientY}),m({x:M.pageX,y:M.pageY});break;case Se.POINTER_UP:if(M.type===Se.POINTER_UP&&!M.originalEvent.isPrimary)break;case Se.MOUSE_UP:case Se.TOUCH_END:if(M.type===Se.TOUCH_END&&1!==M.originalEvent.touches.length)break;case Se.END:a(!1),s(!1),E.onRelease&&E.onRelease(M),e.drop&&e.drop.onDrop&&e.drop.onDrop(M),E.onDragEnd&&E.onDragEnd(M);break;case Se.POINTER_CANCEL:case Se.CONTEXT_MENU:case Se.TOUCH_CANCEL:case Se.CANCEL:a(!1),s(!1),E.onDragEnd&&E.onDragEnd(M),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(M)}},He=function(e,t){if(e){var n,r;e===Le(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,l=e.scrollLeft+t.x,u=r&&l>0&&l<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),u?e.scrollLeft+=t.x:r&&l<0&&(e.scrollLeft=0)}},We=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],l=r.useState(t),u=l[0],a=l[1];return[void 0!==o?o:u,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):a(e[0])}]};function Ke(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?x:o,l=t.onRelease,u=void 0===l?x:l,a=t.onDragStart,c=void 0===a?x:a,s=t.onDrag,f=void 0===s?x:s,p=t.onDragEnd,d=void 0===p?x:p,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=r.useState(!1),E=C[0],k=C[1],D=r.useState(!1),P=D[0],M=D[1],R=We(Pe)[0],T=We(De),S=T[0],_=T[1],N=r.useContext(Re)[0],A=r.useContext(Me),L=A[0],j=A[1],I=A[2],z=r.useRef({x:0,y:0}),U=r.useRef(),H=r.useRef(!1),W=r.useRef(),K=r.useRef(null),B=r.useRef(!1),X=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),V=r.useRef({x:0,y:0}),F=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Z=r.useRef({x:0,y:0}),G=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&G,J=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=r.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),ee=r.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=r.useRef(null);r.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:ve,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:me,data:e.current}}));var re=r.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),oe=r.useCallback((function(){var e=re();return e&&e.defaultView||window}),[re]),ie=r.useCallback((function(){return{drag:S?S.current:null,drop:R?R.current:null,drags:L.map((function(e){return e.current})),drops:N.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:V.current,initialClientOffset:F.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[S,R,L,N,E,b,te,P]),le=r.useCallback((function(e){k(e)}),[]),ue=r.useCallback((function(e){M(e)}),[]),ae=r.useCallback((function(e){z.current=e}),[]),ce=r.useCallback((function(e){X.current=e}),[]),se=r.useCallback((function(e){V.current=e}),[]),fe=r.useCallback((function(e){Y.current=e}),[]),pe=r.useCallback((function(e){F.current=e}),[]),de=r.useCallback((function(e){q.current=e}),[]),he=r.useCallback((function(e){Z.current=e}),[]),ve=r.useCallback((function(e){i(e)}),[i]),me=r.useCallback((function(e){u(e)}),[u]),ge=r.useCallback((function(t){_(ne,{target:e.current,event:t}),c(t)}),[_,e,c]),ye=r.useCallback((function(e){f(e)}),[f]),be=r.useCallback((function(t){B.current||(_(null,{target:e.current,event:t}),d(t))}),[d,_,e]),we=r.useCallback((function(e){Ue(ie(),{event:e,payload:ne.current},{onVelocityChange:ae,onOffsetChange:ce,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:he,onIsPressedChange:le,onIsScrollingChange:ue})}),[ie,ae,ce,fe,se,pe,he,le,de,ue]),Oe=r.useCallback((function(e){we(e)}),[we]),Ce=r.useCallback((function(e){we(e)}),[we]),Ee=r.useCallback((function(e){we(e)}),[we]),ke=r.useCallback((function(e){we(e)}),[we]),xe=r.useCallback((function(e){we(e)}),[we]),Te=r.useCallback((function(e){we(e)}),[we]),Se=r.useCallback((function(e){we(e)}),[we]),_e=r.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ne=r.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ae=r.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Le=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=oe();H.current=!0,W.current=t.setTimeout((function(){H.current=!1}),2e3)}we(e)}),[we,oe]),je=r.useCallback((function(e){we(e)}),[we]),ze=r.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=r.useCallback((function(){return j(ne),function(){I(ne)}}),[I,j]);r.useEffect((function(){var e=oe();if(P){var t=ee()||Ie(document.elementFromPoint(V.current.x,V.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){He(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,oe,P]),r.useEffect(ze,[ze]),r.useEffect((function(){var e=oe(),t=J(),n=re();return $?(t&&(K.current=Ie(t),K.current&&K.current.addEventListener("scroll",je,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),E&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",ke,!0),n.addEventListener("contextmenu",_e),n.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",x,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",xe,{passive:!0}),g||(t.addEventListener("touchstart",Ne,{passive:!0}),E&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Le,{passive:!0})))),E&&(n.addEventListener("mousemove",Te,{passive:!0}),n.addEventListener("mouseup",Se,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",je),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",xe),t.removeEventListener("touchstart",Ne),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Le)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",ke,!0),n.removeEventListener("contextmenu",_e),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Te),n.removeEventListener("mouseup",Se),e.removeEventListener("touchmove",x),e.clearTimeout(W.current)}}),[E,oe,J,re,g,$,_e,xe,Te,Se,Ee,Oe,Ce,ke,Le,Ae,Ne,je]),r.useEffect((function(){return function(){B.current=!0}}),[]),r.useLayoutEffect(Ke,[Ke])}var Be=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 l=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),u=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),a=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),c=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),s=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return Ke(n,{onPress:l,onRelease:u,onDragStart:a,onDrag:c,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));function Xe(e,t){void 0===t&&(t={onDragEnter:x,onDragOver:x,onDragLeave:x,onDrop:x});var n=t.onDragEnter,o=void 0===n?x:n,i=t.onDragOver,l=void 0===i?x:i,u=t.onDragLeave,a=void 0===u?x:u,c=t.onDrop,s=void 0===c?x:c,f=We(Pe)[1],p=r.useContext(Re),d=p[1],h=p[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:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=r.useCallback((function(t){f(m,{target:e.current,event:t}),o(t)}),[f,e,o]),y=r.useCallback((function(e){l(e)}),[l]),b=r.useCallback((function(t){f(null,{target:e.current,event:t}),a(t)}),[f,e,a]),w=r.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),O=r.useCallback((function(){return d(m),function(){h(m)}}),[h,d]);r.useLayoutEffect(O,[O])}Be.displayName="KendoReactDraggable";var Ye=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 l=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),u=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),a=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),c=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Xe(n,{onDragEnter:l,onDragOver:u,onDragLeave:a,onDrop:c}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ye.displayName="KendoReactDroppable";var Ve={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"align",(function(){return o})),n.d(t,"addScroll",(function(){return i})),n.d(t,"applyLocationOffset",(function(){return l})),n.d(t,"boundingOffset",(function(){return d})),n.d(t,"isBodyOffset",(function(){return v})),n.d(t,"offsetParent",(function(){return h})),n.d(t,"offset",(function(){return m})),n.d(t,"parents",(function(){return g})),n.d(t,"parentScrollPosition",(function(){return w})),n.d(t,"position",(function(){return O})),n.d(t,"positionWithScroll",(function(){return C})),n.d(t,"removeScroll",(function(){return E})),n.d(t,"restrictToView",(function(){return P})),n.d(t,"scrollPosition",(function(){return y})),n.d(t,"siblingContainer",(function(){return R})),n.d(t,"siblings",(function(){return M})),n.d(t,"zIndex",(function(){return T})),n.d(t,"alignElement",(function(){return Y})),n.d(t,"domUtils",(function(){return B})),n.d(t,"utils",(function(){return j})),n.d(t,"positionElement",(function(){return V})),n.d(t,"getDocumentElement",(function(){return c})),n.d(t,"getWindow",(function(){return a})),n.d(t,"getWindowViewPort",(function(){return p})),n.d(t,"AlignPoint",(function(){return r})),n.d(t,"Collision",(function(){return k}));var r={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},o=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,l=e.margin;void 0===l&&(l={});var u=n.horizontal,a=n.vertical,c=i.horizontal,s=i.vertical,f=l.horizontal||0,p=l.vertical||0,d=t.top,h=t.left;return a===r.bottom&&(d+=t.height),a!==r.center&&a!==r.middle||(d+=Math.round(t.height/2)),s===r.bottom&&(d-=o.height,p*=-1),s!==r.center&&s!==r.middle||(d-=Math.round(o.height/2),p*=-1),u===r.right&&(h+=t.width),u!==r.center&&u!==r.middle||(h+=Math.round(t.width/2)),c===r.right&&(h-=o.width,f*=-1),c!==r.center&&c!==r.middle||(h-=Math.round(o.width/2),f*=-1),{top:d+p,left:h+f}};function i(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function l(e,t,n){var r=e.top,o=e.left;return n&&(o=0,r=0),{top:r+t.top,left:o+t.left,height:e.height,width:e.width}}function u(e){return e.ownerDocument||e.document||e}var a=function(e){return u(e).defaultView},c=function(e){return u(e).documentElement},s=0;function f(){if(!s&&"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),s=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return s}function p(e){var t=a(e),n=c(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=f()),r}var d=function(e){if(!e.getBoundingClientRect){var t=p(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}},h=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||c(e)},v=function(e){return h(e)===e.ownerDocument.body},m=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}},g=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n};function y(e){var t=c(e),n=a(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var b=function(e){return e===(e.ownerDocument||{}).body?y(e):{x:e.scrollLeft,y:e.scrollTop}};function w(e){var t=h(e);return t?b(t):{x:0,y:0}}var O=function(e,t){var n=a(e),r=n.getComputedStyle(e),o=m(e),i=t||h(e),l=e.ownerDocument,u=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==r.position&&u){var s=n.getComputedStyle(i);(c=m(i)).top+=parseInt(s.borderTopWidth,10),c.left+=parseInt(s.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},C=function(e,t,n){void 0===n&&(n=1);var r=t?h(t):null,o=O(e,r),i=o.top,l=o.left,u=o.height,a=o.width,c=function(e,t){return e?b(e):w(t)}(r,e),s=c.x,f=c.y,p=e.ownerDocument,d=r===p.body||r===p.documentElement?1:n;return{top:i+f*d,left:l+s*d,height:u,width:a}};function E(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var k={fit:"fit",flip:"flip",none:"none"},x=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},D=function(e){var t=e.offset,n=e.size,o=e.anchorSize,i=e.viewPortSize,l=e.anchorAlignPoint,u=e.elementAlignPoint,a=e.margin,c=0,s=u===r.center||u===r.middle,f=l===r.center||l===r.middle,p=2*a;if(u!==l&&!s&&!f){var d=l===r.top||l===r.left;t<0&&d?t+(c=n+o+p)+n>i&&(c=0):t>=0&&!d&&(t+n>i&&(c+=-(o+n+p)),t+c<0&&(c=0))}return c},P=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,i=e.collisions,l=e.viewPort,u=e.margin;void 0===u&&(u={});var a=r.top,c=r.left,s=r.height,f=r.width,p=l.height,d=l.width,h=u.horizontal||0,v=u.vertical||0,m=0,g=0,y=i.vertical===k.fit,b=i.horizontal===k.fit,w=i.vertical===k.flip,O=i.horizontal===k.flip;y&&(g+=x(a,s,p)),b&&(m+=x(c,f,d)),w&&(g+=D({margin:v,offset:a,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),O&&(m+=D({margin:h,offset:c,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var C=w&&0!==g,E=O&&0!==m,P=y&&0!==g,M=b&&0!==m;return{flipped:E||C,fitted:P||M,flip:{horizontal:E,vertical:C},fit:{horizontal:M,vertical:P},offset:{left:m,top:g}}},M=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},R=function(e,t){for(var n,r,o=g(e),i=t;i&&(n=M(i),!(r=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return r};function T(e,t){if(!e||!t)return null;var n=R(e,t);if(!n)return null;var r=[e].concat(g(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}var S,_,N,A=(S=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},N=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return N||(_=S.apply(void 0,e),N=!0),_}),L=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},j={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:A,canUseDOM:L},I=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],z=function(){return j.canUseDOM()?window:null},U=/auto|scroll/,H=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)},W=function(e){if(!e||!j.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},K=function(){return j.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},B={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:i,align:o,boundingOffset:d,getFontStyles:function(e){var t=z();if(!t||!e)return[];var n=t.getComputedStyle(e);return I.map((function(e){return{key:e,value:n[e]}}))},getWindow:z,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?m(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 l=m(e);return e.style.left=r,e.style.top=o,e.offsetHeight,e.style.transition=i,l},position:function(e,t,n){return e&&t?C(e,t,n||1):null},removeScroll:E,restrictToView:P,scrollPosition:y,scrollableParents:function(e){var t=[];if(!j.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(H(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:W,stackingElementOffset:function(e){var t=W(e);return t?m(t):null},stackingElementScroll:function(e){var t=W(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=W(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(W(e))},windowViewPort:p,zoomLevel:K,isZoomed:function(){return K()>1},zIndex:function(e,t){if(!e||!j.canUseDOM())return null;var n=R(e,t);if(!n)return null;var r=[e].concat(g(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null}},X=function(e,t){return e?{x:0,y:0}:B.scrollPosition(t)},Y=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,o=e.elementAlign,i=e.margin,l=e.offset,u=e.positionMode,a=e.scale||1,c="fixed"===u||!B.hasOffsetParent(n)?function(e,t,n,r){var o=X(e,t),i=j.eitherRect(B.offset(e),n),l=2*r,u=B.stackingElementScroll(t);1!==r&&u&&(u.x/=l,u.y/=l);var a=B.stackingElementOffset(t);return 1!==r&&a&&(a.left/=l,a.top/=l),B.removeScroll(B.addScroll(j.removeStackingOffset(j.scaleRect(i,r),a),u),o)}(t,n,l,a):function(e,t,n,r){var o=j.eitherRect(B.position(e,t,r),n);return j.scaleRect(o,r)}(t,n,l,a),s=j.scaleRect(B.offset(n),a);return B.align({anchorAlign:r,anchorRect:c,elementAlign:o,elementRect:s,margin:i})},V=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,i=e.elementAlign,l=e.collisions,u=e.margin,a=e.scale||1,c=B.offsetAtPoint(r,n),s=j.scaleRect(c,a),f=j.scaleRect(B.offset(t),a),p=j.eitherRect(f,n),d=e.viewPort||B.windowViewPort(r);d.width=d.width/a,d.height=d.height/a;var h=B.restrictToView({anchorAlign:o,anchorRect:p,collisions:l,elementAlign:i,elementRect:s,margin:u,viewPort:d}),v=B.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}}}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","react-dom","prop-types","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactPopup=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing")):e.KendoReactPopup=t(e.React,e.ReactDOM,e.PropTypes,e.KendoLicensing)}(self,(function(e,t,n,o){return(()=>{"use strict";var r={980:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popup=t.PopupPropsContext=void 0;var r=n(899),i=n(763);t.PopupPropsContext=r.createContext((function(e){return e})),t.Popup=r.forwardRef((function(e,n){var l=r.useContext(t.PopupPropsContext).call(void 0,e);return r.createElement(i.PopupWithoutContext,o({ref:n},l))})),t.Popup.displayName="Popup"},763:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWithoutContext=void 0;var l=n(899),a=n(994),c=n(189),u=n(187),s=n(449),f=n(78),p=n(169),d=n(363);function h(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var v,m={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(v||(v={}));var g="k-animation-container-shown",y=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:v.hidden,previous:v.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:v.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,l=t.offset,a=t.anchor,c=t.margin,u=t.scale,s=t.positionMode,p=(0,f.alignElement)({anchor:a,anchorAlign:o,element:e,elementAlign:r,offset:l,margin:c,positionMode:s,scale:u}),d=(0,f.positionElement)({anchor:a,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:p,margin:n.props.margin});if(e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},n.props.onPosition){var h={target:n,flipped:d.flipped,fitted:d.fitted};n.props.onPosition.call(void 0,h)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(g),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,l=i.horizontal,a=i.vertical;r="left"===l&&"center"===a?"right":"right"===l&&"center"===a?"left":"top"===a?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),(0,u.slide)(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(g),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===v.hiding&&n.state.previous===v.shown&&n.setState({current:v.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},(0,s.validatePackage)(d.packageMetadata),n.reposition=(0,p.throttle)(n.reposition.bind(n),p.FRAME_DURATION),n}return r(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,l=e.appendTo,a=e.collision,c=e.popupAlign,u=e.className,s=e.popupClass,f=e.style,p=e.offset,d=e.contentKey,m=i(i({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:l,collision:a,popupAlign:c,className:u,popupClass:s,style:f,offset:p,contentKey:d}});return e.show?t.current===v.hidden||t.current===v.hiding?i(i({},m),{current:v.showing,previous:t.current}):t.current===v.showing?i(i({},m),{current:v.shown,previous:t.current}):t.current!==v.shown||h(p,t.props.offset)&&h(r,t.props.anchorAlign)&&h(l,t.props.appendTo)&&h(a,t.props.collision)&&h(c,t.props.popupAlign)&&h(f,t.props.style)&&o===t.props.anchor&&s===t.props.popupClass&&u===t.props.className?m:i(i({},m),{current:v.reposition,previous:t.current}):t.current===v.hiding||t.current===v.hidden?i(i({},m),{current:v.hidden,previous:t.current}):i(i({},m),{current:v.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===v.showing&&this._popup?this.show(this._popup):this.state.current===v.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===v.reposition&&this.state.previous===v.shown?this.setState({current:v.shown,previous:this.state.current}):this.state.current===v.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===v.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,o=t.className,r=t.popupClass,c=t.show,u=t.id,f=t.positionMode,p=this.props.appendTo?this.props.appendTo:s.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===v.reposition&&this.state.previous===v.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:f,top:0,left:-1e4},this.props.style||{}),h=this.state.current===v.hiding;if((c||h)&&p){var m=this.getCurrentZIndex(),g=l.createElement(s.ZIndexContext.Provider,{value:m},l.createElement("div",{className:(0,s.classNames)("k-animation-container","k-animation-container-relative",o),id:u,ref:function(t){return e._popup=t},style:i({zIndex:m},d)},l.createElement("div",{className:(0,s.classNames)("k-popup",r,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?a.createPortal(g,p):g}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:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=f.domUtils.scrollableParents(this.props.anchor||e),this._scrollableParents&&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:v.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:c.oneOfType([c.string,c.arrayOf(c.string),c.object]),id:c.string,popupClass:c.oneOfType([c.string,c.arrayOf(c.string),c.object]),collision:c.shape({horizontal:c.oneOf([f.Collision.fit,f.Collision.flip,f.Collision.none]),vertical:c.oneOf([f.Collision.fit,f.Collision.flip,f.Collision.none])}),anchorAlign:c.shape({horizontal:c.oneOf([f.AlignPoint.left,f.AlignPoint.center,f.AlignPoint.right]),vertical:c.oneOf([f.AlignPoint.top,f.AlignPoint.center,f.AlignPoint.bottom])}),popupAlign:c.shape({horizontal:c.oneOf([f.AlignPoint.left,f.AlignPoint.center,f.AlignPoint.right]),vertical:c.oneOf([f.AlignPoint.top,f.AlignPoint.center,f.AlignPoint.bottom])}),offset:c.shape({left:c.number,top:c.number}),children:c.oneOfType([c.element,c.node]),show:c.bool,animate:c.oneOfType([c.bool,c.shape({openDuration:c.number,closeDuration:c.number})]),margin:c.shape({horizontal:c.number,vertical:c.number}),positionMode:c.oneOf(["fixed","absolute"]),scale:c.number,style:c.object,onClose:c.func,onPosition:c.func,onOpen:c.func},t.defaultProps={collision:{horizontal:f.Collision.fit,vertical:f.Collision.flip},anchorAlign:{horizontal:f.AlignPoint.left,vertical:f.AlignPoint.bottom},popupAlign:{horizontal:f.AlignPoint.left,vertical:f.AlignPoint.top},offset:m,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.ZIndexContext,t.displayName="PopupComponent",t}(l.Component);t.PopupWithoutContext=y},187:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.slide=void 0;var n=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},o="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent);t.slide=function(e,t,r,i,l){if(0===r)return l();var a="k-slide-"+t+"-"+i,c=a+"-active",u=function(t){t.target===e&&(e.removeEventListener("transitionend",u),n(e),"exit"===i&&(e.style.display="none"),l())};e.addEventListener("transitionend",u);var s=e.ownerDocument;if(s){var f=s.defaultView;if(f){var p=function(){n(e),e.classList.add(a),f.requestAnimationFrame((function(){e.style.transitionDuration=r+"ms",e.classList.add(c)}))};o?f.requestAnimationFrame(p):p()}}}},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654690058,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"}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.FRAME_DURATION=t.hasBoundingRect=t.isDifferentOffset=void 0,t.isDifferentOffset=function(e,t){var n=e.left,o=e.top,r=t.left,i=t.top;return Math.abs(n-r)>=1||Math.abs(o-i)>=1},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.FRAME_DURATION=1e3/60,t.throttle=function(e,t,n){var o,r,i,l;void 0===n&&(n={});var a=0;n=n||{};var c=function(){a=!1===n.leading?0:(new Date).getTime(),o=void 0,l=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();a||!1!==n.leading||(a=u);var s=t-(u-a);return r=void 0,i=arguments,s<=0||s>t?(o&&(clearTimeout(o),o=void 0),a=u,l=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,s)),l}}},78:(e,t,n)=>{n.r(t),n.d(t,{AlignPoint:()=>o,Collision:()=>x,addScroll:()=>i,align:()=>r,alignElement:()=>Y,applyLocationOffset:()=>l,boundingOffset:()=>d,domUtils:()=>X,getDocumentElement:()=>u,getWindow:()=>c,getWindowViewPort:()=>p,isBodyOffset:()=>v,offset:()=>m,offsetParent:()=>h,parentScrollPosition:()=>w,parents:()=>g,position:()=>O,positionElement:()=>V,positionWithScroll:()=>C,removeScroll:()=>E,restrictToView:()=>D,scrollPosition:()=>y,siblingContainer:()=>R,siblings:()=>M,utils:()=>j,zIndex:()=>T});const o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,l=e.margin;void 0===l&&(l={});var a=n.horizontal,c=n.vertical,u=i.horizontal,s=i.vertical,f=l.horizontal||0,p=l.vertical||0,d=t.top,h=t.left;return c===o.bottom&&(d+=t.height),c!==o.center&&c!==o.middle||(d+=Math.round(t.height/2)),s===o.bottom&&(d-=r.height,p*=-1),s!==o.center&&s!==o.middle||(d-=Math.round(r.height/2),p*=-1),a===o.right&&(h+=t.width),a!==o.center&&a!==o.middle||(h+=Math.round(t.width/2)),u===o.right&&(h-=r.width,f*=-1),u!==o.center&&u!==o.middle||(h-=Math.round(r.width/2),f*=-1),{top:d+p,left:h+f}};function i(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function l(e,t,n){var o=e.top,r=e.left;return n&&(r=0,o=0),{top:o+t.top,left:r+t.left,height:e.height,width:e.width}}function a(e){return e.ownerDocument||e.document||e}const c=function(e){return a(e).defaultView},u=function(e){return a(e).documentElement};var s=0;function f(){if(!s&&"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),s=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return s}function p(e){var t=c(e),n=u(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=f()),o}const d=function(e){if(!e.getBoundingClientRect){var t=p(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}},h=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||u(e)},v=function(e){return h(e)===e.ownerDocument.body},m=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=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=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}};function g(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function y(e){var t=u(e),n=c(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}function b(e){return e===(e.ownerDocument||{}).body?y(e):{x:e.scrollLeft,y:e.scrollTop}}function w(e){var t=h(e);return t?b(t):{x:0,y:0}}const O=function(e,t){var n=c(e),o=n.getComputedStyle(e),r=m(e),i=t||h(e),l=e.ownerDocument,a=i!==l.body&&i!==l.documentElement,u={top:0,left:0};if("fixed"!==o.position&&a){var s=n.getComputedStyle(i);(u=m(i)).top+=parseInt(s.borderTopWidth,10),u.left+=parseInt(s.borderLeftWidth,10)}return{top:r.top-u.top,left:r.left-u.left,height:r.height,width:r.width}};function C(e,t,n){void 0===n&&(n=1);var o=t?h(t):null,r=O(e,o),i=r.top,l=r.left,a=r.height,c=r.width,u=function(e,t){return e?b(e):w(t)}(o,e),s=u.x,f=u.y,p=e.ownerDocument,d=o===p.body||o===p.documentElement?1:n;return{top:i+f*d,left:l+s*d,height:a,width:c}}function E(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}const x={fit:"fit",flip:"flip",none:"none"};var k=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},P=function(e){var t=e.offset,n=e.size,r=e.anchorSize,i=e.viewPortSize,l=e.anchorAlignPoint,a=e.elementAlignPoint,c=e.margin,u=0,s=a===o.center||a===o.middle,f=l===o.center||l===o.middle,p=2*c;if(a!==l&&!s&&!f){var d=l===o.top||l===o.left;t<0&&d?t+(u=n+r+p)+n>i&&(u=0):t>=0&&!d&&(t+n>i&&(u+=-(r+n+p)),t+u<0&&(u=0))}return u};const D=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,l=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,u=o.left,s=o.height,f=o.width,p=l.height,d=l.width,h=a.horizontal||0,v=a.vertical||0,m=0,g=0,y=i.vertical===x.fit,b=i.horizontal===x.fit,w=i.vertical===x.flip,O=i.horizontal===x.flip;y&&(g+=k(c,s,p)),b&&(m+=k(u,f,d)),w&&(g+=P({margin:v,offset:c,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),O&&(m+=P({margin:h,offset:u,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==g,E=O&&0!==m,D=y&&0!==g,M=b&&0!==m;return{flipped:E||C,fitted:D||M,flip:{horizontal:E,vertical:C},fit:{horizontal:M,vertical:D},offset:{left:m,top:g}}};function M(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}function R(e,t){for(var n,o,r=g(e),i=t;i&&(n=M(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}function T(e,t){if(!e||!t)return null;var n=R(e,t);if(!n)return null;var o=[e].concat(g(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}var S,A,_,N=(S=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 o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},_=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return _||(A=S.apply(void 0,e),_=!0),A}),L=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const j={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:N,canUseDOM:L};var I=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],z=function(){return j.canUseDOM()?window:null},U=/auto|scroll/,H=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)},W=function(e){if(!e||!j.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},K=function(){return j.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},B={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:i,align:r,boundingOffset:d,getFontStyles:function(e){var t=z();if(!t||!e)return[];var n=t.getComputedStyle(e);return I.map((function(e){return{key:e,value:n[e]}}))},getWindow:z,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?m(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var l=m(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,l},position:function(e,t,n){return e&&t?C(e,t,n||1):null},removeScroll:E,restrictToView:D,scrollPosition:y,scrollableParents:function(e){var t=[];if(!j.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(H(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:W,stackingElementOffset:function(e){var t=W(e);return t?m(t):null},stackingElementScroll:function(e){var t=W(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=W(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(W(e))},windowViewPort:p,zoomLevel:K,isZoomed:function(){return K()>1},zIndex:function(e,t){if(!e||!j.canUseDOM())return null;var n=R(e,t);if(!n)return null;var o=[e].concat(g(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}};const X=B;const Y=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,l=e.offset,a=e.positionMode,c=e.scale||1,u="fixed"!==a&&X.hasOffsetParent(n)?function(e,t,n,o){var r=j.eitherRect(X.position(e,t,o),n);return j.scaleRect(r,o)}(t,n,l,c):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:X.scrollPosition(t)}(e,t),i=j.eitherRect(X.offset(e),n),l=2*o,a=X.stackingElementScroll(t);1!==o&&a&&(a.x/=l,a.y/=l);var c=X.stackingElementOffset(t);return 1!==o&&c&&(c.left/=l,c.top/=l),X.removeScroll(X.addScroll(j.removeStackingOffset(j.scaleRect(i,o),c),a),r)}(t,n,l,c),s=j.scaleRect(X.offset(n),c);return X.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:s,margin:i})},V=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,l=e.collisions,a=e.margin,c=e.scale||1,u=X.offsetAtPoint(o,n),s=j.scaleRect(u,c),f=j.scaleRect(X.offset(t),c),p=j.eitherRect(f,n),d=e.viewPort||X.windowViewPort(o);d.width=d.width/c,d.height=d.height/c;var h=X.restrictToView({anchorAlign:r,anchorRect:p,collisions:l,elementAlign:i,elementRect:s,margin:a,viewPort:d}),v=X.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}}},449:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>V,BrowserSupportService:()=>a,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Te,Draggable:()=>Ke,Droppable:()=>Xe,FormComponent:()=>g,Icon:()=>ce,Keys:()=>x,SvgIcon:()=>fe,Typography:()=>Ee,ZIndexContext:()=>r,canUseDOM:()=>c,canUseRef:()=>u,classNames:()=>s,clone:()=>p,cloneArray:()=>v,cloneDate:()=>f,cloneObject:()=>d,cloneValue:()=>h,createPropsContext:()=>Z,dispatchEvent:()=>K,extendDataItem:()=>I,focusFirstFocusableChild:()=>m,getItemPath:()=>z,getScrollbarWidth:()=>P,getTabIndex:()=>y,getter:()=>C,guid:()=>E,hasRelativeStackingContext:()=>W,kendoThemeMaps:()=>Ye,mapTree:()=>L,mapTreeItem:()=>j,noop:()=>k,setScrollbarWidth:()=>D,setter:()=>T,useAsyncFocusBlur:()=>X,useCollection:()=>ne,useCustomComponent:()=>te,useDir:()=>$,useDocument:()=>oe,useDraggable:()=>We,useDroppable:()=>Be,useMouse:()=>ee,usePropsContext:()=>F,useRtl:()=>J,useWindow:()=>re,useZIndexContext:()=>i,validatePackage:()=>H,withPropsContext:()=>G});var o=n(899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext";var l=function(){return"undefined"!=typeof document?document:{}},a=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=l();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),c=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))},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")},f=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=h(o,t[n])}}function h(e,t){if(Array.isArray(e))return v(e);if(e instanceof Date)return f(e);if(o.isValidElement(e))return o.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(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(){},y=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function w(e){var t=[];return e.replace(b,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var O={};function C(e){if(O[e])return O[e];var t=w(e);return O[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},O[e]}O.undefined=function(){};var E=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},k=function(){},P=function(){return!(!c||!document.body)&&(new a).scrollbarWidth},D=function(){if(!c||!document.body)return!1;var e=(new a).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},M={undefined:function(e){return e}},R=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(M[e])return M[e];var t=w(e);return M[e]=function(e,n,o){for(var r=e,i=t.length-1,l=0;l<i&&r;l++)r=r[t[l]]=r[t[l]]||R(t[l+1],o);r[t[i]]=n},M[e]}var S=function(){return S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},A=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function _(e,t,n){var o;return n?S(S({},e),((o={})[t]=n.length?A([],n,!0):void 0,o)):e&&e[t]?A([],e[t],!0):[]}function N(e,t,n){if(e[t]){var o=_(e,t).map((function(e){return N(e,t,n)}));return n(_(e,t,o))}return n(e)}var L=function(e,t,n){return A([],e.map((function(e){return N(e,t,n)})),!0)},j=function(e,t,n,o){for(var r=e,i=[],l=0;l<t.length;l++)r=r[t[l]],r=Array.isArray(r)?r:r[n],i.push(r);var a=i.length>1?i[i.length-2]:e,c=t[t.length-1],u=o(a[c]);a.splice(c,1,u)},I=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},z=function(e,t,n){var o=[],r=A([],t,!0);if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},U=n(302);function H(e){if(void 0!==U)U.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}var W=function(e){if(!c)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: '.concat(10,'px;">child</div>'),t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function K(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}var B=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function X(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,i=e.onSyncBlur,l=o.useRef(!1),a=o.useRef(0),c=o.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),u=o.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),r&&r.call(void 0,e[0]),l.current||(l.current=!0,t&&t.call.apply(t,B([void 0],e,!1)))}),[l,t,r]),s=o.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call(void 0,e[0]),c((function(){l.current&&n&&(l.current=!1,n.call.apply(n,B([void 0],e,!1)))}))}),[l,c,n,i]);return o.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:u,onBlur:s}}var Y=function(){return Y=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Y.apply(this,arguments)},V=function(e){var t=e.children,n=X({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return o.createElement(o.Fragment,null,t.call(void 0,Y({},n)))},F=function(e,t){return o.useContext(e)(t)},q=function(){return q=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},q.apply(this,arguments)},Z=function(){return o.createContext((function(e){return e}))},G=function(e,t){return o.forwardRef((function(n,r){var i=F(e,n);return o.createElement(t,q({},i,{ref:r}))}))};function $(e,t,n){var r=o.useState(t),i=r[0],l=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}function J(e,t,n){var r=o.useState(t),i=r[0],l=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}var Q,ee=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}},te=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Q||(Q={}));var ne=function(e){void 0===e&&(e=[]);var t=o.useRef(e),n=o.useCallback((function(e){switch(e.type){case Q.add:t.current.push(e.item);break;case Q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},oe=function(e){var t=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return o.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},re=function(e){var t=oe(e);return o.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},ie=n(189),le={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ae.apply(this,arguments)},ce=o.forwardRef((function(e,t){var n=e.className,r=e.name,i=e.themeColor,l=e.size,a=e.flip,c=e.style,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style"]),f=o.useRef(null),p=o.useRef(null);o.useImperativeHandle(f,(function(){return{element:p.current}})),o.useImperativeHandle(t,(function(){return f.current}));var d=o.useMemo((function(){return i||ue.themeColor}),[i]),h=o.useMemo((function(){return l||ue.size}),[l]),v=o.useMemo((function(){return a||ue.flip}),[a]),m=o.useMemo((function(){return s("k-icon","k-i-"+r,"k-color-"+d,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},le[h],n)}),[r,d,h,v,n]),g=ee(e,f);return o.createElement("span",ae({ref:p},u,g,{className:m,style:c,role:"presentation"}))}));ce.propTypes={style:ie.object,classNames:ie.string,name:ie.string,themeColor:ie.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ie.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ie.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default"};ce.displayName="KendoIcon";var se=function(){return se=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},se.apply(this,arguments)},fe=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.svgClassName,l=e.icon,a=e.flip,c=e.size,u=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:v.current}}));var m=o.useMemo((function(){return l?l.name:pe.icon}),[l]),g=o.useMemo((function(){return p||pe.themeColor}),[p]),y=o.useMemo((function(){return c||pe.size}),[c]),b=o.useMemo((function(){return a||pe.flip}),[a]),w=o.useMemo((function(){return d||pe.viewBox}),[d]),O=o.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},le[y],r)}),[m,g,y,b,r]),C=o.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},u):e.width?se({width:e.width,height:e.width},u):e.height?se({width:e.height,height:e.height},u):se({},u)}),[e.width,e.height,u]);return o.createElement("span",{className:O,style:C,ref:v},o.createElement("svg",se({className:i,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:w,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},h),l?void 0:n))}));fe.propTypes={style:ie.object,classNames:ie.string,children:ie.any,icon:ie.object,themeColor:ie.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ie.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ie.oneOf(["default","horizontal","vertical","both"])};var pe={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};fe.displayName="KendoSvgIcon";var de={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},he={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ve={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"},me={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ge={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ye={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},be={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},we={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"},Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oe.apply(this,arguments)},Ce=function(e){var t=o.forwardRef((function(t,n){var r=t.id,i=t.style,l=t.className,a=t.fontSize,c=t.fontWeight,u=t.textAlign,s=t.textTransform,f=t.themeColor,p=t.margin,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=o.useRef(null),v=o.useRef(null);o.useImperativeHandle(h,(function(){return{element:v.current,props:t}})),o.useImperativeHandle(n,(function(){return h.current}));var m=e;return o.createElement(m,Oe({id:r,ref:v,className:["k-".concat("p"===e?"paragraph":e),de[a],he[c],ye[u],be[s],we[f],function(){if(void 0!==p){if("string"==typeof p)return[ve[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-".concat(p)];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,o,r;null!==p[t]&&void 0!==p[t]&&e.push((n=t,r="string"==typeof(o=p[t])?me[o]:o,"".concat(ge[n]).concat(r)))})),e.join(" ")}}}(),l].filter((function(e){return void 0!==e})).join(" "),style:i},d),t.children)}));return t.propTypes={style:ie.object,className:ie.string,fontSize:ie.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ie.oneOf(["light","normal","bold"]),margin:ie.oneOfType([ie.number,ie.object,ie.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ie.oneOf(["left","right","center","justify"]),textTransform:ie.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ie.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},Ee={h1:Ce("h1"),h2:Ce("h2"),h3:Ce("h3"),h4:Ce("h4"),h5:Ce("h5"),h6:Ce("h6"),p:Ce("p"),code:Ce("code"),pre:Ce("pre")},xe=function(){return xe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xe.apply(this,arguments)},ke=function(e,t,n){var r=o.useState(t||e),i=r[0],l=r[1];return[void 0!==t?t:i,o.useCallback((function(e,t){l(e),n&&n.call(void 0,xe(xe({},t),{value:e}))}),[n,l])]},Pe=o.createContext([void 0,k]),De=o.createContext([void 0,k]),Me=o.createContext([[],k,k]),Re=o.createContext([[],k,k]),Te=function(e){var t=ke(null,void 0),n=t[0],r=t[1],i=ke(null,void 0),l=i[0],a=i[1],c=ne([]),u=c[0],s=c[1],f=ne([]),p=f[0],d=f[1];return o.createElement(Pe.Provider,{value:[n,r]},o.createElement(De.Provider,{value:[l,a]},o.createElement(Me.Provider,{value:[u,function(e){s({type:Q.add,item:e})},function(e){s({type:Q.remove,item:e})}]},o.createElement(Re.Provider,{value:[p,function(e){d({type:Q.add,item:e})},function(e){d({type:Q.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Se,Ae=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={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 r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},_e=function(e){return e&&e.ownerDocument||window.document},Ne=function(e){var t=Ae(),n=_e(e);return t.edge||t.safari?n.body:n.documentElement},Le=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},je=function(e){var t=Ne(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Le(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!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"}(Se||(Se={}));var Ie=function(){},ze=function(e,t,n){void 0===n&&(n={});var o,r,i,l,a,c=n.onIsPressedChange,u=void 0===c?Ie:c,s=n.onIsScrollingChange,f=void 0===s?Ie:s,p=n.onVelocityChange,d=void 0===p?Ie:p,h=n.onOffsetChange,v=void 0===h?Ie:h,m=n.onPageOffsetChange,g=void 0===m?Ie:m,y=n.onClientOffsetChange,b=void 0===y?Ie:y,w=n.onScrollOffsetChange,O=void 0===w?Ie:w,C=n.onInitialScrollOffsetChange,E=void 0===C?Ie:C,x=t.payload,k=x.element,P=x.hint,D=e.autoScrollDirection,M=e.scrollableParent,R=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(R.type){case Se.POINTER_DOWN:if(R.type===Se.POINTER_DOWN&&(!R.originalEvent.isPrimary||0!==R.originalEvent.button))break;case Se.MOUSE_DOWN:if(R.type===Se.MOUSE_DOWN&&R.originalEvent.which&&R.originalEvent.which>1||e.ignoreMouse)break;case Se.TOUCH_START:if(R.type===Se.TOUCH_START&&1!==R.originalEvent.touches.length)break;case Se.START:var T=M||je(t.payload.element);E(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),b({x:R.clientX,y:R.clientY}),g({x:R.pageX,y:R.pageY}),v({x:R.offsetX,y:R.offsetY}),u(!0),x.onPress&&x.onPress(R);break;case Se.SCROLL:if(R.type===Se.SCROLL&&!e.pressed)break;var S=M||je(k),A=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};R.scrollX=A.x-e.initialScrollOffset.x,R.scrollY=A.y-e.initialScrollOffset.y,O({x:R.scrollX,y:R.scrollY});case Se.POINTER_MOVE:if(R.type===Se.POINTER_MOVE&&!R.originalEvent.isPrimary)break;case Se.MOUSE_MOVE:case Se.TOUCH_MOVE:if(R.type===Se.TOUCH_MOVE&&1!==R.originalEvent.touches.length)break;case Se.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==R.originalEvent.type&&k){var _=_e(k),N=M||je(_.elementFromPoint(R.clientX,R.clientY)),L=(o=R.pageX,r=R.pageY,i=function(e,t){var n=Ne(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(N,function(e){var t=_e(e);return t&&t.defaultView||window}(k)),l={x:0,y:0},a=50,o-i.left<a?l.x=-(a-(o-i.left)):i.right-o<a&&(l.x=a-(i.right-o)),r-i.top<a?l.y=-(a-(r-i.top)):i.bottom-r<a&&(l.y=a-(i.bottom-r)),l);d({x:D&&!1===D.horizontal?0:L.x,y:D&&!1===D.vertical?0:L.y}),f(0!==L.y||0!==L.x)}!e.drag&&x.onDragStart&&x.onDragStart(R),x.onDrag&&x.onDrag(R);var j=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),l=Math.min(o.left+o.width,n.left+n.width),a=Math.min(o.top+o.height,n.top+n.height),c=l-i,u=a-r;if(i<l&&r<a){var s=o.width*o.height,f=n.width*n.height,p=c*u;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(P||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(P||k)}))),I=e.drops.find((function(e){return e.element===j}));I&&j&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(R.clientX,R.clientY,M||je(j))&&j!==k?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R),I.onDragEnter&&I.onDragEnter(R)):I.onDragOver&&I.onDragOver(R):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R)}b({x:R.clientX,y:R.clientY}),g({x:R.pageX,y:R.pageY});break;case Se.POINTER_UP:if(R.type===Se.POINTER_UP&&!R.originalEvent.isPrimary)break;case Se.MOUSE_UP:case Se.TOUCH_END:if(R.type===Se.TOUCH_END&&1!==R.originalEvent.touches.length)break;case Se.END:u(!1),f(!1),x.onRelease&&x.onRelease(R),e.drop&&e.drop.onDrop&&e.drop.onDrop(R),x.onDragEnd&&x.onDragEnd(R);break;case Se.POINTER_CANCEL:case Se.CONTEXT_MENU:case Se.TOUCH_CANCEL:case Se.CANCEL:u(!1),f(!1),x.onDragEnd&&x.onDragEnd(R),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R)}},Ue=function(e,t){if(e){var n,o;e===Ne(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,l=e.scrollLeft+t.x,a=o&&l>0&&l<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:o&&l<0&&(e.scrollLeft=0)}},He=function(e,t){var n=o.useContext(e),r=n[0],i=n[1],l=o.useState(t),a=l[0],c=l[1];return[void 0!==r?r:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==r?i.apply(void 0,e):c(e[0])}]};function We(e,t,n){void 0===n&&(n={});var r=t.onPress,i=void 0===r?k:r,l=t.onRelease,a=void 0===l?k:l,c=t.onDragStart,u=void 0===c?k:c,s=t.onDrag,f=void 0===s?k:s,p=t.onDragEnd,d=void 0===p?k:p,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=o.useState(!1),E=C[0],x=C[1],P=o.useState(!1),D=P[0],M=P[1],R=He(De)[0],T=He(Pe),S=T[0],A=T[1],_=o.useContext(Re)[0],N=o.useContext(Me),L=N[0],j=N[1],I=N[2],z=o.useRef({x:0,y:0}),U=o.useRef(),H=o.useRef(!1),W=o.useRef(),K=o.useRef(null),B=o.useRef(!1),X=o.useRef({x:0,y:0}),Y=o.useRef({x:0,y:0}),V=o.useRef({x:0,y:0}),F=o.useRef({x:0,y:0}),q=o.useRef({x:0,y:0}),Z=o.useRef({x:0,y:0}),G=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&G,J=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=o.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),ee=o.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=o.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=o.useRef(null);o.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:ve,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:me,data:e.current}}));var oe=o.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=o.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=o.useCallback((function(){return{drag:S?S.current:null,drop:R?R.current:null,drags:L.map((function(e){return e.current})),drops:_.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:V.current,initialClientOffset:F.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:D}}),[S,R,L,_,E,b,te,D]),le=o.useCallback((function(e){x(e)}),[]),ae=o.useCallback((function(e){M(e)}),[]),ce=o.useCallback((function(e){z.current=e}),[]),ue=o.useCallback((function(e){X.current=e}),[]),se=o.useCallback((function(e){V.current=e}),[]),fe=o.useCallback((function(e){Y.current=e}),[]),pe=o.useCallback((function(e){F.current=e}),[]),de=o.useCallback((function(e){q.current=e}),[]),he=o.useCallback((function(e){Z.current=e}),[]),ve=o.useCallback((function(e){i(e)}),[i]),me=o.useCallback((function(e){a(e)}),[a]),ge=o.useCallback((function(t){A(ne,{target:e.current,event:t}),u(t)}),[A,e,u]),ye=o.useCallback((function(e){f(e)}),[f]),be=o.useCallback((function(t){B.current||(A(null,{target:e.current,event:t}),d(t))}),[d,A,e]),we=o.useCallback((function(e){ze(ie(),{event:e,payload:ne.current},{onVelocityChange:ce,onOffsetChange:ue,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:he,onIsPressedChange:le,onIsScrollingChange:ae})}),[ie,ce,ue,fe,se,pe,he,le,de,ae]),Oe=o.useCallback((function(e){we(e)}),[we]),Ce=o.useCallback((function(e){we(e)}),[we]),Ee=o.useCallback((function(e){we(e)}),[we]),xe=o.useCallback((function(e){we(e)}),[we]),ke=o.useCallback((function(e){we(e)}),[we]),Te=o.useCallback((function(e){we(e)}),[we]),Se=o.useCallback((function(e){we(e)}),[we]),Ae=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),_e=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ne=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Le=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();H.current=!0,W.current=t.setTimeout((function(){H.current=!1}),2e3)}we(e)}),[we,re]),Ie=o.useCallback((function(e){we(e)}),[we]),We=o.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=o.useCallback((function(){return j(ne),function(){I(ne)}}),[I,j]);o.useEffect((function(){var e=re();if(D){var t=ee()||je(document.elementFromPoint(V.current.x,V.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){Ue(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,D]),o.useEffect(We,[We]),o.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=je(t),K.current&&K.current.addEventListener("scroll",Ie,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),E&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",xe,!0),n.addEventListener("contextmenu",Ae),n.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",ke,{passive:!0}),g||(t.addEventListener("touchstart",_e,{passive:!0}),E&&(t.addEventListener("touchmove",Ne,{passive:!0}),t.addEventListener("touchend",Le,{passive:!0})))),E&&(n.addEventListener("mousemove",Te,{passive:!0}),n.addEventListener("mouseup",Se,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",Ie),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",ke),t.removeEventListener("touchstart",_e),t.removeEventListener("touchmove",Ne),t.removeEventListener("touchend",Le)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",xe,!0),n.removeEventListener("contextmenu",Ae),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Te),n.removeEventListener("mouseup",Se),e.removeEventListener("touchmove",k),e.clearTimeout(W.current)}}),[E,re,J,oe,g,$,Ae,ke,Te,Se,Ee,Oe,Ce,xe,Le,Ne,_e,Ie]),o.useEffect((function(){return function(){B.current=!0}}),[]),o.useLayoutEffect(Ke,[Ke])}var Ke=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(r,(function(){return{element:i()||null}})),o.useImperativeHandle(t,(function(){return r.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var l=o.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:r.current,event:t})}),[i,e.onPress]),a=o.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:r.current,event:t})}),[i,e.onRelease]),c=o.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:r.current,event:t})}),[e,i]),u=o.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:r.current,event:t})}),[i,e.onDrag]),s=o.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:r.current,event:t})}),[i,e.onDragEnd]);return We(n,{onPress:l,onRelease:a,onDragStart:c,onDrag:u,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,r=void 0===n?k:n,i=t.onDragOver,l=void 0===i?k:i,a=t.onDragLeave,c=void 0===a?k:a,u=t.onDrop,s=void 0===u?k:u,f=He(De)[1],p=o.useContext(Re),d=p[1],h=p[2],v=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=o.useRef(null);o.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=o.useCallback((function(t){f(m,{target:e.current,event:t}),r(t)}),[f,e,r]),y=o.useCallback((function(e){l(e)}),[l]),b=o.useCallback((function(t){f(null,{target:e.current,event:t}),c(t)}),[f,e,c]),w=o.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),O=o.useCallback((function(){return d(m),function(){h(m)}}),[h,d]);o.useLayoutEffect(O,[O])}Ke.displayName="KendoReactDraggable";var Xe=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(r,(function(){return{element:i()||void 0}})),o.useImperativeHandle(t,(function(){return r.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var l=o.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:r.current,event:t})}),[e.onDragEnter,i]),a=o.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:r.current,event:t})}),[i,e.onDragOver]),c=o.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:r.current,event:t})}),[e.onDragLeave,i]),u=o.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:r.current,event:t})}),[e.onDrop,i]);return Be(n,{onDragEnter:l,onDragOver:a,onDragLeave:c,onDrop:u}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));Xe.displayName="KendoReactDroppable";var Ye={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},302:e=>{e.exports=o},189:e=>{e.exports=n},899:t=>{t.exports=e},994:e=>{e.exports=t}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e].call(n.exports,n,n.exports,l),n.exports}l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.PopupPropsContext=e.Popup=void 0;var t=l(980);Object.defineProperty(e,"Popup",{enumerable:!0,get:function(){return t.Popup}}),Object.defineProperty(e,"PopupPropsContext",{enumerable:!0,get:function(){return t.PopupPropsContext}})})(),a})()}));
@@ -22,6 +22,6 @@ export interface PopupHandle extends Pick<PopupWithoutContext, keyof PopupWithou
22
22
  /**
23
23
  * The KendoReact Popup component.
24
24
  */
25
- export declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<{}>>;
25
+ export declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<unknown>>;
26
26
  /** @hidden */
27
27
  export declare type Popup = PopupHandle;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
+ import { ZIndexContext } from '@progress/kendo-react-common';
3
4
  import { Offset } from './models/Offset';
4
5
  import { PopupProps } from './models/PopupProps';
5
6
  import { Align } from './models/Align';
@@ -39,8 +40,8 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
39
40
  * @hidden
40
41
  */
41
42
  static propTypes: {
42
- anchor: (props: PopupProps) => Error;
43
- appendTo: (props: PopupProps) => Error;
43
+ anchor: (props: PopupProps) => Error | null;
44
+ appendTo: (props: PopupProps) => Error | null;
44
45
  className: PropTypes.Requireable<string | object>;
45
46
  id: PropTypes.Requireable<string>;
46
47
  popupClass: PropTypes.Requireable<string | object>;
@@ -60,7 +61,7 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
60
61
  left: PropTypes.Requireable<number>;
61
62
  top: PropTypes.Requireable<number>;
62
63
  }>>;
63
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
64
+ children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
64
65
  show: PropTypes.Requireable<boolean>;
65
66
  animate: PropTypes.Requireable<boolean | PropTypes.InferProps<{
66
67
  openDuration: PropTypes.Requireable<number>;
@@ -108,7 +109,11 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
108
109
  /**
109
110
  * @hidden
110
111
  */
111
- static contextType: React.Context<number>;
112
+ static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
113
+ /**
114
+ * @hidden
115
+ */
116
+ context: React.ContextType<typeof ZIndexContext>;
112
117
  /**
113
118
  * @hidden
114
119
  */
@@ -123,25 +128,25 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
123
128
  /**
124
129
  * Represents the Popup DOM element.
125
130
  */
126
- readonly element: HTMLDivElement | null;
131
+ get element(): HTMLDivElement | null;
127
132
  constructor(props: PopupProps);
128
133
  /**
129
134
  * @hidden
130
135
  */
131
136
  static getDerivedStateFromProps(props: PopupProps, state: PopupState): {
132
137
  props: {
133
- show: boolean;
134
- anchor: HTMLElement;
135
- anchorAlign: Align;
136
- appendTo: HTMLElement;
137
- collision: Collision;
138
- popupAlign: Align;
139
- className: string | string[];
138
+ show: boolean | undefined;
139
+ anchor: HTMLElement | null | undefined;
140
+ anchorAlign: Align | undefined;
141
+ appendTo: HTMLElement | null | undefined;
142
+ collision: Collision | undefined;
143
+ popupAlign: Align | undefined;
144
+ className: string | string[] | undefined;
140
145
  popupClass: string | string[] | {
141
146
  [key: string]: boolean;
142
- };
143
- style: React.CSSProperties;
144
- offset: Offset;
147
+ } | undefined;
148
+ style: React.CSSProperties | undefined;
149
+ offset: Offset | undefined;
145
150
  contentKey: any;
146
151
  };
147
152
  current: Status;
@@ -162,14 +167,14 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
162
167
  /**
163
168
  * @hidden
164
169
  */
165
- render(): JSX.Element;
170
+ render(): JSX.Element | null;
166
171
  private show;
167
172
  private setPosition;
168
173
  private onOpened;
169
174
  private animate;
170
175
  private onClosing;
171
176
  private onClosed;
172
- private readonly animationDuration;
177
+ private get animationDuration();
173
178
  private attachRepositionHandlers;
174
179
  private detachRepositionHandlers;
175
180
  private reposition;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -76,6 +78,10 @@ var PopupWithoutContext = /** @class */ (function (_super) {
76
78
  __extends(PopupWithoutContext, _super);
77
79
  function PopupWithoutContext(props) {
78
80
  var _this = _super.call(this, props) || this;
81
+ /**
82
+ * @hidden
83
+ */
84
+ _this.context = 0;
79
85
  /**
80
86
  * @hidden
81
87
  */
@@ -194,7 +200,7 @@ var PopupWithoutContext = /** @class */ (function (_super) {
194
200
  get: function () {
195
201
  return this._popup;
196
202
  },
197
- enumerable: true,
203
+ enumerable: false,
198
204
  configurable: true
199
205
  });
200
206
  /**
@@ -202,15 +208,25 @@ var PopupWithoutContext = /** @class */ (function (_super) {
202
208
  */
203
209
  PopupWithoutContext.getDerivedStateFromProps = function (props, state) {
204
210
  var show = props.show, anchor = props.anchor, anchorAlign = props.anchorAlign, appendTo = props.appendTo, collision = props.collision, popupAlign = props.popupAlign, className = props.className, popupClass = props.popupClass, style = props.style, offset = props.offset, contentKey = props.contentKey;
205
- var nextState = __assign({}, state, { props: {
206
- show: show, anchor: anchor, anchorAlign: anchorAlign, appendTo: appendTo, collision: collision, popupAlign: popupAlign, className: className, popupClass: popupClass, style: style, offset: offset, contentKey: contentKey
211
+ var nextState = __assign(__assign({}, state), { props: {
212
+ show: show,
213
+ anchor: anchor,
214
+ anchorAlign: anchorAlign,
215
+ appendTo: appendTo,
216
+ collision: collision,
217
+ popupAlign: popupAlign,
218
+ className: className,
219
+ popupClass: popupClass,
220
+ style: style,
221
+ offset: offset,
222
+ contentKey: contentKey
207
223
  } });
208
224
  if (props.show) {
209
225
  if (state.current === Status.hidden || state.current === Status.hiding) {
210
- return __assign({}, nextState, { current: Status.showing, previous: state.current });
226
+ return __assign(__assign({}, nextState), { current: Status.showing, previous: state.current });
211
227
  }
212
228
  if (state.current === Status.showing) {
213
- return __assign({}, nextState, { current: Status.shown, previous: state.current });
229
+ return __assign(__assign({}, nextState), { current: Status.shown, previous: state.current });
214
230
  }
215
231
  if (state.current === Status.shown &&
216
232
  (!isEquivalent(offset, state.props.offset) ||
@@ -222,14 +238,14 @@ var PopupWithoutContext = /** @class */ (function (_super) {
222
238
  anchor !== state.props.anchor ||
223
239
  popupClass !== state.props.popupClass ||
224
240
  className !== state.props.className)) {
225
- return __assign({}, nextState, { current: Status.reposition, previous: state.current });
241
+ return __assign(__assign({}, nextState), { current: Status.reposition, previous: state.current });
226
242
  }
227
243
  return nextState;
228
244
  }
229
245
  if (state.current === Status.hiding || state.current === Status.hidden) {
230
- return __assign({}, nextState, { current: Status.hidden, previous: state.current });
246
+ return __assign(__assign({}, nextState), { current: Status.hidden, previous: state.current });
231
247
  }
232
- return __assign({}, nextState, { current: Status.hiding, previous: state.current });
248
+ return __assign(__assign({}, nextState), { current: Status.hiding, previous: state.current });
233
249
  };
234
250
  /**
235
251
  * @hidden
@@ -307,14 +323,16 @@ var PopupWithoutContext = /** @class */ (function (_super) {
307
323
  }
308
324
  return { enter: enter, exit: exit };
309
325
  },
310
- enumerable: true,
326
+ enumerable: false,
311
327
  configurable: true
312
328
  });
313
329
  PopupWithoutContext.prototype.attachRepositionHandlers = function (element) {
314
330
  var _this = this;
315
331
  this.detachRepositionHandlers();
316
332
  this._scrollableParents = domUtils.scrollableParents(this.props.anchor || element);
317
- this._scrollableParents.map(function (p) { return p.addEventListener('scroll', _this.reposition); });
333
+ if (this._scrollableParents) {
334
+ this._scrollableParents.map(function (p) { return p.addEventListener('scroll', _this.reposition); });
335
+ }
318
336
  window.addEventListener('resize', this.reposition);
319
337
  };
320
338
  PopupWithoutContext.prototype.detachRepositionHandlers = function () {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @hidden
3
3
  */
4
- export declare const slide: (element: HTMLElement, direction: NavigationReason, duration: number, type: "enter" | "exit", callback: any) => any;
4
+ export declare const slide: (element: HTMLElement, direction: 'up' | 'down' | 'left' | 'right', duration: number, type: 'enter' | 'exit', callback: Function) => any;
@@ -24,6 +24,9 @@ export var slide = function (element, direction, duration, type, callback) {
24
24
  if (e.target === element) {
25
25
  element.removeEventListener('transitionend', transitionend);
26
26
  clearSlide(element);
27
+ if (type === 'exit') {
28
+ element.style.display = 'none';
29
+ }
27
30
  callback();
28
31
  }
29
32
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-popup',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653456532,
8
+ publishDate: 1654690058,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
package/dist/es/util.js CHANGED
@@ -24,7 +24,7 @@ export var throttle = function (func, wait, options) {
24
24
  options = options || {};
25
25
  var later = function () {
26
26
  previous = options.leading === false ? 0 : new Date().getTime();
27
- timeout = null;
27
+ timeout = undefined;
28
28
  result = func.apply(context, args);
29
29
  if (!timeout) {
30
30
  context = args = null;
@@ -36,12 +36,12 @@ export var throttle = function (func, wait, options) {
36
36
  previous = now;
37
37
  }
38
38
  var remaining = wait - (now - previous);
39
- context = this;
39
+ context = undefined; // this
40
40
  args = arguments;
41
41
  if (remaining <= 0 || remaining > wait) {
42
42
  if (timeout) {
43
43
  clearTimeout(timeout);
44
- timeout = null;
44
+ timeout = undefined;
45
45
  }
46
46
  previous = now;
47
47
  result = func.apply(context, args);
@@ -22,6 +22,6 @@ export interface PopupHandle extends Pick<PopupWithoutContext, keyof PopupWithou
22
22
  /**
23
23
  * The KendoReact Popup component.
24
24
  */
25
- export declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<{}>>;
25
+ export declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<unknown>>;
26
26
  /** @hidden */
27
27
  export declare type Popup = PopupHandle;
package/dist/npm/Popup.js CHANGED
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Popup = exports.PopupPropsContext = void 0;
14
15
  var React = require("react");
15
16
  var PopupWithoutContext_1 = require("./PopupWithoutContext");
16
17
  /**
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
+ import { ZIndexContext } from '@progress/kendo-react-common';
3
4
  import { Offset } from './models/Offset';
4
5
  import { PopupProps } from './models/PopupProps';
5
6
  import { Align } from './models/Align';
@@ -39,8 +40,8 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
39
40
  * @hidden
40
41
  */
41
42
  static propTypes: {
42
- anchor: (props: PopupProps) => Error;
43
- appendTo: (props: PopupProps) => Error;
43
+ anchor: (props: PopupProps) => Error | null;
44
+ appendTo: (props: PopupProps) => Error | null;
44
45
  className: PropTypes.Requireable<string | object>;
45
46
  id: PropTypes.Requireable<string>;
46
47
  popupClass: PropTypes.Requireable<string | object>;
@@ -60,7 +61,7 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
60
61
  left: PropTypes.Requireable<number>;
61
62
  top: PropTypes.Requireable<number>;
62
63
  }>>;
63
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
64
+ children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
64
65
  show: PropTypes.Requireable<boolean>;
65
66
  animate: PropTypes.Requireable<boolean | PropTypes.InferProps<{
66
67
  openDuration: PropTypes.Requireable<number>;
@@ -108,7 +109,11 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
108
109
  /**
109
110
  * @hidden
110
111
  */
111
- static contextType: React.Context<number>;
112
+ static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
113
+ /**
114
+ * @hidden
115
+ */
116
+ context: React.ContextType<typeof ZIndexContext>;
112
117
  /**
113
118
  * @hidden
114
119
  */
@@ -123,25 +128,25 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
123
128
  /**
124
129
  * Represents the Popup DOM element.
125
130
  */
126
- readonly element: HTMLDivElement | null;
131
+ get element(): HTMLDivElement | null;
127
132
  constructor(props: PopupProps);
128
133
  /**
129
134
  * @hidden
130
135
  */
131
136
  static getDerivedStateFromProps(props: PopupProps, state: PopupState): {
132
137
  props: {
133
- show: boolean;
134
- anchor: HTMLElement;
135
- anchorAlign: Align;
136
- appendTo: HTMLElement;
137
- collision: Collision;
138
- popupAlign: Align;
139
- className: string | string[];
138
+ show: boolean | undefined;
139
+ anchor: HTMLElement | null | undefined;
140
+ anchorAlign: Align | undefined;
141
+ appendTo: HTMLElement | null | undefined;
142
+ collision: Collision | undefined;
143
+ popupAlign: Align | undefined;
144
+ className: string | string[] | undefined;
140
145
  popupClass: string | string[] | {
141
146
  [key: string]: boolean;
142
- };
143
- style: React.CSSProperties;
144
- offset: Offset;
147
+ } | undefined;
148
+ style: React.CSSProperties | undefined;
149
+ offset: Offset | undefined;
145
150
  contentKey: any;
146
151
  };
147
152
  current: Status;
@@ -162,14 +167,14 @@ export declare class PopupWithoutContext extends React.Component<PopupProps, Pop
162
167
  /**
163
168
  * @hidden
164
169
  */
165
- render(): JSX.Element;
170
+ render(): JSX.Element | null;
166
171
  private show;
167
172
  private setPosition;
168
173
  private onOpened;
169
174
  private animate;
170
175
  private onClosing;
171
176
  private onClosed;
172
- private readonly animationDuration;
177
+ private get animationDuration();
173
178
  private attachRepositionHandlers;
174
179
  private detachRepositionHandlers;
175
180
  private reposition;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PopupWithoutContext = void 0;
27
30
  var React = require("react");
28
31
  var ReactDOM = require("react-dom");
29
32
  var PropTypes = require("prop-types");
@@ -78,6 +81,10 @@ var PopupWithoutContext = /** @class */ (function (_super) {
78
81
  __extends(PopupWithoutContext, _super);
79
82
  function PopupWithoutContext(props) {
80
83
  var _this = _super.call(this, props) || this;
84
+ /**
85
+ * @hidden
86
+ */
87
+ _this.context = 0;
81
88
  /**
82
89
  * @hidden
83
90
  */
@@ -90,7 +97,7 @@ var PopupWithoutContext = /** @class */ (function (_super) {
90
97
  };
91
98
  _this.setPosition = function (popup) {
92
99
  var _a = _this.props, anchorAlign = _a.anchorAlign, popupAlign = _a.popupAlign, collision = _a.collision, offset = _a.offset, anchor = _a.anchor, margin = _a.margin, scale = _a.scale, positionMode = _a.positionMode;
93
- var alignedOffset = kendo_popup_common_1.alignElement({
100
+ var alignedOffset = (0, kendo_popup_common_1.alignElement)({
94
101
  anchor: anchor,
95
102
  anchorAlign: anchorAlign,
96
103
  element: popup,
@@ -100,7 +107,7 @@ var PopupWithoutContext = /** @class */ (function (_super) {
100
107
  positionMode: positionMode,
101
108
  scale: scale
102
109
  });
103
- var position = kendo_popup_common_1.positionElement({
110
+ var position = (0, kendo_popup_common_1.positionElement)({
104
111
  anchor: anchor,
105
112
  anchorAlign: anchorAlign,
106
113
  element: popup,
@@ -166,7 +173,7 @@ var PopupWithoutContext = /** @class */ (function (_super) {
166
173
  if (_this._collisions && _this._collisions.flipped) {
167
174
  animationDirection = flipPositions[animationDirection];
168
175
  }
169
- animation_1.slide(element, animationDirection, _this.animationDuration[type], type, callback);
176
+ (0, animation_1.slide)(element, animationDirection, _this.animationDuration[type], type, callback);
170
177
  };
171
178
  _this.onClosing = function (popup) {
172
179
  if (!_this.props.show) {
@@ -185,8 +192,8 @@ var PopupWithoutContext = /** @class */ (function (_super) {
185
192
  _this.getCurrentZIndex = function () {
186
193
  return _this.context ? _this.context + ZINDEX_POPUP_STEP : DEFAULT_POPUP_ZINDEX;
187
194
  };
188
- kendo_react_common_1.validatePackage(package_metadata_1.packageMetadata);
189
- _this.reposition = util_1.throttle(_this.reposition.bind(_this), util_1.FRAME_DURATION);
195
+ (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
196
+ _this.reposition = (0, util_1.throttle)(_this.reposition.bind(_this), util_1.FRAME_DURATION);
190
197
  return _this;
191
198
  }
192
199
  Object.defineProperty(PopupWithoutContext.prototype, "element", {
@@ -196,7 +203,7 @@ var PopupWithoutContext = /** @class */ (function (_super) {
196
203
  get: function () {
197
204
  return this._popup;
198
205
  },
199
- enumerable: true,
206
+ enumerable: false,
200
207
  configurable: true
201
208
  });
202
209
  /**
@@ -204,15 +211,25 @@ var PopupWithoutContext = /** @class */ (function (_super) {
204
211
  */
205
212
  PopupWithoutContext.getDerivedStateFromProps = function (props, state) {
206
213
  var show = props.show, anchor = props.anchor, anchorAlign = props.anchorAlign, appendTo = props.appendTo, collision = props.collision, popupAlign = props.popupAlign, className = props.className, popupClass = props.popupClass, style = props.style, offset = props.offset, contentKey = props.contentKey;
207
- var nextState = __assign({}, state, { props: {
208
- show: show, anchor: anchor, anchorAlign: anchorAlign, appendTo: appendTo, collision: collision, popupAlign: popupAlign, className: className, popupClass: popupClass, style: style, offset: offset, contentKey: contentKey
214
+ var nextState = __assign(__assign({}, state), { props: {
215
+ show: show,
216
+ anchor: anchor,
217
+ anchorAlign: anchorAlign,
218
+ appendTo: appendTo,
219
+ collision: collision,
220
+ popupAlign: popupAlign,
221
+ className: className,
222
+ popupClass: popupClass,
223
+ style: style,
224
+ offset: offset,
225
+ contentKey: contentKey
209
226
  } });
210
227
  if (props.show) {
211
228
  if (state.current === Status.hidden || state.current === Status.hiding) {
212
- return __assign({}, nextState, { current: Status.showing, previous: state.current });
229
+ return __assign(__assign({}, nextState), { current: Status.showing, previous: state.current });
213
230
  }
214
231
  if (state.current === Status.showing) {
215
- return __assign({}, nextState, { current: Status.shown, previous: state.current });
232
+ return __assign(__assign({}, nextState), { current: Status.shown, previous: state.current });
216
233
  }
217
234
  if (state.current === Status.shown &&
218
235
  (!isEquivalent(offset, state.props.offset) ||
@@ -224,14 +241,14 @@ var PopupWithoutContext = /** @class */ (function (_super) {
224
241
  anchor !== state.props.anchor ||
225
242
  popupClass !== state.props.popupClass ||
226
243
  className !== state.props.className)) {
227
- return __assign({}, nextState, { current: Status.reposition, previous: state.current });
244
+ return __assign(__assign({}, nextState), { current: Status.reposition, previous: state.current });
228
245
  }
229
246
  return nextState;
230
247
  }
231
248
  if (state.current === Status.hiding || state.current === Status.hidden) {
232
- return __assign({}, nextState, { current: Status.hidden, previous: state.current });
249
+ return __assign(__assign({}, nextState), { current: Status.hidden, previous: state.current });
233
250
  }
234
- return __assign({}, nextState, { current: Status.hiding, previous: state.current });
251
+ return __assign(__assign({}, nextState), { current: Status.hiding, previous: state.current });
235
252
  };
236
253
  /**
237
254
  * @hidden
@@ -285,8 +302,8 @@ var PopupWithoutContext = /** @class */ (function (_super) {
285
302
  if ((show || closing) && calculatedAppendTo) {
286
303
  var currentZIndex = this.getCurrentZIndex();
287
304
  var popupElement = (React.createElement(kendo_react_common_1.ZIndexContext.Provider, { value: currentZIndex },
288
- React.createElement("div", { className: kendo_react_common_1.classNames(ANIMATION_CONTAINER, ANIMATION_CONTAINER_RELATIVE, className), id: id, ref: function (e) { return _this._popup = e; }, style: __assign({ zIndex: currentZIndex }, style) },
289
- React.createElement("div", { className: kendo_react_common_1.classNames(K_POPUP, popupClass, ANIMATION_CONTAINER_CHILD), style: { transitionDelay: '0ms' } }, children))));
305
+ React.createElement("div", { className: (0, kendo_react_common_1.classNames)(ANIMATION_CONTAINER, ANIMATION_CONTAINER_RELATIVE, className), id: id, ref: function (e) { return _this._popup = e; }, style: __assign({ zIndex: currentZIndex }, style) },
306
+ React.createElement("div", { className: (0, kendo_react_common_1.classNames)(K_POPUP, popupClass, ANIMATION_CONTAINER_CHILD), style: { transitionDelay: '0ms' } }, children))));
290
307
  return this.props.appendTo !== null ?
291
308
  ReactDOM.createPortal(popupElement, calculatedAppendTo) :
292
309
  popupElement;
@@ -309,14 +326,16 @@ var PopupWithoutContext = /** @class */ (function (_super) {
309
326
  }
310
327
  return { enter: enter, exit: exit };
311
328
  },
312
- enumerable: true,
329
+ enumerable: false,
313
330
  configurable: true
314
331
  });
315
332
  PopupWithoutContext.prototype.attachRepositionHandlers = function (element) {
316
333
  var _this = this;
317
334
  this.detachRepositionHandlers();
318
335
  this._scrollableParents = kendo_popup_common_1.domUtils.scrollableParents(this.props.anchor || element);
319
- this._scrollableParents.map(function (p) { return p.addEventListener('scroll', _this.reposition); });
336
+ if (this._scrollableParents) {
337
+ this._scrollableParents.map(function (p) { return p.addEventListener('scroll', _this.reposition); });
338
+ }
320
339
  window.addEventListener('resize', this.reposition);
321
340
  };
322
341
  PopupWithoutContext.prototype.detachRepositionHandlers = function () {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @hidden
3
3
  */
4
- export declare const slide: (element: HTMLElement, direction: NavigationReason, duration: number, type: "enter" | "exit", callback: any) => any;
4
+ export declare const slide: (element: HTMLElement, direction: 'up' | 'down' | 'left' | 'right', duration: number, type: 'enter' | 'exit', callback: Function) => any;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.slide = void 0;
3
4
  var clearSlide = function (element) {
4
5
  element.style.transitionDuration = '';
5
6
  Array.from(element.classList).forEach(function (c) {
@@ -13,7 +14,7 @@ var firefox = typeof window !== 'undefined' &&
13
14
  /**
14
15
  * @hidden
15
16
  */
16
- exports.slide = function (element, direction, duration, type, callback) {
17
+ var slide = function (element, direction, duration, type, callback) {
17
18
  if (duration === 0) {
18
19
  return callback();
19
20
  }
@@ -26,6 +27,9 @@ exports.slide = function (element, direction, duration, type, callback) {
26
27
  if (e.target === element) {
27
28
  element.removeEventListener('transitionend', transitionend);
28
29
  clearSlide(element);
30
+ if (type === 'exit') {
31
+ element.style.display = 'none';
32
+ }
29
33
  callback();
30
34
  }
31
35
  };
@@ -53,3 +57,4 @@ exports.slide = function (element, direction, duration, type, callback) {
53
57
  animate();
54
58
  }
55
59
  };
60
+ exports.slide = slide;
package/dist/npm/main.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PopupPropsContext = exports.Popup = void 0;
3
4
  var Popup_1 = require("./Popup");
4
- exports.Popup = Popup_1.Popup;
5
- exports.PopupPropsContext = Popup_1.PopupPropsContext;
5
+ Object.defineProperty(exports, "Popup", { enumerable: true, get: function () { return Popup_1.Popup; } });
6
+ Object.defineProperty(exports, "PopupPropsContext", { enumerable: true, get: function () { return Popup_1.PopupPropsContext; } });
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageMetadata = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
@@ -7,7 +8,7 @@ exports.packageMetadata = {
7
8
  name: '@progress/kendo-react-popup',
8
9
  productName: 'KendoReact',
9
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1653456532,
11
+ publishDate: 1654690058,
11
12
  version: '',
12
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
13
14
  };
package/dist/npm/util.js CHANGED
@@ -1,17 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.throttle = exports.FRAME_DURATION = exports.hasBoundingRect = exports.isDifferentOffset = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
6
- exports.isDifferentOffset = function (oldOffset, newOffset) {
7
+ var isDifferentOffset = function (oldOffset, newOffset) {
7
8
  var oldLeft = oldOffset.left, oldTop = oldOffset.top;
8
9
  var newLeft = newOffset.left, newTop = newOffset.top;
9
10
  return Math.abs(oldLeft - newLeft) >= 1 || Math.abs(oldTop - newTop) >= 1;
10
11
  };
12
+ exports.isDifferentOffset = isDifferentOffset;
11
13
  /**
12
14
  * @hidden
13
15
  */
14
- exports.hasBoundingRect = function (elem) { return !!elem.getBoundingClientRect; };
16
+ var hasBoundingRect = function (elem) { return !!elem.getBoundingClientRect; };
17
+ exports.hasBoundingRect = hasBoundingRect;
15
18
  /**
16
19
  * @hidden
17
20
  */
@@ -19,14 +22,14 @@ exports.FRAME_DURATION = 1000 / 60; // 1000ms divided by 60fps
19
22
  /**
20
23
  * @hidden
21
24
  */
22
- exports.throttle = function (func, wait, options) {
25
+ var throttle = function (func, wait, options) {
23
26
  if (options === void 0) { options = {}; }
24
27
  var timeout, context, args, result;
25
28
  var previous = 0;
26
29
  options = options || {};
27
30
  var later = function () {
28
31
  previous = options.leading === false ? 0 : new Date().getTime();
29
- timeout = null;
32
+ timeout = undefined;
30
33
  result = func.apply(context, args);
31
34
  if (!timeout) {
32
35
  context = args = null;
@@ -38,12 +41,12 @@ exports.throttle = function (func, wait, options) {
38
41
  previous = now;
39
42
  }
40
43
  var remaining = wait - (now - previous);
41
- context = this;
44
+ context = undefined; // this
42
45
  args = arguments;
43
46
  if (remaining <= 0 || remaining > wait) {
44
47
  if (timeout) {
45
48
  clearTimeout(timeout);
46
- timeout = null;
49
+ timeout = undefined;
47
50
  }
48
51
  previous = now;
49
52
  result = func.apply(context, args);
@@ -58,3 +61,4 @@ exports.throttle = function (func, wait, options) {
58
61
  };
59
62
  return throttled;
60
63
  };
64
+ exports.throttle = throttle;
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-popup",["react","react-dom","prop-types","@progress/kendo-popup-common","@progress/kendo-react-common"],function(r){var s,p,a,l,u;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){p=e(t)},function(t){a=e(t)},function(t){l=e(t)},function(t){u=e(t)}],execute:function(){function i(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,o;n=[function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,n=n(2),i=(e.Popup=n.Popup,e.PopupPropsContext=n.PopupPropsContext,e);for(o in i)r(o,i[o])},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=(Object.defineProperty(n,"__esModule",{value:!0}),e(0)),r=e(3);n.PopupPropsContext=i.createContext(function(t){return t}),n.Popup=i.forwardRef(function(t,e){t=i.useContext(n.PopupPropsContext).call(void 0,t);return i.createElement(r.PopupWithoutContext,o({ref:e},t))}),n.Popup.displayName="Popup"},function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),u=n(4),r=n(5),s=n(6),c=n(7),f=n(8),p=n(9),a=n(10);function h(t,e){if(t===e)return 1;if(!!t==!!e){var n=Object.getOwnPropertyNames(t),o=Object.getOwnPropertyNames(e);if(n.length===o.length){for(var i=0;i<n.length;i++){var r=n[i];if(t[r]!==e[r])return}return 1}}}var g,m,n={left:-1e3,top:0},v=((v=g=g||{}).hiding="hiding",v.hidden="hidden",v.showing="showing",v.shown="shown",v.reposition="reposition",m=l.Component,i(y,m),Object.defineProperty(y.prototype,"element",{get:function(){return this._popup},enumerable:!0,configurable:!0}),y.getDerivedStateFromProps=function(t,e){var n=t.show,o=t.anchor,i=t.anchorAlign,r=t.appendTo,s=t.collision,p=t.popupAlign,a=t.className,l=t.popupClass,u=t.style,c=t.offset,f=t.contentKey,n=d({},e,{props:{show:n,anchor:o,anchorAlign:i,appendTo:r,collision:s,popupAlign:p,className:a,popupClass:l,style:u,offset:c,contentKey:f}});return t.show?e.current===g.hidden||e.current===g.hiding?d({},n,{current:g.showing,previous:e.current}):e.current===g.showing?d({},n,{current:g.shown,previous:e.current}):e.current!==g.shown||h(c,e.props.offset)&&h(i,e.props.anchorAlign)&&h(r,e.props.appendTo)&&h(s,e.props.collision)&&h(p,e.props.popupAlign)&&h(u,e.props.style)&&o===e.props.anchor&&l===e.props.popupClass&&a===e.props.className?n:d({},n,{current:g.reposition,previous:e.current}):e.current===g.hiding||e.current===g.hidden?d({},n,{current:g.hidden,previous:e.current}):d({},n,{current:g.hiding,previous:e.current})},y.prototype.componentDidUpdate=function(t){this.state.current===g.showing&&this._popup?this.show(this._popup):this.state.current===g.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===g.reposition&&this.state.previous===g.shown?this.setState({current:g.shown,previous:this.state.current}):this.state.current===g.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},y.prototype.componentDidMount=function(){this.state.current===g.showing&&this._popup&&this.show(this._popup)},y.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},y.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,r=t.show,s=t.id,t=t.positionMode,p=this.props.appendTo||(c.canUseDOM?(this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument:document).body:void 0),t=(this.state.current===g.reposition&&this.state.previous===g.shown&&this._popup&&this.setPosition(this._popup),Object.assign({},{position:t,top:0,left:-1e4},this.props.style||{})),a=this.state.current===g.hiding;return(r||a)&&p?(r=this.getCurrentZIndex(),a=l.createElement(c.ZIndexContext.Provider,{value:r},l.createElement("div",{className:c.classNames("k-animation-container","k-animation-container-relative",o),id:s,ref:function(t){return e._popup=t},style:d({zIndex:r},t)},l.createElement("div",{className:c.classNames("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n))),null!==this.props.appendTo?u.createPortal(a,p):a):null},Object.defineProperty(y.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,n=0;return t&&(!0===t?e=n=300:(e=t.openDuration||0,n=t.closeDuration||0)),{enter:e,exit:n}},enumerable:!0,configurable:!0}),y.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=f.domUtils.scrollableParents(this.props.anchor||t),this._scrollableParents.map(function(t){return t.addEventListener("scroll",e.reposition)}),window.addEventListener("resize",this.reposition)},y.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)},y.prototype.reposition=function(){this.setState({current:g.reposition,previous:this.state.current})},y.propTypes={anchor:function(t){t=t.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(t){t=t.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),id:r.string,popupClass:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),collision:r.shape({horizontal:r.oneOf([f.Collision.fit,f.Collision.flip,f.Collision.none]),vertical:r.oneOf([f.Collision.fit,f.Collision.flip,f.Collision.none])}),anchorAlign:r.shape({horizontal:r.oneOf([f.AlignPoint.left,f.AlignPoint.center,f.AlignPoint.right]),vertical:r.oneOf([f.AlignPoint.top,f.AlignPoint.center,f.AlignPoint.bottom])}),popupAlign:r.shape({horizontal:r.oneOf([f.AlignPoint.left,f.AlignPoint.center,f.AlignPoint.right]),vertical:r.oneOf([f.AlignPoint.top,f.AlignPoint.center,f.AlignPoint.bottom])}),offset:r.shape({left:r.number,top:r.number}),children:r.oneOfType([r.element,r.node]),show:r.bool,animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),margin:r.shape({horizontal:r.number,vertical:r.number}),positionMode:r.oneOf(["fixed","absolute"]),scale:r.number,style:r.object,onClose:r.func,onPosition:r.func,onOpen:r.func},y.defaultProps={collision:{horizontal:f.Collision.fit,vertical:f.Collision.flip},anchorAlign:{horizontal:f.AlignPoint.left,vertical:f.AlignPoint.bottom},popupAlign:{horizontal:f.AlignPoint.left,vertical:f.AlignPoint.top},offset:n,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},y.contextType=c.ZIndexContext,y.displayName="PopupComponent",y);function y(t){var l=m.call(this,t)||this;return l.state={current:g.hidden,previous:g.hidden,props:{}},l._popup=null,l.show=function(t){l.setPosition(t),l.animate(t.firstChild,"enter",l.onOpened),l.setState({current:g.shown,previous:l.state.current})},l.setPosition=function(t){var e=l.props,n=e.anchorAlign,o=e.popupAlign,i=e.collision,r=e.offset,s=e.anchor,p=e.margin,a=e.scale,e=e.positionMode,r=f.alignElement({anchor:s,anchorAlign:n,element:t,elementAlign:o,offset:r,margin:p,positionMode:e,scale:a}),p=f.positionElement({anchor:s,anchorAlign:n,element:t,elementAlign:o,collisions:i,currentLocation:r,margin:l.props.margin});t.style.top=p.offset.top+"px",t.style.left=p.offset.left+"px",l._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},l.props.onPosition&&(e={target:l,flipped:p.flipped,fitted:p.fitted},l.props.onPosition.call(void 0,e))},l.onOpened=function(){var t=l._popup;t&&(l.props.show&&t.classList.add("k-animation-container-shown"),l.attachRepositionHandlers(t),l.props.onOpen&&l.props.onOpen.call(void 0,{target:l}))},l.animate=function(t,e,n){var o,i;l.props.popupAlign&&(i=(o=l.props.popupAlign).horizontal,o=o.vertical,i="left"===i&&"center"===o?"right":"right"===i&&"center"===o?"left":"top"===o?"down":"up",l._collisions&&l._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),s.slide(t,i,l.animationDuration[e],e,n))},l.onClosing=function(t){l.props.show||t.classList.remove("k-animation-container-shown"),l.detachRepositionHandlers()},l.onClosed=function(){l.state.current===g.hiding&&l.state.previous===g.shown&&l.setState({current:g.hidden,previous:l.state.current}),l.props.onClose&&l.props.onClose.call(void 0,{target:l})},l.getCurrentZIndex=function(){return l.context?l.context+1:100},c.validatePackage(a.packageMetadata),l.reposition=p.throttle(l.reposition.bind(l),p.FRAME_DURATION),l}e.PopupWithoutContext=v},function(t,e){t.exports=p},function(t,e){t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function l(e){e.style.transitionDuration="",Array.from(e.classList).forEach(function(t){t.startsWith("k-slide-")&&e.classList.remove(t)})}var u="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent);e.slide=function(e,t,n,o,i){if(0===n)return i();function r(t){t.target===e&&(e.removeEventListener("transitionend",r),l(e),i())}var s,p="k-slide-"+t+"-"+o,a=p+"-active",t=(e.addEventListener("transitionend",r),e.ownerDocument);t&&(s=t.defaultView)&&(o=function(){l(e),e.classList.add(p),s.requestAnimationFrame(function(){e.style.transitionDuration=n+"ms",e.classList.add(a)})},u?s.requestAnimationFrame(o):o())}},function(t,e){t.exports=u},function(t,e){t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDifferentOffset=function(t,e){var n=t.left,t=t.top,o=e.left,e=e.top;return 1<=Math.abs(n-o)||1<=Math.abs(t-e)},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.FRAME_DURATION=1e3/60,e.throttle=function(n,o,i){function r(){u=!1===i.leading?0:(new Date).getTime(),s=null,l=n.apply(p,a),s||(p=a=null)}var s,p,a,l,u=0;i=(i=void 0===i?{}:i)||{};return function(){var t=(new Date).getTime(),e=(u||!1!==i.leading||(u=t),o-(t-u));return p=this,a=arguments,e<=0||o<e?(s&&(clearTimeout(s),s=null),u=t,l=n.apply(p,a),s||(p=a=null)):s||!1===i.trailing||(s=window.setTimeout(r,e)),l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653456532,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"}}],o={},i.m=n,i.c=o,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}}});
1
+ System.register("@progress/kendo-react-popup",["@progress/kendo-popup-common","@progress/kendo-react-common","prop-types","react","react-dom"],function(s,e){var p={},a={},l={},c={},u={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})}],execute:function(){function o(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={exports:{}};return n[e].call(t.exports,t,t.exports,o),t.exports}var n,i,e,t,r;s((n={980:function(e,o,t){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=(Object.defineProperty(o,"__esModule",{value:!0}),o.Popup=o.PopupPropsContext=void 0,t(954)),r=t(763);o.PopupPropsContext=i.createContext(function(e){return e}),o.Popup=i.forwardRef(function(e,t){e=i.useContext(o.PopupPropsContext).call(void 0,e);return i.createElement(r.PopupWithoutContext,n({ref:t},e))}),o.Popup.displayName="Popup"},763:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWithoutContext=void 0,o(954)),c=o(493),r=o(895),s=o(187),u=o(811),d=o(384),p=o(169),a=o(363);function h(e,t){if(e===t)return 1;if(!!e==!!t){var o=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(o.length===n.length){for(var i=0;i<o.length;i++){var r=o[i];if(e[r]!==t[r])return}return 1}}}var g,m,o={left:-1e3,top:0},v=((y=g=g||{}).hiding="hiding",y.hidden="hidden",y.showing="showing",y.shown="shown",y.reposition="reposition","k-animation-container-shown"),y=(m=l.Component,i(P,m),Object.defineProperty(P.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),P.getDerivedStateFromProps=function(e,t){var o=e.show,n=e.anchor,i=e.anchorAlign,r=e.appendTo,s=e.collision,p=e.popupAlign,a=e.className,l=e.popupClass,c=e.style,u=e.offset,d=e.contentKey,o=f(f({},t),{props:{show:o,anchor:n,anchorAlign:i,appendTo:r,collision:s,popupAlign:p,className:a,popupClass:l,style:c,offset:u,contentKey:d}});return e.show?t.current===g.hidden||t.current===g.hiding?f(f({},o),{current:g.showing,previous:t.current}):t.current===g.showing?f(f({},o),{current:g.shown,previous:t.current}):t.current!==g.shown||h(u,t.props.offset)&&h(i,t.props.anchorAlign)&&h(r,t.props.appendTo)&&h(s,t.props.collision)&&h(p,t.props.popupAlign)&&h(c,t.props.style)&&n===t.props.anchor&&l===t.props.popupClass&&a===t.props.className?o:f(f({},o),{current:g.reposition,previous:t.current}):t.current===g.hiding||t.current===g.hidden?f(f({},o),{current:g.hidden,previous:t.current}):f(f({},o),{current:g.hiding,previous:t.current})},P.prototype.componentDidUpdate=function(e){this.state.current===g.showing&&this._popup?this.show(this._popup):this.state.current===g.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===g.reposition&&this.state.previous===g.shown?this.setState({current:g.shown,previous:this.state.current}):this.state.current===g.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},P.prototype.componentDidMount=function(){this.state.current===g.showing&&this._popup&&this.show(this._popup)},P.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},P.prototype.render=function(){var t=this,e=this.props,o=e.children,n=e.className,i=e.popupClass,r=e.show,s=e.id,e=e.positionMode,p=this.props.appendTo||(u.canUseDOM?(this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument:document).body:void 0),e=(this.state.current===g.reposition&&this.state.previous===g.shown&&this._popup&&this.setPosition(this._popup),Object.assign({},{position:e,top:0,left:-1e4},this.props.style||{})),a=this.state.current===g.hiding;return(r||a)&&p?(r=this.getCurrentZIndex(),a=l.createElement(u.ZIndexContext.Provider,{value:r},l.createElement("div",{className:(0,u.classNames)("k-animation-container","k-animation-container-relative",n),id:s,ref:function(e){return t._popup=e},style:f({zIndex:r},e)},l.createElement("div",{className:(0,u.classNames)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o))),null!==this.props.appendTo?c.createPortal(a,p):a):null},Object.defineProperty(P.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,o=0;return e&&(!0===e?t=o=300:(t=e.openDuration||0,o=e.closeDuration||0)),{enter:t,exit:o}},enumerable:!1,configurable:!0}),P.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=d.domUtils.scrollableParents(this.props.anchor||e),this._scrollableParents&&this._scrollableParents.map(function(e){return e.addEventListener("scroll",t.reposition)}),window.addEventListener("resize",this.reposition)},P.prototype.detachRepositionHandlers=function(){var t=this;this._scrollableParents&&(this._scrollableParents.map(function(e){return e.removeEventListener("scroll",t.reposition)}),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},P.prototype.reposition=function(){this.setState({current:g.reposition,previous:this.state.current})},P.propTypes={anchor:function(e){e=e.anchor;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){e=e.appendTo;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),id:r.string,popupClass:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),collision:r.shape({horizontal:r.oneOf([d.Collision.fit,d.Collision.flip,d.Collision.none]),vertical:r.oneOf([d.Collision.fit,d.Collision.flip,d.Collision.none])}),anchorAlign:r.shape({horizontal:r.oneOf([d.AlignPoint.left,d.AlignPoint.center,d.AlignPoint.right]),vertical:r.oneOf([d.AlignPoint.top,d.AlignPoint.center,d.AlignPoint.bottom])}),popupAlign:r.shape({horizontal:r.oneOf([d.AlignPoint.left,d.AlignPoint.center,d.AlignPoint.right]),vertical:r.oneOf([d.AlignPoint.top,d.AlignPoint.center,d.AlignPoint.bottom])}),offset:r.shape({left:r.number,top:r.number}),children:r.oneOfType([r.element,r.node]),show:r.bool,animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),margin:r.shape({horizontal:r.number,vertical:r.number}),positionMode:r.oneOf(["fixed","absolute"]),scale:r.number,style:r.object,onClose:r.func,onPosition:r.func,onOpen:r.func},P.defaultProps={collision:{horizontal:d.Collision.fit,vertical:d.Collision.flip},anchorAlign:{horizontal:d.AlignPoint.left,vertical:d.AlignPoint.bottom},popupAlign:{horizontal:d.AlignPoint.left,vertical:d.AlignPoint.top},offset:o,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},P.contextType=u.ZIndexContext,P.displayName="PopupComponent",P);function P(e){var l=m.call(this,e)||this;return l.context=0,l.state={current:g.hidden,previous:g.hidden,props:{}},l._popup=null,l.show=function(e){l.setPosition(e),l.animate(e.firstChild,"enter",l.onOpened),l.setState({current:g.shown,previous:l.state.current})},l.setPosition=function(e){var t=l.props,o=t.anchorAlign,n=t.popupAlign,i=t.collision,r=t.offset,s=t.anchor,p=t.margin,a=t.scale,t=t.positionMode,r=(0,d.alignElement)({anchor:s,anchorAlign:o,element:e,elementAlign:n,offset:r,margin:p,positionMode:t,scale:a}),p=(0,d.positionElement)({anchor:s,anchorAlign:o,element:e,elementAlign:n,collisions:i,currentLocation:r,margin:l.props.margin});e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",l._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},l.props.onPosition&&(t={target:l,flipped:p.flipped,fitted:p.fitted},l.props.onPosition.call(void 0,t))},l.onOpened=function(){var e=l._popup;e&&(l.props.show&&e.classList.add(v),l.attachRepositionHandlers(e),l.props.onOpen&&l.props.onOpen.call(void 0,{target:l}))},l.animate=function(e,t,o){var n,i;l.props.popupAlign&&(i=(n=l.props.popupAlign).horizontal,n=n.vertical,i="left"===i&&"center"===n?"right":"right"===i&&"center"===n?"left":"top"===n?"down":"up",l._collisions&&l._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),(0,s.slide)(e,i,l.animationDuration[t],t,o))},l.onClosing=function(e){l.props.show||e.classList.remove(v),l.detachRepositionHandlers()},l.onClosed=function(){l.state.current===g.hiding&&l.state.previous===g.shown&&l.setState({current:g.hidden,previous:l.state.current}),l.props.onClose&&l.props.onClose.call(void 0,{target:l})},l.getCurrentZIndex=function(){return l.context?l.context+1:100},(0,u.validatePackage)(a.packageMetadata),l.reposition=(0,p.throttle)(l.reposition.bind(l),p.FRAME_DURATION),l}t.PopupWithoutContext=y},187:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.slide=void 0;function l(t){t.style.transitionDuration="",Array.from(t.classList).forEach(function(e){e.startsWith("k-slide-")&&t.classList.remove(e)})}var c="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent);t.slide=function(t,e,o,n,i){if(0===o)return i();function r(e){e.target===t&&(t.removeEventListener("transitionend",r),l(t),"exit"===n&&(t.style.display="none"),i())}var s,p="k-slide-"+e+"-"+n,a=p+"-active",e=(t.addEventListener("transitionend",r),t.ownerDocument);e&&(s=e.defaultView)&&(e=function(){l(t),t.classList.add(p),s.requestAnimationFrame(function(){t.style.transitionDuration=o+"ms",t.classList.add(a)})},c?s.requestAnimationFrame(e):e())}},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654690058,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"}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.FRAME_DURATION=t.hasBoundingRect=t.isDifferentOffset=void 0,t.isDifferentOffset=function(e,t){var o=e.left,e=e.top,n=t.left,t=t.top;return 1<=Math.abs(o-n)||1<=Math.abs(e-t)},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.FRAME_DURATION=1e3/60,t.throttle=function(o,n,i){function r(){c=!1===i.leading?0:(new Date).getTime(),s=void 0,l=o.apply(p,a),s||(p=a=null)}var s,p,a,l,c=0;i=(i=void 0===i?{}:i)||{};return function(){var e=(new Date).getTime(),t=(c||!1!==i.leading||(c=e),n-(e-c));return p=void 0,a=arguments,t<=0||n<t?(s&&(clearTimeout(s),s=void 0),c=e,l=o.apply(p,a),s||(p=a=null)):s||!1===i.trailing||(s=window.setTimeout(r,t)),l}}},384:e=>{e.exports=p},811:e=>{e.exports=a},895:e=>{e.exports=l},954:e=>{e.exports=c},493:e=>{e.exports=u}},i={},e=r={},Object.defineProperty(e,"__esModule",{value:!0}),e.PopupPropsContext=e.Popup=void 0,t=o(980),Object.defineProperty(e,"Popup",{enumerable:!0,get:function(){return t.Popup}}),Object.defineProperty(e,"PopupPropsContext",{enumerable:!0,get:function(){return t.PopupPropsContext}}),r))}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-popup",
3
3
  "description": "KendoReact Popup package",
4
- "version": "5.4.0-dev.202205250548",
4
+ "version": "5.4.0-dev.202206081230",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-react.git"
@@ -12,7 +12,7 @@
12
12
  "jsnext:main": "dist/es/main.js",
13
13
  "scripts": {
14
14
  "test": "cd ../../ && npm run test -- --testPathPattern=/packages/popup/.*",
15
- "e2e": "cd ../../ && npx jest --config jest.e2e.js packages/popup",
15
+ "e2e": "cd ../../ && npx jest --maxWorkers=4 --config jest.e2e.js packages/popup",
16
16
  "start": "gulp start",
17
17
  "build-package": "gulp build-package"
18
18
  },
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@progress/kendo-popup-common": "1.9.0",
39
- "@progress/kendo-react-common": "5.4.0-dev.202205250548",
39
+ "@progress/kendo-react-common": "5.4.0-dev.202206081230",
40
40
  "prop-types": "^15.6.0"
41
41
  },
42
42
  "@progress": {