@progress/kendo-react-tooltip 5.4.0-dev.202205180853 → 5.4.0-dev.202205200719

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("react-dom"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactTooltip=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-licensing")):e.KendoReactTooltip=t(e.React,e.PropTypes,e.ReactDOM,e.KendoLicensing)}(window,(function(e,t,n,o){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return o.a})),n.d(t,"useZIndexContext",(function(){return o.b})),n.d(t,"BrowserSupportService",(function(){return i})),n.d(t,"canUseDOM",(function(){return a.a})),n.d(t,"canUseRef",(function(){return l})),n.d(t,"classNames",(function(){return u.a})),n.d(t,"cloneDate",(function(){return s})),n.d(t,"clone",(function(){return f})),n.d(t,"cloneObject",(function(){return p})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return m})),n.d(t,"getTabIndex",(function(){return g})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return E})),n.d(t,"noop",(function(){return k})),n.d(t,"getScrollbarWidth",(function(){return x})),n.d(t,"setScrollbarWidth",(function(){return D})),n.d(t,"setter",(function(){return M})),n.d(t,"mapTree",(function(){return _})),n.d(t,"mapTreeItem",(function(){return S})),n.d(t,"extendDataItem",(function(){return A})),n.d(t,"getItemPath",(function(){return L})),n.d(t,"validatePackage",(function(){return I.a})),n.d(t,"hasRelativeStackingContext",(function(){return j})),n.d(t,"dispatchEvent",(function(){return z})),n.d(t,"AsyncFocusBlur",(function(){return B})),n.d(t,"createPropsContext",(function(){return X})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return V})),n.d(t,"useAsyncFocusBlur",(function(){return U})),n.d(t,"useRtl",(function(){return F})),n.d(t,"useMouse",(function(){return Z})),n.d(t,"useCustomComponent",(function(){return G})),n.d(t,"usePropsContext",(function(){return K})),n.d(t,"COLLECTION_ACTION",(function(){return q})),n.d(t,"useCollection",(function(){return $})),n.d(t,"useDocument",(function(){return J})),n.d(t,"useWindow",(function(){return Q})),n.d(t,"Icon",(function(){return re})),n.d(t,"SvgIcon",(function(){return ue})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return Te})),n.d(t,"Draggable",(function(){return Be})),n.d(t,"Droppable",(function(){return We})),n.d(t,"useDraggable",(function(){return He})),n.d(t,"useDroppable",(function(){return Ke})),n.d(t,"kendoThemeMaps",(function(){return Xe}));var o=n(8),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=n(2),l=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},u=n(3),c=n(0),s=function(e){return e?new Date(e.getTime()):null};function f(e){var t={};return p(e,t),t}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return s(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return p(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},m=function(){},g=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0},y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(e){var t=[];return e.replace(y,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var w={};function O(e){if(w[e])return w[e];var t=b(e);return w[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},w[e]}w.undefined=function(){};var C=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},E={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},k=function(){},x=function(){return!(!a.a||!document.body)&&(new i).scrollbarWidth},D=function(){if(!a.a||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},P={undefined:function(e){return e}},T=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function M(e){if(P[e])return P[e];var t=b(e);return P[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||T(t[a+1],o);r[t[i]]=n},P[e]}var R=function(){return(R=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function N(e,t,n){var o;return n?R({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var _=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=N(t,n).map((function(t){return e(t,n,o)}));return o(N(t,n,r))}return o(t)}(e,t,n)})).slice()},S=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var l=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=o(l[u]);l.splice(u,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},L=function(e,t,n){var o=[],r=t.slice();if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},I=n(9),j=function(e){if(!a.a)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function z(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function U(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),l=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),u=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),s=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),l((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,l,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:u,onBlur:s}}var H=function(){return(H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},B=function(e){var t=e.children,n=U({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,H({},n))},K=function(e,t){return c.useContext(e)(t)},W=function(){return(W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},X=function(){return c.createContext((function(e){return e}))},Y=function(e,t){return c.forwardRef((function(n,o){var r=K(e,n);return c.createElement(t,W({},r,{ref:o}))}))};function V(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}function F(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,Z=function(e,t,n){void 0===n&&(n={});var o=c.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),r=c.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:c.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:r,onMouseDown:o,onDoubleClick:c.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:c.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:c.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:c.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:c.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:c.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}},G=function(e){return c.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var $=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case q.add:t.current.push(e.item);break;case q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},J=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},Q=function(e){var t=J(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,l=e.style,s=oe(e,["className","name","themeColor","size","flip","style"]),f=c.useRef(null),p=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:p.current}})),c.useImperativeHandle(t,(function(){return f.current}));var d=c.useMemo((function(){return r||ie.themeColor}),[r]),h=c.useMemo((function(){return i||ie.size}),[i]),v=c.useMemo((function(){return a||ie.flip}),[a]),m=c.useMemo((function(){return Object(u.a)("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},te[h],n)}),[o,d,h,v,n]),g=Z(e,f);return c.createElement("span",ne({ref:p},s,g,{className:m,style:l,role:"presentation"}))}));re.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},le=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},ue=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,l=e.size,s=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,h=le(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:v.current}}));var m=c.useMemo((function(){return i?i.name:ce.icon}),[i]),g=c.useMemo((function(){return p||ce.themeColor}),[p]),y=c.useMemo((function(){return l||ce.size}),[l]),b=c.useMemo((function(){return a||ce.flip}),[a]),w=c.useMemo((function(){return d||ce.viewBox}),[d]),O=c.useMemo((function(){return Object(u.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[m,g,y,b,o]),C=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},s):e.width?ae({width:e.width,height:e.width},s):e.height?ae({width:e.height,height:e.height},s):ae({},s)}),[e.width,e.height,s]);return c.createElement("span",{className:O,style:C,ref:v},c.createElement("svg",ae({className:r,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));ue.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ce={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ue.displayName="KendoSvgIcon";var se={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},fe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},he={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ye=function(){return(ye=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},be=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},we=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,l=t.fontWeight,u=t.textAlign,s=t.textTransform,f=t.themeColor,p=t.margin,d=be(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),v=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:v.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var m=e,g=function(){if(void 0!==p){if("string"==typeof p)return[pe[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-"+p];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,o;null!==p[t]&&void 0!==p[t]&&e.push((n=t,o=p[t],""+he[n]+("string"==typeof o?de[o]:o)))})),e.join(" ")}}};return c.createElement(m,ye({id:o,ref:v,className:["k-"+("p"===e?"paragraph":e),se[a],fe[l],ve[u],me[s],ge[f],g(),i].filter((function(e){return void 0!==e})).join(" "),style:r},d),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:we("h1"),h2:we("h2"),h3:we("h3"),h4:we("h4"),h5:we("h5"),h6:we("h6"),p:we("p"),code:we("code"),pre:we("pre")},Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ee=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,Ce({},t,{value:e}))}),[n,i])]},ke=c.createContext([void 0,k]),xe=c.createContext([void 0,k]),De=c.createContext([[],k,k]),Pe=c.createContext([[],k,k]),Te=function(e){var t=Ee(null,void 0),n=t[0],o=t[1],r=Ee(null,void 0),i=r[0],a=r[1],l=$([]),u=l[0],s=l[1],f=$([]),p=f[0],d=f[1];return c.createElement(ke.Provider,{value:[n,o]},c.createElement(xe.Provider,{value:[i,a]},c.createElement(De.Provider,{value:[u,function(e){s({type:q.add,item:e})},function(e){s({type:q.remove,item:e})}]},c.createElement(Pe.Provider,{value:[p,function(e){d({type:q.add,item:e})},function(e){d({type:q.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Me,Re=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),l=Math.min(o.top+o.height,n.top+n.height),u=a-i,c=l-r;if(i<a&&r<l){var s=o.width*o.height,f=n.width*n.height,p=u*c;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},Ne=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},_e=function(e){return e&&e.ownerDocument||window.document},Se=function(e){var t=Ne(),n=_e(e);return t.edge||t.safari?n.body:n.documentElement},Ae=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Le=function(e){var t=Se(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Ae(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Me||(Me={}));var Ie=function(){},je=function(e,t,n){void 0===n&&(n={});var o,r,i,a,l=n.onIsPressedChange,u=void 0===l?Ie:l,c=n.onIsScrollingChange,s=void 0===c?Ie:c,f=n.onVelocityChange,p=void 0===f?Ie:f,d=n.onOffsetChange,h=void 0===d?Ie:d,v=n.onPageOffsetChange,m=void 0===v?Ie:v,g=n.onClientOffsetChange,y=void 0===g?Ie:g,b=n.onScrollOffsetChange,w=void 0===b?Ie:b,O=n.onInitialScrollOffsetChange,C=void 0===O?Ie:O,E=t.payload,k=E.element,x=E.hint,D=e.autoScrollDirection,P=e.scrollableParent,T=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(T.type){case Me.POINTER_DOWN:if(T.type===Me.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Me.MOUSE_DOWN:if(T.type===Me.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||e.ignoreMouse)break;case Me.TOUCH_START:if(T.type===Me.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Me.START:var M=P||Le(t.payload.element);C(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),y({x:T.clientX,y:T.clientY}),m({x:T.pageX,y:T.pageY}),h({x:T.offsetX,y:T.offsetY}),u(!0),E.onPress&&E.onPress(T);break;case Me.SCROLL:if(T.type===Me.SCROLL&&!e.pressed)break;var R=P||Le(k),N=R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop};T.scrollX=N.x-e.initialScrollOffset.x,T.scrollY=N.y-e.initialScrollOffset.y,w({x:T.scrollX,y:T.scrollY});case Me.POINTER_MOVE:if(T.type===Me.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Me.MOUSE_MOVE:case Me.TOUCH_MOVE:if(T.type===Me.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Me.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==T.originalEvent.type&&k){var _=_e(k),S=P||Le(_.elementFromPoint(T.clientX,T.clientY)),A=function(e,t,n){var o={x:0,y:0};return e-n.left<50?o.x=-(50-(e-n.left)):n.right-e<50&&(o.x=50-(n.right-e)),t-n.top<50?o.y=-(50-(t-n.top)):n.bottom-t<50&&(o.y=50-(n.bottom-t)),o}(T.pageX,T.pageY,function(e,t){var n=Se(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(S,function(e){var t=_e(e);return t&&t.defaultView||window}(k)));p({x:D&&!1===D.horizontal?0:A.x,y:D&&!1===D.vertical?0:A.y}),s(0!==A.y||0!==A.x)}!e.drag&&E.onDragStart&&E.onDragStart(T),E.onDrag&&E.onDrag(T);var L=Re(x||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||k)}))),I=e.drops.find((function(e){return e.element===L}));I&&L&&(o=T.clientX,r=T.clientY,i=P||Le(L),(a=i.getBoundingClientRect()).top<=r&&a.left<=o&&r<=a.bottom&&o<=a.right)&&L!==k?(e.drop&&e.drop.element)!==L?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T),I.onDragEnter&&I.onDragEnter(T)):I.onDragOver&&I.onDragOver(T):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}y({x:T.clientX,y:T.clientY}),m({x:T.pageX,y:T.pageY});break;case Me.POINTER_UP:if(T.type===Me.POINTER_UP&&!T.originalEvent.isPrimary)break;case Me.MOUSE_UP:case Me.TOUCH_END:if(T.type===Me.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Me.END:u(!1),s(!1),E.onRelease&&E.onRelease(T),e.drop&&e.drop.onDrop&&e.drop.onDrop(T),E.onDragEnd&&E.onDragEnd(T);break;case Me.POINTER_CANCEL:case Me.CONTEXT_MENU:case Me.TOUCH_CANCEL:case Me.CANCEL:u(!1),s(!1),E.onDragEnd&&E.onDragEnd(T),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}},ze=function(e,t){if(e){var n,o;e===Se(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,l=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),l?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Ue=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],l=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):l(e[0])}]};function He(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?k:o,i=t.onRelease,a=void 0===i?k:i,l=t.onDragStart,u=void 0===l?k:l,s=t.onDrag,f=void 0===s?k:s,p=t.onDragEnd,d=void 0===p?k:p,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=c.useState(!1),E=C[0],x=C[1],D=c.useState(!1),P=D[0],T=D[1],M=Ue(xe)[0],R=Ue(ke),N=R[0],_=R[1],S=c.useContext(Pe)[0],A=c.useContext(De),L=A[0],I=A[1],j=A[2],z=c.useRef({x:0,y:0}),U=c.useRef(),H=c.useRef(!1),B=c.useRef(),K=c.useRef(null),W=c.useRef(!1),X=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),F=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),Z=c.useRef({x:0,y:0}),G=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&G,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),ee=c.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=c.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:ve,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:me,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:N?N.current:null,drop:M?M.current:null,drags:L.map((function(e){return e.current})),drops:S.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:V.current,initialClientOffset:F.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[N,M,L,S,E,b,te,P]),ae=c.useCallback((function(e){x(e)}),[]),le=c.useCallback((function(e){T(e)}),[]),ue=c.useCallback((function(e){z.current=e}),[]),ce=c.useCallback((function(e){X.current=e}),[]),se=c.useCallback((function(e){V.current=e}),[]),fe=c.useCallback((function(e){Y.current=e}),[]),pe=c.useCallback((function(e){F.current=e}),[]),de=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){Z.current=e}),[]),ve=c.useCallback((function(e){r(e)}),[r]),me=c.useCallback((function(e){a(e)}),[a]),ge=c.useCallback((function(t){_(ne,{target:e.current,event:t}),u(t)}),[_,e,u]),ye=c.useCallback((function(e){f(e)}),[f]),be=c.useCallback((function(t){W.current||(_(null,{target:e.current,event:t}),d(t))}),[d,_,e]),we=c.useCallback((function(e){je(ie(),{event:e,payload:ne.current},{onVelocityChange:ue,onOffsetChange:ce,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:le})}),[ie,ue,ce,fe,se,pe,he,ae,de,le]),Oe=c.useCallback((function(e){we(e)}),[we]),Ce=c.useCallback((function(e){we(e)}),[we]),Ee=c.useCallback((function(e){we(e)}),[we]),Te=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){we(e)}),[we]),Re=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Se=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ae=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ie=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();H.current=!0,B.current=t.setTimeout((function(){H.current=!1}),2e3)}we(e)}),[we,re]),He=c.useCallback((function(e){we(e)}),[we]),Be=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=c.useCallback((function(){return I(ne),function(){j(ne)}}),[j,I]);c.useEffect((function(){var e=re();if(P){var t=ee()||Le(document.elementFromPoint(V.current.x,V.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){ze(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,P]),c.useEffect(Be,[Be]),c.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=Le(t),K.current&&K.current.addEventListener("scroll",He,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),E&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",Te,!0),n.addEventListener("contextmenu",_e),n.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Me,{passive:!0}),g||(t.addEventListener("touchstart",Se,{passive:!0}),E&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Ie,{passive:!0})))),E&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",Ne,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",He),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Me),t.removeEventListener("touchstart",Se),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Ie)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",Te,!0),n.removeEventListener("contextmenu",_e),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",Ne),e.removeEventListener("touchmove",k),e.clearTimeout(B.current)}}),[E,re,J,oe,g,$,_e,Me,Re,Ne,Ee,Oe,Ce,Te,Ie,Ae,Se,He]),c.useEffect((function(){return function(){W.current=!0}}),[]),c.useLayoutEffect(Ke,[Ke])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),l=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),u=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),s=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return He(n,{onPress:i,onRelease:a,onDragStart:l,onDrag:u,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function Ke(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,o=void 0===n?k:n,r=t.onDragOver,i=void 0===r?k:r,a=t.onDragLeave,l=void 0===a?k:a,u=t.onDrop,s=void 0===u?k:u,f=Ue(xe)[1],p=c.useContext(Pe),d=p[1],h=p[2],v=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=c.useRef(null);c.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=c.useCallback((function(t){f(m,{target:e.current,event:t}),o(t)}),[f,e,o]),y=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){f(null,{target:e.current,event:t}),l(t)}),[f,e,l]),w=c.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),O=c.useCallback((function(){return d(m),function(){h(m)}}),[h,d]);c.useLayoutEffect(O,[O])}Be.displayName="KendoReactDraggable";var We=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),l=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),u=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Ke(n,{onDragEnter:i,onDragOver:a,onDragLeave:l,onDrop:u}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));We.displayName="KendoReactDroppable";var Xe={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(e,t){e.exports=n},function(e,t){e.exports=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(6);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1652863652,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1);t.PopoverActionsBar=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(r,(function(){return{props:e,element:n.current}})),o.useImperativeHandle(t,(function(){return r.current})),o.createElement("div",{ref:n,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},e.children)}));t.PopoverActionsBar.propTypes={children:r.oneOfType([r.element,r.node])},t.PopoverActionsBar.defaultProps={},t.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(13);t.Tooltip=o.Tooltip;var r=n(15);t.Popover=r.Popover;var i=n(11);t.PopoverActionsBar=i.PopoverActionsBar},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),u=n(5),c=n(1),s=n(4),f=n(14),p=n(4),d=n(10),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={targetElement:null,open:!1,title:""},n.top=0,n.left=0,n.willOpen=!1,n.handleMouseOut=function(e){var t=n.state.targetElement,o=t?t.ownerDocument:document,r=o&&o.elementFromPoint(e.clientX,e.clientY);f.isTooltipElement(r)||n.props.open||(clearInterval(n.updateIntervalId),n.willOpen=!1,n.onClose(e))},n.handleMouseOver=function(e){var t=e.target;n.isVisible(t)&&!f.isTooltipElement(t)&&t!==n.state.targetElement&&n.showToolTip(e)},n.handleBodyMousemove=function(e){n.top=e.clientY,n.left=e.clientX},n.onClose=function(e){s.dispatchEvent(n.props.onClose,e,n,void 0),n.setState({targetElement:null,open:!1,title:""})},n.setUpdateInterval=function(){n.props.updateInterval&&(n.updateIntervalId=setInterval(n.onIntervalUpdate,n.props.updateInterval))},n.onIntervalUpdate=function(){var e=n.state.targetElement;e&&(null===e.parentElement?n.onClose({target:e}):n.showToolTip({target:e}))},n.position=function(e){var t=f.getDomRect(n.state.targetElement);return{left:f.getLeftPosition(n.left,e.offsetWidth,t,n.props.anchorElement,n.props.position),top:f.getTopPosition(n.top,t,e.offsetHeight,n.props.anchorElement,n.props.position)}},n.getTitle=function(e){for(;e;){if(null!==e.getAttribute("title")||e.titleExpando)return{title:e.getAttribute("title")||e.titleExpando,element:e};e=n.props.parentTitle&&e.parentElement||null}return{title:"",element:e}},n.calloutClassName=function(){switch(n.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return n.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},n.getCurrentZIndex=function(){return n.context?n.context:100},p.validatePackage(d.packageMetadata),n}return r(t,e),t.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},t.prototype.render=function(){var e=this;if(this.props.children){var n=this.props,o=n.children,r=a(n,["children"]),c=null;return l.createElement("div",{onMouseOver:function(e){c&&c.handleMouseOver(e)},onMouseOut:function(e){c&&c.handleMouseOut(e)}},l.createElement(t,i({ref:function(e){return c=e}},r)),o)}if(!1===this.props.open)return null;var f=this.state.targetElement,p=this.getCurrentZIndex();return f&&this.state.title&&f.ownerDocument&&u.createPortal(l.createElement("div",{ref:function(t){var n;t&&(n=e.props.onPosition?e.props.onPosition.call(void 0,{element:t,targetElement:e.state.targetElement,mouseTop:e.top,mouseLeft:e.left,anchorElement:e.props.anchorElement,position:e.props.position,target:e}):e.position(t),t.style.left=n.left+"px",t.style.top=n.top+"px")},className:s.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:i({zIndex:p},this.props.style),tabIndex:0},l.createElement("div",{className:s.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},l.createElement("div",{className:"k-tooltip-content"},this.props.content&&l.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&l.createElement("div",{ref:function(t){t&&(t.className=e.calloutClassName(),"auto"===e.props.position&&(e.left<window.screen.availWidth/2?t.style.left=e.props.setCalloutOnPositionAuto||"25%":t.style.left=e.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo?this.props.appendTo:f.ownerDocument.body)},t.prototype.showToolTip=function(e){var t=this;clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach((function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}));var n=this.props.targetElement||e.target,o=this.getTitle(n);o.title?(o.element&&(o.element.titleExpando=o.title,o.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout((function(){t.willOpen&&t.setState({targetElement:n,open:!0,title:o.title},t.setUpdateInterval)}),this.props.openDelay):this.setState({targetElement:n,open:!0,title:o.title},this.setUpdateInterval),this.state.title!==o.title&&s.dispatchEvent(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},t.prototype.isVisible=function(e){return!this.props.filter||this.props.filter(e)},t.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},t.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},t.contextType=s.ZIndexContext,t}(l.PureComponent);t.Tooltip=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getLeftPosition=function(e,t,n,o,r){switch(r){case"bottom":return"pointer"===o?e-t/2:n.left-t/2+n.width/2;case"left":return"pointer"===o?e-t-10:n.left-t-10;case"right":return"pointer"===o?e+10:n.right+10;case"top":return"pointer"===o?e-t/2:n.left-t/2+n.width/2;default:return"pointer"===o?e<window.screen.availWidth/2?e-10:e-t+10:e<window.screen.availWidth/2?n.left:n.right-t}},t.getTopPosition=function(e,t,n,o,r){switch(r){case"bottom":return"pointer"===o?e+10:t.bottom+10;case"left":case"right":return"pointer"===o?e-n/2:t.top-n/2+t.height/2;case"top":return"pointer"===o?e-n-10:t.top-n-10;default:return"pointer"===o?e<window.innerHeight/2?e+10:e-n-10:e<window.innerHeight/2?t.bottom+10:t.top-n-10}},t.getDomRect=function(e){return null!==e?e.getBoundingClientRect():document.body.getBoundingClientRect()},t.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],t.isTooltipElement=function(e){if(null===e)return!1;for(var n=e;n;){if(null!==n&&n.classList&&n.classList.contains("k-tooltip"))return!0;n=null!==n.parentNode&&n.parentNode}return t.toolTipSelectors.filter((function(t){return t===e.className})).length>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1),i=n(4),a=n(4),l=n(10),u=n(16),c=n(11),s={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},f={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},p={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},d={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};t.Popover=o.forwardRef((function(e,t){a.validatePackage(l.packageMetadata);var n=e.callout,r=e.position,h=e.title,v=e.children,m=e.show,g=e.anchor,y=e.appendTo,b=e.offset,w=e.animate,O=e.positionMode,C=e.scale,E=e.popoverClass,k=e.className,x=e.id,D=e.style,P=e.collision,T=e.contentStyle,M=e.onPosition,R=e.onClose,N=e.onOpen,_=o.useState(!1),S=_[0],A=_[1],L="top"===r||"bottom"===r,I=e.margin||{vertical:n&&L?15:0,horizontal:n&&!L?15:0},j=p[r],z=d[r],U=o.useContext(i.ZIndexContext),H=U?U+2e3:12e3,B=o.useRef(null);o.useImperativeHandle(B,(function(){return{props:e}})),o.useImperativeHandle(t,(function(){return B.current}));var K=o.useCallback((function(e){if(setTimeout((function(){return A(e.flipped)})),M){var t={target:B.current,flipped:e.flipped,fitted:e.fitted};M.call(void 0,t)}}),[M,A]),W=o.useCallback((function(){if(N){var e={target:B.current};N.call(void 0,e)}}),[N]),X=o.useCallback((function(){if(R){var e={target:B.current};R.call(void 0,e)}}),[R]),Y={"k-popover":!0,"k-popup":!1};Array.isArray(E)?E.forEach((function(e){return Y[e]=!0})):"object"==typeof E?Object.keys(E).forEach((function(e){Y[e]=E[e]})):E&&(Y[E]=!0);var V=S?f[r]:s[r];return o.createElement(i.ZIndexContext.Provider,{value:H},o.createElement(u.Popup,{id:x,animate:w,collision:P,anchor:g,offset:b,margin:I,popupAlign:j,anchorAlign:z,appendTo:y,show:m,scale:C,positionMode:O,style:D,className:k,popupClass:Y,onOpen:W,onClose:X,onPosition:K},n&&r&&o.createElement("div",{className:i.classNames("k-popover-callout",V)}),h&&o.createElement("div",{className:"k-popover-header"},h),o.createElement("div",{className:"k-popover-body",style:T},function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type!==c.PopoverActionsBar}))}(v)),function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type===c.PopoverActionsBar}))}(v)))}));t.Popover.propTypes={callout:r.bool,title:r.string,position:r.oneOf(["top","left","bottom","right"]),show:r.bool,animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed."):null},positionMode:r.oneOf(["fixed","absolute"]),scale:r.number,offset:r.shape({left:r.number,top:r.number}),children:r.oneOfType([r.element,r.node]),className:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),id:r.string,popoverClass:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),style:r.object,onClose:r.func,onPosition:r.func,onOpen:r.func},t.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},t.Popover.displayName="KendoReactPopover"},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return se})),n.d(t,"PopupPropsContext",(function(){return ce}));var o=n(0),r=n(5),i=n(1),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},l="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),u=n(9),c=n(2),s=n(8),f=n(3),p="bottom",d="center",h="middle",v="left",m="right",g="top";function y(e){return e.ownerDocument||e.document||e}var b=function(e){return y(e).defaultView},w=function(e){return y(e).documentElement},O=0;function C(){if(!O&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),O=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return O}function E(e){var t=b(e),n=w(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=C()),o}var k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||w(e)},x=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}},D=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function P(e){var t=w(e),n=b(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var T=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var M=function(e,t){var n=b(e),o=n.getComputedStyle(e),r=x(e),i=t||k(e),a=e.ownerDocument,l=i!==a.body&&i!==a.documentElement,u={top:0,left:0};if("fixed"!==o.position&&l){var c=n.getComputedStyle(i);(u=x(i)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-u.top,left:r.left-u.left,height:r.height,width:r.width}},R=function(e,t){return e?T(e):function(e){var t=k(e);return t?T(t):{x:0,y:0}}(t)};var N="fit",_="flip",S="none",A=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},L=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,l=0,u=2*e.margin;if(a!==i&&!(a===d||a===h)&&!(i===d||i===h)){var c=i===g||i===v;t<0&&c?t+(l=n+o+u)+n>r&&(l=0):t>=0&&!c&&(t+n>r&&(l+=-(o+n+u)),t+l<0&&(l=0))}return l},I=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},j=function(e,t){for(var n,o,r=D(e),i=t;i&&(n=I(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var z,U,H,B,K=(z=function(e){if(!W())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},H=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return H||(U=z.apply(void 0,e),H=!0),U}),W=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},X={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:K,canUseDOM:W},Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],V=function(){return X.canUseDOM()?window:null},F=/auto|scroll/,q=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},Z=function(e){if(!e||!X.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},G=function(){return X.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},$={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,l=n.vertical,u=r.horizontal,c=r.vertical,s=i.horizontal||0,f=i.vertical||0,v=t.top,g=t.left;return l===p&&(v+=t.height),l!==d&&l!==h||(v+=Math.round(t.height/2)),c===p&&(v-=o.height,f*=-1),c!==d&&c!==h||(v-=Math.round(o.height/2),f*=-1),a===m&&(g+=t.width),a!==d&&a!==h||(g+=Math.round(t.width/2)),u===m&&(g-=o.width,s*=-1),u!==d&&u!==h||(g-=Math.round(o.width/2),s*=-1),{top:v+f,left:g+s}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=E(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=V();if(!t||!e)return[];var n=t.getComputedStyle(e);return Y.map((function(e){return{key:e,value:n[e]}}))},getWindow:V,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?x(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=x(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?k(t):null,r=M(e,o),i=r.top,a=r.left,l=r.height,u=r.width,c=R(o,e),s=c.x,f=c.y,p=e.ownerDocument,d=o===p.body||o===p.documentElement?1:n;return{top:i+f*d,left:a+s*d,height:l,width:u}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,l=e.margin;void 0===l&&(l={});var u=o.top,c=o.left,s=o.height,f=o.width,p=a.height,d=a.width,h=l.horizontal||0,v=l.vertical||0,m=0,g=0,y=i.vertical===N,b=i.horizontal===N,w=i.vertical===_,O=i.horizontal===_;y&&(g+=A(u,s,p)),b&&(m+=A(c,f,d)),w&&(g+=L({margin:v,offset:u,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),O&&(m+=L({margin:h,offset:c,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==g,E=O&&0!==m,k=y&&0!==g,x=b&&0!==m;return{flipped:E||C,fitted:k||x,flip:{horizontal:E,vertical:C},fit:{horizontal:x,vertical:k},offset:{left:m,top:g}}},scrollPosition:P,scrollableParents:function(e){var t=[];if(!X.canUseDOM())return t;for(var n=e.parentElement;n;)(F.test(q(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:Z,stackingElementOffset:function(e){var t=Z(e);return t?x(t):null},stackingElementScroll:function(e){var t=Z(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=Z(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(Z(e))},windowViewPort:E,zoomLevel:G,isZoomed:function(){return G()>1},zIndex:function(e,t){if(!e||!X.canUseDOM())return null;var n=j(e,t);if(!n)return null;var o=[e].concat(D(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}},J=function(e,t){return e?{x:0,y:0}:$.scrollPosition(t)},Q=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,l=e.positionMode,u=e.scale||1,c="fixed"===l||!$.hasOffsetParent(n)?function(e,t,n,o){var r=J(e,t),i=X.eitherRect($.offset(e),n),a=2*o,l=$.stackingElementScroll(t);1!==o&&l&&(l.x/=a,l.y/=a);var u=$.stackingElementOffset(t);return 1!==o&&u&&(u.left/=a,u.top/=a),$.removeScroll($.addScroll(X.removeStackingOffset(X.scaleRect(i,o),u),l),r)}(t,n,a,u):function(e,t,n,o){var r=X.eitherRect($.position(e,t,o),n);return X.scaleRect(r,o)}(t,n,a,u),s=X.scaleRect($.offset(n),u);return $.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:s,margin:i})},ee=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,l=e.margin,u=e.scale||1,c=$.offsetAtPoint(o,n),s=X.scaleRect(c,u),f=X.scaleRect($.offset(t),u),p=X.eitherRect(f,n),d=e.viewPort||$.windowViewPort(o);d.width=d.width/u,d.height=d.height/u;var h=$.restrictToView({anchorAlign:r,anchorRect:p,collisions:a,elementAlign:i,elementRect:s,margin:l,viewPort:d}),v=$.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}},te={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1652862478,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ne=(B=function(e,t){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function re(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var ie,ae={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(ie||(ie={}));var le=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:ie.hidden,previous:ie.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:ie.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,l=t.anchor,u=t.margin,c=t.scale,s=t.positionMode,f=Q({anchor:l,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:u,positionMode:s,scale:c}),p=ee({anchor:l,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:f,margin:n.props.margin});if(e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",n._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},n.props.onPosition){var d={target:n,flipped:p.flipped,fitted:p.fitted};n.props.onPosition.call(void 0,d)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,u=i.horizontal,c=i.vertical;r="left"===u&&"center"===c?"right":"right"===u&&"center"===c?"left":"top"===c?"down":"up";n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,u=i+"-active",c=function(t){t.target===e&&(e.removeEventListener("transitionend",c),a(e),r())};e.addEventListener("transitionend",c);var s=e.ownerDocument;if(s){var f=s.defaultView;if(f){var p=function(){a(e),e.classList.add(i),f.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(u)}))};l?f.requestAnimationFrame(p):p()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===ie.hiding&&n.state.previous===ie.shown&&n.setState({current:ie.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(u.a)(te),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var l=0;n=n||{};var u=function(){l=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();l||!1!==n.leading||(l=c);var s=t-(c-l);return r=this,i=arguments,s<=0||s>t?(o&&(clearTimeout(o),o=null),l=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(u,s)),a}}(n.reposition.bind(n),1e3/60),n}return ne(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,l=e.popupAlign,u=e.className,c=e.popupClass,s=e.style,f=e.offset,p=e.contentKey,d=oe({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:l,className:u,popupClass:c,style:s,offset:f,contentKey:p}});return e.show?t.current===ie.hidden||t.current===ie.hiding?oe({},d,{current:ie.showing,previous:t.current}):t.current===ie.showing?oe({},d,{current:ie.shown,previous:t.current}):t.current!==ie.shown||re(f,t.props.offset)&&re(r,t.props.anchorAlign)&&re(i,t.props.appendTo)&&re(a,t.props.collision)&&re(l,t.props.popupAlign)&&re(s,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&u===t.props.className?d:oe({},d,{current:ie.reposition,previous:t.current}):t.current===ie.hiding||t.current===ie.hidden?oe({},d,{current:ie.hidden,previous:t.current}):oe({},d,{current:ie.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===ie.showing&&this._popup?this.show(this._popup):this.state.current===ie.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===ie.reposition&&this.state.previous===ie.shown?this.setState({current:ie.shown,previous:this.state.current}):this.state.current===ie.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===ie.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,l=t.show,u=t.id,p=t.positionMode,d=this.props.appendTo?this.props.appendTo:c.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===ie.reposition&&this.state.previous===ie.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:p,top:0,left:-1e4},this.props.style||{}),v=this.state.current===ie.hiding;if((l||v)&&d){var m=this.getCurrentZIndex(),g=o.createElement(s.a.Provider,{value:m},o.createElement("div",{className:Object(f.a)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:oe({zIndex:m},h)},o.createElement("div",{className:Object(f.a)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?r.createPortal(g,d):g}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=$.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:ie.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([N,_,S]),vertical:i.oneOf([N,_,S])}),anchorAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,p])}),popupAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,p])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:N,vertical:_},anchorAlign:{horizontal:v,vertical:p},popupAlign:{horizontal:v,vertical:g},offset:ae,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.a,t.displayName="PopupComponent",t}(o.Component),ue=function(){return(ue=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ce=o.createContext((function(e){return e})),se=o.forwardRef((function(e,t){var n=o.useContext(ce).call(void 0,e);return o.createElement(le,ue({ref:t},n))}));se.displayName="Popup"}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoReactTooltip=t(require("react"),require("prop-types"),require("react-dom"),require("@progress/kendo-licensing")):e.KendoReactTooltip=t(e.React,e.PropTypes,e.ReactDOM,e.KendoLicensing)}(window,(function(e,t,n,o){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},function(e,t,n){"use strict";n.r(t),n.d(t,"ZIndexContext",(function(){return o.a})),n.d(t,"useZIndexContext",(function(){return o.b})),n.d(t,"BrowserSupportService",(function(){return i})),n.d(t,"canUseDOM",(function(){return a.a})),n.d(t,"canUseRef",(function(){return l})),n.d(t,"classNames",(function(){return u.a})),n.d(t,"cloneDate",(function(){return s})),n.d(t,"clone",(function(){return f})),n.d(t,"cloneObject",(function(){return p})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return m})),n.d(t,"getTabIndex",(function(){return g})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return E})),n.d(t,"noop",(function(){return k})),n.d(t,"getScrollbarWidth",(function(){return x})),n.d(t,"setScrollbarWidth",(function(){return D})),n.d(t,"setter",(function(){return M})),n.d(t,"mapTree",(function(){return _})),n.d(t,"mapTreeItem",(function(){return S})),n.d(t,"extendDataItem",(function(){return A})),n.d(t,"getItemPath",(function(){return L})),n.d(t,"validatePackage",(function(){return I.a})),n.d(t,"hasRelativeStackingContext",(function(){return j})),n.d(t,"dispatchEvent",(function(){return z})),n.d(t,"AsyncFocusBlur",(function(){return B})),n.d(t,"createPropsContext",(function(){return X})),n.d(t,"withPropsContext",(function(){return Y})),n.d(t,"useDir",(function(){return V})),n.d(t,"useAsyncFocusBlur",(function(){return U})),n.d(t,"useRtl",(function(){return F})),n.d(t,"useMouse",(function(){return Z})),n.d(t,"useCustomComponent",(function(){return G})),n.d(t,"usePropsContext",(function(){return K})),n.d(t,"COLLECTION_ACTION",(function(){return q})),n.d(t,"useCollection",(function(){return $})),n.d(t,"useDocument",(function(){return J})),n.d(t,"useWindow",(function(){return Q})),n.d(t,"Icon",(function(){return re})),n.d(t,"SvgIcon",(function(){return ue})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return Te})),n.d(t,"Draggable",(function(){return Be})),n.d(t,"Droppable",(function(){return We})),n.d(t,"useDraggable",(function(){return He})),n.d(t,"useDroppable",(function(){return Ke})),n.d(t,"kendoThemeMaps",(function(){return Xe}));var o=n(8),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=n(2),l=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},u=n(3),c=n(0),s=function(e){return e?new Date(e.getTime()):null};function f(e){var t={};return p(e,t),t}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return s(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return p(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},m=function(){},g=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0},y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(e){var t=[];return e.replace(y,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var w={};function O(e){if(w[e])return w[e];var t=b(e);return w[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},w[e]}w.undefined=function(){};var C=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},E={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},k=function(){},x=function(){return!(!a.a||!document.body)&&(new i).scrollbarWidth},D=function(){if(!a.a||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},P={undefined:function(e){return e}},T=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function M(e){if(P[e])return P[e];var t=b(e);return P[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||T(t[a+1],o);r[t[i]]=n},P[e]}var R=function(){return(R=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function N(e,t,n){var o;return n?R({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var _=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=N(t,n).map((function(t){return e(t,n,o)}));return o(N(t,n,r))}return o(t)}(e,t,n)})).slice()},S=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var l=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=o(l[u]);l.splice(u,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},L=function(e,t,n){var o=[],r=t.slice();if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},I=n(9),j=function(e){if(!a.a)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function z(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function U(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),l=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),u=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),s=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),l((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,l,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:u,onBlur:s}}var H=function(){return(H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},B=function(e){var t=e.children,n=U({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,H({},n))},K=function(e,t){return c.useContext(e)(t)},W=function(){return(W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},X=function(){return c.createContext((function(e){return e}))},Y=function(e,t){return c.forwardRef((function(n,o){var r=K(e,n);return c.createElement(t,W({},r,{ref:o}))}))};function V(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}function F(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,Z=function(e,t,n){void 0===n&&(n={});var o=c.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),r=c.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:c.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:r,onMouseDown:o,onDoubleClick:c.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:c.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:c.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:c.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:c.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:c.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}},G=function(e){return c.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var $=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case q.add:t.current.push(e.item);break;case q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},J=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},Q=function(e){var t=J(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,l=e.style,s=oe(e,["className","name","themeColor","size","flip","style"]),f=c.useRef(null),p=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:p.current}})),c.useImperativeHandle(t,(function(){return f.current}));var d=c.useMemo((function(){return r||ie.themeColor}),[r]),h=c.useMemo((function(){return i||ie.size}),[i]),v=c.useMemo((function(){return a||ie.flip}),[a]),m=c.useMemo((function(){return Object(u.a)("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},te[h],n)}),[o,d,h,v,n]),g=Z(e,f);return c.createElement("span",ne({ref:p},s,g,{className:m,style:l,role:"presentation"}))}));re.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},le=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},ue=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,l=e.size,s=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,h=le(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:v.current}}));var m=c.useMemo((function(){return i?i.name:ce.icon}),[i]),g=c.useMemo((function(){return p||ce.themeColor}),[p]),y=c.useMemo((function(){return l||ce.size}),[l]),b=c.useMemo((function(){return a||ce.flip}),[a]),w=c.useMemo((function(){return d||ce.viewBox}),[d]),O=c.useMemo((function(){return Object(u.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+m,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[y],o)}),[m,g,y,b,o]),C=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},s):e.width?ae({width:e.width,height:e.width},s):e.height?ae({width:e.height,height:e.height},s):ae({},s)}),[e.width,e.height,s]);return c.createElement("span",{className:O,style:C,ref:v},c.createElement("svg",ae({className:r,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));ue.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ce={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ue.displayName="KendoSvgIcon";var se={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},fe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},he={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ye=function(){return(ye=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},be=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},we=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,l=t.fontWeight,u=t.textAlign,s=t.textTransform,f=t.themeColor,p=t.margin,d=be(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),v=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:v.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var m=e,g=function(){if(void 0!==p){if("string"==typeof p)return[pe[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-"+p];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,o;null!==p[t]&&void 0!==p[t]&&e.push((n=t,o=p[t],""+he[n]+("string"==typeof o?de[o]:o)))})),e.join(" ")}}};return c.createElement(m,ye({id:o,ref:v,className:["k-"+("p"===e?"paragraph":e),se[a],fe[l],ve[u],me[s],ge[f],g(),i].filter((function(e){return void 0!==e})).join(" "),style:r},d),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:we("h1"),h2:we("h2"),h3:we("h3"),h4:we("h4"),h5:we("h5"),h6:we("h6"),p:we("p"),code:we("code"),pre:we("pre")},Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ee=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,Ce({},t,{value:e}))}),[n,i])]},ke=c.createContext([void 0,k]),xe=c.createContext([void 0,k]),De=c.createContext([[],k,k]),Pe=c.createContext([[],k,k]),Te=function(e){var t=Ee(null,void 0),n=t[0],o=t[1],r=Ee(null,void 0),i=r[0],a=r[1],l=$([]),u=l[0],s=l[1],f=$([]),p=f[0],d=f[1];return c.createElement(ke.Provider,{value:[n,o]},c.createElement(xe.Provider,{value:[i,a]},c.createElement(De.Provider,{value:[u,function(e){s({type:q.add,item:e})},function(e){s({type:q.remove,item:e})}]},c.createElement(Pe.Provider,{value:[p,function(e){d({type:q.add,item:e})},function(e){d({type:q.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Me,Re=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),l=Math.min(o.top+o.height,n.top+n.height),u=a-i,c=l-r;if(i<a&&r<l){var s=o.width*o.height,f=n.width*n.height,p=u*c;return Number((p/(s+f-p)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},Ne=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},_e=function(e){return e&&e.ownerDocument||window.document},Se=function(e){var t=Ne(),n=_e(e);return t.edge||t.safari?n.body:n.documentElement},Ae=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Le=function(e){var t=Se(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Ae(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Me||(Me={}));var Ie=function(){},je=function(e,t,n){void 0===n&&(n={});var o,r,i,a,l=n.onIsPressedChange,u=void 0===l?Ie:l,c=n.onIsScrollingChange,s=void 0===c?Ie:c,f=n.onVelocityChange,p=void 0===f?Ie:f,d=n.onOffsetChange,h=void 0===d?Ie:d,v=n.onPageOffsetChange,m=void 0===v?Ie:v,g=n.onClientOffsetChange,y=void 0===g?Ie:g,b=n.onScrollOffsetChange,w=void 0===b?Ie:b,O=n.onInitialScrollOffsetChange,C=void 0===O?Ie:O,E=t.payload,k=E.element,x=E.hint,D=e.autoScrollDirection,P=e.scrollableParent,T=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(T.type){case Me.POINTER_DOWN:if(T.type===Me.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Me.MOUSE_DOWN:if(T.type===Me.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||e.ignoreMouse)break;case Me.TOUCH_START:if(T.type===Me.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Me.START:var M=P||Le(t.payload.element);C(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),y({x:T.clientX,y:T.clientY}),m({x:T.pageX,y:T.pageY}),h({x:T.offsetX,y:T.offsetY}),u(!0),E.onPress&&E.onPress(T);break;case Me.SCROLL:if(T.type===Me.SCROLL&&!e.pressed)break;var R=P||Le(k),N=R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop};T.scrollX=N.x-e.initialScrollOffset.x,T.scrollY=N.y-e.initialScrollOffset.y,w({x:T.scrollX,y:T.scrollY});case Me.POINTER_MOVE:if(T.type===Me.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Me.MOUSE_MOVE:case Me.TOUCH_MOVE:if(T.type===Me.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Me.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==T.originalEvent.type&&k){var _=_e(k),S=P||Le(_.elementFromPoint(T.clientX,T.clientY)),A=function(e,t,n){var o={x:0,y:0};return e-n.left<50?o.x=-(50-(e-n.left)):n.right-e<50&&(o.x=50-(n.right-e)),t-n.top<50?o.y=-(50-(t-n.top)):n.bottom-t<50&&(o.y=50-(n.bottom-t)),o}(T.pageX,T.pageY,function(e,t){var n=Se(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(S,function(e){var t=_e(e);return t&&t.defaultView||window}(k)));p({x:D&&!1===D.horizontal?0:A.x,y:D&&!1===D.vertical?0:A.y}),s(0!==A.y||0!==A.x)}!e.drag&&E.onDragStart&&E.onDragStart(T),E.onDrag&&E.onDrag(T);var L=Re(x||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||k)}))),I=e.drops.find((function(e){return e.element===L}));I&&L&&(o=T.clientX,r=T.clientY,i=P||Le(L),(a=i.getBoundingClientRect()).top<=r&&a.left<=o&&r<=a.bottom&&o<=a.right)&&L!==k?(e.drop&&e.drop.element)!==L?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T),I.onDragEnter&&I.onDragEnter(T)):I.onDragOver&&I.onDragOver(T):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}y({x:T.clientX,y:T.clientY}),m({x:T.pageX,y:T.pageY});break;case Me.POINTER_UP:if(T.type===Me.POINTER_UP&&!T.originalEvent.isPrimary)break;case Me.MOUSE_UP:case Me.TOUCH_END:if(T.type===Me.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Me.END:u(!1),s(!1),E.onRelease&&E.onRelease(T),e.drop&&e.drop.onDrop&&e.drop.onDrop(T),E.onDragEnd&&E.onDragEnd(T);break;case Me.POINTER_CANCEL:case Me.CONTEXT_MENU:case Me.TOUCH_CANCEL:case Me.CANCEL:u(!1),s(!1),E.onDragEnd&&E.onDragEnd(T),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}},ze=function(e,t){if(e){var n,o;e===Se(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,l=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),l?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Ue=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],l=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):l(e[0])}]};function He(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?k:o,i=t.onRelease,a=void 0===i?k:i,l=t.onDragStart,u=void 0===l?k:l,s=t.onDrag,f=void 0===s?k:s,p=t.onDragEnd,d=void 0===p?k:p,h=n.hint,v=void 0===h?null:h,m=n.mouseOnly,g=void 0!==m&&m,y=n.autoScroll,b=void 0===y||y,w=n.scrollContainer,O=void 0===w?null:w,C=c.useState(!1),E=C[0],x=C[1],D=c.useState(!1),P=D[0],T=D[1],M=Ue(xe)[0],R=Ue(ke),N=R[0],_=R[1],S=c.useContext(Pe)[0],A=c.useContext(De),L=A[0],I=A[1],j=A[2],z=c.useRef({x:0,y:0}),U=c.useRef(),H=c.useRef(!1),B=c.useRef(),K=c.useRef(null),W=c.useRef(!1),X=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),F=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),Z=c.useRef({x:0,y:0}),G=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&G,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),ee=c.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=c.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:ve,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:me,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:N?N.current:null,drop:M?M.current:null,drags:L.map((function(e){return e.current})),drops:S.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:X.current,pageOffset:Y.current,initialScrollOffset:Z.current,clientOffset:V.current,initialClientOffset:F.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[N,M,L,S,E,b,te,P]),ae=c.useCallback((function(e){x(e)}),[]),le=c.useCallback((function(e){T(e)}),[]),ue=c.useCallback((function(e){z.current=e}),[]),ce=c.useCallback((function(e){X.current=e}),[]),se=c.useCallback((function(e){V.current=e}),[]),fe=c.useCallback((function(e){Y.current=e}),[]),pe=c.useCallback((function(e){F.current=e}),[]),de=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){Z.current=e}),[]),ve=c.useCallback((function(e){r(e)}),[r]),me=c.useCallback((function(e){a(e)}),[a]),ge=c.useCallback((function(t){_(ne,{target:e.current,event:t}),u(t)}),[_,e,u]),ye=c.useCallback((function(e){f(e)}),[f]),be=c.useCallback((function(t){W.current||(_(null,{target:e.current,event:t}),d(t))}),[d,_,e]),we=c.useCallback((function(e){je(ie(),{event:e,payload:ne.current},{onVelocityChange:ue,onOffsetChange:ce,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:le})}),[ie,ue,ce,fe,se,pe,he,ae,de,le]),Oe=c.useCallback((function(e){we(e)}),[we]),Ce=c.useCallback((function(e){we(e)}),[we]),Ee=c.useCallback((function(e){we(e)}),[we]),Te=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){we(e)}),[we]),Re=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Se=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ae=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Ie=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();H.current=!0,B.current=t.setTimeout((function(){H.current=!1}),2e3)}we(e)}),[we,re]),He=c.useCallback((function(e){we(e)}),[we]),Be=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=c.useCallback((function(){return I(ne),function(){j(ne)}}),[j,I]);c.useEffect((function(){var e=re();if(P){var t=ee()||Le(document.elementFromPoint(V.current.x,V.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){ze(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[J,ee,re,P]),c.useEffect(Be,[Be]),c.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(K.current=Le(t),K.current&&K.current.addEventListener("scroll",He,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),E&&(n.addEventListener("pointermove",Ce),n.addEventListener("pointerup",Te,!0),n.addEventListener("contextmenu",_e),n.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Me,{passive:!0}),g||(t.addEventListener("touchstart",Se,{passive:!0}),E&&(t.addEventListener("touchmove",Ae,{passive:!0}),t.addEventListener("touchend",Ie,{passive:!0})))),E&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",Ne,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",He),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Me),t.removeEventListener("touchstart",Se),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Ie)),n.removeEventListener("pointermove",Ce),n.removeEventListener("pointerup",Te,!0),n.removeEventListener("contextmenu",_e),n.removeEventListener("pointercancel",Ee),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",Ne),e.removeEventListener("touchmove",k),e.clearTimeout(B.current)}}),[E,re,J,oe,g,$,_e,Me,Re,Ne,Ee,Oe,Ce,Te,Ie,Ae,Se,He]),c.useEffect((function(){return function(){W.current=!0}}),[]),c.useLayoutEffect(Ke,[Ke])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),l=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),u=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),s=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return He(n,{onPress:i,onRelease:a,onDragStart:l,onDrag:u,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function Ke(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,o=void 0===n?k:n,r=t.onDragOver,i=void 0===r?k:r,a=t.onDragLeave,l=void 0===a?k:a,u=t.onDrop,s=void 0===u?k:u,f=Ue(xe)[1],p=c.useContext(Pe),d=p[1],h=p[2],v=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=c.useRef(null);c.useImperativeHandle(m,(function(){return{element:v(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=c.useCallback((function(t){f(m,{target:e.current,event:t}),o(t)}),[f,e,o]),y=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){f(null,{target:e.current,event:t}),l(t)}),[f,e,l]),w=c.useCallback((function(t){f(null,{target:e.current,event:t}),s(t)}),[f,e,s]),O=c.useCallback((function(){return d(m),function(){h(m)}}),[h,d]);c.useLayoutEffect(O,[O])}Be.displayName="KendoReactDraggable";var We=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),l=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),u=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Ke(n,{onDragEnter:i,onDragOver:a,onDragLeave:l,onDrop:u}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));We.displayName="KendoReactDroppable";var Xe={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(e,t){e.exports=n},function(e,t){e.exports=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(6);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653030816,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1);t.PopoverActionsBar=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(r,(function(){return{props:e,element:n.current}})),o.useImperativeHandle(t,(function(){return r.current})),o.createElement("div",{ref:n,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},e.children)}));t.PopoverActionsBar.propTypes={children:r.oneOfType([r.element,r.node])},t.PopoverActionsBar.defaultProps={},t.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(13);t.Tooltip=o.Tooltip;var r=n(15);t.Popover=r.Popover;var i=n(11);t.PopoverActionsBar=i.PopoverActionsBar},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),u=n(5),c=n(1),s=n(4),f=n(14),p=n(4),d=n(10),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={targetElement:null,open:!1,title:""},n.top=0,n.left=0,n.willOpen=!1,n.handleMouseOut=function(e){var t=n.state.targetElement,o=t?t.ownerDocument:document,r=o&&o.elementFromPoint(e.clientX,e.clientY);f.isTooltipElement(r)||n.props.open||(clearInterval(n.updateIntervalId),n.willOpen=!1,n.onClose(e))},n.handleMouseOver=function(e){var t=e.target;n.isVisible(t)&&!f.isTooltipElement(t)&&t!==n.state.targetElement&&n.showToolTip(e)},n.handleBodyMousemove=function(e){n.top=e.clientY,n.left=e.clientX},n.onClose=function(e){s.dispatchEvent(n.props.onClose,e,n,void 0),n.setState({targetElement:null,open:!1,title:""})},n.setUpdateInterval=function(){n.props.updateInterval&&(n.updateIntervalId=setInterval(n.onIntervalUpdate,n.props.updateInterval))},n.onIntervalUpdate=function(){var e=n.state.targetElement;e&&(null===e.parentElement?n.onClose({target:e}):n.showToolTip({target:e}))},n.position=function(e){var t=f.getDomRect(n.state.targetElement);return{left:f.getLeftPosition(n.left,e.offsetWidth,t,n.props.anchorElement,n.props.position),top:f.getTopPosition(n.top,t,e.offsetHeight,n.props.anchorElement,n.props.position)}},n.getTitle=function(e){for(;e;){if(null!==e.getAttribute("title")||e.titleExpando)return{title:e.getAttribute("title")||e.titleExpando,element:e};e=n.props.parentTitle&&e.parentElement||null}return{title:"",element:e}},n.calloutClassName=function(){switch(n.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return n.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},n.getCurrentZIndex=function(){return n.context?n.context:100},p.validatePackage(d.packageMetadata),n}return r(t,e),t.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},t.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},t.prototype.render=function(){var e=this;if(this.props.children){var n=this.props,o=n.children,r=a(n,["children"]),c=null;return l.createElement("div",{onMouseOver:function(e){c&&c.handleMouseOver(e)},onMouseOut:function(e){c&&c.handleMouseOut(e)}},l.createElement(t,i({ref:function(e){return c=e}},r)),o)}if(!1===this.props.open)return null;var f=this.state.targetElement,p=this.getCurrentZIndex();return f&&this.state.title&&f.ownerDocument&&u.createPortal(l.createElement("div",{ref:function(t){var n;t&&(n=e.props.onPosition?e.props.onPosition.call(void 0,{element:t,targetElement:e.state.targetElement,mouseTop:e.top,mouseLeft:e.left,anchorElement:e.props.anchorElement,position:e.props.position,target:e}):e.position(t),t.style.left=n.left+"px",t.style.top=n.top+"px")},className:s.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:i({zIndex:p},this.props.style),tabIndex:0},l.createElement("div",{className:s.classNames("k-tooltip",this.props.tooltipClassName),style:i({position:"relative"},this.props.tooltipStyle)},l.createElement("div",{className:"k-tooltip-content"},this.props.content&&l.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&l.createElement("div",{ref:function(t){t&&(t.className=e.calloutClassName(),"auto"===e.props.position&&(e.left<window.screen.availWidth/2?t.style.left=e.props.setCalloutOnPositionAuto||"25%":t.style.left=e.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo?this.props.appendTo:f.ownerDocument.body)},t.prototype.showToolTip=function(e){var t=this;clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach((function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}));var n=this.props.targetElement||e.target,o=this.getTitle(n);o.title?(o.element&&(o.element.titleExpando=o.title,o.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout((function(){t.willOpen&&t.setState({targetElement:n,open:!0,title:o.title},t.setUpdateInterval)}),this.props.openDelay):this.setState({targetElement:n,open:!0,title:o.title},this.setUpdateInterval),this.state.title!==o.title&&s.dispatchEvent(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},t.prototype.isVisible=function(e){return!this.props.filter||this.props.filter(e)},t.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},t.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},t.contextType=s.ZIndexContext,t}(l.PureComponent);t.Tooltip=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getLeftPosition=function(e,t,n,o,r){switch(r){case"bottom":return"pointer"===o?e-t/2:n.left-t/2+n.width/2;case"left":return"pointer"===o?e-t-10:n.left-t-10;case"right":return"pointer"===o?e+10:n.right+10;case"top":return"pointer"===o?e-t/2:n.left-t/2+n.width/2;default:return"pointer"===o?e<window.screen.availWidth/2?e-10:e-t+10:e<window.screen.availWidth/2?n.left:n.right-t}},t.getTopPosition=function(e,t,n,o,r){switch(r){case"bottom":return"pointer"===o?e+10:t.bottom+10;case"left":case"right":return"pointer"===o?e-n/2:t.top-n/2+t.height/2;case"top":return"pointer"===o?e-n-10:t.top-n-10;default:return"pointer"===o?e<window.innerHeight/2?e+10:e-n-10:e<window.innerHeight/2?t.bottom+10:t.top-n-10}},t.getDomRect=function(e){return null!==e?e.getBoundingClientRect():document.body.getBoundingClientRect()},t.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],t.isTooltipElement=function(e){if(null===e)return!1;for(var n=e;n;){if(null!==n&&n.classList&&n.classList.contains("k-tooltip"))return!0;n=null!==n.parentNode&&n.parentNode}return t.toolTipSelectors.filter((function(t){return t===e.className})).length>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1),i=n(4),a=n(4),l=n(10),u=n(16),c=n(11),s={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},f={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},p={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},d={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};t.Popover=o.forwardRef((function(e,t){a.validatePackage(l.packageMetadata);var n=e.callout,r=e.position,h=e.title,v=e.children,m=e.show,g=e.anchor,y=e.appendTo,b=e.offset,w=e.animate,O=e.positionMode,C=e.scale,E=e.popoverClass,k=e.className,x=e.id,D=e.style,P=e.collision,T=e.contentStyle,M=e.onPosition,R=e.onClose,N=e.onOpen,_=o.useState(!1),S=_[0],A=_[1],L="top"===r||"bottom"===r,I=e.margin||{vertical:n&&L?15:0,horizontal:n&&!L?15:0},j=p[r],z=d[r],U=o.useContext(i.ZIndexContext),H=U?U+2e3:12e3,B=o.useRef(null);o.useImperativeHandle(B,(function(){return{props:e}})),o.useImperativeHandle(t,(function(){return B.current}));var K=o.useCallback((function(e){if(setTimeout((function(){return A(e.flipped)})),M){var t={target:B.current,flipped:e.flipped,fitted:e.fitted};M.call(void 0,t)}}),[M,A]),W=o.useCallback((function(){if(N){var e={target:B.current};N.call(void 0,e)}}),[N]),X=o.useCallback((function(){if(R){var e={target:B.current};R.call(void 0,e)}}),[R]),Y={"k-popover":!0,"k-popup":!1};Array.isArray(E)?E.forEach((function(e){return Y[e]=!0})):"object"==typeof E?Object.keys(E).forEach((function(e){Y[e]=E[e]})):E&&(Y[E]=!0);var V=S?f[r]:s[r];return o.createElement(i.ZIndexContext.Provider,{value:H},o.createElement(u.Popup,{id:x,animate:w,collision:P,anchor:g,offset:b,margin:I,popupAlign:j,anchorAlign:z,appendTo:y,show:m,scale:C,positionMode:O,style:D,className:k,popupClass:Y,onOpen:W,onClose:X,onPosition:K},n&&r&&o.createElement("div",{className:i.classNames("k-popover-callout",V)}),h&&o.createElement("div",{className:"k-popover-header"},h),o.createElement("div",{className:"k-popover-body",style:T},function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type!==c.PopoverActionsBar}))}(v)),function(e){return o.Children.toArray(e).filter((function(e){return e&&e.type===c.PopoverActionsBar}))}(v)))}));t.Popover.propTypes={callout:r.bool,title:r.string,position:r.oneOf(["top","left","bottom","right"]),show:r.bool,animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed."):null},positionMode:r.oneOf(["fixed","absolute"]),scale:r.number,offset:r.shape({left:r.number,top:r.number}),children:r.oneOfType([r.element,r.node]),className:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),id:r.string,popoverClass:r.oneOfType([r.string,r.arrayOf(r.string),r.object]),style:r.object,onClose:r.func,onPosition:r.func,onOpen:r.func},t.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},t.Popover.displayName="KendoReactPopover"},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return se})),n.d(t,"PopupPropsContext",(function(){return ce}));var o=n(0),r=n(5),i=n(1),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},l="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),u=n(9),c=n(2),s=n(8),f=n(3),p="bottom",d="center",h="middle",v="left",m="right",g="top";function y(e){return e.ownerDocument||e.document||e}var b=function(e){return y(e).defaultView},w=function(e){return y(e).documentElement},O=0;function C(){if(!O&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),O=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return O}function E(e){var t=b(e),n=w(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=C()),o}var k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||w(e)},x=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}},D=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function P(e){var t=w(e),n=b(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var T=function(e){return e===(e.ownerDocument||{}).body?P(e):{x:e.scrollLeft,y:e.scrollTop}};var M=function(e,t){var n=b(e),o=n.getComputedStyle(e),r=x(e),i=t||k(e),a=e.ownerDocument,l=i!==a.body&&i!==a.documentElement,u={top:0,left:0};if("fixed"!==o.position&&l){var c=n.getComputedStyle(i);(u=x(i)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-u.top,left:r.left-u.left,height:r.height,width:r.width}},R=function(e,t){return e?T(e):function(e){var t=k(e);return t?T(t):{x:0,y:0}}(t)};var N="fit",_="flip",S="none",A=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},L=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,l=0,u=2*e.margin;if(a!==i&&!(a===d||a===h)&&!(i===d||i===h)){var c=i===g||i===v;t<0&&c?t+(l=n+o+u)+n>r&&(l=0):t>=0&&!c&&(t+n>r&&(l+=-(o+n+u)),t+l<0&&(l=0))}return l},I=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},j=function(e,t){for(var n,o,r=D(e),i=t;i&&(n=I(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var z,U,H,B,K=(z=function(e){if(!W())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},H=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return H||(U=z.apply(void 0,e),H=!0),U}),W=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},X={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:K,canUseDOM:W},Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],V=function(){return X.canUseDOM()?window:null},F=/auto|scroll/,q=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},Z=function(e){if(!e||!X.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},G=function(){return X.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},$={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,l=n.vertical,u=r.horizontal,c=r.vertical,s=i.horizontal||0,f=i.vertical||0,v=t.top,g=t.left;return l===p&&(v+=t.height),l!==d&&l!==h||(v+=Math.round(t.height/2)),c===p&&(v-=o.height,f*=-1),c!==d&&c!==h||(v-=Math.round(o.height/2),f*=-1),a===m&&(g+=t.width),a!==d&&a!==h||(g+=Math.round(t.width/2)),u===m&&(g-=o.width,s*=-1),u!==d&&u!==h||(g-=Math.round(o.width/2),s*=-1),{top:v+f,left:g+s}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=E(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=V();if(!t||!e)return[];var n=t.getComputedStyle(e);return Y.map((function(e){return{key:e,value:n[e]}}))},getWindow:V,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?x(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=x(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?k(t):null,r=M(e,o),i=r.top,a=r.left,l=r.height,u=r.width,c=R(o,e),s=c.x,f=c.y,p=e.ownerDocument,d=o===p.body||o===p.documentElement?1:n;return{top:i+f*d,left:a+s*d,height:l,width:u}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,l=e.margin;void 0===l&&(l={});var u=o.top,c=o.left,s=o.height,f=o.width,p=a.height,d=a.width,h=l.horizontal||0,v=l.vertical||0,m=0,g=0,y=i.vertical===N,b=i.horizontal===N,w=i.vertical===_,O=i.horizontal===_;y&&(g+=A(u,s,p)),b&&(m+=A(c,f,d)),w&&(g+=L({margin:v,offset:u,size:s,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),O&&(m+=L({margin:h,offset:c,size:f,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==g,E=O&&0!==m,k=y&&0!==g,x=b&&0!==m;return{flipped:E||C,fitted:k||x,flip:{horizontal:E,vertical:C},fit:{horizontal:x,vertical:k},offset:{left:m,top:g}}},scrollPosition:P,scrollableParents:function(e){var t=[];if(!X.canUseDOM())return t;for(var n=e.parentElement;n;)(F.test(q(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:Z,stackingElementOffset:function(e){var t=Z(e);return t?x(t):null},stackingElementScroll:function(e){var t=Z(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=Z(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(Z(e))},windowViewPort:E,zoomLevel:G,isZoomed:function(){return G()>1},zIndex:function(e,t){if(!e||!X.canUseDOM())return null;var n=j(e,t);if(!n)return null;var o=[e].concat(D(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}},J=function(e,t){return e?{x:0,y:0}:$.scrollPosition(t)},Q=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,l=e.positionMode,u=e.scale||1,c="fixed"===l||!$.hasOffsetParent(n)?function(e,t,n,o){var r=J(e,t),i=X.eitherRect($.offset(e),n),a=2*o,l=$.stackingElementScroll(t);1!==o&&l&&(l.x/=a,l.y/=a);var u=$.stackingElementOffset(t);return 1!==o&&u&&(u.left/=a,u.top/=a),$.removeScroll($.addScroll(X.removeStackingOffset(X.scaleRect(i,o),u),l),r)}(t,n,a,u):function(e,t,n,o){var r=X.eitherRect($.position(e,t,o),n);return X.scaleRect(r,o)}(t,n,a,u),s=X.scaleRect($.offset(n),u);return $.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:s,margin:i})},ee=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,l=e.margin,u=e.scale||1,c=$.offsetAtPoint(o,n),s=X.scaleRect(c,u),f=X.scaleRect($.offset(t),u),p=X.eitherRect(f,n),d=e.viewPort||$.windowViewPort(o);d.width=d.width/u,d.height=d.height/u;var h=$.restrictToView({anchorAlign:r,anchorRect:p,collisions:a,elementAlign:i,elementRect:s,margin:l,viewPort:d}),v=$.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:v}},te={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653029800,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},ne=(B=function(e,t){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oe=function(){return(oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function re(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var ie,ae={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(ie||(ie={}));var le=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:ie.hidden,previous:ie.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:ie.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,l=t.anchor,u=t.margin,c=t.scale,s=t.positionMode,f=Q({anchor:l,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:u,positionMode:s,scale:c}),p=ee({anchor:l,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:f,margin:n.props.margin});if(e.style.top=p.offset.top+"px",e.style.left=p.offset.left+"px",n._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},n.props.onPosition){var d={target:n,flipped:p.flipped,fitted:p.fitted};n.props.onPosition.call(void 0,d)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,u=i.horizontal,c=i.vertical;r="left"===u&&"center"===c?"right":"right"===u&&"center"===c?"left":"top"===c?"down":"up";n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,u=i+"-active",c=function(t){t.target===e&&(e.removeEventListener("transitionend",c),a(e),r())};e.addEventListener("transitionend",c);var s=e.ownerDocument;if(s){var f=s.defaultView;if(f){var p=function(){a(e),e.classList.add(i),f.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(u)}))};l?f.requestAnimationFrame(p):p()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===ie.hiding&&n.state.previous===ie.shown&&n.setState({current:ie.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(u.a)(te),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var l=0;n=n||{};var u=function(){l=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();l||!1!==n.leading||(l=c);var s=t-(c-l);return r=this,i=arguments,s<=0||s>t?(o&&(clearTimeout(o),o=null),l=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(u,s)),a}}(n.reposition.bind(n),1e3/60),n}return ne(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!0,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,l=e.popupAlign,u=e.className,c=e.popupClass,s=e.style,f=e.offset,p=e.contentKey,d=oe({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:l,className:u,popupClass:c,style:s,offset:f,contentKey:p}});return e.show?t.current===ie.hidden||t.current===ie.hiding?oe({},d,{current:ie.showing,previous:t.current}):t.current===ie.showing?oe({},d,{current:ie.shown,previous:t.current}):t.current!==ie.shown||re(f,t.props.offset)&&re(r,t.props.anchorAlign)&&re(i,t.props.appendTo)&&re(a,t.props.collision)&&re(l,t.props.popupAlign)&&re(s,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&u===t.props.className?d:oe({},d,{current:ie.reposition,previous:t.current}):t.current===ie.hiding||t.current===ie.hidden?oe({},d,{current:ie.hidden,previous:t.current}):oe({},d,{current:ie.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===ie.showing&&this._popup?this.show(this._popup):this.state.current===ie.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===ie.reposition&&this.state.previous===ie.shown?this.setState({current:ie.shown,previous:this.state.current}):this.state.current===ie.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===ie.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,l=t.show,u=t.id,p=t.positionMode,d=this.props.appendTo?this.props.appendTo:c.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===ie.reposition&&this.state.previous===ie.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:p,top:0,left:-1e4},this.props.style||{}),v=this.state.current===ie.hiding;if((l||v)&&d){var m=this.getCurrentZIndex(),g=o.createElement(s.a.Provider,{value:m},o.createElement("div",{className:Object(f.a)("k-animation-container","k-animation-container-relative",i),id:u,ref:function(t){return e._popup=t},style:oe({zIndex:m},h)},o.createElement("div",{className:Object(f.a)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?r.createPortal(g,d):g}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=$.scrollableParents(this.props.anchor||e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:ie.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([N,_,S]),vertical:i.oneOf([N,_,S])}),anchorAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,p])}),popupAlign:i.shape({horizontal:i.oneOf([v,d,m]),vertical:i.oneOf([g,d,p])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:N,vertical:_},anchorAlign:{horizontal:v,vertical:p},popupAlign:{horizontal:v,vertical:g},offset:ae,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.a,t.displayName="PopupComponent",t}(o.Component),ue=function(){return(ue=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ce=o.createContext((function(e){return e})),se=o.forwardRef((function(e,t){var n=o.useContext(ce).call(void 0,e);return o.createElement(le,ue({ref:t},n))}));se.displayName="Popup"}])}));
@@ -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: 1652863652,
8
+ publishDate: 1653030816,
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: 1652863652,
10
+ publishDate: 1653030816,
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","prop-types","@progress/kendo-react-common","react-dom","@progress/kendo-react-popup"],function(l){var i,a,s,p,c;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){i=e(t)},function(t){a=e(t)},function(t){s=e(t)},function(t){p=e(t)},function(t){c=e(t)}],execute:function(){function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,n;o=[function(t,e){t.exports=s},function(t,e){t.exports=i},function(t,e){t.exports=a},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:1652863652,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(1),o=o(2);e.PopoverActionsBar=r.forwardRef(function(t,e){var o=r.useRef(null),n=r.useRef(null);return r.useImperativeHandle(n,function(){return{props:t,element:o.current}}),r.useImperativeHandle(e,function(){return n.current}),r.createElement("div",{ref:o,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},t.children)}),e.PopoverActionsBar.propTypes={children:o.oneOfType([o.element,o.node])},e.PopoverActionsBar.defaultProps={},e.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(6),r=(e.Tooltip=r.Tooltip,o(9)),r=(e.Popover=r.Popover,o(4)),i=(e.PopoverActionsBar=r.PopoverActionsBar,e);for(n in i)l(n,i[n])},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&(o[r[n]]=t[r[n]]);return o},s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),p=o(7),c=o(2),u=o(0),f=o(8),d=o(0),m=o(3),o=(r=s.PureComponent,i(h,r),h.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},h.prototype.render=function(){var e,o=this;if(this.props.children)return n=(t=this.props).children,t=a(t,["children"]),e=null,s.createElement("div",{onMouseOver:function(t){e&&e.handleMouseOver(t)},onMouseOut:function(t){e&&e.handleMouseOut(t)}},s.createElement(h,l({ref:function(t){return e=t}},t)),n);if(!1===this.props.open)return null;var t=this.state.targetElement,n=this.getCurrentZIndex();return t&&this.state.title&&t.ownerDocument&&p.createPortal(s.createElement("div",{ref:function(t){var e;t&&(e=o.props.onPosition?o.props.onPosition.call(void 0,{element:t,targetElement:o.state.targetElement,mouseTop:o.top,mouseLeft:o.left,anchorElement:o.props.anchorElement,position:o.props.position,target:o}):o.position(t),t.style.left=e.left+"px",t.style.top=e.top+"px")},className:u.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:l({zIndex:n},this.props.style),tabIndex:0},s.createElement("div",{className:u.classNames("k-tooltip",this.props.tooltipClassName),style:l({position:"relative"},this.props.tooltipStyle)},s.createElement("div",{className:"k-tooltip-content"},this.props.content&&s.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&s.createElement("div",{ref:function(t){t&&(t.className=o.calloutClassName(),"auto"===o.props.position&&(o.left<window.screen.availWidth/2?t.style.left=o.props.setCalloutOnPositionAuto||"25%":t.style.left=o.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo||t.ownerDocument.body)},h.prototype.showToolTip=function(e){var t=this,o=(clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach(function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}),this.props.targetElement||e.target),n=this.getTitle(o);n.title?(n.element&&(n.element.titleExpando=n.title,n.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout(function(){t.willOpen&&t.setState({targetElement:o,open:!0,title:n.title},t.setUpdateInterval)},this.props.openDelay):this.setState({targetElement:o,open:!0,title:n.title},this.setUpdateInterval),this.state.title!==n.title&&u.dispatchEvent(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},h.prototype.isVisible=function(t){return!this.props.filter||this.props.filter(t)},h.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},h.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},h.contextType=u.ZIndexContext,h);function h(t){var o=r.call(this,t)||this;return o.state={targetElement:null,open:!1,title:""},o.top=0,o.left=0,o.willOpen=!1,o.handleMouseOut=function(t){var e=o.state.targetElement,e=e?e.ownerDocument:document,e=e&&e.elementFromPoint(t.clientX,t.clientY);f.isTooltipElement(e)||o.props.open||(clearInterval(o.updateIntervalId),o.willOpen=!1,o.onClose(t))},o.handleMouseOver=function(t){var e=t.target;o.isVisible(e)&&!f.isTooltipElement(e)&&e!==o.state.targetElement&&o.showToolTip(t)},o.handleBodyMousemove=function(t){o.top=t.clientY,o.left=t.clientX},o.onClose=function(t){u.dispatchEvent(o.props.onClose,t,o,void 0),o.setState({targetElement:null,open:!1,title:""})},o.setUpdateInterval=function(){o.props.updateInterval&&(o.updateIntervalId=setInterval(o.onIntervalUpdate,o.props.updateInterval))},o.onIntervalUpdate=function(){var t=o.state.targetElement;t&&(null===t.parentElement?o.onClose({target:t}):o.showToolTip({target:t}))},o.position=function(t){var e=f.getDomRect(o.state.targetElement);return{left:f.getLeftPosition(o.left,t.offsetWidth,e,o.props.anchorElement,o.props.position),top:f.getTopPosition(o.top,e,t.offsetHeight,o.props.anchorElement,o.props.position)}},o.getTitle=function(t){for(;t;){if(null!==t.getAttribute("title")||t.titleExpando)return{title:t.getAttribute("title")||t.titleExpando,element:t};t=o.props.parentTitle&&t.parentElement||null}return{title:"",element:t}},o.calloutClassName=function(){switch(o.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return o.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},o.getCurrentZIndex=function(){return o.context||100},d.validatePackage(m.packageMetadata),o}e.Tooltip=o},function(t,e){t.exports=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});var j=o(1),n=o(2),A=o(0),D=o(0),S=o(3),R=o(10),B=o(4),z={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},U={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},H={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},L={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};e.Popover=j.forwardRef(function(t,e){D.validatePackage(S.packageMetadata);var o=t.callout,n=t.position,r=t.title,i=t.children,l=t.show,a=t.anchor,s=t.appendTo,p=t.offset,c=t.animate,u=t.positionMode,f=t.scale,d=t.popoverClass,m=t.className,h=t.id,v=t.style,g=t.collision,y=t.contentStyle,b=t.onPosition,k=t.onClose,O=t.onOpen,E=j.useState(!1),P=E[0],w=E[1],E="top"===n||"bottom"===n,E=t.margin||{vertical:o&&E?15:0,horizontal:o&&!E?15:0},T=H[n],I=L[n],_=j.useContext(A.ZIndexContext),_=_?_+2e3:12e3,x=j.useRef(null),e=(j.useImperativeHandle(x,function(){return{props:t}}),j.useImperativeHandle(e,function(){return x.current}),j.useCallback(function(t){var e;setTimeout(function(){return w(t.flipped)}),b&&(e={target:x.current,flipped:t.flipped,fitted:t.fitted},b.call(void 0,e))},[b,w])),C=j.useCallback(function(){var t;O&&(t={target:x.current},O.call(void 0,t))},[O]),N=j.useCallback(function(){var t;k&&(t={target:x.current},k.call(void 0,t))},[k]),M={"k-popover":!0,"k-popup":!1},P=(Array.isArray(d)?d.forEach(function(t){return M[t]=!0}):"object"==typeof d?Object.keys(d).forEach(function(t){M[t]=d[t]}):d&&(M[d]=!0),(P?U:z)[n]);return j.createElement(A.ZIndexContext.Provider,{value:_},j.createElement(R.Popup,{id:h,animate:c,collision:g,anchor:a,offset:p,margin:E,popupAlign:T,anchorAlign:I,appendTo:s,show:l,scale:f,positionMode:u,style:v,className:m,popupClass:M,onOpen:C,onClose:N,onPosition:e},o&&n&&j.createElement("div",{className:A.classNames("k-popover-callout",P)}),r&&j.createElement("div",{className:"k-popover-header"},r),j.createElement("div",{className:"k-popover-body",style:y},j.Children.toArray(i).filter(function(t){return t&&t.type!==B.PopoverActionsBar})),j.Children.toArray(i).filter(function(t){return t&&t.type===B.PopoverActionsBar})))}),e.Popover.propTypes={callout:n.bool,title:n.string,position:n.oneOf(["top","left","bottom","right"]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),anchor:function(t){t=t.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed."):null},appendTo:function(t){t=t.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed."):null},positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),className:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popoverClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},e.Popover.displayName="KendoReactPopover"},function(t,e){t.exports=c}],n={},r.m=o,r.c=n,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}}});
1
+ System.register("@progress/kendo-react-tooltip",["react","@progress/kendo-react-common","prop-types","@progress/kendo-react-popup","react-dom"],function(l){var i,a,s,p,c;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){i=e(t)},function(t){a=e(t)},function(t){s=e(t)},function(t){p=e(t)},function(t){c=e(t)}],execute:function(){function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,n;o=[function(t,e){t.exports=a},function(t,e){t.exports=i},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-tooltip",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653030816,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(1),o=o(2);e.PopoverActionsBar=r.forwardRef(function(t,e){var o=r.useRef(null),n=r.useRef(null);return r.useImperativeHandle(n,function(){return{props:t,element:o.current}}),r.useImperativeHandle(e,function(){return n.current}),r.createElement("div",{ref:o,className:"k-popover-actions k-actions k-actions-stretched",style:{position:"relative"}},t.children)}),e.PopoverActionsBar.propTypes={children:o.oneOfType([o.element,o.node])},e.PopoverActionsBar.defaultProps={},e.PopoverActionsBar.displayName="KendoReactPopoverActionsBar"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=o(6),r=(e.Tooltip=r.Tooltip,o(9)),r=(e.Popover=r.Popover,o(4)),i=(e.PopoverActionsBar=r.PopoverActionsBar,e);for(n in i)l(n,i[n])},function(t,e,o){"use strict";var n,r,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&(o[r[n]]=t[r[n]]);return o},s=(Object.defineProperty(e,"__esModule",{value:!0}),o(1)),p=o(7),c=o(2),u=o(0),f=o(8),d=o(0),m=o(3),o=(r=s.PureComponent,i(h,r),h.prototype.componentDidMount=function(){document&&document.body.addEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentWillUnmount=function(){clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),document&&document.body.removeEventListener("mousemove",this.handleBodyMousemove)},h.prototype.componentDidUpdate=function(){this.props.open&&this.props.targetElement&&this.showToolTip({target:this.props.targetElement})},h.prototype.render=function(){var e,o=this;if(this.props.children)return n=(t=this.props).children,t=a(t,["children"]),e=null,s.createElement("div",{onMouseOver:function(t){e&&e.handleMouseOver(t)},onMouseOut:function(t){e&&e.handleMouseOut(t)}},s.createElement(h,l({ref:function(t){return e=t}},t)),n);if(!1===this.props.open)return null;var t=this.state.targetElement,n=this.getCurrentZIndex();return t&&this.state.title&&t.ownerDocument&&p.createPortal(s.createElement("div",{ref:function(t){var e;t&&(e=o.props.onPosition?o.props.onPosition.call(void 0,{element:t,targetElement:o.state.targetElement,mouseTop:o.top,mouseLeft:o.left,anchorElement:o.props.anchorElement,position:o.props.position,target:o}):o.position(t),t.style.left=e.left+"px",t.style.top=e.top+"px")},className:u.classNames("k-animation-container","k-animation-container-fixed","k-animation-container-shown",this.props.className),style:l({zIndex:n},this.props.style),tabIndex:0},s.createElement("div",{className:u.classNames("k-tooltip",this.props.tooltipClassName),style:l({position:"relative"},this.props.tooltipStyle)},s.createElement("div",{className:"k-tooltip-content"},this.props.content&&s.createElement(this.props.content,{title:this.state.title,target:this.state.targetElement})||this.state.title),this.props.showCallout&&s.createElement("div",{ref:function(t){t&&(t.className=o.calloutClassName(),"auto"===o.props.position&&(o.left<window.screen.availWidth/2?t.style.left=o.props.setCalloutOnPositionAuto||"25%":t.style.left=o.props.setCalloutOnPositionAuto||"75%"))}}))),this.props.appendTo||t.ownerDocument.body)},h.prototype.showToolTip=function(e){var t=this,o=(clearTimeout(this.openTimeoutId),clearInterval(this.updateIntervalId),e.target.hasChildNodes()&&e.target.childNodes.forEach(function(t){"title"===t.nodeName&&(e.target.titleExpando=t.innerHTML,t.remove())}),this.props.targetElement||e.target),n=this.getTitle(o);n.title?(n.element&&(n.element.titleExpando=n.title,n.element.title=""),this.willOpen=!0,this.props.openDelay?this.openTimeoutId=window.setTimeout(function(){t.willOpen&&t.setState({targetElement:o,open:!0,title:n.title},t.setUpdateInterval)},this.props.openDelay):this.setState({targetElement:o,open:!0,title:n.title},this.setUpdateInterval),this.state.title!==n.title&&u.dispatchEvent(this.props.onOpen,e,this,void 0)):this.state.open&&this.onClose(e)},h.prototype.isVisible=function(t){return!this.props.filter||this.props.filter(t)},h.propTypes={anchorElement:c.oneOf(["pointer","target"]),content:c.func,filter:c.func,openDelay:c.number,position:c.oneOf(["right","left","top","bottom","auto"]),updateInterval:c.number},h.defaultProps={anchorElement:"pointer",openDelay:400,position:"auto",showCallout:!0,parentTitle:!1},h.contextType=u.ZIndexContext,h);function h(t){var o=r.call(this,t)||this;return o.state={targetElement:null,open:!1,title:""},o.top=0,o.left=0,o.willOpen=!1,o.handleMouseOut=function(t){var e=o.state.targetElement,e=e?e.ownerDocument:document,e=e&&e.elementFromPoint(t.clientX,t.clientY);f.isTooltipElement(e)||o.props.open||(clearInterval(o.updateIntervalId),o.willOpen=!1,o.onClose(t))},o.handleMouseOver=function(t){var e=t.target;o.isVisible(e)&&!f.isTooltipElement(e)&&e!==o.state.targetElement&&o.showToolTip(t)},o.handleBodyMousemove=function(t){o.top=t.clientY,o.left=t.clientX},o.onClose=function(t){u.dispatchEvent(o.props.onClose,t,o,void 0),o.setState({targetElement:null,open:!1,title:""})},o.setUpdateInterval=function(){o.props.updateInterval&&(o.updateIntervalId=setInterval(o.onIntervalUpdate,o.props.updateInterval))},o.onIntervalUpdate=function(){var t=o.state.targetElement;t&&(null===t.parentElement?o.onClose({target:t}):o.showToolTip({target:t}))},o.position=function(t){var e=f.getDomRect(o.state.targetElement);return{left:f.getLeftPosition(o.left,t.offsetWidth,e,o.props.anchorElement,o.props.position),top:f.getTopPosition(o.top,e,t.offsetHeight,o.props.anchorElement,o.props.position)}},o.getTitle=function(t){for(;t;){if(null!==t.getAttribute("title")||t.titleExpando)return{title:t.getAttribute("title")||t.titleExpando,element:t};t=o.props.parentTitle&&t.parentElement||null}return{title:"",element:t}},o.calloutClassName=function(){switch(o.props.position){case"bottom":return"k-callout k-callout-n";case"left":return"k-callout k-callout-e";case"right":return"k-callout k-callout-w";case"top":return"k-callout k-callout-s";default:return o.top<window.innerHeight/2?"k-callout k-callout-n":"k-callout k-callout-s"}},o.getCurrentZIndex=function(){return o.context||100},d.validatePackage(m.packageMetadata),o}e.Tooltip=o},function(t,e){t.exports=c},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLeftPosition=function(t,e,o,n,r){switch(r){case"bottom":return"pointer"===n?t-e/2:o.left-e/2+o.width/2;case"left":return"pointer"===n?t-e-10:o.left-e-10;case"right":return"pointer"===n?t+10:o.right+10;case"top":return"pointer"===n?t-e/2:o.left-e/2+o.width/2;default:return"pointer"===n?t<window.screen.availWidth/2?t-10:t-e+10:t<window.screen.availWidth/2?o.left:o.right-e}},o.getTopPosition=function(t,e,o,n,r){switch(r){case"bottom":return"pointer"===n?t+10:e.bottom+10;case"left":case"right":return"pointer"===n?t-o/2:e.top-o/2+e.height/2;case"top":return"pointer"===n?t-o-10:e.top-o-10;default:return"pointer"===n?t<window.innerHeight/2?t+10:t-o-10:t<window.innerHeight/2?e.bottom+10:e.top-o-10}},o.getDomRect=function(t){return(null!==t?t:document.body).getBoundingClientRect()},o.toolTipSelectors=["k-tooltip-content","k-animation-container","k-tooltip","k-tooltip-title","k-tooltip k-tooltip-closable","k-icon k-i-close"],o.isTooltipElement=function(e){if(null===e)return!1;for(var t=e;t;){if(null!==t&&t.classList&&t.classList.contains("k-tooltip"))return!0;t=null!==t.parentNode&&t.parentNode}return 0<o.toolTipSelectors.filter(function(t){return t===e.className}).length}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var j=o(1),n=o(2),A=o(0),D=o(0),S=o(3),R=o(10),B=o(4),z={top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"},U={top:"k-callout-n",left:"k-callout-w",bottom:"k-callout-s",right:"k-callout-e"},H={top:{vertical:"bottom",horizontal:"center"},left:{vertical:"center",horizontal:"right"},bottom:{vertical:"top",horizontal:"center"},right:{vertical:"center",horizontal:"left"}},L={top:{vertical:"top",horizontal:"center"},left:{vertical:"center",horizontal:"left"},bottom:{vertical:"bottom",horizontal:"center"},right:{vertical:"center",horizontal:"right"}};e.Popover=j.forwardRef(function(t,e){D.validatePackage(S.packageMetadata);var o=t.callout,n=t.position,r=t.title,i=t.children,l=t.show,a=t.anchor,s=t.appendTo,p=t.offset,c=t.animate,u=t.positionMode,f=t.scale,d=t.popoverClass,m=t.className,h=t.id,v=t.style,g=t.collision,y=t.contentStyle,b=t.onPosition,k=t.onClose,O=t.onOpen,E=j.useState(!1),P=E[0],w=E[1],E="top"===n||"bottom"===n,E=t.margin||{vertical:o&&E?15:0,horizontal:o&&!E?15:0},T=H[n],I=L[n],_=j.useContext(A.ZIndexContext),_=_?_+2e3:12e3,x=j.useRef(null),e=(j.useImperativeHandle(x,function(){return{props:t}}),j.useImperativeHandle(e,function(){return x.current}),j.useCallback(function(t){var e;setTimeout(function(){return w(t.flipped)}),b&&(e={target:x.current,flipped:t.flipped,fitted:t.fitted},b.call(void 0,e))},[b,w])),C=j.useCallback(function(){var t;O&&(t={target:x.current},O.call(void 0,t))},[O]),N=j.useCallback(function(){var t;k&&(t={target:x.current},k.call(void 0,t))},[k]),M={"k-popover":!0,"k-popup":!1},P=(Array.isArray(d)?d.forEach(function(t){return M[t]=!0}):"object"==typeof d?Object.keys(d).forEach(function(t){M[t]=d[t]}):d&&(M[d]=!0),(P?U:z)[n]);return j.createElement(A.ZIndexContext.Provider,{value:_},j.createElement(R.Popup,{id:h,animate:c,collision:g,anchor:a,offset:p,margin:E,popupAlign:T,anchorAlign:I,appendTo:s,show:l,scale:f,positionMode:u,style:v,className:m,popupClass:M,onOpen:C,onClose:N,onPosition:e},o&&n&&j.createElement("div",{className:A.classNames("k-popover-callout",P)}),r&&j.createElement("div",{className:"k-popover-header"},r),j.createElement("div",{className:"k-popover-body",style:y},j.Children.toArray(i).filter(function(t){return t&&t.type!==B.PopoverActionsBar})),j.Children.toArray(i).filter(function(t){return t&&t.type===B.PopoverActionsBar})))}),e.Popover.propTypes={callout:n.bool,title:n.string,position:n.oneOf(["top","left","bottom","right"]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),anchor:function(t){t=t.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed."):null},appendTo:function(t){t=t.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed."):null},positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),className:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popoverClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.Popover.defaultProps={callout:!0,position:"top",collision:{horizontal:"none",vertical:"none"}},e.Popover.displayName="KendoReactPopover"},function(t,e){t.exports=p}],n={},r.m=o,r.c=n,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-tooltip",
3
- "version": "5.4.0-dev.202205180853",
3
+ "version": "5.4.0-dev.202205200719",
4
4
  "description": "KendoReact Tooltips package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,23 +36,23 @@
36
36
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@progress/kendo-react-common": "5.4.0-dev.202205180853",
40
- "@progress/kendo-react-popup": "5.4.0-dev.202205180853",
39
+ "@progress/kendo-react-common": "5.4.0-dev.202205200719",
40
+ "@progress/kendo-react-popup": "5.4.0-dev.202205200719",
41
41
  "prop-types": "^15.6.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@progress/kendo-date-math": "^1.4.0",
45
45
  "@progress/kendo-drawing": "^1.5.12",
46
46
  "@progress/kendo-licensing": "^1.0.1",
47
- "@progress/kendo-react-buttons": "5.4.0-dev.202205180853",
48
- "@progress/kendo-react-dateinputs": "5.4.0-dev.202205180853",
49
- "@progress/kendo-react-dialogs": "5.4.0-dev.202205180853",
50
- "@progress/kendo-react-dropdowns": "5.4.0-dev.202205180853",
51
- "@progress/kendo-react-form": "5.4.0-dev.202205180853",
52
- "@progress/kendo-react-grid": "5.4.0-dev.202205180853",
53
- "@progress/kendo-react-inputs": "5.4.0-dev.202205180853",
54
- "@progress/kendo-react-intl": "5.4.0-dev.202205180853",
55
- "@progress/kendo-react-labels": "5.4.0-dev.202205180853"
47
+ "@progress/kendo-react-buttons": "5.4.0-dev.202205200719",
48
+ "@progress/kendo-react-dateinputs": "5.4.0-dev.202205200719",
49
+ "@progress/kendo-react-dialogs": "5.4.0-dev.202205200719",
50
+ "@progress/kendo-react-dropdowns": "5.4.0-dev.202205200719",
51
+ "@progress/kendo-react-form": "5.4.0-dev.202205200719",
52
+ "@progress/kendo-react-grid": "5.4.0-dev.202205200719",
53
+ "@progress/kendo-react-inputs": "5.4.0-dev.202205200719",
54
+ "@progress/kendo-react-intl": "5.4.0-dev.202205200719",
55
+ "@progress/kendo-react-labels": "5.4.0-dev.202205200719"
56
56
  },
57
57
  "@progress": {
58
58
  "friendlyName": "Tooltip",