@progress/kendo-react-tooltip 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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.
- package/dist/cdn/js/kendo-react-tooltip.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/popover/Popover.d.ts +1 -1
- package/dist/es/popover/PopoverActionsBar.d.ts +1 -1
- package/dist/es/popover/interfaces/Align.js +1 -0
- package/dist/es/popover/interfaces/PopoverActionsBarProps.js +1 -0
- package/dist/es/popover/interfaces/PopoverAnimation.js +1 -0
- package/dist/es/popover/interfaces/PopoverCloseEvent.js +1 -0
- package/dist/es/popover/interfaces/PopoverCollision.js +1 -0
- package/dist/es/popover/interfaces/PopoverCollisionType.js +1 -0
- package/dist/es/popover/interfaces/PopoverMargin.js +1 -0
- package/dist/es/popover/interfaces/PopoverOffset.js +1 -0
- package/dist/es/popover/interfaces/PopoverOpenEvent.js +1 -0
- package/dist/es/popover/interfaces/PopoverPosition.js +1 -0
- package/dist/es/popover/interfaces/PopoverPositionEvent.js +1 -0
- package/dist/es/popover/interfaces/PopoverPositionMode.js +1 -0
- package/dist/es/popover/interfaces/PopoverProps.js +1 -0
- package/dist/es/tooltip/Tooltip.d.ts +7 -2
- package/dist/es/tooltip/Tooltip.js +17 -6
- package/dist/es/tooltip/TooltipProps.js +1 -0
- package/dist/es/tooltip/events.js +1 -0
- package/dist/npm/main.js +4 -3
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/popover/Popover.d.ts +1 -1
- package/dist/npm/popover/Popover.js +3 -2
- package/dist/npm/popover/PopoverActionsBar.d.ts +1 -1
- package/dist/npm/popover/PopoverActionsBar.js +1 -0
- package/dist/npm/tooltip/Tooltip.d.ts +7 -2
- package/dist/npm/tooltip/Tooltip.js +28 -16
- package/dist/npm/tooltip/utils.js +9 -4
- package/dist/systemjs/kendo-react-tooltip.js +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactTooltip=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-licensing")):e.KendoReactTooltip=t(e.React,e.PropTypes,e.ReactDOM,e.KendoLicensing)}(window,(function(e,t,n,o){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return o.a})),n.d(t,"useZIndexContext",(function(){return o.b})),n.d(t,"BrowserSupportService",(function(){return i})),n.d(t,"canUseDOM",(function(){return a.a})),n.d(t,"canUseRef",(function(){return l})),n.d(t,"classNames",(function(){return u.a})),n.d(t,"cloneDate",(function(){return s})),n.d(t,"clone",(function(){return f})),n.d(t,"cloneObject",(function(){return p})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return m})),n.d(t,"getTabIndex",(function(){return g})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return E})),n.d(t,"noop",(function(){return k})),n.d(t,"getScrollbarWidth",(function(){return x})),n.d(t,"setScrollbarWidth",(function(){return D})),n.d(t,"setter",(function(){return M})),n.d(t,"mapTree",(function(){return _})),n.d(t,"mapTreeItem",(function(){return S})),n.d(t,"extendDataItem",(function(){return A})),n.d(t,"getItemPath",(function(){return L})),n.d(t,"validatePackage",(function(){return I.a})),n.d(t,"hasRelativeStackingContext",(function(){return j})),n.d(t,"dispatchEvent",(function(){return z})),n.d(t,"AsyncFocusBlur",(function(){return B})),n.d(t,"createPropsContext",(function(){return X})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return V})),n.d(t,"useAsyncFocusBlur",(function(){return U})),n.d(t,"useRtl",(function(){return F})),n.d(t,"useMouse",(function(){return Z})),n.d(t,"useCustomComponent",(function(){return G})),n.d(t,"usePropsContext",(function(){return K})),n.d(t,"COLLECTION_ACTION",(function(){return q})),n.d(t,"useCollection",(function(){return $})),n.d(t,"useDocument",(function(){return J})),n.d(t,"useWindow",(function(){return Q})),n.d(t,"Icon",(function(){return re})),n.d(t,"SvgIcon",(function(){return ue})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return Te})),n.d(t,"Draggable",(function(){return Be})),n.d(t,"Droppable",(function(){return We})),n.d(t,"useDraggable",(function(){return He})),n.d(t,"useDroppable",(function(){return Ke})),n.d(t,"kendoThemeMaps",(function(){return Xe}));var o=n(8),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=n(2),l=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))},u=n(3),c=n(0),s=function(e){return e?new Date(e.getTime()):null};function f(e){var t={};return p(e,t),t}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return s(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return p(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},m=function(){},g=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},y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(e){var t=[];return e.replace(y,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var w={};function O(e){if(w[e])return w[e];var t=b(e);return w[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},w[e]}w.undefined=function(){};var C=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},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(){},x=function(){return!(!a.a||!document.body)&&(new i).scrollbarWidth},D=function(){if(!a.a||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},P={undefined:function(e){return e}},T=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function M(e){if(P[e])return P[e];var t=b(e);return P[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||T(t[a+1],o);r[t[i]]=n},P[e]}var R=function(){return(R=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}).apply(this,arguments)};function N(e,t,n){var o;return n?R({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var _=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=N(t,n).map((function(t){return e(t,n,o)}));return o(N(t,n,r))}return o(t)}(e,t,n)})).slice()},S=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var l=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=o(l[u]);l.splice(u,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},L=function(e,t,n){var o=[],r=t.slice();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},I=n(9),j=function(e){if(!a.a)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function z(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function U(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),l=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),u=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),s=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),l((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,l,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:u,onBlur:s}}var H=function(){return(H=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}).apply(this,arguments)},B=function(e){var t=e.children,n=U({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,H({},n))},K=function(e,t){return c.useContext(e)(t)},W=function(){return(W=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}).apply(this,arguments)},X=function(){return c.createContext((function(e){return e}))},Y=function(e,t){return c.forwardRef((function(n,o){var r=K(e,n);return c.createElement(t,W({},r,{ref:o}))}))};function V(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}function F(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,Z=function(e,t,n){void 0===n&&(n={});var o=c.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]),r=c.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:c.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:r,onMouseDown:o,onDoubleClick:c.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:c.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:c.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:c.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:c.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:c.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])}},G=function(e){return c.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var $=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.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]},J=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},Q=function(e){var t=J(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=Object.assign||function(e){for(var t,n=1,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}).apply(this,arguments)},oe=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&&(n[o[r]]=e[o[r]])}return n},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,l=e.style,s=oe(e,["className","name","themeColor","size","flip","style"]),f=c.useRef(null),p=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:p.current}})),c.useImperativeHandle(t,(function(){return f.current}));var d=c.useMemo((function(){return r||ie.themeColor}),[r]),h=c.useMemo((function(){return i||ie.size}),[i]),v=c.useMemo((function(){return a||ie.flip}),[a]),m=c.useMemo((function(){return Object(u.a)("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},te[h],n)}),[o,d,h,v,n]),g=Z(e,f);return c.createElement("span",ne({ref:p},s,g,{className:m,style:l,role:"presentation"}))}));re.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},le=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&&(n[o[r]]=e[o[r]])}return n},ue=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,l=e.size,s=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,h=le(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:v.current}}));var m=c.useMemo((function(){return i?i.name:ce.icon}),[i]),g=c.useMemo((function(){return p||ce.themeColor}),[p]),y=c.useMemo((function(){return l||ce.size}),[l]),b=c.useMemo((function(){return a||ce.flip}),[a]),w=c.useMemo((function(){return d||ce.viewBox}),[d]),O=c.useMemo((function(){return Object(u.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[m,g,y,b,o]),C=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},s):e.width?ae({width:e.width,height:e.width},s):e.height?ae({width:e.height,height:e.height},s):ae({},s)}),[e.width,e.height,s]);return c.createElement("span",{className:O,style:C,ref:v},c.createElement("svg",ae({className:r,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));ue.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ce={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ue.displayName="KendoSvgIcon";var se={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},fe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={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"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},he={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ye=function(){return(ye=Object.assign||function(e){for(var t,n=1,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}).apply(this,arguments)},be=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&&(n[o[r]]=e[o[r]])}return n},we=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,l=t.fontWeight,u=t.textAlign,s=t.textTransform,f=t.themeColor,p=t.margin,d=be(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),v=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:v.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var m=e,g=function(){if(void 0!==p){if("string"==typeof p)return[pe[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-"+p];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,o;null!==p[t]&&void 0!==p[t]&&e.push((n=t,o=p[t],""+he[n]+("string"==typeof o?de[o]:o)))})),e.join(" ")}}};return c.createElement(m,ye({id:o,ref:v,className:["k-"+("p"===e?"paragraph":e),se[a],fe[l],ve[u],me[s],ge[f],g(),i].filter((function(e){return void 0!==e})).join(" "),style:r},d),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:we("h1"),h2:we("h2"),h3:we("h3"),h4:we("h4"),h5:we("h5"),h6:we("h6"),p:we("p"),code:we("code"),pre:we("pre")},Ce=function(){return(Ce=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}).apply(this,arguments)},Ee=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,Ce({},t,{value:e}))}),[n,i])]},ke=c.createContext([void 0,k]),xe=c.createContext([void 0,k]),De=c.createContext([[],k,k]),Pe=c.createContext([[],k,k]),Te=function(e){var t=Ee(null,void 0),n=t[0],o=t[1],r=Ee(null,void 0),i=r[0],a=r[1],l=$([]),u=l[0],s=l[1],f=$([]),p=f[0],d=f[1];return c.createElement(ke.Provider,{value:[n,o]},c.createElement(xe.Provider,{value:[i,a]},c.createElement(De.Provider,{value:[u,function(e){s({type:q.add,item:e})},function(e){s({type:q.remove,item:e})}]},c.createElement(Pe.Provider,{value:[p,function(e){d({type:q.add,item:e})},function(e){d({type:q.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Me,Re=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),a=Math.min(o.left+o.width,n.left+n.width),l=Math.min(o.top+o.height,n.top+n.height),u=a-i,c=l-r;if(i<a&&r<l){var s=o.width*o.height,f=n.width*n.height,p=u*c;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},Ne=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},_e=function(e){return e&&e.ownerDocument||window.document},Se=function(e){var t=Ne(),n=_e(e);return t.edge||t.safari?n.body:n.documentElement},Ae=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},Le=function(e){var t=Se(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&&!Ae(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"}(Me||(Me={}));var Ie=function(){},je=function(e,t,n){void 0===n&&(n={});var o,r,i,a,l=n.onIsPressedChange,u=void 0===l?Ie:l,c=n.onIsScrollingChange,s=void 0===c?Ie:c,f=n.onVelocityChange,p=void 0===f?Ie:f,d=n.onOffsetChange,h=void 0===d?Ie:d,v=n.onPageOffsetChange,m=void 0===v?Ie:v,g=n.onClientOffsetChange,y=void 0===g?Ie:g,b=n.onScrollOffsetChange,w=void 0===b?Ie:b,O=n.onInitialScrollOffsetChange,C=void 0===O?Ie:O,E=t.payload,k=E.element,x=E.hint,D=e.autoScrollDirection,P=e.scrollableParent,T=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(T.type){case Me.POINTER_DOWN:if(T.type===Me.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Me.MOUSE_DOWN:if(T.type===Me.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||e.ignoreMouse)break;case Me.TOUCH_START:if(T.type===Me.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Me.START:var M=P||Le(t.payload.element);C(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),y({x:T.clientX,y:T.clientY}),m({x:T.pageX,y:T.pageY}),h({x:T.offsetX,y:T.offsetY}),u(!0),E.onPress&&E.onPress(T);break;case Me.SCROLL:if(T.type===Me.SCROLL&&!e.pressed)break;var R=P||Le(k),N=R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop};T.scrollX=N.x-e.initialScrollOffset.x,T.scrollY=N.y-e.initialScrollOffset.y,w({x:T.scrollX,y:T.scrollY});case Me.POINTER_MOVE:if(T.type===Me.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Me.MOUSE_MOVE:case Me.TOUCH_MOVE:if(T.type===Me.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Me.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==T.originalEvent.type&&k){var _=_e(k),S=P||Le(_.elementFromPoint(T.clientX,T.clientY)),A=function(e,t,n){var o={x:0,y:0};return e-n.left<50?o.x=-(50-(e-n.left)):n.right-e<50&&(o.x=50-(n.right-e)),t-n.top<50?o.y=-(50-(t-n.top)):n.bottom-t<50&&(o.y=50-(n.bottom-t)),o}(T.pageX,T.pageY,function(e,t){var n=Se(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}}(S,function(e){var t=_e(e);return t&&t.defaultView||window}(k)));p({x:D&&!1===D.horizontal?0:A.x,y:D&&!1===D.vertical?0:A.y}),s(0!==A.y||0!==A.x)}!e.drag&&E.onDragStart&&E.onDragStart(T),E.onDrag&&E.onDrag(T);var L=Re(x||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||k)}))),I=e.drops.find((function(e){return e.element===L}));I&&L&&(o=T.clientX,r=T.clientY,i=P||Le(L),(a=i.getBoundingClientRect()).top<=r&&a.left<=o&&r<=a.bottom&&o<=a.right)&&L!==k?(e.drop&&e.drop.element)!==L?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T),I.onDragEnter&&I.onDragEnter(T)):I.onDragOver&&I.onDragOver(T):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}y({x:T.clientX,y:T.clientY}),m({x:T.pageX,y:T.pageY});break;case Me.POINTER_UP:if(T.type===Me.POINTER_UP&&!T.originalEvent.isPrimary)break;case Me.MOUSE_UP:case Me.TOUCH_END:if(T.type===Me.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Me.END:u(!1),s(!1),E.onRelease&&E.onRelease(T),e.drop&&e.drop.onDrop&&e.drop.onDrop(T),E.onDragEnd&&E.onDragEnd(T);break;case Me.POINTER_CANCEL:case Me.CONTEXT_MENU:case Me.TOUCH_CANCEL:case Me.CANCEL:u(!1),s(!1),E.onDragEnd&&E.onDragEnd(T),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}},ze=function(e,t){if(e){var n,o;e===Se(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,a=e.scrollLeft+t.x,l=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),l?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Ue=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],l=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):l(e[0])}]};function He(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?k:o,i=t.onRelease,a=void 0===i?k:i,l=t.onDragStart,u=void 0===l?k:l,s=t.onDrag,f=void 0===s?k:s,p=t.onDragEnd,d=void 0===p?k:p,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=c.useState(!1),E=C[0],x=C[1],D=c.useState(!1),P=D[0],T=D[1],M=Ue(xe)[0],R=Ue(ke),N=R[0],_=R[1],S=c.useContext(Pe)[0],A=c.useContext(De),L=A[0],I=A[1],j=A[2],z=c.useRef({x:0,y:0}),U=c.useRef(),H=c.useRef(!1),B=c.useRef(),K=c.useRef(null),W=c.useRef(!1),X=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),F=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),Z=c.useRef({x:0,y:0}),G=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&G,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),ee=c.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=c.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=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:ve,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:me,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:N?N.current:null,drop:M?M.current:null,drags:L.map((function(e){return e.current})),drops:S.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:V.current,initialClientOffset:F.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[N,M,L,S,E,b,te,P]),ae=c.useCallback((function(e){x(e)}),[]),le=c.useCallback((function(e){T(e)}),[]),ue=c.useCallback((function(e){z.current=e}),[]),ce=c.useCallback((function(e){X.current=e}),[]),se=c.useCallback((function(e){V.current=e}),[]),fe=c.useCallback((function(e){Y.current=e}),[]),pe=c.useCallback((function(e){F.current=e}),[]),de=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){Z.current=e}),[]),ve=c.useCallback((function(e){r(e)}),[r]),me=c.useCallback((function(e){a(e)}),[a]),ge=c.useCallback((function(t){_(ne,{target:e.current,event:t}),u(t)}),[_,e,u]),ye=c.useCallback((function(e){f(e)}),[f]),be=c.useCallback((function(t){W.current||(_(null,{target:e.current,event:t}),d(t))}),[d,_,e]),we=c.useCallback((function(e){je(ie(),{event:e,payload:ne.current},{onVelocityChange:ue,onOffsetChange:ce,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:le})}),[ie,ue,ce,fe,se,pe,he,ae,de,le]),Oe=c.useCallback((function(e){we(e)}),[we]),Ce=c.useCallback((function(e){we(e)}),[we]),Ee=c.useCallback((function(e){we(e)}),[we]),Te=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){we(e)}),[we]),Re=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Se=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ae=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ie=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();H.current=!0,B.current=t.setTimeout((function(){H.current=!1}),2e3)}we(e)}),[we,re]),He=c.useCallback((function(e){we(e)}),[we]),Be=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=c.useCallback((function(){return I(ne),function(){j(ne)}}),[j,I]);c.useEffect((function(){var e=re();if(P){var t=ee()||Le(document.elementFromPoint(V.current.x,V.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){ze(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,P]),c.useEffect(Be,[Be]),c.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=Le(t),K.current&&K.current.addEventListener("scroll",He,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),E&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",Te,!0),n.addEventListener("contextmenu",_e),n.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Me,{passive:!0}),g||(t.addEventListener("touchstart",Se,{passive:!0}),E&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Ie,{passive:!0})))),E&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",Ne,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",He),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Me),t.removeEventListener("touchstart",Se),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Ie)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",Te,!0),n.removeEventListener("contextmenu",_e),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",Ne),e.removeEventListener("touchmove",k),e.clearTimeout(B.current)}}),[E,re,J,oe,g,$,_e,Me,Re,Ne,Ee,Oe,Ce,Te,Ie,Ae,Se,He]),c.useEffect((function(){return function(){W.current=!0}}),[]),c.useLayoutEffect(Ke,[Ke])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),l=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),u=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),s=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return He(n,{onPress:i,onRelease:a,onDragStart:l,onDrag:u,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function Ke(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,o=void 0===n?k:n,r=t.onDragOver,i=void 0===r?k:r,a=t.onDragLeave,l=void 0===a?k:a,u=t.onDrop,s=void 0===u?k:u,f=Ue(xe)[1],p=c.useContext(Pe),d=p[1],h=p[2],v=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=c.useRef(null);c.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=c.useCallback((function(t){f(m,{target:e.current,event:t}),o(t)}),[f,e,o]),y=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){f(null,{target:e.current,event:t}),l(t)}),[f,e,l]),w=c.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),O=c.useCallback((function(){return d(m),function(){h(m)}}),[h,d]);c.useLayoutEffect(O,[O])}Be.displayName="KendoReactDraggable";var We=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),l=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),u=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Ke(n,{onDragEnter:i,onDragOver:a,onDragLeave:l,onDrop:u}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));We.displayName="KendoReactDroppable";var Xe={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(e,t){e.exports=n},function(e,t){e.exports=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(6);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653030816,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1);t.PopoverActionsBar=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(r,(function(){return{props:e,element:n.current}})),o.useImperativeHandle(t,(function(){return r.current})),o.createElement("div",{ref:n,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},e.children)}));t.PopoverActionsBar.propTypes={children:r.oneOfType([r.element,r.node])},t.PopoverActionsBar.defaultProps={},t.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(13);t.Tooltip=o.Tooltip;var r=n(15);t.Popover=r.Popover;var i=n(11);t.PopoverActionsBar=i.PopoverActionsBar},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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}).apply(this,arguments)},a=this&&this.__rest||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&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),u=n(5),c=n(1),s=n(4),f=n(14),p=n(4),d=n(10),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={targetElement:null,open:!1,title:""},n.top=0,n.left=0,n.willOpen=!1,n.handleMouseOut=function(e){var t=n.state.targetElement,o=t?t.ownerDocument:document,r=o&&o.elementFromPoint(e.clientX,e.clientY);f.isTooltipElement(r)||n.props.open||(clearInterval(n.updateIntervalId),n.willOpen=!1,n.onClose(e))},n.handleMouseOver=function(e){var t=e.target;n.isVisible(t)&&!f.isTooltipElement(t)&&t!==n.state.targetElement&&n.showToolTip(e)},n.handleBodyMousemove=function(e){n.top=e.clientY,n.left=e.clientX},n.onClose=function(e){s.dispatchEvent(n.props.onClose,e,n,void 0),n.setState({targetElement:null,open:!1,title:""})},n.setUpdateInterval=function(){n.props.updateInterval&&(n.updateIntervalId=setInterval(n.onIntervalUpdate,n.props.updateInterval))},n.onIntervalUpdate=function(){var e=n.state.targetElement;e&&(null===e.parentElement?n.onClose({target:e}):n.showToolTip({target:e}))},n.position=function(e){var t=f.getDomRect(n.state.targetElement);return{left:f.getLeftPosition(n.left,e.offsetWidth,t,n.props.anchorElement,n.props.position),top:f.getTopPosition(n.top,t,e.offsetHeight,n.props.anchorElement,n.props.position)}},n.getTitle=function(e){for(;e;){if(null!==e.getAttribute("title")||e.titleExpando)return{title:e.getAttribute("title")||e.titleExpando,element:e};e=n.props.parentTitle&&e.parentElement||null}return{title:"",element:e}},n.calloutClassName=function(){switch(n.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return n.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},n.getCurrentZIndex=function(){return n.context?n.context:100},p.validatePackage(d.packageMetadata),n}return r(t,e),t.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},t.prototype.render=function(){var e=this;if(this.props.children){var n=this.props,o=n.children,r=a(n,["children"]),c=null;return l.createElement("div",{onMouseOver:function(e){c&&c.handleMouseOver(e)},onMouseOut:function(e){c&&c.handleMouseOut(e)}},l.createElement(t,i({ref:function(e){return c=e}},r)),o)}if(!1===this.props.open)return null;var f=this.state.targetElement,p=this.getCurrentZIndex();return f&&this.state.title&&f.ownerDocument&&u.createPortal(l.createElement("div",{ref:function(t){var n;t&&(n=e.props.onPosition?e.props.onPosition.call(void 0,{element:t,targetElement:e.state.targetElement,mouseTop:e.top,mouseLeft:e.left,anchorElement:e.props.anchorElement,position:e.props.position,target:e}):e.position(t),t.style.left=n.left+"px",t.style.top=n.top+"px")},className:s.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:i({zIndex:p},this.props.style),tabIndex:0},l.createElement("div",{className:s.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},l.createElement("div",{className:"k-tooltip-content"},this.props.content&&l.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&l.createElement("div",{ref:function(t){t&&(t.className=e.calloutClassName(),"auto"===e.props.position&&(e.left<window.screen.availWidth/2?t.style.left=e.props.setCalloutOnPositionAuto||"25%":t.style.left=e.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo?this.props.appendTo:f.ownerDocument.body)},t.prototype.showToolTip=function(e){var t=this;clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach((function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}));var n=this.props.targetElement||e.target,o=this.getTitle(n);o.title?(o.element&&(o.element.titleExpando=o.title,o.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout((function(){t.willOpen&&t.setState({targetElement:n,open:!0,title:o.title},t.setUpdateInterval)}),this.props.openDelay):this.setState({targetElement:n,open:!0,title:o.title},this.setUpdateInterval),this.state.title!==o.title&&s.dispatchEvent(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},t.prototype.isVisible=function(e){return!this.props.filter||this.props.filter(e)},t.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},t.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},t.contextType=s.ZIndexContext,t}(l.PureComponent);t.Tooltip=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getLeftPosition=function(e,t,n,o,r){switch(r){case"bottom":return"pointer"===o?e-t/2:n.left-t/2+n.width/2;case"left":return"pointer"===o?e-t-10:n.left-t-10;case"right":return"pointer"===o?e+10:n.right+10;case"top":return"pointer"===o?e-t/2:n.left-t/2+n.width/2;default:return"pointer"===o?e<window.screen.availWidth/2?e-10:e-t+10:e<window.screen.availWidth/2?n.left:n.right-t}},t.getTopPosition=function(e,t,n,o,r){switch(r){case"bottom":return"pointer"===o?e+10:t.bottom+10;case"left":case"right":return"pointer"===o?e-n/2:t.top-n/2+t.height/2;case"top":return"pointer"===o?e-n-10:t.top-n-10;default:return"pointer"===o?e<window.innerHeight/2?e+10:e-n-10:e<window.innerHeight/2?t.bottom+10:t.top-n-10}},t.getDomRect=function(e){return null!==e?e.getBoundingClientRect():document.body.getBoundingClientRect()},t.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],t.isTooltipElement=function(e){if(null===e)return!1;for(var n=e;n;){if(null!==n&&n.classList&&n.classList.contains("k-tooltip"))return!0;n=null!==n.parentNode&&n.parentNode}return t.toolTipSelectors.filter((function(t){return t===e.className})).length>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1),i=n(4),a=n(4),l=n(10),u=n(16),c=n(11),s={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},f={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},p={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},d={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};t.Popover=o.forwardRef((function(e,t){a.validatePackage(l.packageMetadata);var n=e.callout,r=e.position,h=e.title,v=e.children,m=e.show,g=e.anchor,y=e.appendTo,b=e.offset,w=e.animate,O=e.positionMode,C=e.scale,E=e.popoverClass,k=e.className,x=e.id,D=e.style,P=e.collision,T=e.contentStyle,M=e.onPosition,R=e.onClose,N=e.onOpen,_=o.useState(!1),S=_[0],A=_[1],L="top"===r||"bottom"===r,I=e.margin||{vertical:n&&L?15:0,horizontal:n&&!L?15:0},j=p[r],z=d[r],U=o.useContext(i.ZIndexContext),H=U?U+2e3:12e3,B=o.useRef(null);o.useImperativeHandle(B,(function(){return{props:e}})),o.useImperativeHandle(t,(function(){return B.current}));var K=o.useCallback((function(e){if(setTimeout((function(){return A(e.flipped)})),M){var t={target:B.current,flipped:e.flipped,fitted:e.fitted};M.call(void 0,t)}}),[M,A]),W=o.useCallback((function(){if(N){var e={target:B.current};N.call(void 0,e)}}),[N]),X=o.useCallback((function(){if(R){var e={target:B.current};R.call(void 0,e)}}),[R]),Y={"k-popover":!0,"k-popup":!1};Array.isArray(E)?E.forEach((function(e){return Y[e]=!0})):"object"==typeof E?Object.keys(E).forEach((function(e){Y[e]=E[e]})):E&&(Y[E]=!0);var V=S?f[r]:s[r];return o.createElement(i.ZIndexContext.Provider,{value:H},o.createElement(u.Popup,{id:x,animate:w,collision:P,anchor:g,offset:b,margin:I,popupAlign:j,anchorAlign:z,appendTo:y,show:m,scale:C,positionMode:O,style:D,className:k,popupClass:Y,onOpen:W,onClose:X,onPosition:K},n&&r&&o.createElement("div",{className:i.classNames("k-popover-callout",V)}),h&&o.createElement("div",{className:"k-popover-header"},h),o.createElement("div",{className:"k-popover-body",style:T},function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type!==c.PopoverActionsBar}))}(v)),function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type===c.PopoverActionsBar}))}(v)))}));t.Popover.propTypes={callout:r.bool,title:r.string,position:r.oneOf(["top","left","bottom","right"]),show:r.bool,animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. 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 Popover`. Validation failed."):null},positionMode:r.oneOf(["fixed","absolute"]),scale:r.number,offset:r.shape({left:r.number,top:r.number}),children:r.oneOfType([r.element,r.node]),className:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),id:r.string,popoverClass:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),style:r.object,onClose:r.func,onPosition:r.func,onOpen:r.func},t.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},t.Popover.displayName="KendoReactPopover"},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return se})),n.d(t,"PopupPropsContext",(function(){return ce}));var o=n(0),r=n(5),i=n(1),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},l="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),u=n(9),c=n(2),s=n(8),f=n(3),p="bottom",d="center",h="middle",v="left",m="right",g="top";function y(e){return e.ownerDocument||e.document||e}var b=function(e){return y(e).defaultView},w=function(e){return y(e).documentElement},O=0;function C(){if(!O&&"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),O=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return O}function E(e){var t=b(e),n=w(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=C()),o}var k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||w(e)},x=function(e){var t=e.getBoundingClientRect(),n=t.left,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}},D=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function P(e){var t=w(e),n=b(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var T=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var M=function(e,t){var n=b(e),o=n.getComputedStyle(e),r=x(e),i=t||k(e),a=e.ownerDocument,l=i!==a.body&&i!==a.documentElement,u={top:0,left:0};if("fixed"!==o.position&&l){var c=n.getComputedStyle(i);(u=x(i)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-u.top,left:r.left-u.left,height:r.height,width:r.width}},R=function(e,t){return e?T(e):function(e){var t=k(e);return t?T(t):{x:0,y:0}}(t)};var N="fit",_="flip",S="none",A=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},L=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,l=0,u=2*e.margin;if(a!==i&&!(a===d||a===h)&&!(i===d||i===h)){var c=i===g||i===v;t<0&&c?t+(l=n+o+u)+n>r&&(l=0):t>=0&&!c&&(t+n>r&&(l+=-(o+n+u)),t+l<0&&(l=0))}return l},I=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},j=function(e,t){for(var n,o,r=D(e),i=t;i&&(n=I(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var z,U,H,B,K=(z=function(e){if(!W())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},H=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return H||(U=z.apply(void 0,e),H=!0),U}),W=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},X={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:K,canUseDOM:W},Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],V=function(){return X.canUseDOM()?window:null},F=/auto|scroll/,q=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)},Z=function(e){if(!e||!X.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},G=function(){return X.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},$={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,l=n.vertical,u=r.horizontal,c=r.vertical,s=i.horizontal||0,f=i.vertical||0,v=t.top,g=t.left;return l===p&&(v+=t.height),l!==d&&l!==h||(v+=Math.round(t.height/2)),c===p&&(v-=o.height,f*=-1),c!==d&&c!==h||(v-=Math.round(o.height/2),f*=-1),a===m&&(g+=t.width),a!==d&&a!==h||(g+=Math.round(t.width/2)),u===m&&(g-=o.width,s*=-1),u!==d&&u!==h||(g-=Math.round(o.width/2),s*=-1),{top:v+f,left:g+s}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=E(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=V();if(!t||!e)return[];var n=t.getComputedStyle(e);return Y.map((function(e){return{key:e,value:n[e]}}))},getWindow:V,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?x(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,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 a=x(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?k(t):null,r=M(e,o),i=r.top,a=r.left,l=r.height,u=r.width,c=R(o,e),s=c.x,f=c.y,p=e.ownerDocument,d=o===p.body||o===p.documentElement?1:n;return{top:i+f*d,left:a+s*d,height:l,width:u}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,l=e.margin;void 0===l&&(l={});var u=o.top,c=o.left,s=o.height,f=o.width,p=a.height,d=a.width,h=l.horizontal||0,v=l.vertical||0,m=0,g=0,y=i.vertical===N,b=i.horizontal===N,w=i.vertical===_,O=i.horizontal===_;y&&(g+=A(u,s,p)),b&&(m+=A(c,f,d)),w&&(g+=L({margin:v,offset:u,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),O&&(m+=L({margin:h,offset:c,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==g,E=O&&0!==m,k=y&&0!==g,x=b&&0!==m;return{flipped:E||C,fitted:k||x,flip:{horizontal:E,vertical:C},fit:{horizontal:x,vertical:k},offset:{left:m,top:g}}},scrollPosition:P,scrollableParents:function(e){var t=[];if(!X.canUseDOM())return t;for(var n=e.parentElement;n;)(F.test(q(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:Z,stackingElementOffset:function(e){var t=Z(e);return t?x(t):null},stackingElementScroll:function(e){var t=Z(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=Z(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(Z(e))},windowViewPort:E,zoomLevel:G,isZoomed:function(){return G()>1},zIndex:function(e,t){if(!e||!X.canUseDOM())return null;var n=j(e,t);if(!n)return null;var o=[e].concat(D(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}},J=function(e,t){return e?{x:0,y:0}:$.scrollPosition(t)},Q=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,l=e.positionMode,u=e.scale||1,c="fixed"===l||!$.hasOffsetParent(n)?function(e,t,n,o){var r=J(e,t),i=X.eitherRect($.offset(e),n),a=2*o,l=$.stackingElementScroll(t);1!==o&&l&&(l.x/=a,l.y/=a);var u=$.stackingElementOffset(t);return 1!==o&&u&&(u.left/=a,u.top/=a),$.removeScroll($.addScroll(X.removeStackingOffset(X.scaleRect(i,o),u),l),r)}(t,n,a,u):function(e,t,n,o){var r=X.eitherRect($.position(e,t,o),n);return X.scaleRect(r,o)}(t,n,a,u),s=X.scaleRect($.offset(n),u);return $.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:s,margin:i})},ee=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,l=e.margin,u=e.scale||1,c=$.offsetAtPoint(o,n),s=X.scaleRect(c,u),f=X.scaleRect($.offset(t),u),p=X.eitherRect(f,n),d=e.viewPort||$.windowViewPort(o);d.width=d.width/u,d.height=d.height/u;var h=$.restrictToView({anchorAlign:r,anchorRect:p,collisions:a,elementAlign:i,elementRect:s,margin:l,viewPort:d}),v=$.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}},te={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653029800,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"},ne=(B=function(e,t){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,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}).apply(this,arguments)};function re(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 ie,ae={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(ie||(ie={}));var le=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:ie.hidden,previous:ie.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:ie.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,l=t.anchor,u=t.margin,c=t.scale,s=t.positionMode,f=Q({anchor:l,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:u,positionMode:s,scale:c}),p=ee({anchor:l,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:f,margin:n.props.margin});if(e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",n._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},n.props.onPosition){var d={target:n,flipped:p.flipped,fitted:p.fitted};n.props.onPosition.call(void 0,d)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,u=i.horizontal,c=i.vertical;r="left"===u&&"center"===c?"right":"right"===u&&"center"===c?"left":"top"===c?"down":"up";n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,u=i+"-active",c=function(t){t.target===e&&(e.removeEventListener("transitionend",c),a(e),r())};e.addEventListener("transitionend",c);var s=e.ownerDocument;if(s){var f=s.defaultView;if(f){var p=function(){a(e),e.classList.add(i),f.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(u)}))};l?f.requestAnimationFrame(p):p()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===ie.hiding&&n.state.previous===ie.shown&&n.setState({current:ie.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(u.a)(te),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var l=0;n=n||{};var u=function(){l=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();l||!1!==n.leading||(l=c);var s=t-(c-l);return r=this,i=arguments,s<=0||s>t?(o&&(clearTimeout(o),o=null),l=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(u,s)),a}}(n.reposition.bind(n),1e3/60),n}return ne(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,l=e.popupAlign,u=e.className,c=e.popupClass,s=e.style,f=e.offset,p=e.contentKey,d=oe({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:l,className:u,popupClass:c,style:s,offset:f,contentKey:p}});return e.show?t.current===ie.hidden||t.current===ie.hiding?oe({},d,{current:ie.showing,previous:t.current}):t.current===ie.showing?oe({},d,{current:ie.shown,previous:t.current}):t.current!==ie.shown||re(f,t.props.offset)&&re(r,t.props.anchorAlign)&&re(i,t.props.appendTo)&&re(a,t.props.collision)&&re(l,t.props.popupAlign)&&re(s,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&u===t.props.className?d:oe({},d,{current:ie.reposition,previous:t.current}):t.current===ie.hiding||t.current===ie.hidden?oe({},d,{current:ie.hidden,previous:t.current}):oe({},d,{current:ie.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===ie.showing&&this._popup?this.show(this._popup):this.state.current===ie.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===ie.reposition&&this.state.previous===ie.shown?this.setState({current:ie.shown,previous:this.state.current}):this.state.current===ie.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===ie.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,l=t.show,u=t.id,p=t.positionMode,d=this.props.appendTo?this.props.appendTo:c.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===ie.reposition&&this.state.previous===ie.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:p,top:0,left:-1e4},this.props.style||{}),v=this.state.current===ie.hiding;if((l||v)&&d){var m=this.getCurrentZIndex(),g=o.createElement(s.a.Provider,{value:m},o.createElement("div",{className:Object(f.a)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:oe({zIndex:m},h)},o.createElement("div",{className:Object(f.a)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?r.createPortal(g,d):g}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=$.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:ie.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([N,_,S]),vertical:i.oneOf([N,_,S])}),anchorAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,p])}),popupAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,p])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:N,vertical:_},anchorAlign:{horizontal:v,vertical:p},popupAlign:{horizontal:v,vertical:g},offset:ae,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.a,t.displayName="PopupComponent",t}(o.Component),ue=function(){return(ue=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}).apply(this,arguments)},ce=o.createContext((function(e){return e})),se=o.forwardRef((function(e,t){var n=o.useContext(ce).call(void 0,e);return o.createElement(le,ue({ref:t},n))}));se.displayName="Popup"}])}));
|
|
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.KendoReactTooltip=t(require("react"),require("react-dom"),require("prop-types"),require("@progress/kendo-licensing")):e.KendoReactTooltip=t(e.React,e.ReactDOM,e.PropTypes,e.KendoLicensing)}(self,(function(e,t,n,o){return(()=>{"use strict";var r={363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654509845,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"}},280:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=void 0;var o=n(899),r=n(189),i=n(376),a=n(376),l=n(363),c=n(201),s=n(311),u={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},p={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},f={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},d={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};t.Popover=o.forwardRef((function(e,t){(0,a.validatePackage)(l.packageMetadata);var n=e.callout,r=e.position,h=e.title,v=e.children,m=e.show,g=e.anchor,y=e.appendTo,b=e.offset,w=e.animate,O=e.positionMode,E=e.scale,C=e.popoverClass,k=e.className,x=e.id,P=e.style,D=e.collision,T=e.contentStyle,M=e.onPosition,R=e.onClose,N=e.onOpen,S=o.useState(!1),_=S[0],A=S[1],L="top"===r||"bottom"===r,I=e.margin||{vertical:n&&L?15:0,horizontal:n&&!L?15:0},j=f[r],z=d[r],U=o.useContext(i.ZIndexContext),H=U?U+2e3:12e3,B=o.useRef(null);o.useImperativeHandle(B,(function(){return{props:e}})),o.useImperativeHandle(t,(function(){return B.current}));var K=o.useCallback((function(e){if(setTimeout((function(){return A(e.flipped)})),M){var t={target:B.current,flipped:e.flipped,fitted:e.fitted};M.call(void 0,t)}}),[M,A]),W=o.useCallback((function(){if(N){var e={target:B.current};N.call(void 0,e)}}),[N]),X=o.useCallback((function(){if(R){var e={target:B.current};R.call(void 0,e)}}),[R]),Y={"k-popover":!0,"k-popup":!1};Array.isArray(C)?C.forEach((function(e){return Y[e]=!0})):"object"==typeof C?Object.keys(C).forEach((function(e){Y[e]=C[e]})):C&&(Y[C]=!0);var V=_?p[r]:u[r];return o.createElement(i.ZIndexContext.Provider,{value:H},o.createElement(c.Popup,{id:x,animate:w,collision:D,anchor:g,offset:b,margin:I,popupAlign:j,anchorAlign:z,appendTo:y,show:m,scale:E,positionMode:O,style:P,className:k,popupClass:Y,onOpen:W,onClose:X,onPosition:K},n&&r&&o.createElement("div",{className:(0,i.classNames)("k-popover-callout",V)}),h&&o.createElement("div",{className:"k-popover-header"},h),o.createElement("div",{className:"k-popover-body",style:T},function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type!==s.PopoverActionsBar}))}(v)),function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type===s.PopoverActionsBar}))}(v)))})),t.Popover.propTypes={callout:r.bool,title:r.string,position:r.oneOf(["top","left","bottom","right"]),show:r.bool,animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. 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 Popover`. Validation failed."):null},positionMode:r.oneOf(["fixed","absolute"]),scale:r.number,offset:r.shape({left:r.number,top:r.number}),children:r.oneOfType([r.element,r.node]),className:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),id:r.string,popoverClass:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),style:r.object,onClose:r.func,onPosition:r.func,onOpen:r.func},t.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},t.Popover.displayName="KendoReactPopover"},311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverActionsBar=void 0;var o=n(899),r=n(189);t.PopoverActionsBar=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(r,(function(){return{props:e,element:n.current}})),o.useImperativeHandle(t,(function(){return r.current})),o.createElement("div",{ref:n,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},e.children)})),t.PopoverActionsBar.propTypes={children:r.oneOfType([r.element,r.node])},t.PopoverActionsBar.defaultProps={},t.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},593: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)},a=this&&this.__rest||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};Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=void 0;var l=n(899),c=n(994),s=n(189),u=n(376),p=n(584),f=n(376),d=n(363),h=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={targetElement:null,open:!1,title:""},n.top=0,n.left=0,n.willOpen=!1,n.handleMouseOut=function(e){var t=n.state.targetElement,o=t?t.ownerDocument:document,r=o&&o.elementFromPoint(e.clientX,e.clientY);(0,p.isTooltipElement)(r)||n.props.open||(clearInterval(n.updateIntervalId),n.willOpen=!1,n.onClose(e))},n.handleMouseOver=function(e){var t=e.target;n.isVisible(t)&&!(0,p.isTooltipElement)(t)&&t!==n.state.targetElement&&n.showToolTip(e)},n.handleBodyMousemove=function(e){n.top=e.clientY,n.left=e.clientX},n.onClose=function(e){(0,u.dispatchEvent)(n.props.onClose,e,n,void 0),n.setState({targetElement:null,open:!1,title:""})},n.setUpdateInterval=function(){n.props.updateInterval&&(n.updateIntervalId=setInterval(n.onIntervalUpdate,n.props.updateInterval))},n.onIntervalUpdate=function(){var e=n.state.targetElement;e&&(null===e.parentElement?n.onClose({target:e}):n.showToolTip({target:e}))},n.position=function(e){var t=(0,p.getDomRect)(n.state.targetElement);return{left:(0,p.getLeftPosition)(n.left,e.offsetWidth,t,n.props.anchorElement,n.props.position),top:(0,p.getTopPosition)(n.top,t,e.offsetHeight,n.props.anchorElement,n.props.position)}},n.getTitle=function(e){for(;e;){if(null!==e.getAttribute("title")||e.titleExpando)return{title:e.getAttribute("title")||e.titleExpando,element:e};e=n.props.parentTitle&&e.parentElement||null}return{title:"",element:e}},n.calloutClassName=function(){switch(n.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return n.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},n.getCurrentZIndex=function(){return n.context?n.context:100},(0,f.validatePackage)(d.packageMetadata),n}return r(t,e),t.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},t.prototype.render=function(){var e=this;if(this.props.children){var n=this.props,o=n.children,r=a(n,["children"]),s=null;return l.createElement("div",{onMouseOver:function(e){s&&s.handleMouseOver(e)},onMouseOut:function(e){s&&s.handleMouseOut(e)}},l.createElement(t,i({ref:function(e){return s=e}},r)),o)}if(!1===this.props.open)return null;var p=this.state.targetElement,f=this.getCurrentZIndex();return p&&this.state.title&&p.ownerDocument&&c.createPortal(l.createElement("div",{ref:function(t){if(t){var n;if(e.props.onPosition){var o={element:t,targetElement:e.state.targetElement,mouseTop:e.top,mouseLeft:e.left,anchorElement:e.props.anchorElement,position:e.props.position,target:e,syntheticEvent:null,nativeEvent:null};n=e.props.onPosition.call(void 0,o)}else n=e.position(t);t.style.left=n.left+"px",t.style.top=n.top+"px"}},className:(0,u.classNames)("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:i({zIndex:f},this.props.style),tabIndex:0},l.createElement("div",{className:(0,u.classNames)("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},l.createElement("div",{className:"k-tooltip-content"},this.props.content&&l.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&l.createElement("div",{ref:function(t){t&&(t.className=e.calloutClassName(),"auto"===e.props.position&&(e.left<window.screen.availWidth/2?t.style.left=e.props.setCalloutOnPositionAuto||"25%":t.style.left=e.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo?this.props.appendTo:p.ownerDocument.body)},t.prototype.showToolTip=function(e){var t=this;clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach((function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}));var n=this.props.targetElement||e.target,o=this.getTitle(n);o.title?(o.element&&(o.element.titleExpando=o.title,o.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout((function(){t.willOpen&&t.setState({targetElement:n,open:!0,title:o.title},t.setUpdateInterval)}),this.props.openDelay):this.setState({targetElement:n,open:!0,title:o.title},this.setUpdateInterval),this.state.title!==o.title&&(0,u.dispatchEvent)(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},t.prototype.isVisible=function(e){return!this.props.filter||this.props.filter(e)},t.propTypes={anchorElement:s.oneOf(["pointer","target"]),content:s.func,filter:s.func,openDelay:s.number,position:s.oneOf(["right","left","top","bottom","auto"]),updateInterval:s.number},t.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},t.contextType=u.ZIndexContext,t}(l.PureComponent);t.Tooltip=h},584:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isTooltipElement=t.toolTipSelectors=t.getDomRect=t.getTopPosition=t.getLeftPosition=void 0;var n=10,o=10;t.getLeftPosition=function(e,t,o,r,i){switch(i){case"bottom":case"top":return"pointer"===r?e-t/2:o.left-t/2+o.width/2;case"left":return"pointer"===r?e-t-n:o.left-t-n;case"right":return"pointer"===r?e+n:o.right+n;default:return"pointer"===r?e<window.screen.availWidth/2?e-n:e-t+n:e<window.screen.availWidth/2?o.left:o.right-t}},t.getTopPosition=function(e,t,r,i,a){switch(a){case"bottom":return"pointer"===i?e+o:t.bottom+o;case"left":case"right":return"pointer"===i?e-r/2:t.top-r/2+t.height/2;case"top":return"pointer"===i?e-r-o:t.top-r-o;default:return"pointer"===i?e<window.innerHeight/2?e+n:e-r-n:e<window.innerHeight/2?t.bottom+o:t.top-r-o}},t.getDomRect=function(e){return null!==e?e.getBoundingClientRect():document.body.getBoundingClientRect()},t.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],t.isTooltipElement=function(e){if(null===e)return!1;for(var n=e;n;){if(null!==n&&n.classList&&n.classList.contains("k-tooltip"))return!0;n=null!==n.parentNode&&n.parentNode}return t.toolTipSelectors.filter((function(t){return t===e.className})).length>0}},201:(e,t,n)=>{n.r(t),n.d(t,{Popup:()=>le,PopupPropsContext:()=>ae});var o=n(899),r=n(994),i=n(189),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},l="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),c=n(6),s=n(827),u=n(259),p=n(47);const f="bottom",d="center",h="middle",v="left",m="right",g="top",y="fit",b="flip",w="none";var O,E,C,k=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},x=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,l=0,c=2*e.margin;if(a!==i&&a!==d&&a!==h&&i!==d&&i!==h){var s=i===g||i===v;t<0&&s?t+(l=n+o+c)+n>r&&(l=0):t>=0&&!s&&(t+n>r&&(l+=-(o+n+c)),t+l<0&&(l=0))}return l},P=(O=function(e){if(!D())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},C=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return C||(E=O.apply(void 0,e),C=!0),E}),D=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const T={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:P,canUseDOM:D};function M(e){return e.ownerDocument||e.document||e}const R=function(e){return M(e).defaultView},N=function(e){return M(e).documentElement};var S=0;function _(){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 A(e){var t=R(e),n=N(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=_()),o}function L(e){var t=N(e),n=R(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const I=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 j(e){return e===(e.ownerDocument||{}).body?L(e):{x:e.scrollLeft,y:e.scrollTop}}const z=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||N(e)};function U(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function H(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){return T.canUseDOM()?window:null},W=/auto|scroll/,X=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)},Y=function(e){if(!e||!T.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},V=function(){return T.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,l=n.vertical,c=r.horizontal,s=r.vertical,u=i.horizontal||0,p=i.vertical||0,v=t.top,g=t.left;return l===f&&(v+=t.height),l!==d&&l!==h||(v+=Math.round(t.height/2)),s===f&&(v-=o.height,p*=-1),s!==d&&s!==h||(v-=Math.round(o.height/2),p*=-1),a===m&&(g+=t.width),a!==d&&a!==h||(g+=Math.round(t.width/2)),c===m&&(g-=o.width,u*=-1),c!==d&&c!==h||(g-=Math.round(o.width/2),u*=-1),{top:v+p,left:g+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=A(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=K();if(!t||!e)return[];var n=t.getComputedStyle(e);return B.map((function(e){return{key:e,value:n[e]}}))},getWindow:K,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?I(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 a=I(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?z(t):null,r=function(e,t){var n=R(e),o=n.getComputedStyle(e),r=I(e),i=t||z(e),a=e.ownerDocument,l=i!==a.body&&i!==a.documentElement,c={top:0,left:0};if("fixed"!==o.position&&l){var s=n.getComputedStyle(i);(c=I(i)).top+=parseInt(s.borderTopWidth,10),c.left+=parseInt(s.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}}(e,o),i=r.top,a=r.left,l=r.height,c=r.width,s=function(e,t){return e?j(e):function(e){var t=z(e);return t?j(t):{x:0,y:0}}(t)}(o,e),u=s.x,p=s.y,f=e.ownerDocument,d=o===f.body||o===f.documentElement?1:n;return{top:i+p*d,left:a+u*d,height:l,width:c}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,l=e.margin;void 0===l&&(l={});var c=o.top,s=o.left,u=o.height,p=o.width,f=a.height,d=a.width,h=l.horizontal||0,v=l.vertical||0,m=0,g=0,w=i.vertical===y,O=i.horizontal===y,E=i.vertical===b,C=i.horizontal===b;w&&(g+=k(c,u,f)),O&&(m+=k(s,p,d)),E&&(g+=x({margin:v,offset:c,size:u,anchorSize:t.height,viewPortSize:f,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),C&&(m+=x({margin:h,offset:s,size:p,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var P=E&&0!==g,D=C&&0!==m,T=w&&0!==g,M=O&&0!==m;return{flipped:D||P,fitted:T||M,flip:{horizontal:D,vertical:P},fit:{horizontal:M,vertical:T},offset:{left:m,top:g}}},scrollPosition:L,scrollableParents:function(e){var t=[];if(!T.canUseDOM())return t;for(var n=e.parentElement;n;)(W.test(X(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:Y,stackingElementOffset:function(e){var t=Y(e);return t?I(t):null},stackingElementScroll:function(e){var t=Y(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=Y(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(Y(e))},windowViewPort:A,zoomLevel:V,isZoomed:function(){return V()>1},zIndex:function(e,t){if(!e||!T.canUseDOM())return null;var n=function(e,t){for(var n,o,r=U(e),i=t;i&&(n=H(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}(e,t);if(!n)return null;var o=[e].concat(U(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 q=F;const Z=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,l=e.positionMode,c=e.scale||1,s="fixed"!==l&&q.hasOffsetParent(n)?function(e,t,n,o){var r=T.eitherRect(q.position(e,t,o),n);return T.scaleRect(r,o)}(t,n,a,c):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:q.scrollPosition(t)}(e,t),i=T.eitherRect(q.offset(e),n),a=2*o,l=q.stackingElementScroll(t);1!==o&&l&&(l.x/=a,l.y/=a);var c=q.stackingElementOffset(t);return 1!==o&&c&&(c.left/=a,c.top/=a),q.removeScroll(q.addScroll(T.removeStackingOffset(T.scaleRect(i,o),c),l),r)}(t,n,a,c),u=T.scaleRect(q.offset(n),c);return q.align({anchorAlign:o,anchorRect:s,elementAlign:r,elementRect:u,margin:i})};var G,$={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654508846,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"},J=(G=function(e,t){return G=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])},G(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}G(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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)};function ee(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 te,ne={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(te||(te={}));var oe="k-animation-container-shown",re=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:te.hidden,previous:te.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:te.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,l=t.anchor,c=t.margin,s=t.scale,u=t.positionMode,p=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,l=e.margin,c=e.scale||1,s=q.offsetAtPoint(o,n),u=T.scaleRect(s,c),p=T.scaleRect(q.offset(t),c),f=T.eitherRect(p,n),d=e.viewPort||q.windowViewPort(o);d.width=d.width/c,d.height=d.height/c;var h=q.restrictToView({anchorAlign:r,anchorRect:f,collisions:a,elementAlign:i,elementRect:u,margin:l,viewPort:d}),v=q.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}}({anchor:l,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:Z({anchor:l,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:c,positionMode:u,scale:s}),margin:n.props.margin});if(e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",n._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},n.props.onPosition){var f={target:n,flipped:p.flipped,fitted:p.fitted};n.props.onPosition.call(void 0,f)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(oe),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,c=i.horizontal,s=i.vertical;r="left"===c&&"center"===s?"right":"right"===c&&"center"===s?"left":"top"===s?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,c=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),a(e),"exit"===o&&(e.style.display="none"),r())};e.addEventListener("transitionend",s);var u=e.ownerDocument;if(u){var p=u.defaultView;if(p){var f=function(){a(e),e.classList.add(i),p.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(c)}))};l?p.requestAnimationFrame(f):f()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(oe),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===te.hiding&&n.state.previous===te.shown&&n.setState({current:te.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,c.s)($),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var l=0;n=n||{};var c=function(){l=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var s=(new Date).getTime();l||!1!==n.leading||(l=s);var u=t-(s-l);return r=void 0,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),l=s,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,u)),a}}(n.reposition.bind(n),16.666666666666668),n}return J(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,i=e.appendTo,a=e.collision,l=e.popupAlign,c=e.className,s=e.popupClass,u=e.style,p=e.offset,f=e.contentKey,d=Q(Q({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:l,className:c,popupClass:s,style:u,offset:p,contentKey:f}});return e.show?t.current===te.hidden||t.current===te.hiding?Q(Q({},d),{current:te.showing,previous:t.current}):t.current===te.showing?Q(Q({},d),{current:te.shown,previous:t.current}):t.current!==te.shown||ee(p,t.props.offset)&&ee(r,t.props.anchorAlign)&&ee(i,t.props.appendTo)&&ee(a,t.props.collision)&&ee(l,t.props.popupAlign)&&ee(u,t.props.style)&&o===t.props.anchor&&s===t.props.popupClass&&c===t.props.className?d:Q(Q({},d),{current:te.reposition,previous:t.current}):t.current===te.hiding||t.current===te.hidden?Q(Q({},d),{current:te.hidden,previous:t.current}):Q(Q({},d),{current:te.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===te.showing&&this._popup?this.show(this._popup):this.state.current===te.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===te.reposition&&this.state.previous===te.shown?this.setState({current:te.shown,previous:this.state.current}):this.state.current===te.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===te.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,l=t.show,c=t.id,f=t.positionMode,d=this.props.appendTo?this.props.appendTo:s.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===te.reposition&&this.state.previous===te.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:f,top:0,left:-1e4},this.props.style||{}),v=this.state.current===te.hiding;if((l||v)&&d){var m=this.getCurrentZIndex(),g=o.createElement(u.$.Provider,{value:m},o.createElement("div",{className:(0,p.A)("k-animation-container","k-animation-container-relative",i),id:c,ref:function(t){return e._popup=t},style:Q({zIndex:m},h)},o.createElement("div",{className:(0,p.A)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?r.createPortal(g,d):g}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=q.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:te.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([y,b,w]),vertical:i.oneOf([y,b,w])}),anchorAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,f])}),popupAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,f])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:y,vertical:b},anchorAlign:{horizontal:v,vertical:f},popupAlign:{horizontal:v,vertical:g},offset:ne,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=u.$,t.displayName="PopupComponent",t}(o.Component),ie=function(){return ie=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},ie.apply(this,arguments)},ae=o.createContext((function(e){return e})),le=o.forwardRef((function(e,t){var n=o.useContext(ae).call(void 0,e);return o.createElement(re,ie({ref:t},n))}));le.displayName="Popup"},827:(e,t,n)=>{n.d(t,{N:()=>o});var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},47:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},259:(e,t,n)=>{n.d(t,{$:()=>r,u:()=>i});var o=n(899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},376:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>X,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>$,DragAndDrop:()=>Te,Draggable:()=>He,Droppable:()=>Ke,FormComponent:()=>m,Icon:()=>ae,Keys:()=>C,SvgIcon:()=>se,Typography:()=>Oe,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>l,classNames:()=>c.A,clone:()=>p,cloneArray:()=>h,cloneDate:()=>u,cloneObject:()=>f,cloneValue:()=>d,createPropsContext:()=>F,dispatchEvent:()=>H,extendDataItem:()=>I,focusFirstFocusableChild:()=>v,getItemPath:()=>j,getScrollbarWidth:()=>x,getTabIndex:()=>g,getter:()=>O,guid:()=>E,hasRelativeStackingContext:()=>U,kendoThemeMaps:()=>We,mapTree:()=>A,mapTreeItem:()=>L,noop:()=>k,setScrollbarWidth:()=>P,setter:()=>M,useAsyncFocusBlur:()=>K,useCollection:()=>ee,useCustomComponent:()=>Q,useDir:()=>Z,useDocument:()=>te,useDraggable:()=>Ue,useDroppable:()=>Be,useMouse:()=>J,usePropsContext:()=>Y,useRtl:()=>G,useWindow:()=>ne,useZIndexContext:()=>o.u,validatePackage:()=>z.s,withPropsContext:()=>q});var o=n(259),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();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}(),a=n(827),l=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},c=n(47),s=n(899),u=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return u(e);if(s.isValidElement(e))return s.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},m=function(){},g=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},y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(e){var t=[];return e.replace(y,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var w={};function O(e){if(w[e])return w[e];var t=b(e);return w[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},w[e]}w.undefined=function(){};var E=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},C={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},k=function(){},x=function(){return!(!a.N||!document.body)&&(new i).scrollbarWidth},P=function(){if(!a.N||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},D={undefined:function(e){return e}},T=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function M(e){if(D[e])return D[e];var t=b(e);return D[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||T(t[a+1],o);r[t[i]]=n},D[e]}var R=function(){return R=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},R.apply(this,arguments)},N=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 S(e,t,n){var o;return n?R(R({},e),((o={})[t]=n.length?N([],n,!0):void 0,o)):e&&e[t]?N([],e[t],!0):[]}function _(e,t,n){if(e[t]){var o=S(e,t).map((function(e){return _(e,t,n)}));return n(S(e,t,o))}return n(e)}var A=function(e,t,n){return N([],e.map((function(e){return _(e,t,n)})),!0)},L=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var l=i.length>1?i[i.length-2]:e,c=t[t.length-1],s=o(l[c]);l.splice(c,1,s)},I=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},j=function(e,t,n){var o=[],r=N([],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},z=n(6),U=function(e){if(!a.N)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: '.concat(10,'px;">child</div>'),t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function H(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 K(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=s.useRef(!1),a=s.useRef(0),l=s.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),c=s.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call(void 0,e[0]),i.current||(i.current=!0,t&&t.call.apply(t,B([void 0],e,!1)))}),[i,t,o]),u=s.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call(void 0,e[0]),l((function(){i.current&&n&&(i.current=!1,n.call.apply(n,B([void 0],e,!1)))}))}),[i,l,n,r]);return s.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:c,onBlur:u}}var W=function(){return W=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},W.apply(this,arguments)},X=function(e){var t=e.children,n=K({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return s.createElement(s.Fragment,null,t.call(void 0,W({},n)))},Y=function(e,t){return s.useContext(e)(t)},V=function(){return V=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},V.apply(this,arguments)},F=function(){return s.createContext((function(e){return e}))},q=function(e,t){return s.forwardRef((function(n,o){var r=Y(e,n);return s.createElement(t,V({},r,{ref:o}))}))};function Z(e,t,n){var o=s.useState(t),r=o[0],i=o[1];return s.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}function G(e,t,n){var o=s.useState(t),r=o[0],i=o[1];return s.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var $,J=function(e,t,n){void 0===n&&(n={});var o=s.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]),r=s.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:s.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:r,onMouseDown:o,onDoubleClick:s.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:s.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:s.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:s.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:s.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:s.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])}},Q=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}($||($={}));var ee=function(e){void 0===e&&(e=[]);var t=s.useRef(e),n=s.useCallback((function(e){switch(e.type){case $.add:t.current.push(e.item);break;case $.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},te=function(e){var t=s.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return s.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},ne=function(e){var t=te(e);return s.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},oe=n(189),re={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ie=function(){return ie=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},ie.apply(this,arguments)},ae=s.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,l=e.style,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style"]),p=s.useRef(null),f=s.useRef(null);s.useImperativeHandle(p,(function(){return{element:f.current}})),s.useImperativeHandle(t,(function(){return p.current}));var d=s.useMemo((function(){return r||le.themeColor}),[r]),h=s.useMemo((function(){return i||le.size}),[i]),v=s.useMemo((function(){return a||le.flip}),[a]),m=s.useMemo((function(){return(0,c.A)("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},re[h],n)}),[o,d,h,v,n]),g=J(e,p);return s.createElement("span",ie({ref:f},u,g,{className:m,style:l,role:"presentation"}))}));ae.propTypes={style:oe.object,classNames:oe.string,name:oe.string,themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:oe.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:oe.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",themeColor:"inherit",flip:"default"};ae.displayName="KendoIcon";var ce=function(){return ce=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},ce.apply(this,arguments)},se=s.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,l=e.size,u=e.style,p=e.svgStyle,f=e.themeColor,d=e.viewBox,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=s.useRef(null);s.useImperativeHandle(t,(function(){return{element:v.current}}));var m=s.useMemo((function(){return i?i.name:ue.icon}),[i]),g=s.useMemo((function(){return f||ue.themeColor}),[f]),y=s.useMemo((function(){return l||ue.size}),[l]),b=s.useMemo((function(){return a||ue.flip}),[a]),w=s.useMemo((function(){return d||ue.viewBox}),[d]),O=s.useMemo((function(){return(0,c.A)("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},re[y],o)}),[m,g,y,b,o]),E=s.useMemo((function(){return e.width&&e.height?ce({width:e.width,height:e.height},u):e.width?ce({width:e.width,height:e.width},u):e.height?ce({width:e.height,height:e.height},u):ce({},u)}),[e.width,e.height,u]);return s.createElement("span",{className:O,style:E,ref:v},s.createElement("svg",ce({className:r,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));se.propTypes={style:oe.object,classNames:oe.string,children:oe.any,icon:oe.object,themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:oe.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:oe.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};se.displayName="KendoSvgIcon";var pe={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},fe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},de={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},he={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ve={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},me={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ge={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ye={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},be=function(){return be=Object.assign||function(e){for(var t,n=1,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},be.apply(this,arguments)},we=function(e){var t=s.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,l=t.fontWeight,c=t.textAlign,u=t.textTransform,p=t.themeColor,f=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=s.useRef(null),v=s.useRef(null);s.useImperativeHandle(h,(function(){return{element:v.current,props:t}})),s.useImperativeHandle(n,(function(){return h.current}));var m=e;return s.createElement(m,be({id:o,ref:v,className:["k-".concat("p"===e?"paragraph":e),pe[a],fe[l],me[c],ge[u],ye[p],function(){if(void 0!==f){if("string"==typeof f)return[de[f]];if("number"==typeof f&&f>=0&&f<=24)return["k-m-".concat(f)];if("object"==typeof f){var e=[];return Object.keys(f).forEach((function(t){var n,o,r;null!==f[t]&&void 0!==f[t]&&e.push((n=t,r="string"==typeof(o=f[t])?he[o]:o,"".concat(ve[n]).concat(r)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:r},d),t.children)}));return t.propTypes={style:oe.object,className:oe.string,fontSize:oe.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:oe.oneOf(["light","normal","bold"]),margin:oe.oneOfType([oe.number,oe.object,oe.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:oe.oneOf(["left","right","center","justify"]),textTransform:oe.oneOf(["lowercase","uppercase","capitalize"]),themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},Oe={h1:we("h1"),h2:we("h2"),h3:we("h3"),h4:we("h4"),h5:we("h5"),h6:we("h6"),p:we("p"),code:we("code"),pre:we("pre")},Ee=function(){return Ee=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},Ee.apply(this,arguments)},Ce=function(e,t,n){var o=s.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,s.useCallback((function(e,t){i(e),n&&n.call(void 0,Ee(Ee({},t),{value:e}))}),[n,i])]},ke=s.createContext([void 0,k]),xe=s.createContext([void 0,k]),Pe=s.createContext([[],k,k]),De=s.createContext([[],k,k]),Te=function(e){var t=Ce(null,void 0),n=t[0],o=t[1],r=Ce(null,void 0),i=r[0],a=r[1],l=ee([]),c=l[0],u=l[1],p=ee([]),f=p[0],d=p[1];return s.createElement(ke.Provider,{value:[n,o]},s.createElement(xe.Provider,{value:[i,a]},s.createElement(Pe.Provider,{value:[c,function(e){u({type:$.add,item:e})},function(e){u({type:$.remove,item:e})}]},s.createElement(De.Provider,{value:[f,function(e){d({type:$.add,item:e})},function(e){d({type:$.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Me,Re=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},Ne=function(e){return e&&e.ownerDocument||window.document},Se=function(e){var t=Re(),n=Ne(e);return t.edge||t.safari?n.body:n.documentElement},_e=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},Ae=function(e){var t=Se(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&&!_e(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"}(Me||(Me={}));var Le=function(){},Ie=function(e,t,n){void 0===n&&(n={});var o,r,i,a,l,c=n.onIsPressedChange,s=void 0===c?Le:c,u=n.onIsScrollingChange,p=void 0===u?Le:u,f=n.onVelocityChange,d=void 0===f?Le:f,h=n.onOffsetChange,v=void 0===h?Le:h,m=n.onPageOffsetChange,g=void 0===m?Le:m,y=n.onClientOffsetChange,b=void 0===y?Le:y,w=n.onScrollOffsetChange,O=void 0===w?Le:w,E=n.onInitialScrollOffsetChange,C=void 0===E?Le:E,k=t.payload,x=k.element,P=k.hint,D=e.autoScrollDirection,T=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 Me.POINTER_DOWN:if(M.type===Me.POINTER_DOWN&&(!M.originalEvent.isPrimary||0!==M.originalEvent.button))break;case Me.MOUSE_DOWN:if(M.type===Me.MOUSE_DOWN&&M.originalEvent.which&&M.originalEvent.which>1||e.ignoreMouse)break;case Me.TOUCH_START:if(M.type===Me.TOUCH_START&&1!==M.originalEvent.touches.length)break;case Me.START:var R=T||Ae(t.payload.element);C(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),b({x:M.clientX,y:M.clientY}),g({x:M.pageX,y:M.pageY}),v({x:M.offsetX,y:M.offsetY}),s(!0),k.onPress&&k.onPress(M);break;case Me.SCROLL:if(M.type===Me.SCROLL&&!e.pressed)break;var N=T||Ae(x),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 Me.POINTER_MOVE:if(M.type===Me.POINTER_MOVE&&!M.originalEvent.isPrimary)break;case Me.MOUSE_MOVE:case Me.TOUCH_MOVE:if(M.type===Me.TOUCH_MOVE&&1!==M.originalEvent.touches.length)break;case Me.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==M.originalEvent.type&&x){var _=Ne(x),A=T||Ae(_.elementFromPoint(M.clientX,M.clientY)),L=(o=M.pageX,r=M.pageY,i=function(e,t){var n=Se(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}}(A,function(e){var t=Ne(e);return t&&t.defaultView||window}(x)),a={x:0,y:0},l=50,o-i.left<l?a.x=-(l-(o-i.left)):i.right-o<l&&(a.x=l-(i.right-o)),r-i.top<l?a.y=-(l-(r-i.top)):i.bottom-r<l&&(a.y=l-(i.bottom-r)),a);d({x:D&&!1===D.horizontal?0:L.x,y:D&&!1===D.vertical?0:L.y}),p(0!==L.y||0!==L.x)}!e.drag&&k.onDragStart&&k.onDragStart(M),k.onDrag&&k.onDrag(M);var I=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),a=Math.min(o.left+o.width,n.left+n.width),l=Math.min(o.top+o.height,n.top+n.height),c=a-i,s=l-r;if(i<a&&r<l){var u=o.width*o.height,p=n.width*n.height,f=c*s;return Number((f/(u+p-f)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(P||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(P||x)}))),j=e.drops.find((function(e){return e.element===I}));j&&I&&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,T||Ae(I))&&I!==x?(e.drop&&e.drop.element)!==I?(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}),g({x:M.pageX,y:M.pageY});break;case Me.POINTER_UP:if(M.type===Me.POINTER_UP&&!M.originalEvent.isPrimary)break;case Me.MOUSE_UP:case Me.TOUCH_END:if(M.type===Me.TOUCH_END&&1!==M.originalEvent.touches.length)break;case Me.END:s(!1),p(!1),k.onRelease&&k.onRelease(M),e.drop&&e.drop.onDrop&&e.drop.onDrop(M),k.onDragEnd&&k.onDragEnd(M);break;case Me.POINTER_CANCEL:case Me.CONTEXT_MENU:case Me.TOUCH_CANCEL:case Me.CANCEL:s(!1),p(!1),k.onDragEnd&&k.onDragEnd(M),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(M)}},je=function(e,t){if(e){var n,o;e===Se(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,a=e.scrollLeft+t.x,l=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),l?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},ze=function(e,t){var n=s.useContext(e),o=n[0],r=n[1],i=s.useState(t),a=i[0],l=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):l(e[0])}]};function Ue(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?k:o,i=t.onRelease,a=void 0===i?k:i,l=t.onDragStart,c=void 0===l?k:l,u=t.onDrag,p=void 0===u?k:u,f=t.onDragEnd,d=void 0===f?k:f,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,E=s.useState(!1),C=E[0],x=E[1],P=s.useState(!1),D=P[0],T=P[1],M=ze(xe)[0],R=ze(ke),N=R[0],S=R[1],_=s.useContext(De)[0],A=s.useContext(Pe),L=A[0],I=A[1],j=A[2],z=s.useRef({x:0,y:0}),U=s.useRef(),H=s.useRef(!1),B=s.useRef(),K=s.useRef(null),W=s.useRef(!1),X=s.useRef({x:0,y:0}),Y=s.useRef({x:0,y:0}),V=s.useRef({x:0,y:0}),F=s.useRef({x:0,y:0}),q=s.useRef({x:0,y:0}),Z=s.useRef({x:0,y:0}),G=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&G,J=s.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=s.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),ee=s.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=s.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=s.useRef(null);s.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:ve,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:me,data:e.current}}));var oe=s.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=s.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=s.useCallback((function(){return{drag:N?N.current:null,drop:M?M.current:null,drags:L.map((function(e){return e.current})),drops:_.map((function(e){return e.current})),pressed:C,ignoreMouse:H.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:V.current,initialClientOffset:F.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:D}}),[N,M,L,_,C,b,te,D]),ae=s.useCallback((function(e){x(e)}),[]),le=s.useCallback((function(e){T(e)}),[]),ce=s.useCallback((function(e){z.current=e}),[]),se=s.useCallback((function(e){X.current=e}),[]),ue=s.useCallback((function(e){V.current=e}),[]),pe=s.useCallback((function(e){Y.current=e}),[]),fe=s.useCallback((function(e){F.current=e}),[]),de=s.useCallback((function(e){q.current=e}),[]),he=s.useCallback((function(e){Z.current=e}),[]),ve=s.useCallback((function(e){r(e)}),[r]),me=s.useCallback((function(e){a(e)}),[a]),ge=s.useCallback((function(t){S(ne,{target:e.current,event:t}),c(t)}),[S,e,c]),ye=s.useCallback((function(e){p(e)}),[p]),be=s.useCallback((function(t){W.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),we=s.useCallback((function(e){Ie(ie(),{event:e,payload:ne.current},{onVelocityChange:ce,onOffsetChange:se,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:fe,onScrollOffsetChange:de,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:le})}),[ie,ce,se,pe,ue,fe,he,ae,de,le]),Oe=s.useCallback((function(e){we(e)}),[we]),Ee=s.useCallback((function(e){we(e)}),[we]),Ce=s.useCallback((function(e){we(e)}),[we]),Te=s.useCallback((function(e){we(e)}),[we]),Me=s.useCallback((function(e){we(e)}),[we]),Re=s.useCallback((function(e){we(e)}),[we]),Ne=s.useCallback((function(e){we(e)}),[we]),Se=s.useCallback((function(e){e.preventDefault(),we(e)}),[we]),_e=s.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Le=s.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ue=s.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();H.current=!0,B.current=t.setTimeout((function(){H.current=!1}),2e3)}we(e)}),[we,re]),He=s.useCallback((function(e){we(e)}),[we]),Be=s.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=s.useCallback((function(){return I(ne),function(){j(ne)}}),[j,I]);s.useEffect((function(){var e=re();if(D){var t=ee()||Ae(document.elementFromPoint(V.current.x,V.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){je(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,D]),s.useEffect(Be,[Be]),s.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=Ae(t),K.current&&K.current.addEventListener("scroll",He,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),C&&(n.addEventListener("pointermove",Ee),n.addEventListener("pointerup",Te,!0),n.addEventListener("contextmenu",Se),n.addEventListener("pointercancel",Ce,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Me,{passive:!0}),g||(t.addEventListener("touchstart",_e,{passive:!0}),C&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ue,{passive:!0})))),C&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",Ne,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",He),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Me),t.removeEventListener("touchstart",_e),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ue)),n.removeEventListener("pointermove",Ee),n.removeEventListener("pointerup",Te,!0),n.removeEventListener("contextmenu",Se),n.removeEventListener("pointercancel",Ce),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",Ne),e.removeEventListener("touchmove",k),e.clearTimeout(B.current)}}),[C,re,J,oe,g,$,Se,Me,Re,Ne,Ce,Oe,Ee,Te,Ue,Le,_e,He]),s.useEffect((function(){return function(){W.current=!0}}),[]),s.useLayoutEffect(Ke,[Ke])}var He=s.forwardRef((function(e,t){var n=s.useRef(null),o=s.useRef(null),r=s.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);s.useImperativeHandle(o,(function(){return{element:r()||null}})),s.useImperativeHandle(t,(function(){return o.current})),s.useImperativeHandle(e.childRef,(function(){return n.current}));var i=s.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=s.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),l=s.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),c=s.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),u=s.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return Ue(n,{onPress:i,onRelease:a,onDragStart:l,onDrag:c,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?s.cloneElement(s.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,o=void 0===n?k:n,r=t.onDragOver,i=void 0===r?k:r,a=t.onDragLeave,l=void 0===a?k:a,c=t.onDrop,u=void 0===c?k:c,p=ze(xe)[1],f=s.useContext(De),d=f[1],h=f[2],v=s.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=s.useRef(null);s.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=s.useCallback((function(t){p(m,{target:e.current,event:t}),o(t)}),[p,e,o]),y=s.useCallback((function(e){i(e)}),[i]),b=s.useCallback((function(t){p(null,{target:e.current,event:t}),l(t)}),[p,e,l]),w=s.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),O=s.useCallback((function(){return d(m),function(){h(m)}}),[h,d]);s.useLayoutEffect(O,[O])}He.displayName="KendoReactDraggable";var Ke=s.forwardRef((function(e,t){var n=s.useRef(null),o=s.useRef(null),r=s.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);s.useImperativeHandle(o,(function(){return{element:r()||void 0}})),s.useImperativeHandle(t,(function(){return o.current})),s.useImperativeHandle(e.childRef,(function(){return n.current}));var i=s.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=s.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),l=s.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),c=s.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Be(n,{onDragEnter:i,onDragOver:a,onDragLeave:l,onDrop:c}),e.children?s.cloneElement(s.Children.only(e.children),{ref:n}):null}));Ke.displayName="KendoReactDroppable";var We={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},6:(e,t,n)=>{n.d(t,{s:()=>r});var o=n(302);function r(e){if(void 0!==o)o.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)}}},302:e=>{e.exports=o},189:e=>{e.exports=n},899:t=>{t.exports=e},994:e=>{e.exports=t}},i={};function a(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,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{var e=l;Object.defineProperty(e,"__esModule",{value:!0}),e.PopoverActionsBar=e.Popover=e.Tooltip=void 0;var t=a(593);Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return t.Tooltip}});var n=a(280);Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return n.Popover}});var o=a(311);Object.defineProperty(e,"PopoverActionsBar",{enumerable:!0,get:function(){return o.PopoverActionsBar}})})(),l})()}));
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-tooltip',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654509845,
|
|
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
|
};
|
|
@@ -12,4 +12,4 @@ export interface PopoverHandle {
|
|
|
12
12
|
/**
|
|
13
13
|
* Represents the Popover component.
|
|
14
14
|
*/
|
|
15
|
-
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<PopoverHandle>>;
|
|
15
|
+
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<PopoverHandle | null>>;
|
|
@@ -16,4 +16,4 @@ export interface PopoverActionsBarHandle {
|
|
|
16
16
|
/**
|
|
17
17
|
* Represents the PopoverActionsBar component.
|
|
18
18
|
*/
|
|
19
|
-
export declare const PopoverActionsBar: React.ForwardRefExoticComponent<PopoverActionsBarProps & React.RefAttributes<PopoverActionsBarHandle>>;
|
|
19
|
+
export declare const PopoverActionsBar: React.ForwardRefExoticComponent<PopoverActionsBarProps & React.RefAttributes<PopoverActionsBarHandle | null>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as PropTypes from 'prop-types';
|
|
3
|
+
import { ZIndexContext } from '@progress/kendo-react-common';
|
|
3
4
|
import { TooltipProps } from './TooltipProps';
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
@@ -31,7 +32,11 @@ export declare class Tooltip extends React.PureComponent<TooltipProps, TooltipSt
|
|
|
31
32
|
/**
|
|
32
33
|
* @hidden
|
|
33
34
|
*/
|
|
34
|
-
static contextType: React.Context<
|
|
35
|
+
static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
context: React.ContextType<typeof ZIndexContext>;
|
|
35
40
|
/**
|
|
36
41
|
* @hidden
|
|
37
42
|
*/
|
|
@@ -65,7 +70,7 @@ export declare class Tooltip extends React.PureComponent<TooltipProps, TooltipSt
|
|
|
65
70
|
/**
|
|
66
71
|
* @hidden
|
|
67
72
|
*/
|
|
68
|
-
render(): JSX.Element;
|
|
73
|
+
render(): "" | JSX.Element | null;
|
|
69
74
|
private handleBodyMousemove;
|
|
70
75
|
private onClose;
|
|
71
76
|
private showToolTip;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import * as React from 'react';
|
|
@@ -43,6 +47,10 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
43
47
|
__extends(Tooltip, _super);
|
|
44
48
|
function Tooltip(props) {
|
|
45
49
|
var _this = _super.call(this, props) || this;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
_this.context = 0;
|
|
46
54
|
/**
|
|
47
55
|
* @hidden
|
|
48
56
|
*/
|
|
@@ -200,15 +208,18 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
200
208
|
}
|
|
201
209
|
var position;
|
|
202
210
|
if (_this.props.onPosition) {
|
|
203
|
-
|
|
211
|
+
var ev = {
|
|
204
212
|
element: el,
|
|
205
213
|
targetElement: _this.state.targetElement,
|
|
206
214
|
mouseTop: _this.top,
|
|
207
215
|
mouseLeft: _this.left,
|
|
208
216
|
anchorElement: _this.props.anchorElement,
|
|
209
217
|
position: _this.props.position,
|
|
210
|
-
target: _this
|
|
211
|
-
|
|
218
|
+
target: _this,
|
|
219
|
+
syntheticEvent: null,
|
|
220
|
+
nativeEvent: null
|
|
221
|
+
};
|
|
222
|
+
position = _this.props.onPosition.call(undefined, ev);
|
|
212
223
|
}
|
|
213
224
|
else {
|
|
214
225
|
position = _this.position(el);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/npm/main.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PopoverActionsBar = exports.Popover = exports.Tooltip = void 0;
|
|
3
4
|
var Tooltip_1 = require("./tooltip/Tooltip");
|
|
4
|
-
exports
|
|
5
|
+
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
|
|
5
6
|
var Popover_1 = require("./popover/Popover");
|
|
6
|
-
exports
|
|
7
|
+
Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return Popover_1.Popover; } });
|
|
7
8
|
var PopoverActionsBar_1 = require("./popover/PopoverActionsBar");
|
|
8
|
-
exports
|
|
9
|
+
Object.defineProperty(exports, "PopoverActionsBar", { enumerable: true, get: function () { return PopoverActionsBar_1.PopoverActionsBar; } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageMetadata = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ exports.packageMetadata = {
|
|
|
7
8
|
name: '@progress/kendo-react-tooltip',
|
|
8
9
|
productName: 'KendoReact',
|
|
9
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
11
|
+
publishDate: 1654509845,
|
|
11
12
|
version: '',
|
|
12
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
14
|
};
|
|
@@ -12,4 +12,4 @@ export interface PopoverHandle {
|
|
|
12
12
|
/**
|
|
13
13
|
* Represents the Popover component.
|
|
14
14
|
*/
|
|
15
|
-
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<PopoverHandle>>;
|
|
15
|
+
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<PopoverHandle | null>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Popover = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var PropTypes = require("prop-types");
|
|
5
6
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -46,7 +47,7 @@ var getContent = function (children) {
|
|
|
46
47
|
* Represents the Popover component.
|
|
47
48
|
*/
|
|
48
49
|
exports.Popover = React.forwardRef(function (props, ref) {
|
|
49
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
50
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
50
51
|
var callout = props.callout, position = props.position, title = props.title, children = props.children, show = props.show, anchor = props.anchor, appendTo = props.appendTo, offset = props.offset, animate = props.animate, positionMode = props.positionMode, scale = props.scale, popoverClass = props.popoverClass, className = props.className, id = props.id, style = props.style, collision = props.collision, contentStyle = props.contentStyle, onPosition = props.onPosition, onClose = props.onClose, onOpen = props.onOpen;
|
|
51
52
|
var _a = React.useState(false), flipped = _a[0], setFlipped = _a[1];
|
|
52
53
|
var isVertical = position === 'top' || position === 'bottom';
|
|
@@ -99,7 +100,7 @@ exports.Popover = React.forwardRef(function (props, ref) {
|
|
|
99
100
|
return (React.createElement(kendo_react_common_1.ZIndexContext.Provider, { value: currentZindex },
|
|
100
101
|
React.createElement(kendo_react_popup_1.Popup, { id: id, animate: animate, collision: collision, anchor: anchor, offset: offset, margin: margin, popupAlign: popupAlign, anchorAlign: anchorAlign, appendTo: appendTo, show: show, scale: scale, positionMode: positionMode, style: style, className: className, popupClass: basePopupClass, onOpen: handleOpen, onClose: handleClose, onPosition: handlePosition },
|
|
101
102
|
callout && position &&
|
|
102
|
-
(React.createElement("div", { className: kendo_react_common_1.classNames('k-popover-callout', calloutClass) })),
|
|
103
|
+
(React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-popover-callout', calloutClass) })),
|
|
103
104
|
title && (React.createElement("div", { className: 'k-popover-header' }, title)),
|
|
104
105
|
React.createElement("div", { className: "k-popover-body", style: contentStyle }, getContent(children)),
|
|
105
106
|
getActionBar(children))));
|
|
@@ -16,4 +16,4 @@ export interface PopoverActionsBarHandle {
|
|
|
16
16
|
/**
|
|
17
17
|
* Represents the PopoverActionsBar component.
|
|
18
18
|
*/
|
|
19
|
-
export declare const PopoverActionsBar: React.ForwardRefExoticComponent<PopoverActionsBarProps & React.RefAttributes<PopoverActionsBarHandle>>;
|
|
19
|
+
export declare const PopoverActionsBar: React.ForwardRefExoticComponent<PopoverActionsBarProps & React.RefAttributes<PopoverActionsBarHandle | null>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as PropTypes from 'prop-types';
|
|
3
|
+
import { ZIndexContext } from '@progress/kendo-react-common';
|
|
3
4
|
import { TooltipProps } from './TooltipProps';
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
@@ -31,7 +32,11 @@ export declare class Tooltip extends React.PureComponent<TooltipProps, TooltipSt
|
|
|
31
32
|
/**
|
|
32
33
|
* @hidden
|
|
33
34
|
*/
|
|
34
|
-
static contextType: React.Context<
|
|
35
|
+
static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
context: React.ContextType<typeof ZIndexContext>;
|
|
35
40
|
/**
|
|
36
41
|
* @hidden
|
|
37
42
|
*/
|
|
@@ -65,7 +70,7 @@ export declare class Tooltip extends React.PureComponent<TooltipProps, TooltipSt
|
|
|
65
70
|
/**
|
|
66
71
|
* @hidden
|
|
67
72
|
*/
|
|
68
|
-
render(): JSX.Element;
|
|
73
|
+
render(): "" | JSX.Element | null;
|
|
69
74
|
private handleBodyMousemove;
|
|
70
75
|
private onClose;
|
|
71
76
|
private showToolTip;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
30
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
29
31
|
t[p] = s[p];
|
|
30
32
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
31
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
32
|
-
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
33
37
|
return t;
|
|
34
38
|
};
|
|
35
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Tooltip = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var ReactDOM = require("react-dom");
|
|
38
43
|
var PropTypes = require("prop-types");
|
|
@@ -45,6 +50,10 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
45
50
|
__extends(Tooltip, _super);
|
|
46
51
|
function Tooltip(props) {
|
|
47
52
|
var _this = _super.call(this, props) || this;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
_this.context = 0;
|
|
48
57
|
/**
|
|
49
58
|
* @hidden
|
|
50
59
|
*/
|
|
@@ -63,7 +72,7 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
63
72
|
var targetElement = _this.state.targetElement;
|
|
64
73
|
var currentDocument = targetElement ? targetElement.ownerDocument : document;
|
|
65
74
|
var element = currentDocument && currentDocument.elementFromPoint(event.clientX, event.clientY);
|
|
66
|
-
if (utils_1.isTooltipElement(element)) {
|
|
75
|
+
if ((0, utils_1.isTooltipElement)(element)) {
|
|
67
76
|
return;
|
|
68
77
|
}
|
|
69
78
|
if (_this.props.open) {
|
|
@@ -78,7 +87,7 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
78
87
|
*/
|
|
79
88
|
_this.handleMouseOver = function (event) {
|
|
80
89
|
var target = event.target;
|
|
81
|
-
if (!_this.isVisible(target) || utils_1.isTooltipElement(target) || target === _this.state.targetElement) {
|
|
90
|
+
if (!_this.isVisible(target) || (0, utils_1.isTooltipElement)(target) || target === _this.state.targetElement) {
|
|
82
91
|
return;
|
|
83
92
|
}
|
|
84
93
|
_this.showToolTip(event);
|
|
@@ -88,7 +97,7 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
88
97
|
_this.left = event.clientX;
|
|
89
98
|
};
|
|
90
99
|
_this.onClose = function (event) {
|
|
91
|
-
kendo_react_common_1.dispatchEvent(_this.props.onClose, event, _this, undefined);
|
|
100
|
+
(0, kendo_react_common_1.dispatchEvent)(_this.props.onClose, event, _this, undefined);
|
|
92
101
|
_this.setState({ targetElement: null, open: false, title: '' });
|
|
93
102
|
};
|
|
94
103
|
_this.setUpdateInterval = function () {
|
|
@@ -111,9 +120,9 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
111
120
|
}
|
|
112
121
|
};
|
|
113
122
|
_this.position = function (element) {
|
|
114
|
-
var domRect = utils_1.getDomRect(_this.state.targetElement);
|
|
115
|
-
var left = utils_1.getLeftPosition(_this.left, element.offsetWidth, domRect, _this.props.anchorElement, _this.props.position);
|
|
116
|
-
var top = utils_1.getTopPosition(_this.top, domRect, element.offsetHeight, _this.props.anchorElement, _this.props.position);
|
|
123
|
+
var domRect = (0, utils_1.getDomRect)(_this.state.targetElement);
|
|
124
|
+
var left = (0, utils_1.getLeftPosition)(_this.left, element.offsetWidth, domRect, _this.props.anchorElement, _this.props.position);
|
|
125
|
+
var top = (0, utils_1.getTopPosition)(_this.top, domRect, element.offsetHeight, _this.props.anchorElement, _this.props.position);
|
|
117
126
|
return { left: left, top: top };
|
|
118
127
|
};
|
|
119
128
|
_this.getTitle = function (element) {
|
|
@@ -143,7 +152,7 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
143
152
|
_this.getCurrentZIndex = function () {
|
|
144
153
|
return _this.context ? _this.context : DEFAULT_TOOLTIP_ZINDEX;
|
|
145
154
|
};
|
|
146
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
155
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
147
156
|
return _this;
|
|
148
157
|
}
|
|
149
158
|
/**
|
|
@@ -202,23 +211,26 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
202
211
|
}
|
|
203
212
|
var position;
|
|
204
213
|
if (_this.props.onPosition) {
|
|
205
|
-
|
|
214
|
+
var ev = {
|
|
206
215
|
element: el,
|
|
207
216
|
targetElement: _this.state.targetElement,
|
|
208
217
|
mouseTop: _this.top,
|
|
209
218
|
mouseLeft: _this.left,
|
|
210
219
|
anchorElement: _this.props.anchorElement,
|
|
211
220
|
position: _this.props.position,
|
|
212
|
-
target: _this
|
|
213
|
-
|
|
221
|
+
target: _this,
|
|
222
|
+
syntheticEvent: null,
|
|
223
|
+
nativeEvent: null
|
|
224
|
+
};
|
|
225
|
+
position = _this.props.onPosition.call(undefined, ev);
|
|
214
226
|
}
|
|
215
227
|
else {
|
|
216
228
|
position = _this.position(el);
|
|
217
229
|
}
|
|
218
230
|
el.style.left = position.left + 'px';
|
|
219
231
|
el.style.top = position.top + 'px';
|
|
220
|
-
}, className: kendo_react_common_1.classNames('k-animation-container', 'k-animation-container-fixed', 'k-animation-container-shown', this.props.className), style: __assign({ zIndex: currentZIndex }, this.props.style), tabIndex: 0 },
|
|
221
|
-
React.createElement("div", { className: kendo_react_common_1.classNames('k-tooltip', this.props.tooltipClassName), style: __assign({ position: 'relative' }, this.props.tooltipStyle) },
|
|
232
|
+
}, className: (0, kendo_react_common_1.classNames)('k-animation-container', 'k-animation-container-fixed', 'k-animation-container-shown', this.props.className), style: __assign({ zIndex: currentZIndex }, this.props.style), tabIndex: 0 },
|
|
233
|
+
React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-tooltip', this.props.tooltipClassName), style: __assign({ position: 'relative' }, this.props.tooltipStyle) },
|
|
222
234
|
React.createElement("div", { className: "k-tooltip-content" }, this.props.content &&
|
|
223
235
|
React.createElement(this.props.content, { title: this.state.title, target: this.state.targetElement })
|
|
224
236
|
|| this.state.title),
|
|
@@ -270,7 +282,7 @@ var Tooltip = /** @class */ (function (_super) {
|
|
|
270
282
|
}, this.props.openDelay);
|
|
271
283
|
}
|
|
272
284
|
if (this.state.title !== titleResult.title) {
|
|
273
|
-
kendo_react_common_1.dispatchEvent(this.props.onOpen, event, this, undefined);
|
|
285
|
+
(0, kendo_react_common_1.dispatchEvent)(this.props.onOpen, event, this, undefined);
|
|
274
286
|
}
|
|
275
287
|
};
|
|
276
288
|
Tooltip.prototype.isVisible = function (element) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTooltipElement = exports.toolTipSelectors = exports.getDomRect = exports.getTopPosition = exports.getLeftPosition = void 0;
|
|
3
4
|
var arrowWidth = 10;
|
|
4
5
|
var arrowHeight = 10;
|
|
5
6
|
/**
|
|
6
7
|
* @hidden
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
var getLeftPosition = function (left, elementWidth, targetElement, anchorElement, position) {
|
|
9
10
|
switch (position) {
|
|
10
11
|
case 'bottom':
|
|
11
12
|
return anchorElement === 'pointer'
|
|
@@ -36,10 +37,11 @@ exports.getLeftPosition = function (left, elementWidth, targetElement, anchorEle
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
};
|
|
40
|
+
exports.getLeftPosition = getLeftPosition;
|
|
39
41
|
/**
|
|
40
42
|
* @hidden
|
|
41
43
|
*/
|
|
42
|
-
|
|
44
|
+
var getTopPosition = function (top, targetElement, elementHeight, anchorElement, position) {
|
|
43
45
|
switch (position) {
|
|
44
46
|
case 'bottom':
|
|
45
47
|
return anchorElement === 'pointer'
|
|
@@ -70,15 +72,17 @@ exports.getTopPosition = function (top, targetElement, elementHeight, anchorElem
|
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
};
|
|
75
|
+
exports.getTopPosition = getTopPosition;
|
|
73
76
|
/**
|
|
74
77
|
* @hidden
|
|
75
78
|
*/
|
|
76
|
-
|
|
79
|
+
var getDomRect = function (currentTarget) {
|
|
77
80
|
if (currentTarget !== null) {
|
|
78
81
|
return currentTarget.getBoundingClientRect();
|
|
79
82
|
}
|
|
80
83
|
return document.body.getBoundingClientRect();
|
|
81
84
|
};
|
|
85
|
+
exports.getDomRect = getDomRect;
|
|
82
86
|
/**
|
|
83
87
|
* @hidden
|
|
84
88
|
*/
|
|
@@ -93,7 +97,7 @@ exports.toolTipSelectors = [
|
|
|
93
97
|
/**
|
|
94
98
|
* @hidden
|
|
95
99
|
*/
|
|
96
|
-
|
|
100
|
+
var isTooltipElement = function (element) {
|
|
97
101
|
if (element === null) {
|
|
98
102
|
return false;
|
|
99
103
|
}
|
|
@@ -106,3 +110,4 @@ exports.isTooltipElement = function (element) {
|
|
|
106
110
|
}
|
|
107
111
|
return exports.toolTipSelectors.filter(function (t) { return t === element.className; }).length > 0;
|
|
108
112
|
};
|
|
113
|
+
exports.isTooltipElement = isTooltipElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-tooltip",["react","@progress/kendo-react-common","prop-types","@progress/kendo-react-popup","react-dom"],function(l){var i,a,s,p,c;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){i=e(t)},function(t){a=e(t)},function(t){s=e(t)},function(t){p=e(t)},function(t){c=e(t)}],execute:function(){function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,n;o=[function(t,e){t.exports=a},function(t,e){t.exports=i},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653030816,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(1),o=o(2);e.PopoverActionsBar=r.forwardRef(function(t,e){var o=r.useRef(null),n=r.useRef(null);return r.useImperativeHandle(n,function(){return{props:t,element:o.current}}),r.useImperativeHandle(e,function(){return n.current}),r.createElement("div",{ref:o,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},t.children)}),e.PopoverActionsBar.propTypes={children:o.oneOfType([o.element,o.node])},e.PopoverActionsBar.defaultProps={},e.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(6),r=(e.Tooltip=r.Tooltip,o(9)),r=(e.Popover=r.Popover,o(4)),i=(e.PopoverActionsBar=r.PopoverActionsBar,e);for(n in i)l(n,i[n])},function(t,e,o){"use strict";var n,r,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)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&(o[r[n]]=t[r[n]]);return o},s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),p=o(7),c=o(2),u=o(0),f=o(8),d=o(0),m=o(3),o=(r=s.PureComponent,i(h,r),h.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},h.prototype.render=function(){var e,o=this;if(this.props.children)return n=(t=this.props).children,t=a(t,["children"]),e=null,s.createElement("div",{onMouseOver:function(t){e&&e.handleMouseOver(t)},onMouseOut:function(t){e&&e.handleMouseOut(t)}},s.createElement(h,l({ref:function(t){return e=t}},t)),n);if(!1===this.props.open)return null;var t=this.state.targetElement,n=this.getCurrentZIndex();return t&&this.state.title&&t.ownerDocument&&p.createPortal(s.createElement("div",{ref:function(t){var e;t&&(e=o.props.onPosition?o.props.onPosition.call(void 0,{element:t,targetElement:o.state.targetElement,mouseTop:o.top,mouseLeft:o.left,anchorElement:o.props.anchorElement,position:o.props.position,target:o}):o.position(t),t.style.left=e.left+"px",t.style.top=e.top+"px")},className:u.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:l({zIndex:n},this.props.style),tabIndex:0},s.createElement("div",{className:u.classNames("k-tooltip",this.props.tooltipClassName),style:l({position:"relative"},this.props.tooltipStyle)},s.createElement("div",{className:"k-tooltip-content"},this.props.content&&s.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&s.createElement("div",{ref:function(t){t&&(t.className=o.calloutClassName(),"auto"===o.props.position&&(o.left<window.screen.availWidth/2?t.style.left=o.props.setCalloutOnPositionAuto||"25%":t.style.left=o.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo||t.ownerDocument.body)},h.prototype.showToolTip=function(e){var t=this,o=(clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach(function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}),this.props.targetElement||e.target),n=this.getTitle(o);n.title?(n.element&&(n.element.titleExpando=n.title,n.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout(function(){t.willOpen&&t.setState({targetElement:o,open:!0,title:n.title},t.setUpdateInterval)},this.props.openDelay):this.setState({targetElement:o,open:!0,title:n.title},this.setUpdateInterval),this.state.title!==n.title&&u.dispatchEvent(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},h.prototype.isVisible=function(t){return!this.props.filter||this.props.filter(t)},h.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},h.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},h.contextType=u.ZIndexContext,h);function h(t){var o=r.call(this,t)||this;return o.state={targetElement:null,open:!1,title:""},o.top=0,o.left=0,o.willOpen=!1,o.handleMouseOut=function(t){var e=o.state.targetElement,e=e?e.ownerDocument:document,e=e&&e.elementFromPoint(t.clientX,t.clientY);f.isTooltipElement(e)||o.props.open||(clearInterval(o.updateIntervalId),o.willOpen=!1,o.onClose(t))},o.handleMouseOver=function(t){var e=t.target;o.isVisible(e)&&!f.isTooltipElement(e)&&e!==o.state.targetElement&&o.showToolTip(t)},o.handleBodyMousemove=function(t){o.top=t.clientY,o.left=t.clientX},o.onClose=function(t){u.dispatchEvent(o.props.onClose,t,o,void 0),o.setState({targetElement:null,open:!1,title:""})},o.setUpdateInterval=function(){o.props.updateInterval&&(o.updateIntervalId=setInterval(o.onIntervalUpdate,o.props.updateInterval))},o.onIntervalUpdate=function(){var t=o.state.targetElement;t&&(null===t.parentElement?o.onClose({target:t}):o.showToolTip({target:t}))},o.position=function(t){var e=f.getDomRect(o.state.targetElement);return{left:f.getLeftPosition(o.left,t.offsetWidth,e,o.props.anchorElement,o.props.position),top:f.getTopPosition(o.top,e,t.offsetHeight,o.props.anchorElement,o.props.position)}},o.getTitle=function(t){for(;t;){if(null!==t.getAttribute("title")||t.titleExpando)return{title:t.getAttribute("title")||t.titleExpando,element:t};t=o.props.parentTitle&&t.parentElement||null}return{title:"",element:t}},o.calloutClassName=function(){switch(o.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return o.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},o.getCurrentZIndex=function(){return o.context||100},d.validatePackage(m.packageMetadata),o}e.Tooltip=o},function(t,e){t.exports=c},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLeftPosition=function(t,e,o,n,r){switch(r){case"bottom":return"pointer"===n?t-e/2:o.left-e/2+o.width/2;case"left":return"pointer"===n?t-e-10:o.left-e-10;case"right":return"pointer"===n?t+10:o.right+10;case"top":return"pointer"===n?t-e/2:o.left-e/2+o.width/2;default:return"pointer"===n?t<window.screen.availWidth/2?t-10:t-e+10:t<window.screen.availWidth/2?o.left:o.right-e}},o.getTopPosition=function(t,e,o,n,r){switch(r){case"bottom":return"pointer"===n?t+10:e.bottom+10;case"left":case"right":return"pointer"===n?t-o/2:e.top-o/2+e.height/2;case"top":return"pointer"===n?t-o-10:e.top-o-10;default:return"pointer"===n?t<window.innerHeight/2?t+10:t-o-10:t<window.innerHeight/2?e.bottom+10:e.top-o-10}},o.getDomRect=function(t){return(null!==t?t:document.body).getBoundingClientRect()},o.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],o.isTooltipElement=function(e){if(null===e)return!1;for(var t=e;t;){if(null!==t&&t.classList&&t.classList.contains("k-tooltip"))return!0;t=null!==t.parentNode&&t.parentNode}return 0<o.toolTipSelectors.filter(function(t){return t===e.className}).length}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var j=o(1),n=o(2),A=o(0),D=o(0),S=o(3),R=o(10),B=o(4),z={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},U={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},H={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},L={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};e.Popover=j.forwardRef(function(t,e){D.validatePackage(S.packageMetadata);var o=t.callout,n=t.position,r=t.title,i=t.children,l=t.show,a=t.anchor,s=t.appendTo,p=t.offset,c=t.animate,u=t.positionMode,f=t.scale,d=t.popoverClass,m=t.className,h=t.id,v=t.style,g=t.collision,y=t.contentStyle,b=t.onPosition,k=t.onClose,O=t.onOpen,E=j.useState(!1),P=E[0],w=E[1],E="top"===n||"bottom"===n,E=t.margin||{vertical:o&&E?15:0,horizontal:o&&!E?15:0},T=H[n],I=L[n],_=j.useContext(A.ZIndexContext),_=_?_+2e3:12e3,x=j.useRef(null),e=(j.useImperativeHandle(x,function(){return{props:t}}),j.useImperativeHandle(e,function(){return x.current}),j.useCallback(function(t){var e;setTimeout(function(){return w(t.flipped)}),b&&(e={target:x.current,flipped:t.flipped,fitted:t.fitted},b.call(void 0,e))},[b,w])),C=j.useCallback(function(){var t;O&&(t={target:x.current},O.call(void 0,t))},[O]),N=j.useCallback(function(){var t;k&&(t={target:x.current},k.call(void 0,t))},[k]),M={"k-popover":!0,"k-popup":!1},P=(Array.isArray(d)?d.forEach(function(t){return M[t]=!0}):"object"==typeof d?Object.keys(d).forEach(function(t){M[t]=d[t]}):d&&(M[d]=!0),(P?U:z)[n]);return j.createElement(A.ZIndexContext.Provider,{value:_},j.createElement(R.Popup,{id:h,animate:c,collision:g,anchor:a,offset:p,margin:E,popupAlign:T,anchorAlign:I,appendTo:s,show:l,scale:f,positionMode:u,style:v,className:m,popupClass:M,onOpen:C,onClose:N,onPosition:e},o&&n&&j.createElement("div",{className:A.classNames("k-popover-callout",P)}),r&&j.createElement("div",{className:"k-popover-header"},r),j.createElement("div",{className:"k-popover-body",style:y},j.Children.toArray(i).filter(function(t){return t&&t.type!==B.PopoverActionsBar})),j.Children.toArray(i).filter(function(t){return t&&t.type===B.PopoverActionsBar})))}),e.Popover.propTypes={callout:n.bool,title:n.string,position:n.oneOf(["top","left","bottom","right"]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),anchor:function(t){t=t.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed."):null},appendTo:function(t){t=t.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed."):null},positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),className:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popoverClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},e.Popover.displayName="KendoReactPopover"},function(t,e){t.exports=p}],n={},r.m=o,r.c=n,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}}});
|
|
1
|
+
System.register("@progress/kendo-react-tooltip",["@progress/kendo-react-common","@progress/kendo-react-popup","prop-types","react","react-dom"],function(s,e){var p={},c={},u={},d={},f={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(f,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})}],execute:function(){function o(e){var t=r[e];if(void 0!==t)return t.exports;t=r[e]={exports:{}};return n[e].call(t.exports,t,t.exports,o),t.exports}var n,r,e,t,i,l,a;s((n={363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654509845,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"}},280:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=void 0;var N=o(954),n=o(895),A=o(811),D=o(811),B=o(363),R=o(556),S=o(311),z={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},L={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},U={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},H={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};t.Popover=N.forwardRef(function(e,t){(0,D.validatePackage)(B.packageMetadata);var o=e.callout,n=e.position,r=e.title,i=e.children,l=e.show,a=e.anchor,s=e.appendTo,p=e.offset,c=e.animate,u=e.positionMode,d=e.scale,f=e.popoverClass,m=e.className,h=e.id,v=e.style,y=e.collision,g=e.contentStyle,b=e.onPosition,E=e.onClose,O=e.onOpen,k=N.useState(!1),P=k[0],T=k[1],k="top"===n||"bottom"===n,k=e.margin||{vertical:o&&k?15:0,horizontal:o&&!k?15:0},w=U[n],I=H[n],_=N.useContext(A.ZIndexContext),_=_?_+2e3:12e3,x=N.useRef(null),t=(N.useImperativeHandle(x,function(){return{props:e}}),N.useImperativeHandle(t,function(){return x.current}),N.useCallback(function(e){var t;setTimeout(function(){return T(e.flipped)}),b&&(t={target:x.current,flipped:e.flipped,fitted:e.fitted},b.call(void 0,t))},[b,T])),C=N.useCallback(function(){var e;O&&(e={target:x.current},O.call(void 0,e))},[O]),j=N.useCallback(function(){var e;E&&(e={target:x.current},E.call(void 0,e))},[E]),M={"k-popover":!0,"k-popup":!1},P=(Array.isArray(f)?f.forEach(function(e){return M[e]=!0}):"object"==typeof f?Object.keys(f).forEach(function(e){M[e]=f[e]}):f&&(M[f]=!0),(P?L:z)[n]);return N.createElement(A.ZIndexContext.Provider,{value:_},N.createElement(R.Popup,{id:h,animate:c,collision:y,anchor:a,offset:p,margin:k,popupAlign:w,anchorAlign:I,appendTo:s,show:l,scale:d,positionMode:u,style:v,className:m,popupClass:M,onOpen:C,onClose:j,onPosition:t},o&&n&&N.createElement("div",{className:(0,A.classNames)("k-popover-callout",P)}),r&&N.createElement("div",{className:"k-popover-header"},r),N.createElement("div",{className:"k-popover-body",style:g},N.Children.toArray(i).filter(function(e){return e&&e.type!==S.PopoverActionsBar})),N.Children.toArray(i).filter(function(e){return e&&e.type===S.PopoverActionsBar})))}),t.Popover.propTypes={callout:n.bool,title:n.string,position:n.oneOf(["top","left","bottom","right"]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),anchor:function(e){e=e.anchor;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed."):null},appendTo:function(e){e=e.appendTo;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed."):null},positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),className:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popoverClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},t.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},t.Popover.displayName="KendoReactPopover"},311:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverActionsBar=void 0;var r=o(954),o=o(895);t.PopoverActionsBar=r.forwardRef(function(e,t){var o=r.useRef(null),n=r.useRef(null);return r.useImperativeHandle(n,function(){return{props:e,element:o.current}}),r.useImperativeHandle(t,function(){return n.current}),r.createElement("div",{ref:o,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},e.children)}),t.PopoverActionsBar.propTypes={children:o.oneOfType([o.element,o.node])},t.PopoverActionsBar.defaultProps={},t.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},593:function(e,t,o){var n,r,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var o={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=void 0,o(954)),p=o(493),c=o(895),u=o(811),d=o(584),f=o(811),m=o(363),o=(r=s.PureComponent,i(h,r),h.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},h.prototype.render=function(){var t,o=this;if(this.props.children)return n=(e=this.props).children,e=a(e,["children"]),t=null,s.createElement("div",{onMouseOver:function(e){t&&t.handleMouseOver(e)},onMouseOut:function(e){t&&t.handleMouseOut(e)}},s.createElement(h,l({ref:function(e){return t=e}},e)),n);if(!1===this.props.open)return null;var e=this.state.targetElement,n=this.getCurrentZIndex();return e&&this.state.title&&e.ownerDocument&&p.createPortal(s.createElement("div",{ref:function(e){var t;e&&(t=o.props.onPosition?(t={element:e,targetElement:o.state.targetElement,mouseTop:o.top,mouseLeft:o.left,anchorElement:o.props.anchorElement,position:o.props.position,target:o,syntheticEvent:null,nativeEvent:null},o.props.onPosition.call(void 0,t)):o.position(e),e.style.left=t.left+"px",e.style.top=t.top+"px")},className:(0,u.classNames)("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:l({zIndex:n},this.props.style),tabIndex:0},s.createElement("div",{className:(0,u.classNames)("k-tooltip",this.props.tooltipClassName),style:l({position:"relative"},this.props.tooltipStyle)},s.createElement("div",{className:"k-tooltip-content"},this.props.content&&s.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&s.createElement("div",{ref:function(e){e&&(e.className=o.calloutClassName(),"auto"===o.props.position&&(o.left<window.screen.availWidth/2?e.style.left=o.props.setCalloutOnPositionAuto||"25%":e.style.left=o.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo||e.ownerDocument.body)},h.prototype.showToolTip=function(t){var e=this,o=(clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),t.target.hasChildNodes()&&t.target.childNodes.forEach(function(e){"title"===e.nodeName&&(t.target.titleExpando=e.innerHTML,e.remove())}),this.props.targetElement||t.target),n=this.getTitle(o);n.title?(n.element&&(n.element.titleExpando=n.title,n.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout(function(){e.willOpen&&e.setState({targetElement:o,open:!0,title:n.title},e.setUpdateInterval)},this.props.openDelay):this.setState({targetElement:o,open:!0,title:n.title},this.setUpdateInterval),this.state.title!==n.title&&(0,u.dispatchEvent)(this.props.onOpen,t,this,void 0)):this.state.open&&this.onClose(t)},h.prototype.isVisible=function(e){return!this.props.filter||this.props.filter(e)},h.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},h.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},h.contextType=u.ZIndexContext,h);function h(e){var o=r.call(this,e)||this;return o.context=0,o.state={targetElement:null,open:!1,title:""},o.top=0,o.left=0,o.willOpen=!1,o.handleMouseOut=function(e){var t=o.state.targetElement,t=t?t.ownerDocument:document,t=t&&t.elementFromPoint(e.clientX,e.clientY);(0,d.isTooltipElement)(t)||o.props.open||(clearInterval(o.updateIntervalId),o.willOpen=!1,o.onClose(e))},o.handleMouseOver=function(e){var t=e.target;o.isVisible(t)&&!(0,d.isTooltipElement)(t)&&t!==o.state.targetElement&&o.showToolTip(e)},o.handleBodyMousemove=function(e){o.top=e.clientY,o.left=e.clientX},o.onClose=function(e){(0,u.dispatchEvent)(o.props.onClose,e,o,void 0),o.setState({targetElement:null,open:!1,title:""})},o.setUpdateInterval=function(){o.props.updateInterval&&(o.updateIntervalId=setInterval(o.onIntervalUpdate,o.props.updateInterval))},o.onIntervalUpdate=function(){var e=o.state.targetElement;e&&(null===e.parentElement?o.onClose({target:e}):o.showToolTip({target:e}))},o.position=function(e){var t=(0,d.getDomRect)(o.state.targetElement);return{left:(0,d.getLeftPosition)(o.left,e.offsetWidth,t,o.props.anchorElement,o.props.position),top:(0,d.getTopPosition)(o.top,t,e.offsetHeight,o.props.anchorElement,o.props.position)}},o.getTitle=function(e){for(;e;){if(null!==e.getAttribute("title")||e.titleExpando)return{title:e.getAttribute("title")||e.titleExpando,element:e};e=o.props.parentTitle&&e.parentElement||null}return{title:"",element:e}},o.calloutClassName=function(){switch(o.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return o.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},o.getCurrentZIndex=function(){return o.context||100},(0,f.validatePackage)(m.packageMetadata),o}t.Tooltip=o},584:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isTooltipElement=o.toolTipSelectors=o.getDomRect=o.getTopPosition=o.getLeftPosition=void 0;o.getLeftPosition=function(e,t,o,n,r){switch(r){case"bottom":case"top":return"pointer"===n?e-t/2:o.left-t/2+o.width/2;case"left":return"pointer"===n?e-t-10:o.left-t-10;case"right":return"pointer"===n?e+10:o.right+10;default:return"pointer"===n?e<window.screen.availWidth/2?e-10:e-t+10:e<window.screen.availWidth/2?o.left:o.right-t}},o.getTopPosition=function(e,t,o,n,r){switch(r){case"bottom":return"pointer"===n?e+10:t.bottom+10;case"left":case"right":return"pointer"===n?e-o/2:t.top-o/2+t.height/2;case"top":return"pointer"===n?e-o-10:t.top-o-10;default:return"pointer"===n?e<window.innerHeight/2?e+10:e-o-10:e<window.innerHeight/2?t.bottom+10:t.top-o-10}},o.getDomRect=function(e){return(null!==e?e:document.body).getBoundingClientRect()},o.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],o.isTooltipElement=function(t){if(null===t)return!1;for(var e=t;e;){if(null!==e&&e.classList&&e.classList.contains("k-tooltip"))return!0;e=null!==e.parentNode&&e.parentNode}return 0<o.toolTipSelectors.filter(function(e){return e===t.className}).length}},811:e=>{e.exports=p},556:e=>{e.exports=c},895:e=>{e.exports=u},954:e=>{e.exports=d},493:e=>{e.exports=f}},r={},e=a={},Object.defineProperty(e,"__esModule",{value:!0}),e.PopoverActionsBar=e.Popover=e.Tooltip=void 0,t=o(593),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return t.Tooltip}}),i=o(280),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return i.Popover}}),l=o(311),Object.defineProperty(e,"PopoverActionsBar",{enumerable:!0,get:function(){return l.PopoverActionsBar}}),a))}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-tooltip",
|
|
3
|
-
"version": "5.4.0-dev.
|
|
3
|
+
"version": "5.4.0-dev.202206061009",
|
|
4
4
|
"description": "KendoReact Tooltips package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"jsnext:main": "dist/es/main.js",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"test": "cd ../../ && npm run test -- --testPathPattern=/packages/tooltip/.*",
|
|
15
|
-
"e2e": "cd ../../ && npx jest --config jest.e2e.js packages/tooltip",
|
|
15
|
+
"e2e": "cd ../../ && npx jest --maxWorkers=4 --config jest.e2e.js packages/tooltip",
|
|
16
16
|
"start": "gulp start",
|
|
17
17
|
"build-package": "gulp build-package"
|
|
18
18
|
},
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@progress/kendo-react-common": "5.4.0-dev.
|
|
40
|
-
"@progress/kendo-react-popup": "5.4.0-dev.
|
|
39
|
+
"@progress/kendo-react-common": "5.4.0-dev.202206061009",
|
|
40
|
+
"@progress/kendo-react-popup": "5.4.0-dev.202206061009",
|
|
41
41
|
"prop-types": "^15.6.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@progress/kendo-date-math": "^1.4.0",
|
|
45
45
|
"@progress/kendo-drawing": "^1.5.12",
|
|
46
46
|
"@progress/kendo-licensing": "^1.0.1",
|
|
47
|
-
"@progress/kendo-react-buttons": "5.4.0-dev.
|
|
48
|
-
"@progress/kendo-react-dateinputs": "5.4.0-dev.
|
|
49
|
-
"@progress/kendo-react-dialogs": "5.4.0-dev.
|
|
50
|
-
"@progress/kendo-react-dropdowns": "5.4.0-dev.
|
|
51
|
-
"@progress/kendo-react-form": "5.4.0-dev.
|
|
52
|
-
"@progress/kendo-react-grid": "5.4.0-dev.
|
|
53
|
-
"@progress/kendo-react-inputs": "5.4.0-dev.
|
|
54
|
-
"@progress/kendo-react-intl": "5.4.0-dev.
|
|
55
|
-
"@progress/kendo-react-labels": "5.4.0-dev.
|
|
47
|
+
"@progress/kendo-react-buttons": "5.4.0-dev.202206061009",
|
|
48
|
+
"@progress/kendo-react-dateinputs": "5.4.0-dev.202206061009",
|
|
49
|
+
"@progress/kendo-react-dialogs": "5.4.0-dev.202206061009",
|
|
50
|
+
"@progress/kendo-react-dropdowns": "5.4.0-dev.202206061009",
|
|
51
|
+
"@progress/kendo-react-form": "5.4.0-dev.202206061009",
|
|
52
|
+
"@progress/kendo-react-grid": "5.4.0-dev.202206061009",
|
|
53
|
+
"@progress/kendo-react-inputs": "5.4.0-dev.202206061009",
|
|
54
|
+
"@progress/kendo-react-intl": "5.4.0-dev.202206061009",
|
|
55
|
+
"@progress/kendo-react-labels": "5.4.0-dev.202206061009"
|
|
56
56
|
},
|
|
57
57
|
"@progress": {
|
|
58
58
|
"friendlyName": "Tooltip",
|