@progress/kendo-react-tooltip 4.14.0-dev.202201121250 → 4.14.0-dev.202201131239

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactTooltip=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactTooltip=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactDOM)}(window,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},,function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return o})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return a})),n.d(t,"canUseDOM",(function(){return u})),n.d(t,"canUseRef",(function(){return c})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return f})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return v})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return h})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return y})),n.d(t,"getter",(function(){return E})),n.d(t,"guid",(function(){return k})),n.d(t,"Keys",(function(){return w})),n.d(t,"noop",(function(){return x})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return M})),n.d(t,"setter",(function(){return R})),n.d(t,"mapTree",(function(){return L})),n.d(t,"mapTreeItem",(function(){return I})),n.d(t,"extendDataItem",(function(){return _})),n.d(t,"getItemPath",(function(){return j})),n.d(t,"validatePackage",(function(){return A})),n.d(t,"hasRelativeStackingContext",(function(){return H})),n.d(t,"dispatchEvent",(function(){return K})),n.d(t,"AsyncFocusBlur",(function(){return Y})),n.d(t,"createPropsContext",(function(){return V})),n.d(t,"withPropsContext",(function(){return F})),n.d(t,"useDir",(function(){return q})),n.d(t,"useAsyncFocusBlur",(function(){return X})),n.d(t,"useRtl",(function(){return Z})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return W})),n.d(t,"COLLECTION_ACTION",(function(){return G})),n.d(t,"useCollection",(function(){return Q})),n.d(t,"Icon",(function(){return oe})),n.d(t,"SvgIcon",(function(){return ue})),n.d(t,"Typography",(function(){return Ce})),n.d(t,"DragAndDrop",(function(){return Te})),n.d(t,"Draggable",(function(){return Xe})),n.d(t,"Droppable",(function(){return Ye})),n.d(t,"useDraggable",(function(){return Ke})),n.d(t,"useDroppable",(function(){return Be}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var l=function(){return"undefined"!=typeof document?document:{}},a=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=l();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),u=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?s.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},f=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=v(r,t[n])}}function v(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return f(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function m(e){return e.map((function(e){return v(e,void 0)}))}var h=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function O(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var C={};function E(e){if(C[e])return C[e];var t=O(e);return C[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},C[e]}C.undefined=function(){};var k=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},w={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},x=function(){},D=function(){return!(!u||!document.body)&&(new a).scrollbarWidth},M=function(){if(!u||!document.body)return!1;var e=(new a).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},T={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function R(e){if(T[e])return T[e];var t=O(e);return T[e]=function(e,n,r){for(var o=e,i=t.length-1,l=0;l<i&&o;l++)o=o[t[l]]=o[t[l]]||P(t[l+1],r);o[t[i]]=n},T[e]}var N=function(){return(N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function S(e,t,n){var r;return n?N({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var L=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=S(t,n).map((function(t){return e(t,n,r)}));return r(S(t,n,o))}return r(t)}(e,t,n)})).slice()},I=function(e,t,n,r){for(var o=e,i=[],l=0;l<t.length;l++)o=o[t[l]],o=Array.isArray(o)?o:o[n],i.push(o);var a=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=r(a[u]);a.splice(u,1,c)},_=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},j=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},U=n(2);function A(e){if(void 0!==U)U.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var H=function(e){if(!u)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function K(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function X(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,l=r.useRef(!1),a=r.useRef(0),u=r.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),c=r.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)),l.current||(l.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[l,t,o]),s=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),u((function(){l.current&&n&&(l.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[l,u,n,i]);return r.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:c,onBlur:s}}var B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Y=function(e){var t=e.children,n=X({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,B({},n))},W=function(e,t){return r.useContext(e)(t)},z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},V=function(){return r.createContext((function(e){return e}))},F=function(e,t){return r.forwardRef((function(n,o){var i=W(e,n);return r.createElement(t,z({},i,{ref:o}))}))};function q(e,t,n){var o=r.useState(t),i=o[0],l=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}function Z(e,t,n){var o=r.useState(t),i=o[0],l=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}var G,$=function(e,t,n){void 0===n&&(n={});var o=r.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=r.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:r.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:o,onDoubleClick:r.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:r.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:r.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:r.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:r.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:r.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},J=function(e){return r.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(G||(G={}));var Q=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case G.add:t.current.push(e.item);break;case G.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},oe=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,l=e.size,a=e.flip,u=e.style,c=re(e,["className","name","themeColor","size","flip","style"]),f=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(f,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return f.current}));var d=r.useMemo((function(){return i||ie.themeColor}),[i]),v=r.useMemo((function(){return l||ie.size}),[l]),m=r.useMemo((function(){return a||ie.flip}),[a]),h=r.useMemo((function(){return s("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[v],n)}),[o,d,v,m,n]),g=$(e,f);return r.createElement("span",ne({ref:p},c,g,{className:h,style:u,role:"presentation"}))}));oe.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};oe.displayName="KendoIcon";var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ue=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,l=e.icon,a=e.flip,u=e.size,c=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,v=ae(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var h=r.useMemo((function(){return l?l.name:ce.icon}),[l]),g=r.useMemo((function(){return p||ce.themeColor}),[p]),y=r.useMemo((function(){return u||ce.size}),[u]),b=r.useMemo((function(){return a||ce.flip}),[a]),O=r.useMemo((function(){return d||ce.viewBox}),[d]),C=r.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+h,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[h,g,y,b,o]),E=r.useMemo((function(){return e.width&&e.height?le({width:e.width,height:e.height},c):e.width?le({width:e.width,height:e.width},c):e.height?le({width:e.height,height:e.height},c):le({},c)}),[e.width,e.height,c]);return r.createElement("span",{className:C,style:E,ref:m},r.createElement("svg",le({className:i,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:O,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},v),l?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"},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"},he={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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Oe=function(e){var t=r.forwardRef((function(t,n){var o=t.className,i=t.fontSize,l=t.fontWeight,a=t.textAlign,u=t.textTransform,c=t.themeColor,s=t.margin,f=be(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=r.useRef(null),d=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:d.current,props:t}})),r.useImperativeHandle(n,(function(){return p.current}));var v=e,m=function(){if(void 0!==s){if("string"==typeof s)return[pe[s]];if("number"==typeof s&&s>=0&&s<=24)return["k-m-"+s];if("object"==typeof s){var e=[];return Object.keys(s).forEach((function(t){var n,r;null!==s[t]&&void 0!==s[t]&&e.push((n=t,r=s[t],""+ve[n]+("string"==typeof r?de[r]:r)))})),e.join(" ")}}};return r.createElement(v,ye({ref:d,className:["k-"+("p"===e?"paragraph":e),se[i],fe[l],me[a],he[u],ge[c],m(),o].filter((function(e){return void 0!==e})).join(" ")},f),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},Ce={h1:Oe("h1"),h2:Oe("h2"),h3:Oe("h3"),h4:Oe("h4"),h5:Oe("h5"),h6:Oe("h6"),p:Oe("p"),code:Oe("code"),pre:Oe("pre")},Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ke=function(e,t,n){var o=r.useState(t||e),i=o[0],l=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){l(e),n&&n.call(void 0,Ee({},t,{value:e}))}),[n,l])]},we=r.createContext([void 0,x]),xe=r.createContext([void 0,x]),De=r.createContext([[],x,x]),Me=r.createContext([[],x,x]),Te=function(e){var t=ke(null,void 0),n=t[0],o=t[1],i=ke(null,void 0),l=i[0],a=i[1],u=Q([]),c=u[0],s=u[1],f=Q([]),p=f[0],d=f[1];return r.createElement(we.Provider,{value:[n,o]},r.createElement(xe.Provider,{value:[l,a]},r.createElement(De.Provider,{value:[c,function(e){s({type:G.add,item:e})},function(e){s({type:G.remove,item:e})}]},r.createElement(Me.Provider,{value:[p,function(e){d({type:G.add,item:e})},function(e){d({type:G.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Pe,Re=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),l=Math.min(r.left+r.width,n.left+n.width),a=Math.min(r.top+r.height,n.top+n.height),u=l-i,c=a-o;if(i<l&&o<a){var s=r.width*r.height,f=n.width*n.height,p=u*c;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Ne=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Se=function(e){return e&&e.ownerDocument||window.document},Le=function(e){var t=Ne(),n=Se(e);return t.edge||t.safari?n.body:n.documentElement},Ie=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},_e=function(e){var t=Le(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Ie(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Pe||(Pe={}));var je=function(){},Ue=function(e,t,n){void 0===n&&(n={});var r,o,i,l,a=n.onIsPressedChange,u=void 0===a?je:a,c=n.onIsScrollingChange,s=void 0===c?je:c,f=n.onVelocityChange,p=void 0===f?je:f,d=n.onOffsetChange,v=void 0===d?je:d,m=n.onPageOffsetChange,h=void 0===m?je:m,g=n.onClientOffsetChange,y=void 0===g?je:g,b=n.onScrollOffsetChange,O=void 0===b?je:b,C=n.onInitialScrollOffsetChange,E=void 0===C?je:C,k=t.payload,w=k.element,x=k.hint,D=e.autoScrollDirection,M=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 Pe.POINTER_DOWN:if(T.type===Pe.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Pe.MOUSE_DOWN:if(T.type===Pe.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||e.ignoreMouse)break;case Pe.TOUCH_START:if(T.type===Pe.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Pe.START:var P=M||_e(t.payload.element);E(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),y({x:T.clientX,y:T.clientY}),h({x:T.pageX,y:T.pageY}),v({x:T.offsetX,y:T.offsetY}),u(!0),k.onPress&&k.onPress(T);break;case Pe.SCROLL:if(T.type===Pe.SCROLL&&!e.pressed)break;var R=M||_e(w),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,O({x:T.scrollX,y:T.scrollY});case Pe.POINTER_MOVE:if(T.type===Pe.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Pe.MOUSE_MOVE:case Pe.TOUCH_MOVE:if(T.type===Pe.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Pe.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==T.originalEvent.type&&w){var S=Se(w),L=M||_e(S.elementFromPoint(T.clientX,T.clientY)),I=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(T.pageX,T.pageY,function(e,t){var n=Le(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(L,function(e){var t=Se(e);return t&&t.defaultView||window}(w)));p({x:D&&!1===D.horizontal?0:I.x,y:D&&!1===D.vertical?0:I.y}),s(0!==I.y||0!==I.x)}!e.drag&&k.onDragStart&&k.onDragStart(T),k.onDrag&&k.onDrag(T);var _=Re(x||w,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||w)}))),j=e.drops.find((function(e){return e.element===_}));j&&_&&(r=T.clientX,o=T.clientY,i=M||_e(_),(l=i.getBoundingClientRect()).top<=o&&l.left<=r&&o<=l.bottom&&r<=l.right)&&_!==w?(e.drop&&e.drop.element)!==_?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T),j.onDragEnter&&j.onDragEnter(T)):j.onDragOver&&j.onDragOver(T):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}y({x:T.clientX,y:T.clientY}),h({x:T.pageX,y:T.pageY});break;case Pe.POINTER_UP:if(T.type===Pe.POINTER_UP&&!T.originalEvent.isPrimary)break;case Pe.MOUSE_UP:case Pe.TOUCH_END:if(T.type===Pe.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Pe.END:u(!1),s(!1),k.onRelease&&k.onRelease(T),e.drop&&e.drop.onDrop&&e.drop.onDrop(T),k.onDragEnd&&k.onDragEnd(T);break;case Pe.POINTER_CANCEL:case Pe.CONTEXT_MENU:case Pe.TOUCH_CANCEL:case Pe.CANCEL:u(!1),s(!1),k.onDragEnd&&k.onDragEnd(T),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}},Ae=function(e,t){if(e){var n,r;e===Le(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,l=e.scrollLeft+t.x,a=r&&l>0&&l<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:r&&l<0&&(e.scrollLeft=0)}},He=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],l=r.useState(t),a=l[0],u=l[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):u(e[0])}]};function Ke(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?x:o,l=t.onRelease,a=void 0===l?x:l,u=t.onDragStart,c=void 0===u?x:u,s=t.onDrag,f=void 0===s?x:s,p=t.onDragEnd,d=void 0===p?x:p,v=n.hint,m=void 0===v?null:v,h=n.mouseOnly,g=void 0!==h&&h,y=n.autoScroll,b=void 0===y||y,O=n.scrollContainer,C=void 0===O?null:O,E=r.useState(!1),k=E[0],w=E[1],D=r.useState(!1),M=D[0],T=D[1],P=He(xe)[0],R=He(we),N=R[0],S=R[1],L=r.useContext(Me)[0],I=r.useContext(De),_=I[0],j=I[1],U=I[2],A=r.useRef({x:0,y:0}),H=r.useRef(),K=r.useRef(!1),X=r.useRef(),B=r.useRef(!1),Y=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),z=r.useRef({x:0,y:0}),V=r.useRef({x:0,y:0}),F=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Z=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),G=!g&&Z,$=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=r.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),ee=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:ve,onDragStart:he,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=r.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),re=r.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=r.useCallback((function(){return{drag:N?N.current:null,drop:P?P.current:null,drags:_.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:k,ignoreMouse:K.current,scrollOffset:F.current,offset:Y.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:z.current,initialClientOffset:V.current,velocity:A.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:M}}),[N,P,_,L,k,b,ee,M]),ie=r.useCallback((function(e){w(e)}),[]),le=r.useCallback((function(e){T(e)}),[]),ae=r.useCallback((function(e){A.current=e}),[]),ue=r.useCallback((function(e){Y.current=e}),[]),ce=r.useCallback((function(e){z.current=e}),[]),se=r.useCallback((function(e){W.current=e}),[]),fe=r.useCallback((function(e){V.current=e}),[]),pe=r.useCallback((function(e){F.current=e}),[]),de=r.useCallback((function(e){q.current=e}),[]),ve=r.useCallback((function(e){i(e)}),[i]),me=r.useCallback((function(e){a(e)}),[a]),he=r.useCallback((function(t){S(te,{target:e.current,event:t}),c(t)}),[S,e,c]),ge=r.useCallback((function(e){f(e)}),[f]),ye=r.useCallback((function(t){B.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),be=r.useCallback((function(e){Ue(oe(),{event:e,payload:te.current},{onVelocityChange:ae,onOffsetChange:ue,onClientOffsetChange:ce,onPageOffsetChange:se,onInitialClientOffsetChange:fe,onScrollOffsetChange:pe,onInitialScrollOffsetChange:de,onIsPressedChange:ie,onIsScrollingChange:le})}),[oe,ae,ue,se,ce,fe,de,ie,pe,le]),Oe=r.useCallback((function(e){be(e)}),[be]),Ce=r.useCallback((function(e){be(e)}),[be]),Ee=r.useCallback((function(e){be(e)}),[be]),ke=r.useCallback((function(e){be(e)}),[be]),Te=r.useCallback((function(e){be(e)}),[be]),Pe=r.useCallback((function(e){be(e)}),[be]),Re=r.useCallback((function(e){be(e)}),[be]),Ne=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Se=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ie=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();K.current=!0,X.current=t.setTimeout((function(){K.current=!1}),2e3)}be(e)}),[be,re]),je=r.useCallback((function(e){be(e)}),[be]),Ke=r.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),Xe=r.useCallback((function(){return j(te),function(){U(te)}}),[U,j]);r.useEffect((function(){var e=re();if(M){var t=Q()||_e(document.elementFromPoint(z.current.x,z.current.y));e.clearInterval(H.current),H.current=e.setInterval((function(){Ae(t,{x:A.current.x,y:A.current.y})}),50)}return function(){e.clearInterval(H.current)}}),[$,Q,re,M]),r.useEffect(Ke,[Ke]),r.useEffect((function(){var e=re(),t=$(),n=ne();if(G){if(t)_e(t).addEventListener("scroll",je,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0});k&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",ke,!0),n.addEventListener("contextmenu",Ne),n.addEventListener("pointercancel",Ee,{passive:!0}))}else e.addEventListener("touchmove",x,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Te,{passive:!0}),g||(t.addEventListener("touchstart",Se,{passive:!0}),k&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ie,{passive:!0})))),k&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",Re,{passive:!0}));return function(){if(t){var r=_e(t);r&&r.removeEventListener("scroll",je),t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Te),t.removeEventListener("touchstart",Se),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ie)}n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",ke,!0),n.removeEventListener("contextmenu",Ne),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",Re),e.removeEventListener("touchmove",x),e.clearTimeout(X.current)}}),[k,re,$,ne,g,G,Ne,Te,Pe,Re,Ee,Oe,Ce,ke,Ie,Le,Se,je]),r.useEffect((function(){return function(){B.current=!0}}),[]),r.useLayoutEffect(Xe,[Xe])}var Xe=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var l=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),a=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),u=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),c=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),s=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return Ke(n,{onPress:l,onRelease:a,onDragStart:u,onDrag:c,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:x,onDragOver:x,onDragLeave:x,onDrop:x});var n=t.onDragEnter,o=void 0===n?x:n,i=t.onDragOver,l=void 0===i?x:i,a=t.onDragLeave,u=void 0===a?x:a,c=t.onDrop,s=void 0===c?x:c,f=He(xe)[1],p=r.useContext(Me),d=p[1],v=p[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),h=r.useRef(null);r.useImperativeHandle(h,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:O,data:e.current}}));var g=r.useCallback((function(t){f(h,{target:e.current,event:t}),o(t)}),[f,e,o]),y=r.useCallback((function(e){l(e)}),[l]),b=r.useCallback((function(t){f(null,{target:e.current,event:t}),u(t)}),[f,e,u]),O=r.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),C=r.useCallback((function(){return d(h),function(){v(h)}}),[v,d]);r.useLayoutEffect(C,[C])}Xe.displayName="KendoReactDraggable";var Ye=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var l=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),a=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),u=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),c=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Be(n,{onDragEnter:l,onDragOver:a,onDragLeave:u,onDrop:c}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ye.displayName="KendoReactDroppable"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.Tooltip=r.Tooltip},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),u=n(7),c=n(1),s=n(4),f=n(8),p=n(4),d=n(9),v=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,r=t?t.ownerDocument:document,o=r&&r.elementFromPoint(e.clientX,e.clientY);f.isTooltipElement(o)||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 o(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,r=n.children,o=l(n,["children"]),c=null;return a.createElement("div",{onMouseOver:function(e){c&&c.handleMouseOver(e)},onMouseOut:function(e){c&&c.handleMouseOut(e)}},a.createElement(t,i({ref:function(e){return c=e}},o)),r)}if(!1===this.props.open)return null;var f=this.state.targetElement,p=this.getCurrentZIndex();return f&&this.state.title&&f.ownerDocument&&u.createPortal(a.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},a.createElement("div",{className:s.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},a.createElement("div",{className:"k-tooltip-content"},this.props.content&&a.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&a.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,r=this.getTitle(n);r.title?(r.element&&(r.element.titleExpando=r.title,r.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout((function(){t.willOpen&&t.setState({targetElement:n,open:!0,title:r.title},t.setUpdateInterval)}),this.props.openDelay):this.setState({targetElement:n,open:!0,title:r.title},this.setUpdateInterval),this.state.title!==r.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}(a.PureComponent);t.Tooltip=v},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getLeftPosition=function(e,t,n,r,o){switch(o){case"bottom":return"pointer"===r?e-t/2:n.left-t/2+n.width/2;case"left":return"pointer"===r?e-t-10:n.left-t-10;case"right":return"pointer"===r?e+10:n.right+10;case"top":return"pointer"===r?e-t/2:n.left-t/2+n.width/2;default:return"pointer"===r?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,r,o){switch(o){case"bottom":return"pointer"===r?e+10:t.bottom+10;case"left":case"right":return"pointer"===r?e-n/2:t.top-n/2+t.height/2;case"top":return"pointer"===r?e-n-10:t.top-n-10;default:return"pointer"===r?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}),t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1641991453,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"}}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-dom"],t):"object"==typeof exports?exports.KendoReactTooltip=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom")):e.KendoReactTooltip=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactDOM)}(window,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},,function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return o})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return a})),n.d(t,"canUseDOM",(function(){return u})),n.d(t,"canUseRef",(function(){return c})),n.d(t,"classNames",(function(){return s})),n.d(t,"cloneDate",(function(){return f})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return v})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return h})),n.d(t,"FormComponent",(function(){return g})),n.d(t,"getTabIndex",(function(){return y})),n.d(t,"getter",(function(){return E})),n.d(t,"guid",(function(){return k})),n.d(t,"Keys",(function(){return w})),n.d(t,"noop",(function(){return x})),n.d(t,"getScrollbarWidth",(function(){return D})),n.d(t,"setScrollbarWidth",(function(){return M})),n.d(t,"setter",(function(){return R})),n.d(t,"mapTree",(function(){return L})),n.d(t,"mapTreeItem",(function(){return I})),n.d(t,"extendDataItem",(function(){return _})),n.d(t,"getItemPath",(function(){return j})),n.d(t,"validatePackage",(function(){return A})),n.d(t,"hasRelativeStackingContext",(function(){return H})),n.d(t,"dispatchEvent",(function(){return K})),n.d(t,"AsyncFocusBlur",(function(){return Y})),n.d(t,"createPropsContext",(function(){return V})),n.d(t,"withPropsContext",(function(){return F})),n.d(t,"useDir",(function(){return q})),n.d(t,"useAsyncFocusBlur",(function(){return X})),n.d(t,"useRtl",(function(){return Z})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return W})),n.d(t,"COLLECTION_ACTION",(function(){return G})),n.d(t,"useCollection",(function(){return Q})),n.d(t,"Icon",(function(){return oe})),n.d(t,"SvgIcon",(function(){return ue})),n.d(t,"Typography",(function(){return Ce})),n.d(t,"DragAndDrop",(function(){return Te})),n.d(t,"Draggable",(function(){return Xe})),n.d(t,"Droppable",(function(){return Ye})),n.d(t,"useDraggable",(function(){return Ke})),n.d(t,"useDroppable",(function(){return Be}));var r=n(0),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var l=function(){return"undefined"!=typeof document?document:{}},a=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=l();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),u=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?s.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},f=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=v(r,t[n])}}function v(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return f(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function m(e){return e.map((function(e){return v(e,void 0)}))}var h=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function O(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var C={};function E(e){if(C[e])return C[e];var t=O(e);return C[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},C[e]}C.undefined=function(){};var k=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},w={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},x=function(){},D=function(){return!(!u||!document.body)&&(new a).scrollbarWidth},M=function(){if(!u||!document.body)return!1;var e=(new a).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},T={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function R(e){if(T[e])return T[e];var t=O(e);return T[e]=function(e,n,r){for(var o=e,i=t.length-1,l=0;l<i&&o;l++)o=o[t[l]]=o[t[l]]||P(t[l+1],r);o[t[i]]=n},T[e]}var N=function(){return(N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function S(e,t,n){var r;return n?N({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var L=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=S(t,n).map((function(t){return e(t,n,r)}));return r(S(t,n,o))}return r(t)}(e,t,n)})).slice()},I=function(e,t,n,r){for(var o=e,i=[],l=0;l<t.length;l++)o=o[t[l]],o=Array.isArray(o)?o:o[n],i.push(o);var a=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=r(a[u]);a.splice(u,1,c)},_=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},j=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},U=n(2);function A(e){if(void 0!==U)U.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var H=function(e){if(!u)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function K(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}function X(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,l=r.useRef(!1),a=r.useRef(0),u=r.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),c=r.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)),l.current||(l.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[l,t,o]),s=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),u((function(){l.current&&n&&(l.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[l,u,n,i]);return r.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:c,onBlur:s}}var B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Y=function(e){var t=e.children,n=X({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,B({},n))},W=function(e,t){return r.useContext(e)(t)},z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},V=function(){return r.createContext((function(e){return e}))},F=function(e,t){return r.forwardRef((function(n,o){var i=W(e,n);return r.createElement(t,z({},i,{ref:o}))}))};function q(e,t,n){var o=r.useState(t),i=o[0],l=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}function Z(e,t,n){var o=r.useState(t),i=o[0],l=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&l(t)}}),n),i}var G,$=function(e,t,n){void 0===n&&(n={});var o=r.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=r.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:r.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:o,onDoubleClick:r.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:r.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:r.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:r.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:r.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:r.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},J=function(e){return r.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(G||(G={}));var Q=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case G.add:t.current.push(e.item);break;case G.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},oe=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,l=e.size,a=e.flip,u=e.style,c=re(e,["className","name","themeColor","size","flip","style"]),f=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(f,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return f.current}));var d=r.useMemo((function(){return i||ie.themeColor}),[i]),v=r.useMemo((function(){return l||ie.size}),[l]),m=r.useMemo((function(){return a||ie.flip}),[a]),h=r.useMemo((function(){return s("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[v],n)}),[o,d,v,m,n]),g=$(e,f);return r.createElement("span",ne({ref:p},c,g,{className:h,style:u,role:"presentation"}))}));oe.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};oe.displayName="KendoIcon";var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},ue=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,l=e.icon,a=e.flip,u=e.size,c=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,v=ae(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var h=r.useMemo((function(){return l?l.name:ce.icon}),[l]),g=r.useMemo((function(){return p||ce.themeColor}),[p]),y=r.useMemo((function(){return u||ce.size}),[u]),b=r.useMemo((function(){return a||ce.flip}),[a]),O=r.useMemo((function(){return d||ce.viewBox}),[d]),C=r.useMemo((function(){return s("k-svg-icon","k-color-"+g,"k-svg-i-"+h,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[h,g,y,b,o]),E=r.useMemo((function(){return e.width&&e.height?le({width:e.width,height:e.height},c):e.width?le({width:e.width,height:e.width},c):e.height?le({width:e.height,height:e.height},c):le({},c)}),[e.width,e.height,c]);return r.createElement("span",{className:C,style:E,ref:m},r.createElement("svg",le({className:i,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:O,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},v),l?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"},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"},he={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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},Oe=function(e){var t=r.forwardRef((function(t,n){var o=t.className,i=t.fontSize,l=t.fontWeight,a=t.textAlign,u=t.textTransform,c=t.themeColor,s=t.margin,f=be(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=r.useRef(null),d=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:d.current,props:t}})),r.useImperativeHandle(n,(function(){return p.current}));var v=e,m=function(){if(void 0!==s){if("string"==typeof s)return[pe[s]];if("number"==typeof s&&s>=0&&s<=24)return["k-m-"+s];if("object"==typeof s){var e=[];return Object.keys(s).forEach((function(t){var n,r;null!==s[t]&&void 0!==s[t]&&e.push((n=t,r=s[t],""+ve[n]+("string"==typeof r?de[r]:r)))})),e.join(" ")}}};return r.createElement(v,ye({ref:d,className:["k-"+("p"===e?"paragraph":e),se[i],fe[l],me[a],he[u],ge[c],m(),o].filter((function(e){return void 0!==e})).join(" ")},f),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},Ce={h1:Oe("h1"),h2:Oe("h2"),h3:Oe("h3"),h4:Oe("h4"),h5:Oe("h5"),h6:Oe("h6"),p:Oe("p"),code:Oe("code"),pre:Oe("pre")},Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ke=function(e,t,n){var o=r.useState(t||e),i=o[0],l=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){l(e),n&&n.call(void 0,Ee({},t,{value:e}))}),[n,l])]},we=r.createContext([void 0,x]),xe=r.createContext([void 0,x]),De=r.createContext([[],x,x]),Me=r.createContext([[],x,x]),Te=function(e){var t=ke(null,void 0),n=t[0],o=t[1],i=ke(null,void 0),l=i[0],a=i[1],u=Q([]),c=u[0],s=u[1],f=Q([]),p=f[0],d=f[1];return r.createElement(we.Provider,{value:[n,o]},r.createElement(xe.Provider,{value:[l,a]},r.createElement(De.Provider,{value:[c,function(e){s({type:G.add,item:e})},function(e){s({type:G.remove,item:e})}]},r.createElement(Me.Provider,{value:[p,function(e){d({type:G.add,item:e})},function(e){d({type:G.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Pe,Re=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),l=Math.min(r.left+r.width,n.left+n.width),a=Math.min(r.top+r.height,n.top+n.height),u=l-i,c=a-o;if(i<l&&o<a){var s=r.width*r.height,f=n.width*n.height,p=u*c;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r},Ne=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Se=function(e){return e&&e.ownerDocument||window.document},Le=function(e){var t=Ne(),n=Se(e);return t.edge||t.safari?n.body:n.documentElement},Ie=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},_e=function(e){var t=Le(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Ie(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Pe||(Pe={}));var je=function(){},Ue=function(e,t,n){void 0===n&&(n={});var r,o,i,l,a=n.onIsPressedChange,u=void 0===a?je:a,c=n.onIsScrollingChange,s=void 0===c?je:c,f=n.onVelocityChange,p=void 0===f?je:f,d=n.onOffsetChange,v=void 0===d?je:d,m=n.onPageOffsetChange,h=void 0===m?je:m,g=n.onClientOffsetChange,y=void 0===g?je:g,b=n.onScrollOffsetChange,O=void 0===b?je:b,C=n.onInitialScrollOffsetChange,E=void 0===C?je:C,k=t.payload,w=k.element,x=k.hint,D=e.autoScrollDirection,M=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 Pe.POINTER_DOWN:if(T.type===Pe.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Pe.MOUSE_DOWN:if(T.type===Pe.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||e.ignoreMouse)break;case Pe.TOUCH_START:if(T.type===Pe.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Pe.START:var P=M||_e(t.payload.element);E(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),y({x:T.clientX,y:T.clientY}),h({x:T.pageX,y:T.pageY}),v({x:T.offsetX,y:T.offsetY}),u(!0),k.onPress&&k.onPress(T);break;case Pe.SCROLL:if(T.type===Pe.SCROLL&&!e.pressed)break;var R=M||_e(w),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,O({x:T.scrollX,y:T.scrollY});case Pe.POINTER_MOVE:if(T.type===Pe.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Pe.MOUSE_MOVE:case Pe.TOUCH_MOVE:if(T.type===Pe.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Pe.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==T.originalEvent.type&&w){var S=Se(w),L=M||_e(S.elementFromPoint(T.clientX,T.clientY)),I=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r}(T.pageX,T.pageY,function(e,t){var n=Le(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(L,function(e){var t=Se(e);return t&&t.defaultView||window}(w)));p({x:D&&!1===D.horizontal?0:I.x,y:D&&!1===D.vertical?0:I.y}),s(0!==I.y||0!==I.x)}!e.drag&&k.onDragStart&&k.onDragStart(T),k.onDrag&&k.onDrag(T);var _=Re(x||w,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||w)}))),j=e.drops.find((function(e){return e.element===_}));j&&_&&(r=T.clientX,o=T.clientY,i=M||_e(_),(l=i.getBoundingClientRect()).top<=o&&l.left<=r&&o<=l.bottom&&r<=l.right)&&_!==w?(e.drop&&e.drop.element)!==_?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T),j.onDragEnter&&j.onDragEnter(T)):j.onDragOver&&j.onDragOver(T):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}y({x:T.clientX,y:T.clientY}),h({x:T.pageX,y:T.pageY});break;case Pe.POINTER_UP:if(T.type===Pe.POINTER_UP&&!T.originalEvent.isPrimary)break;case Pe.MOUSE_UP:case Pe.TOUCH_END:if(T.type===Pe.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Pe.END:u(!1),s(!1),k.onRelease&&k.onRelease(T),e.drop&&e.drop.onDrop&&e.drop.onDrop(T),k.onDragEnd&&k.onDragEnd(T);break;case Pe.POINTER_CANCEL:case Pe.CONTEXT_MENU:case Pe.TOUCH_CANCEL:case Pe.CANCEL:u(!1),s(!1),k.onDragEnd&&k.onDragEnd(T),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}},Ae=function(e,t){if(e){var n,r;e===Le(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,l=e.scrollLeft+t.x,a=r&&l>0&&l<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:r&&l<0&&(e.scrollLeft=0)}},He=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],l=r.useState(t),a=l[0],u=l[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):u(e[0])}]};function Ke(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?x:o,l=t.onRelease,a=void 0===l?x:l,u=t.onDragStart,c=void 0===u?x:u,s=t.onDrag,f=void 0===s?x:s,p=t.onDragEnd,d=void 0===p?x:p,v=n.hint,m=void 0===v?null:v,h=n.mouseOnly,g=void 0!==h&&h,y=n.autoScroll,b=void 0===y||y,O=n.scrollContainer,C=void 0===O?null:O,E=r.useState(!1),k=E[0],w=E[1],D=r.useState(!1),M=D[0],T=D[1],P=He(xe)[0],R=He(we),N=R[0],S=R[1],L=r.useContext(Me)[0],I=r.useContext(De),_=I[0],j=I[1],U=I[2],A=r.useRef({x:0,y:0}),H=r.useRef(),K=r.useRef(!1),X=r.useRef(),B=r.useRef(!1),Y=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),z=r.useRef({x:0,y:0}),V=r.useRef({x:0,y:0}),F=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Z=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),G=!g&&Z,$=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=r.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),ee=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:ve,onDragStart:he,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=r.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),re=r.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),oe=r.useCallback((function(){return{drag:N?N.current:null,drop:P?P.current:null,drags:_.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:k,ignoreMouse:K.current,scrollOffset:F.current,offset:Y.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:z.current,initialClientOffset:V.current,velocity:A.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:M}}),[N,P,_,L,k,b,ee,M]),ie=r.useCallback((function(e){w(e)}),[]),le=r.useCallback((function(e){T(e)}),[]),ae=r.useCallback((function(e){A.current=e}),[]),ue=r.useCallback((function(e){Y.current=e}),[]),ce=r.useCallback((function(e){z.current=e}),[]),se=r.useCallback((function(e){W.current=e}),[]),fe=r.useCallback((function(e){V.current=e}),[]),pe=r.useCallback((function(e){F.current=e}),[]),de=r.useCallback((function(e){q.current=e}),[]),ve=r.useCallback((function(e){i(e)}),[i]),me=r.useCallback((function(e){a(e)}),[a]),he=r.useCallback((function(t){S(te,{target:e.current,event:t}),c(t)}),[S,e,c]),ge=r.useCallback((function(e){f(e)}),[f]),ye=r.useCallback((function(t){B.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),be=r.useCallback((function(e){Ue(oe(),{event:e,payload:te.current},{onVelocityChange:ae,onOffsetChange:ue,onClientOffsetChange:ce,onPageOffsetChange:se,onInitialClientOffsetChange:fe,onScrollOffsetChange:pe,onInitialScrollOffsetChange:de,onIsPressedChange:ie,onIsScrollingChange:le})}),[oe,ae,ue,se,ce,fe,de,ie,pe,le]),Oe=r.useCallback((function(e){be(e)}),[be]),Ce=r.useCallback((function(e){be(e)}),[be]),Ee=r.useCallback((function(e){be(e)}),[be]),ke=r.useCallback((function(e){be(e)}),[be]),Te=r.useCallback((function(e){be(e)}),[be]),Pe=r.useCallback((function(e){be(e)}),[be]),Re=r.useCallback((function(e){be(e)}),[be]),Ne=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Se=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=r.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ie=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();K.current=!0,X.current=t.setTimeout((function(){K.current=!1}),2e3)}be(e)}),[be,re]),je=r.useCallback((function(e){be(e)}),[be]),Ke=r.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),Xe=r.useCallback((function(){return j(te),function(){U(te)}}),[U,j]);r.useEffect((function(){var e=re();if(M){var t=Q()||_e(document.elementFromPoint(z.current.x,z.current.y));e.clearInterval(H.current),H.current=e.setInterval((function(){Ae(t,{x:A.current.x,y:A.current.y})}),50)}return function(){e.clearInterval(H.current)}}),[$,Q,re,M]),r.useEffect(Ke,[Ke]),r.useEffect((function(){var e=re(),t=$(),n=ne();if(G){if(t)_e(t).addEventListener("scroll",je,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0});k&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",ke,!0),n.addEventListener("contextmenu",Ne),n.addEventListener("pointercancel",Ee,{passive:!0}))}else e.addEventListener("touchmove",x,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Te,{passive:!0}),g||(t.addEventListener("touchstart",Se,{passive:!0}),k&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ie,{passive:!0})))),k&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",Re,{passive:!0}));return function(){if(t){var r=_e(t);r&&r.removeEventListener("scroll",je),t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Te),t.removeEventListener("touchstart",Se),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ie)}n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",ke,!0),n.removeEventListener("contextmenu",Ne),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",Re),e.removeEventListener("touchmove",x),e.clearTimeout(X.current)}}),[k,re,$,ne,g,G,Ne,Te,Pe,Re,Ee,Oe,Ce,ke,Ie,Le,Se,je]),r.useEffect((function(){return function(){B.current=!0}}),[]),r.useLayoutEffect(Xe,[Xe])}var Xe=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var l=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),a=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),u=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),c=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),s=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return Ke(n,{onPress:l,onRelease:a,onDragStart:u,onDrag:c,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:x,onDragOver:x,onDragLeave:x,onDrop:x});var n=t.onDragEnter,o=void 0===n?x:n,i=t.onDragOver,l=void 0===i?x:i,a=t.onDragLeave,u=void 0===a?x:a,c=t.onDrop,s=void 0===c?x:c,f=He(xe)[1],p=r.useContext(Me),d=p[1],v=p[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),h=r.useRef(null);r.useImperativeHandle(h,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:O,data:e.current}}));var g=r.useCallback((function(t){f(h,{target:e.current,event:t}),o(t)}),[f,e,o]),y=r.useCallback((function(e){l(e)}),[l]),b=r.useCallback((function(t){f(null,{target:e.current,event:t}),u(t)}),[f,e,u]),O=r.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),C=r.useCallback((function(){return d(h),function(){v(h)}}),[v,d]);r.useLayoutEffect(C,[C])}Xe.displayName="KendoReactDraggable";var Ye=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var l=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),a=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),u=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),c=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Be(n,{onDragEnter:l,onDragOver:a,onDragLeave:u,onDrop:c}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ye.displayName="KendoReactDroppable"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.Tooltip=r.Tooltip},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),u=n(7),c=n(1),s=n(4),f=n(8),p=n(4),d=n(9),v=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,r=t?t.ownerDocument:document,o=r&&r.elementFromPoint(e.clientX,e.clientY);f.isTooltipElement(o)||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 o(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,r=n.children,o=l(n,["children"]),c=null;return a.createElement("div",{onMouseOver:function(e){c&&c.handleMouseOver(e)},onMouseOut:function(e){c&&c.handleMouseOut(e)}},a.createElement(t,i({ref:function(e){return c=e}},o)),r)}if(!1===this.props.open)return null;var f=this.state.targetElement,p=this.getCurrentZIndex();return f&&this.state.title&&f.ownerDocument&&u.createPortal(a.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},a.createElement("div",{className:s.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},a.createElement("div",{className:"k-tooltip-content"},this.props.content&&a.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&a.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,r=this.getTitle(n);r.title?(r.element&&(r.element.titleExpando=r.title,r.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout((function(){t.willOpen&&t.setState({targetElement:n,open:!0,title:r.title},t.setUpdateInterval)}),this.props.openDelay):this.setState({targetElement:n,open:!0,title:r.title},this.setUpdateInterval),this.state.title!==r.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}(a.PureComponent);t.Tooltip=v},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getLeftPosition=function(e,t,n,r,o){switch(o){case"bottom":return"pointer"===r?e-t/2:n.left-t/2+n.width/2;case"left":return"pointer"===r?e-t-10:n.left-t-10;case"right":return"pointer"===r?e+10:n.right+10;case"top":return"pointer"===r?e-t/2:n.left-t/2+n.width/2;default:return"pointer"===r?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,r,o){switch(o){case"bottom":return"pointer"===r?e+10:t.bottom+10;case"left":case"right":return"pointer"===r?e-n/2:t.top-n/2+t.height/2;case"top":return"pointer"===r?e-n-10:t.top-n-10;default:return"pointer"===r?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}),t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642077231,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"}}])}));
@@ -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: 1641991453,
8
+ publishDate: 1642077231,
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
  };
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-tooltip',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1641991453,
10
+ publishDate: 1642077231,
11
11
  version: '',
