@progress/kendo-react-popup 5.14.2-dev.202306230837 → 5.14.2-dev.202306271353
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("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(668),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,g={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(v||(v={}));var m="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=e.style,d=p.width,h=p.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var v=(0,f.alignElement)({anchor:a,anchorAlign:o,element:e,elementAlign:r,offset:l,margin:c,positionMode:s,scale:u}),g=(0,f.positionElement)({anchor:a,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:v,margin:n.props.margin});if(e.style.top=g.offset.top+"px",e.style.left=g.offset.left+"px",e.style.width=d,e.style.height=h,n._collisions={fit:g.fit,fitted:g.fitted,flip:g.flip,flipped:g.flipped},n.props.onPosition){var m={target:n,flipped:g.flipped,fitted:g.fitted};n.props.onPosition.call(void 0,m)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(m),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(m),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,g=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({},g),{current:v.showing,previous:t.current}):t.current===v.showing?i(i({},g),{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?g:i(i({},g),{current:v.reposition,previous:t.current}):t.current===v.hiding||t.current===v.hidden?i(i({},g),{current:v.hidden,previous:t.current}):i(i({},g),{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 g=this.getCurrentZIndex(),m=l.createElement(s.ZIndexContext.Provider,{value:g},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:g},d)},l.createElement("div",{role:this.props.role,className:(0,s.classNames)("k-popup",r,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?a.createPortal(m,p):m}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:g,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),e.style.display="exit"===i?"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:1687507225,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:()=>E,addScroll:()=>i,align:()=>r,alignElement:()=>Y,applyLocationOffset:()=>l,boundingOffset:()=>d,domUtils:()=>X,getDocumentElement:()=>u,getWindow:()=>c,getWindowViewPort:()=>p,isBodyOffset:()=>v,offset:()=>g,offsetParent:()=>h,parentScrollPosition:()=>w,parents:()=>m,position:()=>O,positionElement:()=>F,positionWithScroll:()=>C,removeScroll:()=>x,restrictToView:()=>D,scrollPosition:()=>y,siblingContainer:()=>M,siblings:()=>R,utils:()=>L,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=" ",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},g=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 m(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=g(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=g(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 x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}const E={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,g=0,m=0,y=i.vertical===E.fit,b=i.horizontal===E.fit,w=i.vertical===E.flip,O=i.horizontal===E.flip;y&&(m+=k(c,s,p)),b&&(g+=k(u,f,d)),w&&(m+=P({margin:v,offset:c,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),O&&(g+=P({margin:h,offset:u,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==m,x=O&&0!==g,D=y&&0!==m,R=b&&0!==g;return{flipped:x||C,fitted:D||R,flip:{horizontal:x,vertical:C},fit:{horizontal:R,vertical:D},offset:{left:g,top:m}}};function R(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}function M(e,t){for(var n,o,r=m(e),i=t;i&&(n=R(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=M(e,t);if(!n)return null;var o=[e].concat(m(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 N,S,A,_=(N=function(e){if(!I())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},A=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return A||(S=N.apply(void 0,e),A=!0),S}),I=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const L={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:_,canUseDOM:I};var j=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],z=function(){return L.canUseDOM()?window:null},U=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},H=function(e){if(!e||!L.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 L.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 j.map((function(e){return{key:e,value:n[e]}}))},getWindow:z,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?g(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=g(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:x,restrictToView:D,scrollPosition:y,scrollableParents:function(e){var t=[];if(!L.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:H,stackingElementOffset:function(e){var t=H(e);return t?g(t):null},stackingElementScroll:function(e){var t=H(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=H(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(H(e))},windowViewPort:p,zoomLevel:K,isZoomed:function(){return K()>1},zIndex:function(e,t){if(!e||!L.canUseDOM())return null;var n=M(e,t);if(!n)return null;var o=[e].concat(m(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=L.eitherRect(X.position(e,t,o),n);return L.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=L.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(L.removeStackingOffset(L.scaleRect(i,o),c),a),r)}(t,n,l,c),s=L.scaleRect(X.offset(n),c);return X.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:s,margin:i})},F=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=L.scaleRect(u,c),f=L.scaleRect(X.offset(t),c),p=L.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}}},668:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>F,BrowserSupportService:()=>a,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Le,Draggable:()=>Ze,Droppable:()=>$e,FOCUSABLE_ELEMENTS:()=>tt,FormComponent:()=>m,Icon:()=>fe,IconWrap:()=>ye,IconsContext:()=>ge,Keys:()=>E,Navigation:()=>nt,SvgIcon:()=>he,Typography:()=>Me,ZIndexContext:()=>r,canUseDOM:()=>c,canUseRef:()=>u,classNames:()=>s,clone:()=>p,cloneArray:()=>v,cloneDate:()=>f,cloneObject:()=>d,cloneValue:()=>h,createPropsContext:()=>Z,dispatchEvent:()=>K,extendDataItem:()=>j,focusFirstFocusableChild:()=>g,getActiveElement:()=>ot,getItemPath:()=>z,getScrollbarWidth:()=>P,getTabIndex:()=>y,getter:()=>C,guid:()=>x,hasRelativeStackingContext:()=>H,kendoThemeMaps:()=>Je,mapTree:()=>I,mapTreeItem:()=>L,memoizeOne:()=>et,noop:()=>k,setScrollbarWidth:()=>D,setter:()=>T,svgIconPropType:()=>ue,toIconClass:()=>ce,toIconName:()=>ae,useAsyncFocusBlur:()=>X,useCollection:()=>ne,useCustomComponent:()=>te,useDir:()=>$,useDocument:()=>oe,useDraggable:()=>qe,useDroppable:()=>Ge,useMouse:()=>ee,usePropsContext:()=>V,useRtl:()=>J,useWindow:()=>re,useZIndexContext:()=>i,validatePackage:()=>W,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=" ",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 e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0}(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 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 g=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()}},m=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 x=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},E={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"))},R={undefined:function(e){return e}},M=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(R[e])return R[e];var t=w(e);return R[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]]||M(t[l+1],o);r[t[i]]=n},R[e]}var N=function(){return N=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},N.apply(this,arguments)},S=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 A(e,t,n){var o;return n?N(N({},e),((o={})[t]=n.length?S([],n,!0):void 0,o)):e&&e[t]?S([],e[t],!0):[]}function _(e,t,n){if(e[t]){var o=A(e,t).map((function(e){return _(e,t,n)}));return n(A(e,t,o))}return n(e)}var I=function(e,t,n){return S([],e.map((function(e){return _(e,t,n)})),!0)},L=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)},j=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=S([],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 W(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 H=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)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r};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)},F=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)))},V=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=V(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",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"},ae=function(e){return e.replace(/^k-i-/,"")},ce=function(e){return"k-i-"+e},ue=ie.shape({name:ie.string.isRequired,content:ie.string.isRequired,viewBox:ie.string.isRequired}),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.className,r=e.name,i=e.themeColor,l=e.size,a=e.flip,c=e.style,u=e.id,f=e.tabIndex,p=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","id","tabIndex"]),d=o.useRef(null),h=o.useRef(null);o.useImperativeHandle(d,(function(){return{element:h.current}})),o.useImperativeHandle(t,(function(){return d.current}));var v=o.useMemo((function(){return l||pe.size}),[l]),g=o.useMemo((function(){return a||pe.flip}),[a]),m=o.useMemo((function(){var e;return s("k-icon",r&&ce(r),((e={})["k-color-".concat(i)]=i,e["k-flip-h"]="horizontal"===g||"both"===g,e["k-flip-v"]="vertical"===g||"both"===g,e),le[v],n)}),[r,i,v,g,n]),y=ee(e,d);return o.createElement("span",se({ref:h},p,y,{className:m,id:u,tabIndex:f,style:c,role:"presentation"}))}));fe.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","xxlarge","xxxlarge"]),flip:ie.oneOf(["default","horizontal","vertical","both"])};var pe={size:"default",flip:"default"};fe.displayName="KendoIcon";var de=function(){return de=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},de.apply(this,arguments)},he=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.svgClassName,l=e.icon,a=e.flip,c=e.id,u=e.tabIndex,f=e.size,p=e.style,d=e.svgStyle,h=e.themeColor,v=e.viewBox,g=(e.name,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","id","tabIndex","size","style","svgStyle","themeColor","viewBox","name"])),m=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:m.current}}));var y=o.useMemo((function(){return l?l.name:ve.icon}),[l]),b=o.useMemo((function(){return f||ve.size}),[f]),w=o.useMemo((function(){return a||ve.flip}),[a]),O=o.useMemo((function(){return v||ve.viewBox}),[v]),C=o.useMemo((function(){var e;return s("k-svg-icon","k-svg-i-"+y,((e={})["k-color-".concat(h)]=h,e["k-flip-h"]="horizontal"===w||"both"===w,e["k-flip-v"]="vertical"===w||"both"===w,e),le[b],r)}),[y,h,b,w,r]),x=o.useMemo((function(){return e.width&&e.height?de({width:e.width,height:e.height},p):e.width?de({width:e.width,height:e.width},p):e.height?de({width:e.height,height:e.height},p):de({},p)}),[e.width,e.height,p]);return o.createElement("span",{className:C,style:x,ref:m},o.createElement("svg",de({id:c,className:i,style:d,"aria-hidden":!0,tabIndex:u,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:O,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},g),l?void 0:n))}));he.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","xxlarge","xxxlarge"]),flip:ie.oneOf(["default","horizontal","vertical","both"])};var ve={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};he.displayName="KendoSvgIcon";var ge=o.createContext({type:"svg"});ge.displayName="KendoReactIconsContext";var me=function(){return me=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},me.apply(this,arguments)},ye=o.forwardRef((function(e,t){var n,r=o.useContext(ge),i=r.type,l=r.icons,a=e.icon,c=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,["icon"]),u=(null===(n=e.icon)||void 0===n?void 0:n.name)||e.name,s=u&&l&&l[u]&&"string"!=typeof l[u]?l[u]:a;return u=u&&l&&l[u]&&"string"==typeof l[u]?l[u]:u,"svg"===i&&s?o.createElement(he,me({},e,{icon:s,ref:t})):o.createElement(fe,me({},c,{name:u,ref:t}))}));ye.displayName="KendoIconWrap";var be={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},we={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Oe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},Ce={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Ee={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ke={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Pe={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"},De=function(){return De=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},De.apply(this,arguments)},Re=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 g=e;return o.createElement(g,De({id:r,ref:v,className:["k-".concat("p"===e?"paragraph":e),be[a],we[c],Ee[u],ke[s],Pe[f],function(){if(void 0!==p){if("string"==typeof p)return[Oe[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])?Ce[o]:o,"".concat(xe[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},Me={h1:Re("h1"),h2:Re("h2"),h3:Re("h3"),h4:Re("h4"),h5:Re("h5"),h6:Re("h6"),p:Re("p"),code:Re("code"),pre:Re("pre")},Te=function(){return Te=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},Te.apply(this,arguments)},Ne=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,Te(Te({},t),{value:e}))}),[n,l])]},Se=o.createContext([void 0,k]),Ae=o.createContext([void 0,k]),_e=o.createContext([[],k,k]),Ie=o.createContext([[],k,k]),Le=function(e){var t=Ne(null,void 0),n=t[0],r=t[1],i=Ne(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(Se.Provider,{value:[n,r]},o.createElement(Ae.Provider,{value:[l,a]},o.createElement(_e.Provider,{value:[u,function(e){s({type:Q.add,item:e})},function(e){s({type:Q.remove,item:e})}]},o.createElement(Ie.Provider,{value:[p,function(e){d({type:Q.add,item:e})},function(e){d({type:Q.remove,item:e})}]},e.children))))};Le.displayName="KendoReactDragAndDrop";var je,ze=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},Ue=function(e){return e&&e.ownerDocument||window.document},We=function(e){var t=ze(),n=Ue(e);return t.edge||t.safari?n.body:n.documentElement},He=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},Ke=function(e){var t=We(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&&!He(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"}(je||(je={}));var Be=function(){},Xe=function(e,t,n){void 0===n&&(n={});var o,r,i,l,a,c=n.onIsPressedChange,u=void 0===c?Be:c,s=n.onIsScrollingChange,f=void 0===s?Be:s,p=n.onVelocityChange,d=void 0===p?Be:p,h=n.onOffsetChange,v=void 0===h?Be:h,g=n.onPageOffsetChange,m=void 0===g?Be:g,y=n.onClientOffsetChange,b=void 0===y?Be:y,w=n.onScrollOffsetChange,O=void 0===w?Be:w,C=n.onInitialScrollOffsetChange,x=void 0===C?Be:C,E=t.payload,k=E.element,P=E.hint,D=e.autoScrollDirection,R=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 je.POINTER_DOWN:if(M.type===je.POINTER_DOWN&&(!M.originalEvent.isPrimary||0!==M.originalEvent.button))break;case je.MOUSE_DOWN:if(M.type===je.MOUSE_DOWN&&M.originalEvent.which&&M.originalEvent.which>1||e.ignoreMouse)break;case je.TOUCH_START:if(M.type===je.TOUCH_START&&1!==M.originalEvent.touches.length)break;case je.START:var T=R||Ke(t.payload.element);x(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),b({x:M.clientX,y:M.clientY}),m({x:M.pageX,y:M.pageY}),v({x:M.offsetX,y:M.offsetY}),u(!0),E.onPress&&E.onPress(M);break;case je.SCROLL:if(M.type===je.SCROLL&&!e.pressed)break;var N=R||Ke(k),S=N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop};M.scrollX=S.x-e.initialScrollOffset.x,M.scrollY=S.y-e.initialScrollOffset.y,O({x:M.scrollX,y:M.scrollY});case je.POINTER_MOVE:if(M.type===je.POINTER_MOVE&&!M.originalEvent.isPrimary)break;case je.MOUSE_MOVE:case je.TOUCH_MOVE:if(M.type===je.TOUCH_MOVE&&1!==M.originalEvent.touches.length)break;case je.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==M.originalEvent.type&&k){var A=Ue(k),_=R||Ke(A.elementFromPoint(M.clientX,M.clientY)),I=(o=M.clientX,r=M.clientY,i=function(e,t){var n=We(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}}(_,function(e){var t=Ue(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:I.x,y:D&&!1===D.vertical?0:I.y}),f(0!==I.y||0!==I.x)}!e.drag&&E.onDragStart&&E.onDragStart(M),E.onDrag&&E.onDrag(M);var L=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)}))),j=e.drops.find((function(e){return e.element===L}));j&&L&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(M.clientX,M.clientY,R||Ke(L))&&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)}b({x:M.clientX,y:M.clientY}),m({x:M.pageX,y:M.pageY});break;case je.POINTER_UP:if(M.type===je.POINTER_UP&&!M.originalEvent.isPrimary)break;case je.MOUSE_UP:case je.TOUCH_END:if(M.type===je.TOUCH_END&&1!==M.originalEvent.touches.length)break;case je.END:u(!1),f(!1),O({x:0,y:0}),E.onRelease&&E.onRelease(M),e.drop&&e.drop.onDrop&&e.drop.onDrop(M),e.drag&&E.onDragEnd&&E.onDragEnd(M);break;case je.POINTER_CANCEL:case je.CONTEXT_MENU:case je.TOUCH_CANCEL:case je.CANCEL:u(!1),f(!1),O({x:0,y:0}),E.onDragEnd&&E.onDragEnd(M),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(M)}},Ye=function(e,t){if(e){var n,o;e===We(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)}},Fe=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])}]},Ve=2e3;function qe(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,g=n.mouseOnly,m=void 0!==g&&g,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=o.useState(!1),x=C[0],E=C[1],P=o.useState(!1),D=P[0],R=P[1],M=Fe(Ae)[0],T=Fe(Se),N=T[0],S=T[1],A=o.useContext(Ie)[0],_=o.useContext(_e),I=_[0],L=_[1],j=_[2],z=o.useRef({x:0,y:0}),U=o.useRef(),W=o.useRef(!1),H=o.useRef(),K=o.useRef(null),B=o.useRef(!1),X=o.useRef({x:0,y:0}),Y=o.useRef({x:0,y:0}),F=o.useRef({x:0,y:0}),V=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),$=!m&&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:me,onDrag:ye,onDragEnd:be,onRelease:ge,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:N?N.current:null,drop:M?M.current:null,drags:I.map((function(e){return e.current})),drops:A.map((function(e){return e.current})),pressed:x,ignoreMouse:W.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:F.current,initialClientOffset:V.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}}),[N,M,I,A,x,b,te,D]),le=o.useCallback((function(e){E(e)}),[]),ae=o.useCallback((function(e){R(e)}),[]),ce=o.useCallback((function(e){z.current=e}),[]),ue=o.useCallback((function(e){X.current=e}),[]),se=o.useCallback((function(e){F.current=e}),[]),fe=o.useCallback((function(e){Y.current=e}),[]),pe=o.useCallback((function(e){V.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]),ge=o.useCallback((function(e){a(e)}),[a]),me=o.useCallback((function(t){S(ne,{target:e.current,event:t}),u(t)}),[S,e,u]),ye=o.useCallback((function(e){f(e)}),[f]),be=o.useCallback((function(t){B.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),we=o.useCallback((function(e){Xe(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]),xe=o.useCallback((function(e){we(e)}),[we]),Ee=o.useCallback((function(e){we(e)}),[we]),ke=o.useCallback((function(e){we(e)}),[we]),Pe=o.useCallback((function(e){we(e)}),[we]),De=o.useCallback((function(e){we(e)}),[we]),Re=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Me=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Te=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ne=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();W.current=!0,H.current=t.setTimeout((function(){W.current=!1}),Ve)}we(e)}),[we,re]),Le=o.useCallback((function(e){we(e)}),[we]),je=o.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),ze=o.useCallback((function(){return L(ne),function(){j(ne)}}),[j,L]);o.useEffect((function(){var e=re();if(D){var t=ee()||Ke(document.elementFromPoint(F.current.x,F.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){Ye(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,D]),o.useEffect(je,[je]),o.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=Ke(t),K.current&&K.current.addEventListener("scroll",Le,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),x&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",Ee,!0),n.addEventListener("contextmenu",Re),n.addEventListener("pointercancel",xe,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",ke,{passive:!0}),m||(t.addEventListener("touchstart",Me,{passive:!0}),x&&(t.addEventListener("touchmove",Te,{passive:!0}),t.addEventListener("touchend",Ne,{passive:!0})))),x&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",De,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",Le),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",ke),t.removeEventListener("touchstart",Me),t.removeEventListener("touchmove",Te),t.removeEventListener("touchend",Ne)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",Ee,!0),n.removeEventListener("contextmenu",Re),n.removeEventListener("pointercancel",xe),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",De),e.removeEventListener("touchmove",k),e.clearTimeout(H.current)}}),[x,re,J,oe,m,$,Re,ke,Pe,De,xe,Oe,Ce,Ee,Ne,Te,Me,Le]),o.useEffect((function(){return B.current=!1,function(){B.current=!0}}),[]),o.useLayoutEffect(ze,[ze])}var Ze=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 qe(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 Ge(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=Fe(Ae)[1],p=o.useContext(Ie),d=p[1],h=p[2],v=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),g=o.useRef(null);o.useImperativeHandle(g,(function(){return{element:v(),onDragEnter:m,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var m=o.useCallback((function(t){f(g,{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(g),function(){h(g)}}),[h,d]);o.useLayoutEffect(O,[O])}Ze.displayName="KendoReactDraggable";var $e=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 Ge(n,{onDragEnter:l,onDragOver:a,onDragLeave:c,onDrop:u}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));$e.displayName="KendoReactDroppable";var Je={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}};function Qe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function et(e,t){void 0===t&&(t=Qe);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}var tt=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],nt=function(){function e(e){var t=this;this.rovingTabIndex=!0,this.update=function(){},this.focusNextIndex=function(e,n){var o=t.elements,r=o.indexOf(e)+n;r=r<0?o.length-1:r,t.focusElement(o[r%o.length],e)},this.tabIndex=e.tabIndex||0,this.root=e.root,this.selectors=e.selectors,this.rovingTabIndex=void 0===e.rovingTabIndex||e.rovingTabIndex,this.mouseEvents=e.mouseEvents||{},this.keyboardEvents=e.keyboardEvents||{}}return Object.defineProperty(e.prototype,"elements",{get:function(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){var e=this.elements;return e[e.length-1]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.elements.find((function(e){return e.matches(":focus")}))||null},enumerable:!1,configurable:!0}),e.prototype.focusNext=function(e){this.focusNextIndex(e,1)},e.prototype.focusPrevious=function(e){this.focusNextIndex(e,-1)},e.prototype.triggerKeyboardEvent=function(e){var t=e.target instanceof Element&&e.target.closest(this.selectors.join(",")),n=" "===e.key?"Space":e.key,o=e.nativeEvent.type;t&&this.keyboardEvents[o][n]&&this.keyboardEvents[o][n].call(void 0,t,this,e)},e.prototype.triggerMouseEvent=function(e){var t=e.target instanceof Element&&e.target.closest(this.selectors.join(",")),n=e.nativeEvent.type;t&&this.mouseEvents[n].call(void 0,t,this,e)},e.prototype.focusElement=function(e,t){e&&(t&&(this.rovingTabIndex&&t.removeAttribute("tabindex"),t.classList.remove("k-focus")),this.rovingTabIndex&&e.setAttribute("tabindex",String(this.tabIndex)),e.focus({preventScroll:!0}))},e}(),ot=function(e){if(e){var t=e.activeElement,n=null==t?void 0:t.shadowRoot;return n?n.activeElement:t}}},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.PopupWithoutContext=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}});var n=l(763);Object.defineProperty(e,"PopupWithoutContext",{enumerable:!0,get:function(){return n.PopupWithoutContext}})})(),a})()}));
|
|
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(668),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,g={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(v||(v={}));var m="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=e.style,d=p.width,h=p.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var v=(0,f.alignElement)({anchor:a,anchorAlign:o,element:e,elementAlign:r,offset:l,margin:c,positionMode:s,scale:u}),g=(0,f.positionElement)({anchor:a,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:v,margin:n.props.margin});if(e.style.top=g.offset.top+"px",e.style.left=g.offset.left+"px",e.style.width=d,e.style.height=h,n._collisions={fit:g.fit,fitted:g.fitted,flip:g.flip,flipped:g.flipped},n.props.onPosition){var m={target:n,flipped:g.flipped,fitted:g.fitted};n.props.onPosition.call(void 0,m)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(m),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(m),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,g=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({},g),{current:v.showing,previous:t.current}):t.current===v.showing?i(i({},g),{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?g:i(i({},g),{current:v.reposition,previous:t.current}):t.current===v.hiding||t.current===v.hidden?i(i({},g),{current:v.hidden,previous:t.current}):i(i({},g),{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 g=this.getCurrentZIndex(),m=l.createElement(s.ZIndexContext.Provider,{value:g},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:g},d)},l.createElement("div",{role:this.props.role,className:(0,s.classNames)("k-popup",r,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?a.createPortal(m,p):m}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:g,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),e.style.display="exit"===i?"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:1687870873,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:()=>E,addScroll:()=>i,align:()=>r,alignElement:()=>Y,applyLocationOffset:()=>l,boundingOffset:()=>d,domUtils:()=>X,getDocumentElement:()=>u,getWindow:()=>c,getWindowViewPort:()=>p,isBodyOffset:()=>v,offset:()=>g,offsetParent:()=>h,parentScrollPosition:()=>w,parents:()=>m,position:()=>O,positionElement:()=>F,positionWithScroll:()=>C,removeScroll:()=>x,restrictToView:()=>D,scrollPosition:()=>y,siblingContainer:()=>M,siblings:()=>R,utils:()=>L,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=" ",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},g=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 m(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=g(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=g(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 x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}const E={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,g=0,m=0,y=i.vertical===E.fit,b=i.horizontal===E.fit,w=i.vertical===E.flip,O=i.horizontal===E.flip;y&&(m+=k(c,s,p)),b&&(g+=k(u,f,d)),w&&(m+=P({margin:v,offset:c,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),O&&(g+=P({margin:h,offset:u,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==m,x=O&&0!==g,D=y&&0!==m,R=b&&0!==g;return{flipped:x||C,fitted:D||R,flip:{horizontal:x,vertical:C},fit:{horizontal:R,vertical:D},offset:{left:g,top:m}}};function R(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}function M(e,t){for(var n,o,r=m(e),i=t;i&&(n=R(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=M(e,t);if(!n)return null;var o=[e].concat(m(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 N,S,A,_=(N=function(e){if(!I())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},A=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return A||(S=N.apply(void 0,e),A=!0),S}),I=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const L={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:_,canUseDOM:I};var j=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],z=function(){return L.canUseDOM()?window:null},U=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},H=function(e){if(!e||!L.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 L.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 j.map((function(e){return{key:e,value:n[e]}}))},getWindow:z,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?g(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=g(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:x,restrictToView:D,scrollPosition:y,scrollableParents:function(e){var t=[];if(!L.canUseDOM())return t;for(var n=e.parentElement;n;)(U.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:H,stackingElementOffset:function(e){var t=H(e);return t?g(t):null},stackingElementScroll:function(e){var t=H(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=H(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(H(e))},windowViewPort:p,zoomLevel:K,isZoomed:function(){return K()>1},zIndex:function(e,t){if(!e||!L.canUseDOM())return null;var n=M(e,t);if(!n)return null;var o=[e].concat(m(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=L.eitherRect(X.position(e,t,o),n);return L.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=L.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(L.removeStackingOffset(L.scaleRect(i,o),c),a),r)}(t,n,l,c),s=L.scaleRect(X.offset(n),c);return X.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:s,margin:i})},F=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=L.scaleRect(u,c),f=L.scaleRect(X.offset(t),c),p=L.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}}},668:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>F,BrowserSupportService:()=>a,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Le,Draggable:()=>Ze,Droppable:()=>$e,FOCUSABLE_ELEMENTS:()=>tt,FormComponent:()=>m,Icon:()=>fe,IconWrap:()=>ye,IconsContext:()=>ge,Keys:()=>E,Navigation:()=>nt,SvgIcon:()=>he,Typography:()=>Me,ZIndexContext:()=>r,canUseDOM:()=>c,canUseRef:()=>u,classNames:()=>s,clone:()=>p,cloneArray:()=>v,cloneDate:()=>f,cloneObject:()=>d,cloneValue:()=>h,createPropsContext:()=>Z,dispatchEvent:()=>K,extendDataItem:()=>j,focusFirstFocusableChild:()=>g,getActiveElement:()=>rt,getInnerActiveElement:()=>ot,getItemPath:()=>z,getScrollbarWidth:()=>P,getTabIndex:()=>y,getter:()=>C,guid:()=>x,hasRelativeStackingContext:()=>H,kendoThemeMaps:()=>Je,mapTree:()=>I,mapTreeItem:()=>L,memoizeOne:()=>et,noop:()=>k,setScrollbarWidth:()=>D,setter:()=>T,svgIconPropType:()=>ue,toIconClass:()=>ce,toIconName:()=>ae,useAsyncFocusBlur:()=>X,useCollection:()=>ne,useCustomComponent:()=>te,useDir:()=>$,useDocument:()=>oe,useDraggable:()=>qe,useDroppable:()=>Ge,useMouse:()=>ee,usePropsContext:()=>V,useRtl:()=>J,useWindow:()=>re,useZIndexContext:()=>i,validatePackage:()=>W,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=" ",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 e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0}(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 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 g=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()}},m=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 x=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},E={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"))},R={undefined:function(e){return e}},M=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(R[e])return R[e];var t=w(e);return R[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]]||M(t[l+1],o);r[t[i]]=n},R[e]}var N=function(){return N=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},N.apply(this,arguments)},S=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 A(e,t,n){var o;return n?N(N({},e),((o={})[t]=n.length?S([],n,!0):void 0,o)):e&&e[t]?S([],e[t],!0):[]}function _(e,t,n){if(e[t]){var o=A(e,t).map((function(e){return _(e,t,n)}));return n(A(e,t,o))}return n(e)}var I=function(e,t,n){return S([],e.map((function(e){return _(e,t,n)})),!0)},L=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)},j=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=S([],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 W(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 H=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)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r};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)},F=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)))},V=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=V(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",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"},ae=function(e){return e.replace(/^k-i-/,"")},ce=function(e){return"k-i-"+e},ue=ie.shape({name:ie.string.isRequired,content:ie.string.isRequired,viewBox:ie.string.isRequired}),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.className,r=e.name,i=e.themeColor,l=e.size,a=e.flip,c=e.style,u=e.id,f=e.tabIndex,p=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","id","tabIndex"]),d=o.useRef(null),h=o.useRef(null);o.useImperativeHandle(d,(function(){return{element:h.current}})),o.useImperativeHandle(t,(function(){return d.current}));var v=o.useMemo((function(){return l||pe.size}),[l]),g=o.useMemo((function(){return a||pe.flip}),[a]),m=o.useMemo((function(){var e;return s("k-icon",r&&ce(r),((e={})["k-color-".concat(i)]=i,e["k-flip-h"]="horizontal"===g||"both"===g,e["k-flip-v"]="vertical"===g||"both"===g,e),le[v],n)}),[r,i,v,g,n]),y=ee(e,d);return o.createElement("span",se({ref:h},p,y,{className:m,id:u,tabIndex:f,style:c,role:"presentation"}))}));fe.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","xxlarge","xxxlarge"]),flip:ie.oneOf(["default","horizontal","vertical","both"])};var pe={size:"default",flip:"default"};fe.displayName="KendoIcon";var de=function(){return de=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},de.apply(this,arguments)},he=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.svgClassName,l=e.icon,a=e.flip,c=e.id,u=e.tabIndex,f=e.size,p=e.style,d=e.svgStyle,h=e.themeColor,v=e.viewBox,g=(e.name,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","id","tabIndex","size","style","svgStyle","themeColor","viewBox","name"])),m=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:m.current}}));var y=o.useMemo((function(){return l?l.name:ve.icon}),[l]),b=o.useMemo((function(){return f||ve.size}),[f]),w=o.useMemo((function(){return a||ve.flip}),[a]),O=o.useMemo((function(){return v||ve.viewBox}),[v]),C=o.useMemo((function(){var e;return s("k-svg-icon","k-svg-i-"+y,((e={})["k-color-".concat(h)]=h,e["k-flip-h"]="horizontal"===w||"both"===w,e["k-flip-v"]="vertical"===w||"both"===w,e),le[b],r)}),[y,h,b,w,r]),x=o.useMemo((function(){return e.width&&e.height?de({width:e.width,height:e.height},p):e.width?de({width:e.width,height:e.width},p):e.height?de({width:e.height,height:e.height},p):de({},p)}),[e.width,e.height,p]);return o.createElement("span",{className:C,style:x,ref:m},o.createElement("svg",de({id:c,className:i,style:d,"aria-hidden":!0,tabIndex:u,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:O,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},g),l?void 0:n))}));he.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","xxlarge","xxxlarge"]),flip:ie.oneOf(["default","horizontal","vertical","both"])};var ve={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};he.displayName="KendoSvgIcon";var ge=o.createContext({type:"svg"});ge.displayName="KendoReactIconsContext";var me=function(){return me=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},me.apply(this,arguments)},ye=o.forwardRef((function(e,t){var n,r=o.useContext(ge),i=r.type,l=r.icons,a=e.icon,c=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,["icon"]),u=(null===(n=e.icon)||void 0===n?void 0:n.name)||e.name,s=u&&l&&l[u]&&"string"!=typeof l[u]?l[u]:a;return u=u&&l&&l[u]&&"string"==typeof l[u]?l[u]:u,"svg"===i&&s?o.createElement(he,me({},e,{icon:s,ref:t})):o.createElement(fe,me({},c,{name:u,ref:t}))}));ye.displayName="KendoIconWrap";var be={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},we={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Oe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},Ce={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Ee={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ke={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Pe={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"},De=function(){return De=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},De.apply(this,arguments)},Re=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 g=e;return o.createElement(g,De({id:r,ref:v,className:["k-".concat("p"===e?"paragraph":e),be[a],we[c],Ee[u],ke[s],Pe[f],function(){if(void 0!==p){if("string"==typeof p)return[Oe[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])?Ce[o]:o,"".concat(xe[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},Me={h1:Re("h1"),h2:Re("h2"),h3:Re("h3"),h4:Re("h4"),h5:Re("h5"),h6:Re("h6"),p:Re("p"),code:Re("code"),pre:Re("pre")},Te=function(){return Te=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},Te.apply(this,arguments)},Ne=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,Te(Te({},t),{value:e}))}),[n,l])]},Se=o.createContext([void 0,k]),Ae=o.createContext([void 0,k]),_e=o.createContext([[],k,k]),Ie=o.createContext([[],k,k]),Le=function(e){var t=Ne(null,void 0),n=t[0],r=t[1],i=Ne(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(Se.Provider,{value:[n,r]},o.createElement(Ae.Provider,{value:[l,a]},o.createElement(_e.Provider,{value:[u,function(e){s({type:Q.add,item:e})},function(e){s({type:Q.remove,item:e})}]},o.createElement(Ie.Provider,{value:[p,function(e){d({type:Q.add,item:e})},function(e){d({type:Q.remove,item:e})}]},e.children))))};Le.displayName="KendoReactDragAndDrop";var je,ze=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},Ue=function(e){return e&&e.ownerDocument||window.document},We=function(e){var t=ze(),n=Ue(e);return t.edge||t.safari?n.body:n.documentElement},He=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},Ke=function(e){var t=We(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&&!He(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"}(je||(je={}));var Be=function(){},Xe=function(e,t,n){void 0===n&&(n={});var o,r,i,l,a,c=n.onIsPressedChange,u=void 0===c?Be:c,s=n.onIsScrollingChange,f=void 0===s?Be:s,p=n.onVelocityChange,d=void 0===p?Be:p,h=n.onOffsetChange,v=void 0===h?Be:h,g=n.onPageOffsetChange,m=void 0===g?Be:g,y=n.onClientOffsetChange,b=void 0===y?Be:y,w=n.onScrollOffsetChange,O=void 0===w?Be:w,C=n.onInitialScrollOffsetChange,x=void 0===C?Be:C,E=t.payload,k=E.element,P=E.hint,D=e.autoScrollDirection,R=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 je.POINTER_DOWN:if(M.type===je.POINTER_DOWN&&(!M.originalEvent.isPrimary||0!==M.originalEvent.button))break;case je.MOUSE_DOWN:if(M.type===je.MOUSE_DOWN&&M.originalEvent.which&&M.originalEvent.which>1||e.ignoreMouse)break;case je.TOUCH_START:if(M.type===je.TOUCH_START&&1!==M.originalEvent.touches.length)break;case je.START:var T=R||Ke(t.payload.element);x(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),b({x:M.clientX,y:M.clientY}),m({x:M.pageX,y:M.pageY}),v({x:M.offsetX,y:M.offsetY}),u(!0),E.onPress&&E.onPress(M);break;case je.SCROLL:if(M.type===je.SCROLL&&!e.pressed)break;var N=R||Ke(k),S=N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop};M.scrollX=S.x-e.initialScrollOffset.x,M.scrollY=S.y-e.initialScrollOffset.y,O({x:M.scrollX,y:M.scrollY});case je.POINTER_MOVE:if(M.type===je.POINTER_MOVE&&!M.originalEvent.isPrimary)break;case je.MOUSE_MOVE:case je.TOUCH_MOVE:if(M.type===je.TOUCH_MOVE&&1!==M.originalEvent.touches.length)break;case je.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==M.originalEvent.type&&k){var A=Ue(k),_=R||Ke(A.elementFromPoint(M.clientX,M.clientY)),I=(o=M.clientX,r=M.clientY,i=function(e,t){var n=We(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}}(_,function(e){var t=Ue(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:I.x,y:D&&!1===D.vertical?0:I.y}),f(0!==I.y||0!==I.x)}!e.drag&&E.onDragStart&&E.onDragStart(M),E.onDrag&&E.onDrag(M);var L=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)}))),j=e.drops.find((function(e){return e.element===L}));j&&L&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(M.clientX,M.clientY,R||Ke(L))&&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)}b({x:M.clientX,y:M.clientY}),m({x:M.pageX,y:M.pageY});break;case je.POINTER_UP:if(M.type===je.POINTER_UP&&!M.originalEvent.isPrimary)break;case je.MOUSE_UP:case je.TOUCH_END:if(M.type===je.TOUCH_END&&1!==M.originalEvent.touches.length)break;case je.END:u(!1),f(!1),O({x:0,y:0}),E.onRelease&&E.onRelease(M),e.drop&&e.drop.onDrop&&e.drop.onDrop(M),e.drag&&E.onDragEnd&&E.onDragEnd(M);break;case je.POINTER_CANCEL:case je.CONTEXT_MENU:case je.TOUCH_CANCEL:case je.CANCEL:u(!1),f(!1),O({x:0,y:0}),E.onDragEnd&&E.onDragEnd(M),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(M)}},Ye=function(e,t){if(e){var n,o;e===We(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)}},Fe=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])}]},Ve=2e3;function qe(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,g=n.mouseOnly,m=void 0!==g&&g,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=o.useState(!1),x=C[0],E=C[1],P=o.useState(!1),D=P[0],R=P[1],M=Fe(Ae)[0],T=Fe(Se),N=T[0],S=T[1],A=o.useContext(Ie)[0],_=o.useContext(_e),I=_[0],L=_[1],j=_[2],z=o.useRef({x:0,y:0}),U=o.useRef(),W=o.useRef(!1),H=o.useRef(),K=o.useRef(null),B=o.useRef(!1),X=o.useRef({x:0,y:0}),Y=o.useRef({x:0,y:0}),F=o.useRef({x:0,y:0}),V=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),$=!m&&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:me,onDrag:ye,onDragEnd:be,onRelease:ge,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:N?N.current:null,drop:M?M.current:null,drags:I.map((function(e){return e.current})),drops:A.map((function(e){return e.current})),pressed:x,ignoreMouse:W.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:F.current,initialClientOffset:V.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}}),[N,M,I,A,x,b,te,D]),le=o.useCallback((function(e){E(e)}),[]),ae=o.useCallback((function(e){R(e)}),[]),ce=o.useCallback((function(e){z.current=e}),[]),ue=o.useCallback((function(e){X.current=e}),[]),se=o.useCallback((function(e){F.current=e}),[]),fe=o.useCallback((function(e){Y.current=e}),[]),pe=o.useCallback((function(e){V.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]),ge=o.useCallback((function(e){a(e)}),[a]),me=o.useCallback((function(t){S(ne,{target:e.current,event:t}),u(t)}),[S,e,u]),ye=o.useCallback((function(e){f(e)}),[f]),be=o.useCallback((function(t){B.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),we=o.useCallback((function(e){Xe(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]),xe=o.useCallback((function(e){we(e)}),[we]),Ee=o.useCallback((function(e){we(e)}),[we]),ke=o.useCallback((function(e){we(e)}),[we]),Pe=o.useCallback((function(e){we(e)}),[we]),De=o.useCallback((function(e){we(e)}),[we]),Re=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Me=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Te=o.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ne=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();W.current=!0,H.current=t.setTimeout((function(){W.current=!1}),Ve)}we(e)}),[we,re]),Le=o.useCallback((function(e){we(e)}),[we]),je=o.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),ze=o.useCallback((function(){return L(ne),function(){j(ne)}}),[j,L]);o.useEffect((function(){var e=re();if(D){var t=ee()||Ke(document.elementFromPoint(F.current.x,F.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){Ye(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,D]),o.useEffect(je,[je]),o.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=Ke(t),K.current&&K.current.addEventListener("scroll",Le,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),x&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",Ee,!0),n.addEventListener("contextmenu",Re),n.addEventListener("pointercancel",xe,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",ke,{passive:!0}),m||(t.addEventListener("touchstart",Me,{passive:!0}),x&&(t.addEventListener("touchmove",Te,{passive:!0}),t.addEventListener("touchend",Ne,{passive:!0})))),x&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",De,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",Le),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",ke),t.removeEventListener("touchstart",Me),t.removeEventListener("touchmove",Te),t.removeEventListener("touchend",Ne)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",Ee,!0),n.removeEventListener("contextmenu",Re),n.removeEventListener("pointercancel",xe),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",De),e.removeEventListener("touchmove",k),e.clearTimeout(H.current)}}),[x,re,J,oe,m,$,Re,ke,Pe,De,xe,Oe,Ce,Ee,Ne,Te,Me,Le]),o.useEffect((function(){return B.current=!1,function(){B.current=!0}}),[]),o.useLayoutEffect(ze,[ze])}var Ze=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 qe(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 Ge(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=Fe(Ae)[1],p=o.useContext(Ie),d=p[1],h=p[2],v=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),g=o.useRef(null);o.useImperativeHandle(g,(function(){return{element:v(),onDragEnter:m,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var m=o.useCallback((function(t){f(g,{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(g),function(){h(g)}}),[h,d]);o.useLayoutEffect(O,[O])}Ze.displayName="KendoReactDraggable";var $e=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 Ge(n,{onDragEnter:l,onDragOver:a,onDragLeave:c,onDrop:u}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));$e.displayName="KendoReactDroppable";var Je={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}};function Qe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function et(e,t){void 0===t&&(t=Qe);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}var tt=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],nt=function(){function e(e){var t=this;this.rovingTabIndex=!0,this.update=function(){},this.focusNextIndex=function(e,n){var o=t.elements,r=o.indexOf(e)+n;r=r<0?o.length-1:r,t.focusElement(o[r%o.length],e)},this.tabIndex=e.tabIndex||0,this.root=e.root,this.selectors=e.selectors,this.rovingTabIndex=void 0===e.rovingTabIndex||e.rovingTabIndex,this.mouseEvents=e.mouseEvents||{},this.keyboardEvents=e.keyboardEvents||{}}return Object.defineProperty(e.prototype,"elements",{get:function(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){var e=this.elements;return e[e.length-1]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.elements.find((function(e){return e.matches(":focus")}))||null},enumerable:!1,configurable:!0}),e.prototype.focusNext=function(e){this.focusNextIndex(e,1)},e.prototype.focusPrevious=function(e){this.focusNextIndex(e,-1)},e.prototype.triggerKeyboardEvent=function(e){var t=e.target instanceof Element&&e.target.closest(this.selectors.join(",")),n=" "===e.key?"Space":e.key,o=e.nativeEvent.type;t&&this.keyboardEvents[o][n]&&this.keyboardEvents[o][n].call(void 0,t,this,e)},e.prototype.triggerMouseEvent=function(e){var t=e.target instanceof Element&&e.target.closest(this.selectors.join(",")),n=e.nativeEvent.type;t&&this.mouseEvents[n].call(void 0,t,this,e)},e.prototype.focusElement=function(e,t){e&&(t&&(this.rovingTabIndex&&t.removeAttribute("tabindex"),t.classList.remove("k-focus")),this.rovingTabIndex&&e.setAttribute("tabindex",String(this.tabIndex)),e.focus({preventScroll:!0}))},e}(),ot=function(e){var t=e.shadowRoot,n=e.contentDocument;return t&&t.activeElement?ot(t.activeElement):n&&n.activeElement?ot(n.activeElement):e},rt=function(e){if(e&&e.activeElement)return ot(e.activeElement)}},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.PopupWithoutContext=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}});var n=l(763);Object.defineProperty(e,"PopupWithoutContext",{enumerable:!0,get:function(){return n.PopupWithoutContext}})})(),a})()}));
|
|
@@ -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:
|
|
8
|
+
publishDate: 1687870873,
|
|
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
|
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-popup',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1687870873,
|
|
12
12
|
version: '',
|
|
13
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'
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-popup",["@progress/kendo-popup-common","@progress/kendo-react-common","prop-types","react","react-dom"],function(t,e){var p={},a={},l={},u={},c={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach(function(t){p[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){a[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){l[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){u[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){c[t]=e[t]})}],execute:function(){t((()=>{"use strict";var o={980:function(t,o,e){var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=(Object.defineProperty(o,"__esModule",{value:!0}),o.Popup=o.PopupPropsContext=void 0,e(954)),r=e(763);o.PopupPropsContext=i.createContext(function(t){return t}),o.Popup=i.forwardRef(function(t,e){t=i.useContext(o.PopupPropsContext).call(void 0,t);return i.createElement(r.PopupWithoutContext,n({ref:e},t))}),o.Popup.displayName="Popup"},763:function(t,e,o){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.PopupWithoutContext=void 0,o(954)),u=o(493),r=o(895),s=o(187),h=o(811),f=o(384),p=o(169),a=o(363);function g(t,e){if(t===e)return 1;if(!!t==!!e){var o=Object.getOwnPropertyNames(t),n=Object.getOwnPropertyNames(e);if(o.length===n.length){for(var i=0;i<o.length;i++){var r=o[i];if(t[r]!==e[r])return}return 1}}}var m,v,o={left:-1e3,top:0},y=((c=m=m||{}).hiding="hiding",c.hidden="hidden",c.showing="showing",c.shown="shown",c.reposition="reposition","k-animation-container-shown"),c=(v=l.Component,i(P,v),Object.defineProperty(P.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),P.getDerivedStateFromProps=function(t,e){var o=t.show,n=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,h=t.contentKey,o=d(d({},e),{props:{show:o,anchor:n,anchorAlign:i,appendTo:r,collision:s,popupAlign:p,className:a,popupClass:l,style:u,offset:c,contentKey:h}});return t.show?e.current===m.hidden||e.current===m.hiding?d(d({},o),{current:m.showing,previous:e.current}):e.current===m.showing?d(d({},o),{current:m.shown,previous:e.current}):e.current!==m.shown||g(c,e.props.offset)&&g(i,e.props.anchorAlign)&&g(r,e.props.appendTo)&&g(s,e.props.collision)&&g(p,e.props.popupAlign)&&g(u,e.props.style)&&n===e.props.anchor&&l===e.props.popupClass&&a===e.props.className?o:d(d({},o),{current:m.reposition,previous:e.current}):e.current===m.hiding||e.current===m.hidden?d(d({},o),{current:m.hidden,previous:e.current}):d(d({},o),{current:m.hiding,previous:e.current})},P.prototype.componentDidUpdate=function(t){this.state.current===m.showing&&this._popup?this.show(this._popup):this.state.current===m.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===m.reposition&&this.state.previous===m.shown?this.setState({current:m.shown,previous:this.state.current}):this.state.current===m.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},P.prototype.componentDidMount=function(){this.state.current===m.showing&&this._popup&&this.show(this._popup)},P.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},P.prototype.render=function(){var e=this,t=this.props,o=t.children,n=t.className,i=t.popupClass,r=t.show,s=t.id,t=t.positionMode,p=this.props.appendTo||(h.canUseDOM?(this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument:document).body:void 0),t=(this.state.current===m.reposition&&this.state.previous===m.shown&&this._popup&&this.setPosition(this._popup),Object.assign({},{position:t,top:0,left:-1e4},this.props.style||{})),a=this.state.current===m.hiding;return(r||a)&&p?(r=this.getCurrentZIndex(),a=l.createElement(h.ZIndexContext.Provider,{value:r},l.createElement("div",{className:(0,h.classNames)("k-animation-container","k-animation-container-relative",n),id:s,ref:function(t){return e._popup=t},style:d({zIndex:r},t)},l.createElement("div",{role:this.props.role,className:(0,h.classNames)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o))),null!==this.props.appendTo?u.createPortal(a,p):a):null},Object.defineProperty(P.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,o=0;return t&&(!0===t?e=o=300:(e=t.openDuration||0,o=t.closeDuration||0)),{enter:e,exit:o}},enumerable:!1,configurable:!0}),P.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=f.domUtils.scrollableParents(this.props.anchor||t),this._scrollableParents&&this._scrollableParents.map(function(t){return t.addEventListener("scroll",e.reposition)}),window.addEventListener("resize",this.reposition)},P.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)},P.prototype.reposition=function(){this.setState({current:m.reposition,previous:this.state.current})},P.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},P.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:o,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},P.contextType=h.ZIndexContext,P.displayName="PopupComponent",P);function P(t){var c=v.call(this,t)||this;return c.context=0,c.state={current:m.hidden,previous:m.hidden,props:{}},c._popup=null,c.show=function(t){c.setPosition(t),c.animate(t.firstChild,"enter",c.onOpened),c.setState({current:m.shown,previous:c.state.current})},c.setPosition=function(t){var e=c.props,o=e.anchorAlign,n=e.popupAlign,i=e.collision,r=e.offset,s=e.anchor,p=e.margin,a=e.scale,e=e.positionMode,l=t.style,u=l.width,l=l.height,r=(t.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px",(0,f.alignElement)({anchor:s,anchorAlign:o,element:t,elementAlign:n,offset:r,margin:p,positionMode:e,scale:a})),p=(0,f.positionElement)({anchor:s,anchorAlign:o,element:t,elementAlign:n,collisions:i,currentLocation:r,margin:c.props.margin});t.style.top=p.offset.top+"px",t.style.left=p.offset.left+"px",t.style.width=u,t.style.height=l,c._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},c.props.onPosition&&(e={target:c,flipped:p.flipped,fitted:p.fitted},c.props.onPosition.call(void 0,e))},c.onOpened=function(){var t=c._popup;t&&(c.props.show&&t.classList.add(y),c.attachRepositionHandlers(t),c.props.onOpen)&&c.props.onOpen.call(void 0,{target:c})},c.animate=function(t,e,o){var n,i;c.props.popupAlign&&(i=(n=c.props.popupAlign).horizontal,n=n.vertical,i="left"===i&&"center"===n?"right":"right"===i&&"center"===n?"left":"top"===n?"down":"up",c._collisions&&c._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),(0,s.slide)(t,i,c.animationDuration[e],e,o))},c.onClosing=function(t){c.props.show||t.classList.remove(y),c.detachRepositionHandlers()},c.onClosed=function(){c.state.current===m.hiding&&c.state.previous===m.shown&&c.setState({current:m.hidden,previous:c.state.current}),c.props.onClose&&c.props.onClose.call(void 0,{target:c})},c.getCurrentZIndex=function(){return c.context?c.context+1:100},(0,h.validatePackage)(a.packageMetadata),c.reposition=(0,p.throttle)(c.reposition.bind(c),p.FRAME_DURATION),c}e.PopupWithoutContext=c},187:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.slide=void 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,o,n,i){if(0===o)return i();function r(t){t.target===e&&(e.removeEventListener("transitionend",r),l(e),e.style.display="exit"===n?"none":"",i())}var s,p="k-slide-"+t+"-"+n,a=p+"-active",t=(e.addEventListener("transitionend",r),e.ownerDocument);t&&(s=t.defaultView)&&(t=function(){l(e),e.classList.add(p),s.requestAnimationFrame(function(){e.style.transitionDuration=o+"ms",e.classList.add(a)})},u?s.requestAnimationFrame(t):t())}},363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1687507225,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:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.FRAME_DURATION=e.hasBoundingRect=e.isDifferentOffset=void 0,e.isDifferentOffset=function(t,e){var o=t.left,t=t.top,n=e.left,e=e.top;return 1<=Math.abs(o-n)||1<=Math.abs(t-e)},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.FRAME_DURATION=1e3/60,e.throttle=function(o,n,i){function r(){u=!1===i.leading?0:(new Date).getTime(),s=void 0,l=o.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),n-(t-u));return p=void 0,a=arguments,e<=0||n<e?(s&&(clearTimeout(s),s=void 0),u=t,l=o.apply(p,a),s||(p=a=null)):s||!1===i.trailing||(s=window.setTimeout(r,e)),l}}},384:t=>{t.exports=p},811:t=>{t.exports=a},895:t=>{t.exports=l},954:t=>{t.exports=u},493:t=>{t.exports=c}},n={};function i(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},o[t].call(e.exports,e,e.exports,i)),e.exports}var t,e,r,s={};return t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.PopupPropsContext=t.PopupWithoutContext=t.Popup=void 0,e=i(980),Object.defineProperty(t,"Popup",{enumerable:!0,get:function(){return e.Popup}}),Object.defineProperty(t,"PopupPropsContext",{enumerable:!0,get:function(){return e.PopupPropsContext}}),r=i(763),Object.defineProperty(t,"PopupWithoutContext",{enumerable:!0,get:function(){return r.PopupWithoutContext}}),s})())}}});
|
|
1
|
+
System.register("@progress/kendo-react-popup",["@progress/kendo-popup-common","@progress/kendo-react-common","prop-types","react","react-dom"],function(t,e){var p={},a={},l={},u={},c={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach(function(t){p[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){a[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){l[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){u[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){c[t]=e[t]})}],execute:function(){t((()=>{"use strict";var o={980:function(t,o,e){var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=(Object.defineProperty(o,"__esModule",{value:!0}),o.Popup=o.PopupPropsContext=void 0,e(954)),r=e(763);o.PopupPropsContext=i.createContext(function(t){return t}),o.Popup=i.forwardRef(function(t,e){t=i.useContext(o.PopupPropsContext).call(void 0,t);return i.createElement(r.PopupWithoutContext,n({ref:e},t))}),o.Popup.displayName="Popup"},763:function(t,e,o){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.PopupWithoutContext=void 0,o(954)),u=o(493),r=o(895),s=o(187),h=o(811),f=o(384),p=o(169),a=o(363);function g(t,e){if(t===e)return 1;if(!!t==!!e){var o=Object.getOwnPropertyNames(t),n=Object.getOwnPropertyNames(e);if(o.length===n.length){for(var i=0;i<o.length;i++){var r=o[i];if(t[r]!==e[r])return}return 1}}}var m,v,o={left:-1e3,top:0},y=((c=m=m||{}).hiding="hiding",c.hidden="hidden",c.showing="showing",c.shown="shown",c.reposition="reposition","k-animation-container-shown"),c=(v=l.Component,i(P,v),Object.defineProperty(P.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),P.getDerivedStateFromProps=function(t,e){var o=t.show,n=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,h=t.contentKey,o=d(d({},e),{props:{show:o,anchor:n,anchorAlign:i,appendTo:r,collision:s,popupAlign:p,className:a,popupClass:l,style:u,offset:c,contentKey:h}});return t.show?e.current===m.hidden||e.current===m.hiding?d(d({},o),{current:m.showing,previous:e.current}):e.current===m.showing?d(d({},o),{current:m.shown,previous:e.current}):e.current!==m.shown||g(c,e.props.offset)&&g(i,e.props.anchorAlign)&&g(r,e.props.appendTo)&&g(s,e.props.collision)&&g(p,e.props.popupAlign)&&g(u,e.props.style)&&n===e.props.anchor&&l===e.props.popupClass&&a===e.props.className?o:d(d({},o),{current:m.reposition,previous:e.current}):e.current===m.hiding||e.current===m.hidden?d(d({},o),{current:m.hidden,previous:e.current}):d(d({},o),{current:m.hiding,previous:e.current})},P.prototype.componentDidUpdate=function(t){this.state.current===m.showing&&this._popup?this.show(this._popup):this.state.current===m.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===m.reposition&&this.state.previous===m.shown?this.setState({current:m.shown,previous:this.state.current}):this.state.current===m.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},P.prototype.componentDidMount=function(){this.state.current===m.showing&&this._popup&&this.show(this._popup)},P.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},P.prototype.render=function(){var e=this,t=this.props,o=t.children,n=t.className,i=t.popupClass,r=t.show,s=t.id,t=t.positionMode,p=this.props.appendTo||(h.canUseDOM?(this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument:document).body:void 0),t=(this.state.current===m.reposition&&this.state.previous===m.shown&&this._popup&&this.setPosition(this._popup),Object.assign({},{position:t,top:0,left:-1e4},this.props.style||{})),a=this.state.current===m.hiding;return(r||a)&&p?(r=this.getCurrentZIndex(),a=l.createElement(h.ZIndexContext.Provider,{value:r},l.createElement("div",{className:(0,h.classNames)("k-animation-container","k-animation-container-relative",n),id:s,ref:function(t){return e._popup=t},style:d({zIndex:r},t)},l.createElement("div",{role:this.props.role,className:(0,h.classNames)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o))),null!==this.props.appendTo?u.createPortal(a,p):a):null},Object.defineProperty(P.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,o=0;return t&&(!0===t?e=o=300:(e=t.openDuration||0,o=t.closeDuration||0)),{enter:e,exit:o}},enumerable:!1,configurable:!0}),P.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=f.domUtils.scrollableParents(this.props.anchor||t),this._scrollableParents&&this._scrollableParents.map(function(t){return t.addEventListener("scroll",e.reposition)}),window.addEventListener("resize",this.reposition)},P.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)},P.prototype.reposition=function(){this.setState({current:m.reposition,previous:this.state.current})},P.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},P.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:o,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},P.contextType=h.ZIndexContext,P.displayName="PopupComponent",P);function P(t){var c=v.call(this,t)||this;return c.context=0,c.state={current:m.hidden,previous:m.hidden,props:{}},c._popup=null,c.show=function(t){c.setPosition(t),c.animate(t.firstChild,"enter",c.onOpened),c.setState({current:m.shown,previous:c.state.current})},c.setPosition=function(t){var e=c.props,o=e.anchorAlign,n=e.popupAlign,i=e.collision,r=e.offset,s=e.anchor,p=e.margin,a=e.scale,e=e.positionMode,l=t.style,u=l.width,l=l.height,r=(t.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px",(0,f.alignElement)({anchor:s,anchorAlign:o,element:t,elementAlign:n,offset:r,margin:p,positionMode:e,scale:a})),p=(0,f.positionElement)({anchor:s,anchorAlign:o,element:t,elementAlign:n,collisions:i,currentLocation:r,margin:c.props.margin});t.style.top=p.offset.top+"px",t.style.left=p.offset.left+"px",t.style.width=u,t.style.height=l,c._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},c.props.onPosition&&(e={target:c,flipped:p.flipped,fitted:p.fitted},c.props.onPosition.call(void 0,e))},c.onOpened=function(){var t=c._popup;t&&(c.props.show&&t.classList.add(y),c.attachRepositionHandlers(t),c.props.onOpen)&&c.props.onOpen.call(void 0,{target:c})},c.animate=function(t,e,o){var n,i;c.props.popupAlign&&(i=(n=c.props.popupAlign).horizontal,n=n.vertical,i="left"===i&&"center"===n?"right":"right"===i&&"center"===n?"left":"top"===n?"down":"up",c._collisions&&c._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),(0,s.slide)(t,i,c.animationDuration[e],e,o))},c.onClosing=function(t){c.props.show||t.classList.remove(y),c.detachRepositionHandlers()},c.onClosed=function(){c.state.current===m.hiding&&c.state.previous===m.shown&&c.setState({current:m.hidden,previous:c.state.current}),c.props.onClose&&c.props.onClose.call(void 0,{target:c})},c.getCurrentZIndex=function(){return c.context?c.context+1:100},(0,h.validatePackage)(a.packageMetadata),c.reposition=(0,p.throttle)(c.reposition.bind(c),p.FRAME_DURATION),c}e.PopupWithoutContext=c},187:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.slide=void 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,o,n,i){if(0===o)return i();function r(t){t.target===e&&(e.removeEventListener("transitionend",r),l(e),e.style.display="exit"===n?"none":"",i())}var s,p="k-slide-"+t+"-"+n,a=p+"-active",t=(e.addEventListener("transitionend",r),e.ownerDocument);t&&(s=t.defaultView)&&(t=function(){l(e),e.classList.add(p),s.requestAnimationFrame(function(){e.style.transitionDuration=o+"ms",e.classList.add(a)})},u?s.requestAnimationFrame(t):t())}},363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1687870873,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:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.FRAME_DURATION=e.hasBoundingRect=e.isDifferentOffset=void 0,e.isDifferentOffset=function(t,e){var o=t.left,t=t.top,n=e.left,e=e.top;return 1<=Math.abs(o-n)||1<=Math.abs(t-e)},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.FRAME_DURATION=1e3/60,e.throttle=function(o,n,i){function r(){u=!1===i.leading?0:(new Date).getTime(),s=void 0,l=o.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),n-(t-u));return p=void 0,a=arguments,e<=0||n<e?(s&&(clearTimeout(s),s=void 0),u=t,l=o.apply(p,a),s||(p=a=null)):s||!1===i.trailing||(s=window.setTimeout(r,e)),l}}},384:t=>{t.exports=p},811:t=>{t.exports=a},895:t=>{t.exports=l},954:t=>{t.exports=u},493:t=>{t.exports=c}},n={};function i(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},o[t].call(e.exports,e,e.exports,i)),e.exports}var t,e,r,s={};return t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.PopupPropsContext=t.PopupWithoutContext=t.Popup=void 0,e=i(980),Object.defineProperty(t,"Popup",{enumerable:!0,get:function(){return e.Popup}}),Object.defineProperty(t,"PopupPropsContext",{enumerable:!0,get:function(){return e.PopupPropsContext}}),r=i(763),Object.defineProperty(t,"PopupWithoutContext",{enumerable:!0,get:function(){return r.PopupWithoutContext}}),s})())}}});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-popup",
|
|
3
3
|
"description": "React Popup positions a piece of content next to a specific anchor component. KendoReact Popup package",
|
|
4
|
-
"version": "5.14.2-dev.
|
|
4
|
+
"version": "5.14.2-dev.202306271353",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-react.git"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@progress/kendo-popup-common": "1.9.0",
|
|
39
|
-
"@progress/kendo-react-common": "5.14.2-dev.
|
|
39
|
+
"@progress/kendo-react-common": "5.14.2-dev.202306271353",
|
|
40
40
|
"prop-types": "^15.6.0"
|
|
41
41
|
},
|
|
42
42
|
"@progress": {
|