@progress/kendo-react-scrollview
Advanced tools
Comparing version 5.4.0-dev.202206200646 to 5.4.0
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("prop-types"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing"],n):"object"==typeof exports?exports.KendoReactScrollview=n(require("react"),require("prop-types"),require("@progress/kendo-licensing")):e.KendoReactScrollview=n(e.React,e.PropTypes,e.KendoLicensing)}(self,(function(e,n,t){return(()=>{"use strict";var r={850:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ScrollView=void 0;var r=t(899),o=t(189),a=t(449),l=t(449),i=t(363);n.ScrollView=r.forwardRef((function(e,n){(0,l.validatePackage)(i.packageMetadata);var t=e.className,o=e.style,c=e.children,u=e.pagerOverlay,s=e.pageable,f=e.arrows,d=e.endless,v=e.activeView,p=e.automaticViewChange,m=e.automaticViewChangeInterval,g=r.useState(v||1),h=g[0],y=g[1],b=r.useRef(null),C=r.useRef(null),k=r.useRef(null),O=r.Children.toArray(c),E=(0,a.useRtl)(b,e.dir),w="rtl"===E,D=r.useCallback((function(){b.current&&b.current.focus()}),[]),x=r.useCallback((function(){return{element:b.current,focus:D}}),[D]);r.useImperativeHandle(n,x);var M=r.useCallback((function(){d?y(h>1?h-1:O.length):h>1&&y(h-1)}),[h,O.length,d]),N=r.useCallback((function(){d?h<O.length?y(h+1):y(1):h<O.length&&y(h+1)}),[h,O.length,d]),R=r.useCallback((function(){w?N():M()}),[w,M,N]),T=r.useCallback((function(){w?M():N()}),[w,N,M]);function S(){k.current&&clearTimeout(k.current)}r.useEffect((function(){var e=O.length;C.current&&(C.current.style.setProperty("--kendo-scrollview-views","".concat(e)),C.current.style.setProperty("--kendo-scrollview-current","".concat(h)))}),[O,h,E]),r.useEffect((function(){if(p)return S(),k.current=setTimeout((function(){return y((function(e){return e===O.length?d?1:e:e+1}))}),m),function(){S()}}),[p,m,O.length,h,d]);var P=r.useCallback((function(e){switch(e.keyCode){case a.Keys.left:e.preventDefault(),w?N():M();break;case a.Keys.right:e.preventDefault(),w?M():N()}}),[w,N,M]),L=r.useMemo((function(){return(0,a.classNames)("k-widget k-scrollview",{"k-scrollview-light":"light"===u,"k-scrollview-dark":"dark"===u},t)}),[t,u]),_=r.Children.map(c||null,(function(e,n){return r.createElement("div",{className:"k-scrollview-view","aria-hidden":h!==n+1},e)})),j=r.useCallback((function(){var e;return e=w?h<O.length:h>1,(d||e)&&O.length>0}),[h,O.length,d,w]),I=r.useCallback((function(){var e;return e=w?h>1:h<O.length,(d||e)&&O.length>0}),[h,O.length,d,w]);return r.createElement("div",{className:L,style:o,ref:b,tabIndex:0,dir:E,onKeyDown:P},r.createElement("div",{className:"k-scrollview-wrap k-scrollview-animate",ref:C},_),r.createElement("div",{className:"k-scrollview-elements"},f&&r.createElement(r.Fragment,null,j()&&r.createElement("a",{className:"k-scrollview-prev","aria-label":"previous",onClick:R},r.createElement("span",{className:"k-icon k-i-arrowhead-w"})),I()&&r.createElement("a",{className:"k-scrollview-next","aria-label":"next",onClick:T},r.createElement("span",{className:"k-icon k-i-arrowhead-e"}))),s&&r.createElement("div",{className:"k-scrollview-nav-wrap"},r.createElement("ul",{className:"k-scrollview-nav"},O.map((function(e,n){return r.createElement("li",{className:(0,a.classNames)("k-link",{"k-primary":h===n+1}),key:n+1,onClick:function(){return y(n+1)}})}))))))})),n.ScrollView.propTypes={activeView:o.number,arrows:o.bool,automaticViewChange:o.bool,automaticViewChangeInterval:o.number,children:o.any,className:o.string,dir:o.string,endless:o.bool,pageable:o.bool,pageOverlay:o.string,style:o.object},n.ScrollView.defaultProps={activeView:1,arrows:!0,automaticViewChange:!0,automaticViewChangeInterval:5e3,endless:!1,pageable:!0,pageOverlay:"none"},n.ScrollView.displayName="KendoScrollView"},271:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},468:function(e,n,t){var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),o=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),o(t(850),n),o(t(271),n)},363:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.packageMetadata=void 0,n.packageMetadata={name:"@progress/kendo-react-scrollview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655707271,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"}},449:(e,n,t)=>{t.r(n),t.d(n,{AsyncFocusBlur:()=>W,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Te,Draggable:()=>Xe,Droppable:()=>Be,FormComponent:()=>h,Icon:()=>ce,Keys:()=>w,SvgIcon:()=>fe,Typography:()=>Ee,ZIndexContext:()=>o,canUseDOM:()=>c,canUseRef:()=>u,classNames:()=>s,clone:()=>d,cloneArray:()=>m,cloneDate:()=>f,cloneObject:()=>v,cloneValue:()=>p,createPropsContext:()=>G,dispatchEvent:()=>X,extendDataItem:()=>A,focusFirstFocusableChild:()=>g,getItemPath:()=>U,getScrollbarWidth:()=>x,getTabIndex:()=>y,getter:()=>O,guid:()=>E,hasRelativeStackingContext:()=>V,kendoThemeMaps:()=>ze,mapTree:()=>j,mapTreeItem:()=>I,noop:()=>D,setScrollbarWidth:()=>M,setter:()=>T,useAsyncFocusBlur:()=>B,useCollection:()=>te,useCustomComponent:()=>ne,useDir:()=>$,useDocument:()=>re,useDraggable:()=>Ve,useDroppable:()=>Ye,useMouse:()=>ee,usePropsContext:()=>F,useRtl:()=>J,useWindow:()=>oe,useZIndexContext:()=>a,validatePackage:()=>H,withPropsContext:()=>Z});var r=t(899),o=r.createContext(0),a=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var l=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=l();if(!this.scrollbar&&e&&e.createElement){var n=e.createElement("div");n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML=" ",e.body.appendChild(n),this.scrollbar=n.offsetWidth-n.scrollWidth,e.body.removeChild(n)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(n){t[n]=e[n]})):t[e]=!0},o=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):r(e)}))};return o(e),Object.keys(t).map((function(e){return t[e]&&e||null})).filter((function(e){return null!==e})).join(" ")},f=function(e){return e?new Date(e.getTime()):null};function d(e){var n={};return v(e,n),n}function v(e,n){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];n[t]=p(r,n[t])}}function p(e,n){if(Array.isArray(e))return m(e);if(e instanceof Date)return f(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var t=n||{};return v(e,t),t}return e}function m(e){return e.map((function(e){return p(e,void 0)}))}var g=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var n=e.querySelector('input, [tabindex]:not([tabindex="-1"])');n&&n.focus&&n.focus()}},h=function(){},y=function(e,n,t){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:n?t?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function C(e){var n=[];return e.replace(b,(function(e,t,r,o){n.push(void 0!==t?t:r||o)})),n}var k={};function O(e){if(k[e])return k[e];var n=C(e);return k[e]=function(e){for(var t=e,r=0;r<n.length&&t;r++)t=t[n[r]];return t},k[e]}k.undefined=function(){};var E=function(){var e,n,t="";for(e=0;e<32;e++)n=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&n|8:n).toString(16);return t},w={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},D=function(){},x=function(){return!(!c||!document.body)&&(new i).scrollbarWidth},M=function(){if(!c||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},N={undefined:function(e){return e}},R=function(e,n){return n&&n.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(N[e])return N[e];var n=C(e);return N[e]=function(e,t,r){for(var o=e,a=n.length-1,l=0;l<a&&o;l++)o=o[n[l]]=o[n[l]]||R(n[l+1],r);o[n[a]]=t},N[e]}var S=function(){return S=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},S.apply(this,arguments)},P=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))};function L(e,n,t){var r;return t?S(S({},e),((r={})[n]=t.length?P([],t,!0):void 0,r)):e&&e[n]?P([],e[n],!0):[]}function _(e,n,t){if(e[n]){var r=L(e,n).map((function(e){return _(e,n,t)}));return t(L(e,n,r))}return t(e)}var j=function(e,n,t){return P([],e.map((function(e){return _(e,n,t)})),!0)},I=function(e,n,t,r){for(var o=e,a=[],l=0;l<n.length;l++)o=o[n[l]],o=Array.isArray(o)?o:o[t],a.push(o);var i=a.length>1?a[a.length-2]:e,c=n[n.length-1],u=r(i[c]);i.splice(c,1,u)},A=function(e,n,t){var r;return Object.assign({},e,e[n]?((r={})[n]=e[n].slice(),r):{},t||{})},U=function(e,n,t){var r=[],o=P([],n,!0);if(o.length){var a=e[o.shift()||0];for(r.push(a);o.length&&t;)a=a[t][o.shift()||0],r.push(a)}return r},K=t(302);function H(e){if(void 0!==K)K.validatePackage(e);else{var n="License activation failed for ".concat(e.name,"\n");n+="The @progress/kendo-licensing script is not loaded.\n",n+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(n)}}var V=function(e){if(!c)return!1;var n=e?e.ownerDocument:document;if(!n||!n.body)return!1;var t=n.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: '.concat(10,'px;">child</div>'),n.body.appendChild(t);var r=10!==t.children[0].getBoundingClientRect().top;return n.body.removeChild(t),r};function X(e,n,t,r){if(e){var o={syntheticEvent:n,nativeEvent:n.nativeEvent,target:t};e.call(void 0,Object.assign(o,r))}}var Y=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))};function B(e){var n=e.onFocus,t=e.onBlur,o=e.onSyncFocus,a=e.onSyncBlur,l=r.useRef(!1),i=r.useRef(0),c=r.useCallback((function(e){clearTimeout(i.current),i.current=window.setTimeout((function(){return e()}))}),[i]),u=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];clearTimeout(i.current),o&&o.call(void 0,e[0]),l.current||(l.current=!0,n&&n.call.apply(n,Y([void 0],e,!1)))}),[l,n,o]),s=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];a&&a.call(void 0,e[0]),c((function(){l.current&&t&&(l.current=!1,t.call.apply(t,Y([void 0],e,!1)))}))}),[l,c,t,a]);return r.useEffect((function(){return function(){clearTimeout(i.current)}}),[]),{onFocus:u,onBlur:s}}var z=function(){return z=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},z.apply(this,arguments)},W=function(e){var n=e.children,t=B({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return r.createElement(r.Fragment,null,n.call(void 0,z({},t)))},F=function(e,n){return r.useContext(e)(n)},q=function(){return q=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},q.apply(this,arguments)},G=function(){return r.createContext((function(e){return e}))},Z=function(e,n){return r.forwardRef((function(t,o){var a=F(e,t);return r.createElement(n,q({},a,{ref:o}))}))};function $(e,n,t){var o=r.useState(n),a=o[0],l=o[1];return r.useEffect((function(){if(!a&&window&&e.current){var n=window.getComputedStyle(e.current).direction;n&&l(n)}}),t),a}function J(e,n,t){var o=r.useState(n),a=o[0],l=o[1];return r.useEffect((function(){if(!a&&window&&e.current){var n=window.getComputedStyle(e.current).direction;n&&l(n)}}),t),a}var Q,ee=function(e,n,t){void 0===t&&(t={});var o=r.useCallback((function(r){t.onMouseDown&&t.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseDown,e.onMouseDown,n]),a=r.useCallback((function(r){t.onMouseUp&&t.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseUp,e.onMouseUp,n]);return{onClick:r.useCallback((function(r){t.onClick&&t.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onClick,e.onClick,n]),onMouseUp:a,onMouseDown:o,onDoubleClick:r.useCallback((function(r){t.onDoubleClick&&t.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onDoubleClick,e.onDoubleClick,n]),onMouseEnter:r.useCallback((function(r){t.onMouseEnter&&t.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseEnter,e.onMouseEnter,n]),onMouseLeave:r.useCallback((function(r){t.onMouseLeave&&t.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseLeave,e.onMouseLeave,n]),onMouseMove:r.useCallback((function(r){t.onMouseMove&&t.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseMove,e.onMouseMove,n]),onMouseOut:r.useCallback((function(r){t.onMouseOut&&t.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseOut,e.onMouseOut,n]),onMouseOver:r.useCallback((function(r){t.onMouseOver&&t.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseOver,e.onMouseOver,n])}},ne=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Q||(Q={}));var te=function(e){void 0===e&&(e=[]);var n=r.useRef(e),t=r.useCallback((function(e){switch(e.type){case Q.add:n.current.push(e.item);break;case Q.remove:var t=n.current.indexOf(e.item);n.current.splice(t,1)}}),[]);return[n.current,t]},re=function(e){var n=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return r.useCallback((function(){var e=n();return e&&e.ownerDocument||document}),[n])},oe=function(e){var n=re(e);return r.useCallback((function(){var e=n();return e&&e.defaultView||window}),[n])},ae=t(189),le={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ie=function(){return ie=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ie.apply(this,arguments)},ce=r.forwardRef((function(e,n){var t=e.className,o=e.name,a=e.themeColor,l=e.size,i=e.flip,c=e.style,u=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["className","name","themeColor","size","flip","style"]),f=r.useRef(null),d=r.useRef(null);r.useImperativeHandle(f,(function(){return{element:d.current}})),r.useImperativeHandle(n,(function(){return f.current}));var v=r.useMemo((function(){return a||ue.themeColor}),[a]),p=r.useMemo((function(){return l||ue.size}),[l]),m=r.useMemo((function(){return i||ue.flip}),[i]),g=r.useMemo((function(){return s("k-icon","k-i-"+o,"k-color-"+v,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},le[p],t)}),[o,v,p,m,t]),h=ee(e,f);return r.createElement("span",ie({ref:d},u,h,{className:g,style:c,role:"presentation"}))}));ce.propTypes={style:ae.object,classNames:ae.string,name:ae.string,themeColor:ae.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ae.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ae.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default"};ce.displayName="KendoIcon";var se=function(){return se=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},se.apply(this,arguments)},fe=r.forwardRef((function(e,n){var t=e.children,o=e.className,a=e.svgClassName,l=e.icon,i=e.flip,c=e.size,u=e.style,f=e.svgStyle,d=e.themeColor,v=e.viewBox,p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(n,(function(){return{element:m.current}}));var g=r.useMemo((function(){return l?l.name:de.icon}),[l]),h=r.useMemo((function(){return d||de.themeColor}),[d]),y=r.useMemo((function(){return c||de.size}),[c]),b=r.useMemo((function(){return i||de.flip}),[i]),C=r.useMemo((function(){return v||de.viewBox}),[v]),k=r.useMemo((function(){return s("k-svg-icon","k-color-"+h,"k-svg-i-"+g,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},le[y],o)}),[g,h,y,b,o]),O=r.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},u):e.width?se({width:e.width,height:e.width},u):e.height?se({width:e.height,height:e.height},u):se({},u)}),[e.width,e.height,u]);return r.createElement("span",{className:k,style:O,ref:m},r.createElement("svg",se({className:a,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:C,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},p),l?void 0:t))}));fe.propTypes={style:ae.object,classNames:ae.string,children:ae.any,icon:ae.object,themeColor:ae.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ae.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ae.oneOf(["default","horizontal","vertical","both"])};var de={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};fe.displayName="KendoSvgIcon";var ve={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},me={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"},ge={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-"},ye={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},be={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ce={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"},ke=function(){return ke=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ke.apply(this,arguments)},Oe=function(e){var n=r.forwardRef((function(n,t){var o=n.id,a=n.style,l=n.className,i=n.fontSize,c=n.fontWeight,u=n.textAlign,s=n.textTransform,f=n.themeColor,d=n.margin,v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(n,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=r.useRef(null),m=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:m.current,props:n}})),r.useImperativeHandle(t,(function(){return p.current}));var g=e;return r.createElement(g,ke({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),ve[i],pe[c],ye[u],be[s],Ce[f],function(){if(void 0!==d){if("string"==typeof d)return[me[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(n){var t,r,o;null!==d[n]&&void 0!==d[n]&&e.push((t=n,o="string"==typeof(r=d[n])?ge[r]:r,"".concat(he[t]).concat(o)))})),e.join(" ")}}}(),l].filter((function(e){return void 0!==e})).join(" "),style:a},v),n.children)}));return n.propTypes={style:ae.object,className:ae.string,fontSize:ae.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ae.oneOf(["light","normal","bold"]),margin:ae.oneOfType([ae.number,ae.object,ae.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ae.oneOf(["left","right","center","justify"]),textTransform:ae.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ae.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},n.displayName="KendoReactTypography".concat(e.toUpperCase()),n},Ee={h1:Oe("h1"),h2:Oe("h2"),h3:Oe("h3"),h4:Oe("h4"),h5:Oe("h5"),h6:Oe("h6"),p:Oe("p"),code:Oe("code"),pre:Oe("pre")},we=function(){return we=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},we.apply(this,arguments)},De=function(e,n,t){var o=r.useState(n||e),a=o[0],l=o[1];return[void 0!==n?n:a,r.useCallback((function(e,n){l(e),t&&t.call(void 0,we(we({},n),{value:e}))}),[t,l])]},xe=r.createContext([void 0,D]),Me=r.createContext([void 0,D]),Ne=r.createContext([[],D,D]),Re=r.createContext([[],D,D]),Te=function(e){var n=De(null,void 0),t=n[0],o=n[1],a=De(null,void 0),l=a[0],i=a[1],c=te([]),u=c[0],s=c[1],f=te([]),d=f[0],v=f[1];return r.createElement(xe.Provider,{value:[t,o]},r.createElement(Me.Provider,{value:[l,i]},r.createElement(Ne.Provider,{value:[u,function(e){s({type:Q.add,item:e})},function(e){s({type:Q.remove,item:e})}]},r.createElement(Re.Provider,{value:[d,function(e){v({type:Q.add,item:e})},function(e){v({type:Q.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Se,Pe=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var n=!1,t=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(t=e.match(r[o]))){(n={})[o]=!0,n[t[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.DOCUMENT_NODE||t[2],10);break}return n},Le=function(e){return e&&e.ownerDocument||window.document},_e=function(e){var n=Pe(),t=Le(e);return n.edge||n.safari?t.body:t.documentElement},je=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var n=window.getComputedStyle(e,"overflow").overflow;return n.indexOf("auto")>-1||n.indexOf("scroll")>-1},Ie=function(e){var n=_e(e);if(!e||e===document.body||e===document.documentElement)return n;for(var t=e;t&&t!==document.body&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE&&!je(t);)t=t.parentNode;return!t||t!==document.body&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Se||(Se={}));var Ae=function(){},Ue=function(e,n,t){void 0===t&&(t={});var r,o,a,l,i,c=t.onIsPressedChange,u=void 0===c?Ae:c,s=t.onIsScrollingChange,f=void 0===s?Ae:s,d=t.onVelocityChange,v=void 0===d?Ae:d,p=t.onOffsetChange,m=void 0===p?Ae:p,g=t.onPageOffsetChange,h=void 0===g?Ae:g,y=t.onClientOffsetChange,b=void 0===y?Ae:y,C=t.onScrollOffsetChange,k=void 0===C?Ae:C,O=t.onInitialScrollOffsetChange,E=void 0===O?Ae:O,w=n.payload,D=w.element,x=w.hint,M=e.autoScrollDirection,N=e.scrollableParent,R=function(e,n){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:n.scrollOffset.x,scrollY:n.scrollOffset.y,offsetX:n.offset.x,offsetY:n.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:n.pageOffset.x,pageY:n.pageOffset.y,clientX:n.clientOffset.x,clientY:n.clientOffset.y,scrollX:n.scrollOffset.x,scrollY:n.scrollOffset.y,offsetX:n.offset.x,offsetY:n.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:n.scrollOffset.x,scrollY:n.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(n.event,e);switch(R.type){case Se.POINTER_DOWN:if(R.type===Se.POINTER_DOWN&&(!R.originalEvent.isPrimary||0!==R.originalEvent.button))break;case Se.MOUSE_DOWN:if(R.type===Se.MOUSE_DOWN&&R.originalEvent.which&&R.originalEvent.which>1||e.ignoreMouse)break;case Se.TOUCH_START:if(R.type===Se.TOUCH_START&&1!==R.originalEvent.touches.length)break;case Se.START:var T=N||Ie(n.payload.element);E(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),b({x:R.clientX,y:R.clientY}),h({x:R.pageX,y:R.pageY}),m({x:R.offsetX,y:R.offsetY}),u(!0),w.onPress&&w.onPress(R);break;case Se.SCROLL:if(R.type===Se.SCROLL&&!e.pressed)break;var S=N||Ie(D),P=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};R.scrollX=P.x-e.initialScrollOffset.x,R.scrollY=P.y-e.initialScrollOffset.y,k({x:R.scrollX,y:R.scrollY});case Se.POINTER_MOVE:if(R.type===Se.POINTER_MOVE&&!R.originalEvent.isPrimary)break;case Se.MOUSE_MOVE:case Se.TOUCH_MOVE:if(R.type===Se.TOUCH_MOVE&&1!==R.originalEvent.touches.length)break;case Se.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==R.originalEvent.type&&D){var L=Le(D),_=N||Ie(L.elementFromPoint(R.clientX,R.clientY)),j=(r=R.clientX,o=R.clientY,a=function(e,n){var t=_e(e);if(e===t)return{top:t.scrollTop,left:t.scrollLeft,bottom:t.scrollTop+n.innerHeight,right:t.scrollLeft+n.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(_,function(e){var n=Le(e);return n&&n.defaultView||window}(D)),l={x:0,y:0},i=50,r-a.left<i?l.x=-(i-(r-a.left)):a.right-r<i&&(l.x=i-(a.right-r)),o-a.top<i?l.y=-(i-(o-a.top)):a.bottom-o<i&&(l.y=i-(a.bottom-o)),l);v({x:M&&!1===M.horizontal?0:j.x,y:M&&!1===M.vertical?0:j.y}),f(0!==j.y||0!==j.x)}!e.drag&&w.onDragStart&&w.onDragStart(R),w.onDrag&&w.onDrag(R);var I=function(e,n){var t=0,r=null;return n.forEach((function(n){if(n&&e){var o=function(e,n){var t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o=Math.max(r.top,t.top),a=Math.max(r.left,t.left),l=Math.min(r.left+r.width,t.left+t.width),i=Math.min(r.top+r.height,t.top+t.height),c=l-a,u=i-o;if(a<l&&o<i){var s=r.width*r.height,f=t.width*t.height,d=c*u;return Number((d/(s+f-d)).toFixed(4))}return 0}(e,n);o>t&&(t=o,r=n)}})),r}(x||D,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||D)}))),A=e.drops.find((function(e){return e.element===I}));A&&I&&function(e,n,t){var r=t.getBoundingClientRect();return r.top<=n&&r.left<=e&&n<=r.bottom&&e<=r.right}(R.clientX,R.clientY,N||Ie(I))&&I!==D?(e.drop&&e.drop.element)!==I?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R),A.onDragEnter&&A.onDragEnter(R)):A.onDragOver&&A.onDragOver(R):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R)}b({x:R.clientX,y:R.clientY}),h({x:R.pageX,y:R.pageY});break;case Se.POINTER_UP:if(R.type===Se.POINTER_UP&&!R.originalEvent.isPrimary)break;case Se.MOUSE_UP:case Se.TOUCH_END:if(R.type===Se.TOUCH_END&&1!==R.originalEvent.touches.length)break;case Se.END:u(!1),f(!1),w.onRelease&&w.onRelease(R),e.drop&&e.drop.onDrop&&e.drop.onDrop(R),w.onDragEnd&&w.onDragEnd(R);break;case Se.POINTER_CANCEL:case Se.CONTEXT_MENU:case Se.TOUCH_CANCEL:case Se.CANCEL:u(!1),f(!1),w.onDragEnd&&w.onDragEnd(R),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R)}},Ke=function(e,n){if(e){var t,r;e===_e(e)?(t=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(t=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+n.y,a=t&&o>0&&o<e.scrollHeight,l=e.scrollLeft+n.x,i=r&&l>0&&l<e.scrollWidth;a?e.scrollTop+=n.y:t&&o<0&&(e.scrollTop=0),i?e.scrollLeft+=n.x:r&&l<0&&(e.scrollLeft=0)}},He=function(e,n){var t=r.useContext(e),o=t[0],a=t[1],l=r.useState(n),i=l[0],c=l[1];return[void 0!==o?o:i,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];void 0!==o?a.apply(void 0,e):c(e[0])}]};function Ve(e,n,t){void 0===t&&(t={});var o=n.onPress,a=void 0===o?D:o,l=n.onRelease,i=void 0===l?D:l,c=n.onDragStart,u=void 0===c?D:c,s=n.onDrag,f=void 0===s?D:s,d=n.onDragEnd,v=void 0===d?D:d,p=t.hint,m=void 0===p?null:p,g=t.mouseOnly,h=void 0!==g&&g,y=t.autoScroll,b=void 0===y||y,C=t.scrollContainer,k=void 0===C?null:C,O=r.useState(!1),E=O[0],w=O[1],x=r.useState(!1),M=x[0],N=x[1],R=He(Me)[0],T=He(xe),S=T[0],P=T[1],L=r.useContext(Re)[0],_=r.useContext(Ne),j=_[0],I=_[1],A=_[2],U=r.useRef({x:0,y:0}),K=r.useRef(),H=r.useRef(!1),V=r.useRef(),X=r.useRef(null),Y=r.useRef(!1),B=r.useRef({x:0,y:0}),z=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),F=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!h&&Z,J=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),ee=r.useCallback((function(){return k&&k.current&&k.current.element?k.current.element:k?k.current:null}),[k]),ne=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:he,onDrag:ye,onDragEnd:be,onRelease:ge,data:e.current}}));var re=r.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),oe=r.useCallback((function(){var e=re();return e&&e.defaultView||window}),[re]),ae=r.useCallback((function(){return{drag:S?S.current:null,drop:R?R.current:null,drags:j.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:B.current,pageOffset:z.current,initialScrollOffset:G.current,clientOffset:W.current,initialClientOffset:F.current,velocity:U.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ne(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:M}}),[S,R,j,L,E,b,ne,M]),le=r.useCallback((function(e){w(e)}),[]),ie=r.useCallback((function(e){N(e)}),[]),ce=r.useCallback((function(e){U.current=e}),[]),ue=r.useCallback((function(e){B.current=e}),[]),se=r.useCallback((function(e){W.current=e}),[]),fe=r.useCallback((function(e){z.current=e}),[]),de=r.useCallback((function(e){F.current=e}),[]),ve=r.useCallback((function(e){q.current=e}),[]),pe=r.useCallback((function(e){G.current=e}),[]),me=r.useCallback((function(e){a(e)}),[a]),ge=r.useCallback((function(e){i(e)}),[i]),he=r.useCallback((function(n){P(te,{target:e.current,event:n}),u(n)}),[P,e,u]),ye=r.useCallback((function(e){f(e)}),[f]),be=r.useCallback((function(n){Y.current||(P(null,{target:e.current,event:n}),v(n))}),[v,P,e]),Ce=r.useCallback((function(e){Ue(ae(),{event:e,payload:te.current},{onVelocityChange:ce,onOffsetChange:ue,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:de,onScrollOffsetChange:ve,onInitialScrollOffsetChange:pe,onIsPressedChange:le,onIsScrollingChange:ie})}),[ae,ce,ue,fe,se,de,pe,le,ve,ie]),ke=r.useCallback((function(e){Ce(e)}),[Ce]),Oe=r.useCallback((function(e){Ce(e)}),[Ce]),Ee=r.useCallback((function(e){Ce(e)}),[Ce]),we=r.useCallback((function(e){Ce(e)}),[Ce]),De=r.useCallback((function(e){Ce(e)}),[Ce]),Te=r.useCallback((function(e){Ce(e)}),[Ce]),Se=r.useCallback((function(e){Ce(e)}),[Ce]),Pe=r.useCallback((function(e){e.preventDefault(),Ce(e)}),[Ce]),Le=r.useCallback((function(e){e.preventDefault(),Ce(e)}),[Ce]),_e=r.useCallback((function(e){e.preventDefault(),Ce(e)}),[Ce]),je=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var n=oe();H.current=!0,V.current=n.setTimeout((function(){H.current=!1}),2e3)}Ce(e)}),[Ce,oe]),Ae=r.useCallback((function(e){Ce(e)}),[Ce]),Ve=r.useCallback((function(){var e=J();if(e){var n=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=n}}}),[J]),Xe=r.useCallback((function(){return I(te),function(){A(te)}}),[A,I]);r.useEffect((function(){var e=oe();if(M){var n=ee()||Ie(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(K.current),K.current=e.setInterval((function(){Ke(n,{x:U.current.x,y:U.current.y})}),50)}return function(){e.clearInterval(K.current)}}),[J,ee,oe,M]),r.useEffect(Ve,[Ve]),r.useEffect((function(){var e=oe(),n=J(),t=re();return $?(n&&(X.current=Ie(n),X.current&&X.current.addEventListener("scroll",Ae,{passive:!0}),n.addEventListener("pointerdown",ke,{passive:!0})),E&&(t.addEventListener("pointermove",Oe),t.addEventListener("pointerup",we,!0),t.addEventListener("contextmenu",Pe),t.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",D,{capture:!1,passive:!1}),n&&(n.addEventListener("mousedown",De,{passive:!0}),h||(n.addEventListener("touchstart",Le,{passive:!0}),E&&(n.addEventListener("touchmove",_e,{passive:!0}),n.addEventListener("touchend",je,{passive:!0})))),E&&(t.addEventListener("mousemove",Te,{passive:!0}),t.addEventListener("mouseup",Se,{passive:!0}))),function(){X.current&&X.current.removeEventListener("scroll",Ae),n&&(n.removeEventListener("pointerdown",ke),n.removeEventListener("mousedown",De),n.removeEventListener("touchstart",Le),n.removeEventListener("touchmove",_e),n.removeEventListener("touchend",je)),t.removeEventListener("pointermove",Oe),t.removeEventListener("pointerup",we,!0),t.removeEventListener("contextmenu",Pe),t.removeEventListener("pointercancel",Ee),t.removeEventListener("mousemove",Te),t.removeEventListener("mouseup",Se),e.removeEventListener("touchmove",D),e.clearTimeout(V.current)}}),[E,oe,J,re,h,$,Pe,De,Te,Se,Ee,ke,Oe,we,je,_e,Le,Ae]),r.useEffect((function(){return function(){Y.current=!0}}),[]),r.useLayoutEffect(Xe,[Xe])}var Xe=r.forwardRef((function(e,n){var t=r.useRef(null),o=r.useRef(null),a=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);r.useImperativeHandle(o,(function(){return{element:a()||null}})),r.useImperativeHandle(n,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return t.current}));var l=r.useCallback((function(n){e.onPress&&e.onPress({element:a(),target:o.current,event:n})}),[a,e.onPress]),i=r.useCallback((function(n){e.onRelease&&e.onRelease({element:a(),target:o.current,event:n})}),[a,e.onRelease]),c=r.useCallback((function(n){e.onDragStart&&e.onDragStart({element:a(),target:o.current,event:n})}),[e,a]),u=r.useCallback((function(n){e.onDrag&&e.onDrag({element:a(),target:o.current,event:n})}),[a,e.onDrag]),s=r.useCallback((function(n){e.onDragEnd&&e.onDragEnd({element:a(),target:o.current,event:n})}),[a,e.onDragEnd]);return Ve(t,{onPress:l,onRelease:i,onDragStart:c,onDrag:u,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:t}):null}));function Ye(e,n){void 0===n&&(n={onDragEnter:D,onDragOver:D,onDragLeave:D,onDrop:D});var t=n.onDragEnter,o=void 0===t?D:t,a=n.onDragOver,l=void 0===a?D:a,i=n.onDragLeave,c=void 0===i?D:i,u=n.onDrop,s=void 0===u?D:u,f=He(Me)[1],d=r.useContext(Re),v=d[1],p=d[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),g=r.useRef(null);r.useImperativeHandle(g,(function(){return{element:m(),onDragEnter:h,onDragOver:y,onDragLeave:b,onDrop:C,data:e.current}}));var h=r.useCallback((function(n){f(g,{target:e.current,event:n}),o(n)}),[f,e,o]),y=r.useCallback((function(e){l(e)}),[l]),b=r.useCallback((function(n){f(null,{target:e.current,event:n}),c(n)}),[f,e,c]),C=r.useCallback((function(n){f(null,{target:e.current,event:n}),s(n)}),[f,e,s]),k=r.useCallback((function(){return v(g),function(){p(g)}}),[p,v]);r.useLayoutEffect(k,[k])}Xe.displayName="KendoReactDraggable";var Be=r.forwardRef((function(e,n){var t=r.useRef(null),o=r.useRef(null),a=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);r.useImperativeHandle(o,(function(){return{element:a()||void 0}})),r.useImperativeHandle(n,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return t.current}));var l=r.useCallback((function(n){e.onDragEnter&&e.onDragEnter({element:a(),target:o.current,event:n})}),[e.onDragEnter,a]),i=r.useCallback((function(n){e.onDragOver&&e.onDragOver({element:a(),target:o.current,event:n})}),[a,e.onDragOver]),c=r.useCallback((function(n){e.onDragLeave&&e.onDragLeave({element:a(),target:o.current,event:n})}),[e.onDragLeave,a]),u=r.useCallback((function(n){e.onDrop&&e.onDrop({element:a(),target:o.current,event:n})}),[e.onDrop,a]);return Ye(t,{onDragEnter:l,onDragOver:i,onDragLeave:c,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:t}):null}));Be.displayName="KendoReactDroppable";var ze={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},302:e=>{e.exports=t},189:e=>{e.exports=n},899:n=>{n.exports=e}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={exports:{}};return r[e].call(t.exports,t,t.exports,a),t.exports}return a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(468)})()})); | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("prop-types"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing"],n):"object"==typeof exports?exports.KendoReactScrollview=n(require("react"),require("prop-types"),require("@progress/kendo-licensing")):e.KendoReactScrollview=n(e.React,e.PropTypes,e.KendoLicensing)}(self,(function(e,n,t){return(()=>{"use strict";var r={850:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ScrollView=void 0;var r=t(899),o=t(189),a=t(449),l=t(449),i=t(363);n.ScrollView=r.forwardRef((function(e,n){(0,l.validatePackage)(i.packageMetadata);var t=e.className,o=e.style,c=e.children,u=e.pagerOverlay,s=e.pageable,f=e.arrows,d=e.endless,v=e.activeView,p=e.automaticViewChange,m=e.automaticViewChangeInterval,g=r.useState(v||1),h=g[0],y=g[1],b=r.useRef(null),C=r.useRef(null),k=r.useRef(null),O=r.Children.toArray(c),E=(0,a.useRtl)(b,e.dir),w="rtl"===E,D=r.useCallback((function(){b.current&&b.current.focus()}),[]),x=r.useCallback((function(){return{element:b.current,focus:D}}),[D]);r.useImperativeHandle(n,x);var M=r.useCallback((function(){d?y(h>1?h-1:O.length):h>1&&y(h-1)}),[h,O.length,d]),N=r.useCallback((function(){d?h<O.length?y(h+1):y(1):h<O.length&&y(h+1)}),[h,O.length,d]),R=r.useCallback((function(){w?N():M()}),[w,M,N]),T=r.useCallback((function(){w?M():N()}),[w,N,M]);function S(){k.current&&clearTimeout(k.current)}r.useEffect((function(){var e=O.length;C.current&&(C.current.style.setProperty("--kendo-scrollview-views","".concat(e)),C.current.style.setProperty("--kendo-scrollview-current","".concat(h)))}),[O,h,E]),r.useEffect((function(){if(p)return S(),k.current=setTimeout((function(){return y((function(e){return e===O.length?d?1:e:e+1}))}),m),function(){S()}}),[p,m,O.length,h,d]);var P=r.useCallback((function(e){switch(e.keyCode){case a.Keys.left:e.preventDefault(),w?N():M();break;case a.Keys.right:e.preventDefault(),w?M():N()}}),[w,N,M]),L=r.useMemo((function(){return(0,a.classNames)("k-widget k-scrollview",{"k-scrollview-light":"light"===u,"k-scrollview-dark":"dark"===u},t)}),[t,u]),_=r.Children.map(c||null,(function(e,n){return r.createElement("div",{className:"k-scrollview-view","aria-hidden":h!==n+1},e)})),j=r.useCallback((function(){var e;return e=w?h<O.length:h>1,(d||e)&&O.length>0}),[h,O.length,d,w]),I=r.useCallback((function(){var e;return e=w?h>1:h<O.length,(d||e)&&O.length>0}),[h,O.length,d,w]);return r.createElement("div",{className:L,style:o,ref:b,tabIndex:0,dir:E,onKeyDown:P},r.createElement("div",{className:"k-scrollview-wrap k-scrollview-animate",ref:C},_),r.createElement("div",{className:"k-scrollview-elements"},f&&r.createElement(r.Fragment,null,j()&&r.createElement("a",{className:"k-scrollview-prev","aria-label":"previous",onClick:R},r.createElement("span",{className:"k-icon k-i-arrowhead-w"})),I()&&r.createElement("a",{className:"k-scrollview-next","aria-label":"next",onClick:T},r.createElement("span",{className:"k-icon k-i-arrowhead-e"}))),s&&r.createElement("div",{className:"k-scrollview-nav-wrap"},r.createElement("ul",{className:"k-scrollview-nav"},O.map((function(e,n){return r.createElement("li",{className:(0,a.classNames)("k-link",{"k-primary":h===n+1}),key:n+1,onClick:function(){return y(n+1)}})}))))))})),n.ScrollView.propTypes={activeView:o.number,arrows:o.bool,automaticViewChange:o.bool,automaticViewChangeInterval:o.number,children:o.any,className:o.string,dir:o.string,endless:o.bool,pageable:o.bool,pageOverlay:o.string,style:o.object},n.ScrollView.defaultProps={activeView:1,arrows:!0,automaticViewChange:!0,automaticViewChangeInterval:5e3,endless:!1,pageable:!0,pageOverlay:"none"},n.ScrollView.displayName="KendoScrollView"},271:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},468:function(e,n,t){var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),o=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),o(t(850),n),o(t(271),n)},363:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.packageMetadata=void 0,n.packageMetadata={name:"@progress/kendo-react-scrollview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655713684,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"}},449:(e,n,t)=>{t.r(n),t.d(n,{AsyncFocusBlur:()=>W,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Te,Draggable:()=>Xe,Droppable:()=>Be,FormComponent:()=>h,Icon:()=>ce,Keys:()=>w,SvgIcon:()=>fe,Typography:()=>Ee,ZIndexContext:()=>o,canUseDOM:()=>c,canUseRef:()=>u,classNames:()=>s,clone:()=>d,cloneArray:()=>m,cloneDate:()=>f,cloneObject:()=>v,cloneValue:()=>p,createPropsContext:()=>G,dispatchEvent:()=>X,extendDataItem:()=>A,focusFirstFocusableChild:()=>g,getItemPath:()=>U,getScrollbarWidth:()=>x,getTabIndex:()=>y,getter:()=>O,guid:()=>E,hasRelativeStackingContext:()=>V,kendoThemeMaps:()=>ze,mapTree:()=>j,mapTreeItem:()=>I,noop:()=>D,setScrollbarWidth:()=>M,setter:()=>T,useAsyncFocusBlur:()=>B,useCollection:()=>te,useCustomComponent:()=>ne,useDir:()=>$,useDocument:()=>re,useDraggable:()=>Ve,useDroppable:()=>Ye,useMouse:()=>ee,usePropsContext:()=>F,useRtl:()=>J,useWindow:()=>oe,useZIndexContext:()=>a,validatePackage:()=>H,withPropsContext:()=>Z});var r=t(899),o=r.createContext(0),a=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var l=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=l();if(!this.scrollbar&&e&&e.createElement){var n=e.createElement("div");n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML=" ",e.body.appendChild(n),this.scrollbar=n.offsetWidth-n.scrollWidth,e.body.removeChild(n)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},s=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(n){t[n]=e[n]})):t[e]=!0},o=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):r(e)}))};return o(e),Object.keys(t).map((function(e){return t[e]&&e||null})).filter((function(e){return null!==e})).join(" ")},f=function(e){return e?new Date(e.getTime()):null};function d(e){var n={};return v(e,n),n}function v(e,n){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];n[t]=p(r,n[t])}}function p(e,n){if(Array.isArray(e))return m(e);if(e instanceof Date)return f(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var t=n||{};return v(e,t),t}return e}function m(e){return e.map((function(e){return p(e,void 0)}))}var g=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var n=e.querySelector('input, [tabindex]:not([tabindex="-1"])');n&&n.focus&&n.focus()}},h=function(){},y=function(e,n,t){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:n?t?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function C(e){var n=[];return e.replace(b,(function(e,t,r,o){n.push(void 0!==t?t:r||o)})),n}var k={};function O(e){if(k[e])return k[e];var n=C(e);return k[e]=function(e){for(var t=e,r=0;r<n.length&&t;r++)t=t[n[r]];return t},k[e]}k.undefined=function(){};var E=function(){var e,n,t="";for(e=0;e<32;e++)n=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&n|8:n).toString(16);return t},w={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},D=function(){},x=function(){return!(!c||!document.body)&&(new i).scrollbarWidth},M=function(){if(!c||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},N={undefined:function(e){return e}},R=function(e,n){return n&&n.arrays&&!isNaN(Number(e))?[]:{}};function T(e){if(N[e])return N[e];var n=C(e);return N[e]=function(e,t,r){for(var o=e,a=n.length-1,l=0;l<a&&o;l++)o=o[n[l]]=o[n[l]]||R(n[l+1],r);o[n[a]]=t},N[e]}var S=function(){return S=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},S.apply(this,arguments)},P=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))};function L(e,n,t){var r;return t?S(S({},e),((r={})[n]=t.length?P([],t,!0):void 0,r)):e&&e[n]?P([],e[n],!0):[]}function _(e,n,t){if(e[n]){var r=L(e,n).map((function(e){return _(e,n,t)}));return t(L(e,n,r))}return t(e)}var j=function(e,n,t){return P([],e.map((function(e){return _(e,n,t)})),!0)},I=function(e,n,t,r){for(var o=e,a=[],l=0;l<n.length;l++)o=o[n[l]],o=Array.isArray(o)?o:o[t],a.push(o);var i=a.length>1?a[a.length-2]:e,c=n[n.length-1],u=r(i[c]);i.splice(c,1,u)},A=function(e,n,t){var r;return Object.assign({},e,e[n]?((r={})[n]=e[n].slice(),r):{},t||{})},U=function(e,n,t){var r=[],o=P([],n,!0);if(o.length){var a=e[o.shift()||0];for(r.push(a);o.length&&t;)a=a[t][o.shift()||0],r.push(a)}return r},K=t(302);function H(e){if(void 0!==K)K.validatePackage(e);else{var n="License activation failed for ".concat(e.name,"\n");n+="The @progress/kendo-licensing script is not loaded.\n",n+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(n)}}var V=function(e){if(!c)return!1;var n=e?e.ownerDocument:document;if(!n||!n.body)return!1;var t=n.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: '.concat(10,'px;">child</div>'),n.body.appendChild(t);var r=10!==t.children[0].getBoundingClientRect().top;return n.body.removeChild(t),r};function X(e,n,t,r){if(e){var o={syntheticEvent:n,nativeEvent:n.nativeEvent,target:t};e.call(void 0,Object.assign(o,r))}}var Y=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))};function B(e){var n=e.onFocus,t=e.onBlur,o=e.onSyncFocus,a=e.onSyncBlur,l=r.useRef(!1),i=r.useRef(0),c=r.useCallback((function(e){clearTimeout(i.current),i.current=window.setTimeout((function(){return e()}))}),[i]),u=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];clearTimeout(i.current),o&&o.call(void 0,e[0]),l.current||(l.current=!0,n&&n.call.apply(n,Y([void 0],e,!1)))}),[l,n,o]),s=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];a&&a.call(void 0,e[0]),c((function(){l.current&&t&&(l.current=!1,t.call.apply(t,Y([void 0],e,!1)))}))}),[l,c,t,a]);return r.useEffect((function(){return function(){clearTimeout(i.current)}}),[]),{onFocus:u,onBlur:s}}var z=function(){return z=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},z.apply(this,arguments)},W=function(e){var n=e.children,t=B({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return r.createElement(r.Fragment,null,n.call(void 0,z({},t)))},F=function(e,n){return r.useContext(e)(n)},q=function(){return q=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},q.apply(this,arguments)},G=function(){return r.createContext((function(e){return e}))},Z=function(e,n){return r.forwardRef((function(t,o){var a=F(e,t);return r.createElement(n,q({},a,{ref:o}))}))};function $(e,n,t){var o=r.useState(n),a=o[0],l=o[1];return r.useEffect((function(){if(!a&&window&&e.current){var n=window.getComputedStyle(e.current).direction;n&&l(n)}}),t),a}function J(e,n,t){var o=r.useState(n),a=o[0],l=o[1];return r.useEffect((function(){if(!a&&window&&e.current){var n=window.getComputedStyle(e.current).direction;n&&l(n)}}),t),a}var Q,ee=function(e,n,t){void 0===t&&(t={});var o=r.useCallback((function(r){t.onMouseDown&&t.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseDown,e.onMouseDown,n]),a=r.useCallback((function(r){t.onMouseUp&&t.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseUp,e.onMouseUp,n]);return{onClick:r.useCallback((function(r){t.onClick&&t.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onClick,e.onClick,n]),onMouseUp:a,onMouseDown:o,onDoubleClick:r.useCallback((function(r){t.onDoubleClick&&t.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onDoubleClick,e.onDoubleClick,n]),onMouseEnter:r.useCallback((function(r){t.onMouseEnter&&t.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseEnter,e.onMouseEnter,n]),onMouseLeave:r.useCallback((function(r){t.onMouseLeave&&t.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseLeave,e.onMouseLeave,n]),onMouseMove:r.useCallback((function(r){t.onMouseMove&&t.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseMove,e.onMouseMove,n]),onMouseOut:r.useCallback((function(r){t.onMouseOut&&t.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseOut,e.onMouseOut,n]),onMouseOver:r.useCallback((function(r){t.onMouseOver&&t.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:n.current,syntheticEvent:r})}),[t.onMouseOver,e.onMouseOver,n])}},ne=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Q||(Q={}));var te=function(e){void 0===e&&(e=[]);var n=r.useRef(e),t=r.useCallback((function(e){switch(e.type){case Q.add:n.current.push(e.item);break;case Q.remove:var t=n.current.indexOf(e.item);n.current.splice(t,1)}}),[]);return[n.current,t]},re=function(e){var n=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return r.useCallback((function(){var e=n();return e&&e.ownerDocument||document}),[n])},oe=function(e){var n=re(e);return r.useCallback((function(){var e=n();return e&&e.defaultView||window}),[n])},ae=t(189),le={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ie=function(){return ie=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ie.apply(this,arguments)},ce=r.forwardRef((function(e,n){var t=e.className,o=e.name,a=e.themeColor,l=e.size,i=e.flip,c=e.style,u=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["className","name","themeColor","size","flip","style"]),f=r.useRef(null),d=r.useRef(null);r.useImperativeHandle(f,(function(){return{element:d.current}})),r.useImperativeHandle(n,(function(){return f.current}));var v=r.useMemo((function(){return a||ue.themeColor}),[a]),p=r.useMemo((function(){return l||ue.size}),[l]),m=r.useMemo((function(){return i||ue.flip}),[i]),g=r.useMemo((function(){return s("k-icon","k-i-"+o,"k-color-"+v,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},le[p],t)}),[o,v,p,m,t]),h=ee(e,f);return r.createElement("span",ie({ref:d},u,h,{className:g,style:c,role:"presentation"}))}));ce.propTypes={style:ae.object,classNames:ae.string,name:ae.string,themeColor:ae.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ae.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ae.oneOf(["default","horizontal","vertical","both"])};var ue={size:"default",themeColor:"inherit",flip:"default"};ce.displayName="KendoIcon";var se=function(){return se=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},se.apply(this,arguments)},fe=r.forwardRef((function(e,n){var t=e.children,o=e.className,a=e.svgClassName,l=e.icon,i=e.flip,c=e.size,u=e.style,f=e.svgStyle,d=e.themeColor,v=e.viewBox,p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(n,(function(){return{element:m.current}}));var g=r.useMemo((function(){return l?l.name:de.icon}),[l]),h=r.useMemo((function(){return d||de.themeColor}),[d]),y=r.useMemo((function(){return c||de.size}),[c]),b=r.useMemo((function(){return i||de.flip}),[i]),C=r.useMemo((function(){return v||de.viewBox}),[v]),k=r.useMemo((function(){return s("k-svg-icon","k-color-"+h,"k-svg-i-"+g,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},le[y],o)}),[g,h,y,b,o]),O=r.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},u):e.width?se({width:e.width,height:e.width},u):e.height?se({width:e.height,height:e.height},u):se({},u)}),[e.width,e.height,u]);return r.createElement("span",{className:k,style:O,ref:m},r.createElement("svg",se({className:a,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:l?l.viewBox:C,dangerouslySetInnerHTML:l?{__html:l.content}:void 0},p),l?void 0:t))}));fe.propTypes={style:ae.object,classNames:ae.string,children:ae.any,icon:ae.object,themeColor:ae.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ae.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ae.oneOf(["default","horizontal","vertical","both"])};var de={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};fe.displayName="KendoSvgIcon";var ve={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},me={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"},ge={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-"},ye={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},be={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ce={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"},ke=function(){return ke=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ke.apply(this,arguments)},Oe=function(e){var n=r.forwardRef((function(n,t){var o=n.id,a=n.style,l=n.className,i=n.fontSize,c=n.fontWeight,u=n.textAlign,s=n.textTransform,f=n.themeColor,d=n.margin,v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(n,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=r.useRef(null),m=r.useRef(null);r.useImperativeHandle(p,(function(){return{element:m.current,props:n}})),r.useImperativeHandle(t,(function(){return p.current}));var g=e;return r.createElement(g,ke({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),ve[i],pe[c],ye[u],be[s],Ce[f],function(){if(void 0!==d){if("string"==typeof d)return[me[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(n){var t,r,o;null!==d[n]&&void 0!==d[n]&&e.push((t=n,o="string"==typeof(r=d[n])?ge[r]:r,"".concat(he[t]).concat(o)))})),e.join(" ")}}}(),l].filter((function(e){return void 0!==e})).join(" "),style:a},v),n.children)}));return n.propTypes={style:ae.object,className:ae.string,fontSize:ae.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ae.oneOf(["light","normal","bold"]),margin:ae.oneOfType([ae.number,ae.object,ae.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ae.oneOf(["left","right","center","justify"]),textTransform:ae.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ae.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},n.displayName="KendoReactTypography".concat(e.toUpperCase()),n},Ee={h1:Oe("h1"),h2:Oe("h2"),h3:Oe("h3"),h4:Oe("h4"),h5:Oe("h5"),h6:Oe("h6"),p:Oe("p"),code:Oe("code"),pre:Oe("pre")},we=function(){return we=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},we.apply(this,arguments)},De=function(e,n,t){var o=r.useState(n||e),a=o[0],l=o[1];return[void 0!==n?n:a,r.useCallback((function(e,n){l(e),t&&t.call(void 0,we(we({},n),{value:e}))}),[t,l])]},xe=r.createContext([void 0,D]),Me=r.createContext([void 0,D]),Ne=r.createContext([[],D,D]),Re=r.createContext([[],D,D]),Te=function(e){var n=De(null,void 0),t=n[0],o=n[1],a=De(null,void 0),l=a[0],i=a[1],c=te([]),u=c[0],s=c[1],f=te([]),d=f[0],v=f[1];return r.createElement(xe.Provider,{value:[t,o]},r.createElement(Me.Provider,{value:[l,i]},r.createElement(Ne.Provider,{value:[u,function(e){s({type:Q.add,item:e})},function(e){s({type:Q.remove,item:e})}]},r.createElement(Re.Provider,{value:[d,function(e){v({type:Q.add,item:e})},function(e){v({type:Q.remove,item:e})}]},e.children))))};Te.displayName="KendoReactDragAndDrop";var Se,Pe=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var n=!1,t=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(t=e.match(r[o]))){(n={})[o]=!0,n[t[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.DOCUMENT_NODE||t[2],10);break}return n},Le=function(e){return e&&e.ownerDocument||window.document},_e=function(e){var n=Pe(),t=Le(e);return n.edge||n.safari?t.body:t.documentElement},je=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var n=window.getComputedStyle(e,"overflow").overflow;return n.indexOf("auto")>-1||n.indexOf("scroll")>-1},Ie=function(e){var n=_e(e);if(!e||e===document.body||e===document.documentElement)return n;for(var t=e;t&&t!==document.body&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE&&!je(t);)t=t.parentNode;return!t||t!==document.body&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Se||(Se={}));var Ae=function(){},Ue=function(e,n,t){void 0===t&&(t={});var r,o,a,l,i,c=t.onIsPressedChange,u=void 0===c?Ae:c,s=t.onIsScrollingChange,f=void 0===s?Ae:s,d=t.onVelocityChange,v=void 0===d?Ae:d,p=t.onOffsetChange,m=void 0===p?Ae:p,g=t.onPageOffsetChange,h=void 0===g?Ae:g,y=t.onClientOffsetChange,b=void 0===y?Ae:y,C=t.onScrollOffsetChange,k=void 0===C?Ae:C,O=t.onInitialScrollOffsetChange,E=void 0===O?Ae:O,w=n.payload,D=w.element,x=w.hint,M=e.autoScrollDirection,N=e.scrollableParent,R=function(e,n){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:n.scrollOffset.x,scrollY:n.scrollOffset.y,offsetX:n.offset.x,offsetY:n.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:n.pageOffset.x,pageY:n.pageOffset.y,clientX:n.clientOffset.x,clientY:n.clientOffset.y,scrollX:n.scrollOffset.x,scrollY:n.scrollOffset.y,offsetX:n.offset.x,offsetY:n.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:n.scrollOffset.x,scrollY:n.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(n.event,e);switch(R.type){case Se.POINTER_DOWN:if(R.type===Se.POINTER_DOWN&&(!R.originalEvent.isPrimary||0!==R.originalEvent.button))break;case Se.MOUSE_DOWN:if(R.type===Se.MOUSE_DOWN&&R.originalEvent.which&&R.originalEvent.which>1||e.ignoreMouse)break;case Se.TOUCH_START:if(R.type===Se.TOUCH_START&&1!==R.originalEvent.touches.length)break;case Se.START:var T=N||Ie(n.payload.element);E(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),b({x:R.clientX,y:R.clientY}),h({x:R.pageX,y:R.pageY}),m({x:R.offsetX,y:R.offsetY}),u(!0),w.onPress&&w.onPress(R);break;case Se.SCROLL:if(R.type===Se.SCROLL&&!e.pressed)break;var S=N||Ie(D),P=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};R.scrollX=P.x-e.initialScrollOffset.x,R.scrollY=P.y-e.initialScrollOffset.y,k({x:R.scrollX,y:R.scrollY});case Se.POINTER_MOVE:if(R.type===Se.POINTER_MOVE&&!R.originalEvent.isPrimary)break;case Se.MOUSE_MOVE:case Se.TOUCH_MOVE:if(R.type===Se.TOUCH_MOVE&&1!==R.originalEvent.touches.length)break;case Se.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==R.originalEvent.type&&D){var L=Le(D),_=N||Ie(L.elementFromPoint(R.clientX,R.clientY)),j=(r=R.clientX,o=R.clientY,a=function(e,n){var t=_e(e);if(e===t)return{top:t.scrollTop,left:t.scrollLeft,bottom:t.scrollTop+n.innerHeight,right:t.scrollLeft+n.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(_,function(e){var n=Le(e);return n&&n.defaultView||window}(D)),l={x:0,y:0},i=50,r-a.left<i?l.x=-(i-(r-a.left)):a.right-r<i&&(l.x=i-(a.right-r)),o-a.top<i?l.y=-(i-(o-a.top)):a.bottom-o<i&&(l.y=i-(a.bottom-o)),l);v({x:M&&!1===M.horizontal?0:j.x,y:M&&!1===M.vertical?0:j.y}),f(0!==j.y||0!==j.x)}!e.drag&&w.onDragStart&&w.onDragStart(R),w.onDrag&&w.onDrag(R);var I=function(e,n){var t=0,r=null;return n.forEach((function(n){if(n&&e){var o=function(e,n){var t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o=Math.max(r.top,t.top),a=Math.max(r.left,t.left),l=Math.min(r.left+r.width,t.left+t.width),i=Math.min(r.top+r.height,t.top+t.height),c=l-a,u=i-o;if(a<l&&o<i){var s=r.width*r.height,f=t.width*t.height,d=c*u;return Number((d/(s+f-d)).toFixed(4))}return 0}(e,n);o>t&&(t=o,r=n)}})),r}(x||D,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(x||D)}))),A=e.drops.find((function(e){return e.element===I}));A&&I&&function(e,n,t){var r=t.getBoundingClientRect();return r.top<=n&&r.left<=e&&n<=r.bottom&&e<=r.right}(R.clientX,R.clientY,N||Ie(I))&&I!==D?(e.drop&&e.drop.element)!==I?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R),A.onDragEnter&&A.onDragEnter(R)):A.onDragOver&&A.onDragOver(R):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R)}b({x:R.clientX,y:R.clientY}),h({x:R.pageX,y:R.pageY});break;case Se.POINTER_UP:if(R.type===Se.POINTER_UP&&!R.originalEvent.isPrimary)break;case Se.MOUSE_UP:case Se.TOUCH_END:if(R.type===Se.TOUCH_END&&1!==R.originalEvent.touches.length)break;case Se.END:u(!1),f(!1),w.onRelease&&w.onRelease(R),e.drop&&e.drop.onDrop&&e.drop.onDrop(R),w.onDragEnd&&w.onDragEnd(R);break;case Se.POINTER_CANCEL:case Se.CONTEXT_MENU:case Se.TOUCH_CANCEL:case Se.CANCEL:u(!1),f(!1),w.onDragEnd&&w.onDragEnd(R),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(R)}},Ke=function(e,n){if(e){var t,r;e===_e(e)?(t=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(t=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+n.y,a=t&&o>0&&o<e.scrollHeight,l=e.scrollLeft+n.x,i=r&&l>0&&l<e.scrollWidth;a?e.scrollTop+=n.y:t&&o<0&&(e.scrollTop=0),i?e.scrollLeft+=n.x:r&&l<0&&(e.scrollLeft=0)}},He=function(e,n){var t=r.useContext(e),o=t[0],a=t[1],l=r.useState(n),i=l[0],c=l[1];return[void 0!==o?o:i,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];void 0!==o?a.apply(void 0,e):c(e[0])}]};function Ve(e,n,t){void 0===t&&(t={});var o=n.onPress,a=void 0===o?D:o,l=n.onRelease,i=void 0===l?D:l,c=n.onDragStart,u=void 0===c?D:c,s=n.onDrag,f=void 0===s?D:s,d=n.onDragEnd,v=void 0===d?D:d,p=t.hint,m=void 0===p?null:p,g=t.mouseOnly,h=void 0!==g&&g,y=t.autoScroll,b=void 0===y||y,C=t.scrollContainer,k=void 0===C?null:C,O=r.useState(!1),E=O[0],w=O[1],x=r.useState(!1),M=x[0],N=x[1],R=He(Me)[0],T=He(xe),S=T[0],P=T[1],L=r.useContext(Re)[0],_=r.useContext(Ne),j=_[0],I=_[1],A=_[2],U=r.useRef({x:0,y:0}),K=r.useRef(),H=r.useRef(!1),V=r.useRef(),X=r.useRef(null),Y=r.useRef(!1),B=r.useRef({x:0,y:0}),z=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),F=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!h&&Z,J=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=r.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),ee=r.useCallback((function(){return k&&k.current&&k.current.element?k.current.element:k?k.current:null}),[k]),ne=r.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=r.useRef(null);r.useImperativeHandle(te,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:he,onDrag:ye,onDragEnd:be,onRelease:ge,data:e.current}}));var re=r.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),oe=r.useCallback((function(){var e=re();return e&&e.defaultView||window}),[re]),ae=r.useCallback((function(){return{drag:S?S.current:null,drop:R?R.current:null,drags:j.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:E,ignoreMouse:H.current,scrollOffset:q.current,offset:B.current,pageOffset:z.current,initialScrollOffset:G.current,clientOffset:W.current,initialClientOffset:F.current,velocity:U.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ne(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:M}}),[S,R,j,L,E,b,ne,M]),le=r.useCallback((function(e){w(e)}),[]),ie=r.useCallback((function(e){N(e)}),[]),ce=r.useCallback((function(e){U.current=e}),[]),ue=r.useCallback((function(e){B.current=e}),[]),se=r.useCallback((function(e){W.current=e}),[]),fe=r.useCallback((function(e){z.current=e}),[]),de=r.useCallback((function(e){F.current=e}),[]),ve=r.useCallback((function(e){q.current=e}),[]),pe=r.useCallback((function(e){G.current=e}),[]),me=r.useCallback((function(e){a(e)}),[a]),ge=r.useCallback((function(e){i(e)}),[i]),he=r.useCallback((function(n){P(te,{target:e.current,event:n}),u(n)}),[P,e,u]),ye=r.useCallback((function(e){f(e)}),[f]),be=r.useCallback((function(n){Y.current||(P(null,{target:e.current,event:n}),v(n))}),[v,P,e]),Ce=r.useCallback((function(e){Ue(ae(),{event:e,payload:te.current},{onVelocityChange:ce,onOffsetChange:ue,onClientOffsetChange:se,onPageOffsetChange:fe,onInitialClientOffsetChange:de,onScrollOffsetChange:ve,onInitialScrollOffsetChange:pe,onIsPressedChange:le,onIsScrollingChange:ie})}),[ae,ce,ue,fe,se,de,pe,le,ve,ie]),ke=r.useCallback((function(e){Ce(e)}),[Ce]),Oe=r.useCallback((function(e){Ce(e)}),[Ce]),Ee=r.useCallback((function(e){Ce(e)}),[Ce]),we=r.useCallback((function(e){Ce(e)}),[Ce]),De=r.useCallback((function(e){Ce(e)}),[Ce]),Te=r.useCallback((function(e){Ce(e)}),[Ce]),Se=r.useCallback((function(e){Ce(e)}),[Ce]),Pe=r.useCallback((function(e){e.preventDefault(),Ce(e)}),[Ce]),Le=r.useCallback((function(e){e.preventDefault(),Ce(e)}),[Ce]),_e=r.useCallback((function(e){e.preventDefault(),Ce(e)}),[Ce]),je=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var n=oe();H.current=!0,V.current=n.setTimeout((function(){H.current=!1}),2e3)}Ce(e)}),[Ce,oe]),Ae=r.useCallback((function(e){Ce(e)}),[Ce]),Ve=r.useCallback((function(){var e=J();if(e){var n=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=n}}}),[J]),Xe=r.useCallback((function(){return I(te),function(){A(te)}}),[A,I]);r.useEffect((function(){var e=oe();if(M){var n=ee()||Ie(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(K.current),K.current=e.setInterval((function(){Ke(n,{x:U.current.x,y:U.current.y})}),50)}return function(){e.clearInterval(K.current)}}),[J,ee,oe,M]),r.useEffect(Ve,[Ve]),r.useEffect((function(){var e=oe(),n=J(),t=re();return $?(n&&(X.current=Ie(n),X.current&&X.current.addEventListener("scroll",Ae,{passive:!0}),n.addEventListener("pointerdown",ke,{passive:!0})),E&&(t.addEventListener("pointermove",Oe),t.addEventListener("pointerup",we,!0),t.addEventListener("contextmenu",Pe),t.addEventListener("pointercancel",Ee,{passive:!0}))):(e.addEventListener("touchmove",D,{capture:!1,passive:!1}),n&&(n.addEventListener("mousedown",De,{passive:!0}),h||(n.addEventListener("touchstart",Le,{passive:!0}),E&&(n.addEventListener("touchmove",_e,{passive:!0}),n.addEventListener("touchend",je,{passive:!0})))),E&&(t.addEventListener("mousemove",Te,{passive:!0}),t.addEventListener("mouseup",Se,{passive:!0}))),function(){X.current&&X.current.removeEventListener("scroll",Ae),n&&(n.removeEventListener("pointerdown",ke),n.removeEventListener("mousedown",De),n.removeEventListener("touchstart",Le),n.removeEventListener("touchmove",_e),n.removeEventListener("touchend",je)),t.removeEventListener("pointermove",Oe),t.removeEventListener("pointerup",we,!0),t.removeEventListener("contextmenu",Pe),t.removeEventListener("pointercancel",Ee),t.removeEventListener("mousemove",Te),t.removeEventListener("mouseup",Se),e.removeEventListener("touchmove",D),e.clearTimeout(V.current)}}),[E,oe,J,re,h,$,Pe,De,Te,Se,Ee,ke,Oe,we,je,_e,Le,Ae]),r.useEffect((function(){return function(){Y.current=!0}}),[]),r.useLayoutEffect(Xe,[Xe])}var Xe=r.forwardRef((function(e,n){var t=r.useRef(null),o=r.useRef(null),a=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);r.useImperativeHandle(o,(function(){return{element:a()||null}})),r.useImperativeHandle(n,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return t.current}));var l=r.useCallback((function(n){e.onPress&&e.onPress({element:a(),target:o.current,event:n})}),[a,e.onPress]),i=r.useCallback((function(n){e.onRelease&&e.onRelease({element:a(),target:o.current,event:n})}),[a,e.onRelease]),c=r.useCallback((function(n){e.onDragStart&&e.onDragStart({element:a(),target:o.current,event:n})}),[e,a]),u=r.useCallback((function(n){e.onDrag&&e.onDrag({element:a(),target:o.current,event:n})}),[a,e.onDrag]),s=r.useCallback((function(n){e.onDragEnd&&e.onDragEnd({element:a(),target:o.current,event:n})}),[a,e.onDragEnd]);return Ve(t,{onPress:l,onRelease:i,onDragStart:c,onDrag:u,onDragEnd:s},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:t}):null}));function Ye(e,n){void 0===n&&(n={onDragEnter:D,onDragOver:D,onDragLeave:D,onDrop:D});var t=n.onDragEnter,o=void 0===t?D:t,a=n.onDragOver,l=void 0===a?D:a,i=n.onDragLeave,c=void 0===i?D:i,u=n.onDrop,s=void 0===u?D:u,f=He(Me)[1],d=r.useContext(Re),v=d[1],p=d[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),g=r.useRef(null);r.useImperativeHandle(g,(function(){return{element:m(),onDragEnter:h,onDragOver:y,onDragLeave:b,onDrop:C,data:e.current}}));var h=r.useCallback((function(n){f(g,{target:e.current,event:n}),o(n)}),[f,e,o]),y=r.useCallback((function(e){l(e)}),[l]),b=r.useCallback((function(n){f(null,{target:e.current,event:n}),c(n)}),[f,e,c]),C=r.useCallback((function(n){f(null,{target:e.current,event:n}),s(n)}),[f,e,s]),k=r.useCallback((function(){return v(g),function(){p(g)}}),[p,v]);r.useLayoutEffect(k,[k])}Xe.displayName="KendoReactDraggable";var Be=r.forwardRef((function(e,n){var t=r.useRef(null),o=r.useRef(null),a=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);r.useImperativeHandle(o,(function(){return{element:a()||void 0}})),r.useImperativeHandle(n,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return t.current}));var l=r.useCallback((function(n){e.onDragEnter&&e.onDragEnter({element:a(),target:o.current,event:n})}),[e.onDragEnter,a]),i=r.useCallback((function(n){e.onDragOver&&e.onDragOver({element:a(),target:o.current,event:n})}),[a,e.onDragOver]),c=r.useCallback((function(n){e.onDragLeave&&e.onDragLeave({element:a(),target:o.current,event:n})}),[e.onDragLeave,a]),u=r.useCallback((function(n){e.onDrop&&e.onDrop({element:a(),target:o.current,event:n})}),[e.onDrop,a]);return Ye(t,{onDragEnter:l,onDragOver:i,onDragLeave:c,onDrop:u}),e.children?r.cloneElement(r.Children.only(e.children),{ref:t}):null}));Be.displayName="KendoReactDroppable";var ze={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},302:e=>{e.exports=t},189:e=>{e.exports=n},899:n=>{n.exports=e}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={exports:{}};return r[e].call(t.exports,t,t.exports,a),t.exports}return a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(468)})()})); |
@@ -8,5 +8,5 @@ /** | ||
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'], | ||
publishDate: 1655707271, | ||
publishDate: 1655713684, | ||
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' | ||
}; |
@@ -11,5 +11,5 @@ "use strict"; | ||
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'], | ||
publishDate: 1655707271, | ||
publishDate: 1655713684, | ||
version: '', | ||
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning' | ||
}; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-scrollview",["@progress/kendo-react-common","prop-types","react"],function(e,t){var r={},l={},c={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){e((()=>{"use strict";var a={850:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollView=void 0;var j=r(954),a=r(895),P=r(811),V=r(811),x=r(363);t.ScrollView=j.forwardRef(function(e,t){(0,V.validatePackage)(x.packageMetadata);var r=e.className,a=e.style,n=e.children,l=e.pagerOverlay,c=e.pageable,o=e.arrows,i=e.endless,s=e.activeView,u=e.automaticViewChange,d=e.automaticViewChangeInterval,s=j.useState(s||1),f=s[0],v=s[1],p=j.useRef(null),m=j.useRef(null),k=j.useRef(null),w=j.Children.toArray(n),s=(0,P.useRtl)(p,e.dir),g="rtl"===s,h=j.useCallback(function(){p.current&&p.current.focus()},[]),e=j.useCallback(function(){return{element:p.current,focus:h}},[h]),b=(j.useImperativeHandle(t,e),j.useCallback(function(){i?v(1<f?f-1:w.length):1<f&&v(f-1)},[f,w.length,i])),y=j.useCallback(function(){i?f<w.length?v(f+1):v(1):f<w.length&&v(f+1)},[f,w.length,i]),t=j.useCallback(function(){(g?y:b)()},[g,b,y]),e=j.useCallback(function(){(g?b:y)()},[g,y,b]);function C(){k.current&&clearTimeout(k.current)}j.useEffect(function(){var e=w.length;m.current&&(m.current.style.setProperty("--kendo-scrollview-views","".concat(e)),m.current.style.setProperty("--kendo-scrollview-current","".concat(f)))},[w,f,s]),j.useEffect(function(){if(u)return C(),k.current=setTimeout(function(){return v(function(e){return e===w.length?i?1:e:e+1})},d),function(){C()}},[u,d,w.length,f,i]);var _=j.useCallback(function(e){switch(e.keyCode){case P.Keys.left:e.preventDefault(),(g?y:b)();break;case P.Keys.right:e.preventDefault(),(g?b:y)()}},[g,y,b]),E=j.useMemo(function(){return(0,P.classNames)("k-widget k-scrollview",{"k-scrollview-light":"light"===l,"k-scrollview-dark":"dark"===l},r)},[r,l]),n=j.Children.map(n||null,function(e,t){return j.createElement("div",{className:"k-scrollview-view","aria-hidden":f!==t+1},e)}),O=j.useCallback(function(){var e=g?f<w.length:1<f;return(i||e)&&0<w.length},[f,w.length,i,g]),N=j.useCallback(function(){var e=g?1<f:f<w.length;return(i||e)&&0<w.length},[f,w.length,i,g]);return j.createElement("div",{className:E,style:a,ref:p,tabIndex:0,dir:s,onKeyDown:_},j.createElement("div",{className:"k-scrollview-wrap k-scrollview-animate",ref:m},n),j.createElement("div",{className:"k-scrollview-elements"},o&&j.createElement(j.Fragment,null,O()&&j.createElement("a",{className:"k-scrollview-prev","aria-label":"previous",onClick:t},j.createElement("span",{className:"k-icon k-i-arrowhead-w"})),N()&&j.createElement("a",{className:"k-scrollview-next","aria-label":"next",onClick:e},j.createElement("span",{className:"k-icon k-i-arrowhead-e"}))),c&&j.createElement("div",{className:"k-scrollview-nav-wrap"},j.createElement("ul",{className:"k-scrollview-nav"},w.map(function(e,t){return j.createElement("li",{className:(0,P.classNames)("k-link",{"k-primary":f===t+1}),key:t+1,onClick:function(){return v(t+1)}})})))))}),t.ScrollView.propTypes={activeView:a.number,arrows:a.bool,automaticViewChange:a.bool,automaticViewChangeInterval:a.number,children:a.any,className:a.string,dir:a.string,endless:a.bool,pageable:a.bool,pageOverlay:a.string,style:a.object},t.ScrollView.defaultProps={activeView:1,arrows:!0,automaticViewChange:!0,automaticViewChangeInterval:5e3,endless:!1,pageable:!0,pageOverlay:"none"},t.ScrollView.displayName="KendoScrollView"},271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,n)}:function(e,t,r,a){e[a=void 0===a?r:a]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(850),t),n(r(271),t)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-scrollview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655707271,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"}},811:e=>{e.exports=r},895:e=>{e.exports=l},954:e=>{e.exports=c}},n={};return function e(t){var r=n[t];if(void 0!==r)return r.exports;r=n[t]={exports:{}};return a[t].call(r.exports,r,r.exports,e),r.exports}(468)})())}}}); | ||
System.register("@progress/kendo-react-scrollview",["@progress/kendo-react-common","prop-types","react"],function(e,t){var r={},l={},c={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){e((()=>{"use strict";var a={850:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollView=void 0;var j=r(954),a=r(895),P=r(811),V=r(811),x=r(363);t.ScrollView=j.forwardRef(function(e,t){(0,V.validatePackage)(x.packageMetadata);var r=e.className,a=e.style,n=e.children,l=e.pagerOverlay,c=e.pageable,o=e.arrows,i=e.endless,s=e.activeView,u=e.automaticViewChange,d=e.automaticViewChangeInterval,s=j.useState(s||1),f=s[0],v=s[1],p=j.useRef(null),m=j.useRef(null),k=j.useRef(null),w=j.Children.toArray(n),s=(0,P.useRtl)(p,e.dir),g="rtl"===s,h=j.useCallback(function(){p.current&&p.current.focus()},[]),e=j.useCallback(function(){return{element:p.current,focus:h}},[h]),b=(j.useImperativeHandle(t,e),j.useCallback(function(){i?v(1<f?f-1:w.length):1<f&&v(f-1)},[f,w.length,i])),y=j.useCallback(function(){i?f<w.length?v(f+1):v(1):f<w.length&&v(f+1)},[f,w.length,i]),t=j.useCallback(function(){(g?y:b)()},[g,b,y]),e=j.useCallback(function(){(g?b:y)()},[g,y,b]);function C(){k.current&&clearTimeout(k.current)}j.useEffect(function(){var e=w.length;m.current&&(m.current.style.setProperty("--kendo-scrollview-views","".concat(e)),m.current.style.setProperty("--kendo-scrollview-current","".concat(f)))},[w,f,s]),j.useEffect(function(){if(u)return C(),k.current=setTimeout(function(){return v(function(e){return e===w.length?i?1:e:e+1})},d),function(){C()}},[u,d,w.length,f,i]);var _=j.useCallback(function(e){switch(e.keyCode){case P.Keys.left:e.preventDefault(),(g?y:b)();break;case P.Keys.right:e.preventDefault(),(g?b:y)()}},[g,y,b]),E=j.useMemo(function(){return(0,P.classNames)("k-widget k-scrollview",{"k-scrollview-light":"light"===l,"k-scrollview-dark":"dark"===l},r)},[r,l]),n=j.Children.map(n||null,function(e,t){return j.createElement("div",{className:"k-scrollview-view","aria-hidden":f!==t+1},e)}),O=j.useCallback(function(){var e=g?f<w.length:1<f;return(i||e)&&0<w.length},[f,w.length,i,g]),N=j.useCallback(function(){var e=g?1<f:f<w.length;return(i||e)&&0<w.length},[f,w.length,i,g]);return j.createElement("div",{className:E,style:a,ref:p,tabIndex:0,dir:s,onKeyDown:_},j.createElement("div",{className:"k-scrollview-wrap k-scrollview-animate",ref:m},n),j.createElement("div",{className:"k-scrollview-elements"},o&&j.createElement(j.Fragment,null,O()&&j.createElement("a",{className:"k-scrollview-prev","aria-label":"previous",onClick:t},j.createElement("span",{className:"k-icon k-i-arrowhead-w"})),N()&&j.createElement("a",{className:"k-scrollview-next","aria-label":"next",onClick:e},j.createElement("span",{className:"k-icon k-i-arrowhead-e"}))),c&&j.createElement("div",{className:"k-scrollview-nav-wrap"},j.createElement("ul",{className:"k-scrollview-nav"},w.map(function(e,t){return j.createElement("li",{className:(0,P.classNames)("k-link",{"k-primary":f===t+1}),key:t+1,onClick:function(){return v(t+1)}})})))))}),t.ScrollView.propTypes={activeView:a.number,arrows:a.bool,automaticViewChange:a.bool,automaticViewChangeInterval:a.number,children:a.any,className:a.string,dir:a.string,endless:a.bool,pageable:a.bool,pageOverlay:a.string,style:a.object},t.ScrollView.defaultProps={activeView:1,arrows:!0,automaticViewChange:!0,automaticViewChangeInterval:5e3,endless:!1,pageable:!0,pageOverlay:"none"},t.ScrollView.displayName="KendoScrollView"},271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,n)}:function(e,t,r,a){e[a=void 0===a?r:a]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(850),t),n(r(271),t)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-scrollview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1655713684,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"}},811:e=>{e.exports=r},895:e=>{e.exports=l},954:e=>{e.exports=c}},n={};return function e(t){var r=n[t];if(void 0!==r)return r.exports;r=n[t]={exports:{}};return a[t].call(r.exports,r,r.exports,e),r.exports}(468)})())}}}); |
{ | ||
"name": "@progress/kendo-react-scrollview", | ||
"description": "KendoReact ScrollView package", | ||
"version": "5.4.0-dev.202206200646", | ||
"version": "5.4.0", | ||
"repository": { | ||
@@ -39,9 +39,9 @@ "type": "git", | ||
"@progress/kendo-licensing": "^1.0.1", | ||
"@progress/kendo-react-animation": "5.4.0-dev.202206200646", | ||
"@progress/kendo-react-buttons": "5.4.0-dev.202206200646", | ||
"@progress/kendo-react-inputs": "5.4.0-dev.202206200646", | ||
"@progress/kendo-react-intl": "5.4.0-dev.202206200646" | ||
"@progress/kendo-react-animation": "5.4.0", | ||
"@progress/kendo-react-buttons": "5.4.0", | ||
"@progress/kendo-react-inputs": "5.4.0", | ||
"@progress/kendo-react-intl": "5.4.0" | ||
}, | ||
"dependencies": { | ||
"@progress/kendo-react-common": "5.4.0-dev.202206200646", | ||
"@progress/kendo-react-common": "5.4.0", | ||
"prop-types": "^15.6.0" | ||
@@ -48,0 +48,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
93091
+ Added@progress/kendo-react-common@5.4.0(transitive)
- Removed@progress/kendo-react-common@5.4.0-dev.202206200646(transitive)