12
12
  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
13
  };
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-tooltip",["react","react-dom","@progress/kendo-react-common","prop-types"],function(i){var l,s,a,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){l=e(t)},function(t){s=e(t)},function(t){a=e(t)},function(t){p=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;n={},r.m=o=[function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o=o(2);e.Tooltip=o.Tooltip,function(t){for(var e in t)i(e,t[e])}(e)},function(t,e,o){"use strict";var n,r=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)}),i=this&&this.__assign||function(){return(i=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)},l=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};Object.defineProperty(e,"__esModule",{value:!0});var s,a=o(3),p=o(4),u=o(5),c=o(0),f=o(6),d=o(0),m=o(7),u=(s=a.PureComponent,r(h,s),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 o=this;if(this.props.children){var t=this.props,e=t.children,t=l(t,["children"]),n=null;return a.createElement("div",{onMouseOver:function(t){n&&n.handleMouseOver(t)},onMouseOut:function(t){n&&n.handleMouseOut(t)}},a.createElement(h,i({ref:function(t){return n=t}},t)),e)}if(!1===this.props.open)return null;t=this.state.targetElement,e=this.getCurrentZIndex();return t&&this.state.title&&t.ownerDocument&&p.createPortal(a.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:c.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:i({zIndex:e},this.props.style),tabIndex:0},a.createElement("div",{className:c.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},a.createElement("div",{className:"k-tooltip-content"},this.props.content&&a.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&a.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;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 o=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&&c.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:u.oneOf(["pointer","target"]),content:u.func,filter:u.func,openDelay:u.number,position:u.oneOf(["right","left","top","bottom","auto"]),updateInterval:u.number},h.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},h.contextType=c.ZIndexContext,h);function h(t){var o=s.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){c.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=u},function(t,e){t.exports=l},function(t,e){t.exports=s},function(t,e){t.exports=p},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}),e.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1641991453,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"}}],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=1)}}});
1
+ System.register("@progress/kendo-react-tooltip",["react","prop-types","react-dom","@progress/kendo-react-common"],function(i){var l,s,a,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){l=e(t)},function(t){s=e(t)},function(t){a=e(t)},function(t){p=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;n={},r.m=o=[function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o=o(2);e.Tooltip=o.Tooltip,function(t){for(var e in t)i(e,t[e])}(e)},function(t,e,o){"use strict";var n,r=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)}),i=this&&this.__assign||function(){return(i=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)},l=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};Object.defineProperty(e,"__esModule",{value:!0});var s,a=o(3),p=o(4),u=o(5),c=o(0),f=o(6),d=o(0),m=o(7),u=(s=a.PureComponent,r(h,s),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 o=this;if(this.props.children){var t=this.props,e=t.children,t=l(t,["children"]),n=null;return a.createElement("div",{onMouseOver:function(t){n&&n.handleMouseOver(t)},onMouseOut:function(t){n&&n.handleMouseOut(t)}},a.createElement(h,i({ref:function(t){return n=t}},t)),e)}if(!1===this.props.open)return null;t=this.state.targetElement,e=this.getCurrentZIndex();return t&&this.state.title&&t.ownerDocument&&p.createPortal(a.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:c.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:i({zIndex:e},this.props.style),tabIndex:0},a.createElement("div",{className:c.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},a.createElement("div",{className:"k-tooltip-content"},this.props.content&&a.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&a.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;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 o=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&&c.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:u.oneOf(["pointer","target"]),content:u.func,filter:u.func,openDelay:u.number,position:u.oneOf(["right","left","top","bottom","auto"]),updateInterval:u.number},h.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},h.contextType=c.ZIndexContext,h);function h(t){var o=s.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){c.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=u},function(t,e){t.exports=l},function(t,e){t.exports=a},function(t,e){t.exports=s},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}),e.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642077231,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"}}],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=1)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-tooltip",
3
- "version": "4.14.0-dev.202201121250",
3
+ "version": "4.14.0-dev.202201131239",
4
4
  "description": "KendoReact Tooltip package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,14 +35,14 @@
35
35
  "react-dom": "^16.8.2 || ^17.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@progress/kendo-react-common": "4.14.0-dev.202201121250",
38
+ "@progress/kendo-react-common": "4.14.0-dev.202201131239",
39
39
  "prop-types": "^15.6.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@progress/kendo-licensing": "^1.0.1",
43
- "@progress/kendo-react-dialogs": "4.14.0-dev.202201121250",
44
- "@progress/kendo-react-grid": "4.14.0-dev.202201121250",
45
- "@progress/kendo-react-intl": "4.14.0-dev.202201121250"
43
+ "@progress/kendo-react-dialogs": "4.14.0-dev.202201131239",
44
+ "@progress/kendo-react-grid": "4.14.0-dev.202201131239",
45
+ "@progress/kendo-react-intl": "4.14.0-dev.202201131239"
46
46
  },
47
47
  "@progress": {
48
48
  "friendlyName": "Tooltip",