@progress/kendo-react-treeview 5.4.0-dev.202205271059 → 5.4.0-dev.202206090823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-treeview.js +1 -1
- package/dist/es/TreeView.d.ts +6 -6
- package/dist/es/TreeView.js +9 -5
- package/dist/es/TreeViewDragAnalyzer.d.ts +1 -1
- package/dist/es/TreeViewDragAnalyzer.js +4 -2
- package/dist/es/TreeViewDragClue.d.ts +1 -1
- package/dist/es/TreeViewItem.js +2 -2
- package/dist/es/handleTreeViewCheckChange.d.ts +3 -1
- package/dist/es/moveTreeViewItem.d.ts +2 -2
- package/dist/es/moveTreeViewItem.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/utils/itemUtils.d.ts +3 -3
- package/dist/npm/TreeView.d.ts +6 -6
- package/dist/npm/TreeView.js +19 -15
- package/dist/npm/TreeViewDragAnalyzer.d.ts +1 -1
- package/dist/npm/TreeViewDragAnalyzer.js +4 -2
- package/dist/npm/TreeViewDragClue.d.ts +1 -1
- package/dist/npm/TreeViewDragClue.js +1 -1
- package/dist/npm/TreeViewItem.js +12 -12
- package/dist/npm/handleTreeViewCheckChange.d.ts +3 -1
- package/dist/npm/handleTreeViewCheckChange.js +10 -10
- package/dist/npm/moveTreeViewItem.d.ts +2 -2
- package/dist/npm/moveTreeViewItem.js +7 -7
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/processTreeViewItems.js +6 -6
- package/dist/npm/utils/FieldsService.js +9 -9
- package/dist/npm/utils/getItemIdUponKeyboardNavigation.js +5 -5
- package/dist/npm/utils/itemUtils.d.ts +3 -3
- package/dist/npm/utils/itemUtils.js +18 -18
- package/dist/systemjs/kendo-react-treeview.js +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-transition-group")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-transition-group"],t):"object"==typeof exports?exports.KendoReactTreeview=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-transition-group")):e.KendoReactTreeview=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactTransitionGroup)}(self,(function(e,t,n,r){return(()=>{"use strict";var o={64:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TreeView=void 0;var i=n(899),a=n(189),l=n(966),c=n(98),s=n(375),u=n(141),d=n(293),p=n(16),f=n(966),h=n(363),m=n(609),v=l.kendoThemeMaps.sizeMap,g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:d.ZERO_LEVEL_ZERO_NODE_ID},n.allowExplicitFocus=!1,n.treeGuid=l.guid(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,l=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:l})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,l=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:l})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t){var r=c.default(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},f.validatePackage(h.packageMetadata),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this;this.fieldsSvc=new p.default(this.props);var n=this.props,r=n.size,o=n.className;return i.createElement("div",{className:l.classNames("k-treeview",(e={},e["k-treeview-"+(v[r]||r)]=r,e),o),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(e){return t._element=e},tabIndex:this.props.tabIndex},i.createElement("ul",{className:"k-treeview-lines k-treeview-group",role:"group"},this.data.map((function(e,n){return i.createElement(u.TreeViewItem,{item:e,position:0===n?"top":n===t.data.length-1?"bot":"mid",itemId:n.toString(),treeGuid:t.treeGuid,animate:t.props.animate,focusedItemId:t.state.focusedItemId,tabbableItemId:t.state.tabbableItemId,fieldsService:t.fieldsSvc,itemUI:t.props.item,checkboxes:t.props.checkboxes,ariaMultiSelectable:t.ariaMultiSelectable,onItemClick:t.onItemClick,onFocusDomElNeeded:t.onFocusDomElNeeded,draggable:t.props.draggable,onPress:t.onPress,onDrag:t.onDrag,onRelease:t.onRelease,expandIcons:t.props.expandIcons,onExpandChange:t.onExpandChange,onCheckChange:t.onCheckChange,key:n,size:r})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this,r=function(){return s.isEnabledAndAllParentsEnabled(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===l.Keys.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===l.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||s.hasChildren(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===l.Keys.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===l.Keys.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))},t.prototype.setFocus=function(e){if(e)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return d.getItemById(e,this.data,this.props.childrenField||m.CHILDREN_FIELD)},t.prototype.dispatchCheckChange=function(e,t,n){l.dispatchEvent(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){l.dispatchEvent(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){l.dispatchEvent(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):s.resolveItemId(e,this.fieldsSvc.focusIdField,this.data,this.props.childrenField);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!1,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!1,configurable:!0}),t.propTypes={data:a.arrayOf(a.any),animate:a.bool,tabIndex:a.number,focusIdField:a.string,getHierarchicalIndexById:a.func,onExpandChange:a.func,onItemClick:a.func,expandField:a.string,selectField:a.string,childrenField:a.string,hasChildrenField:a.string,textField:a.string,disableField:a.string,item:a.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":a.string,"aria-labelledby":a.string,size:a.oneOf([null,"small","medium","large"])},t.defaultProps={animate:!0,expandField:m.EXPAND_FIELD,selectField:m.SELECT_FIELD,hasChildrenField:m.HAS_CHILDREN_FIELD,childrenField:m.CHILDREN_FIELD,textField:m.TEXT_FIELD,disableField:m.DISABLED_FIELD,checkField:m.CHECK_FIELD,checkIndeterminateField:m.CHECK_INDETERMINATE_FIELD,size:"medium"},t}(i.Component);t.TreeView=g},482:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeViewDragAnalyzer=void 0;var r=n(609),o=function(){function e(e){this.event=e,this.initialized=!1,this.itemId=e.itemHierarchicalIndex,this.treeViewGuid=e.target.guid}return e.prototype.init=function(){return this.initialized||(this.setDestimationMeta(document.elementFromPoint(this.event.clientX,this.event.clientY)),this.initialized=!0),this},Object.defineProperty(e.prototype,"isDropAllowed",{get:function(){return!!(this.initialized&&this.destItemId&&this.destTreeViewGuid)&&!(this.destTreeViewGuid+"_"+this.destItemId+"_").startsWith(this.treeViewGuid+"_"+this.itemId+"_")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"destinationMeta",{get:function(){return{itemHierarchicalIndex:this.destItemId,treeViewGuid:this.destTreeViewGuid}},enumerable:!1,configurable:!0}),e.prototype.getDropOperation=function(){if(this.initialized&&this.isDropAllowed){var e=this.destDomNodeWithMeta.getBoundingClientRect(),t=e.top;return t+e.height-this.event.clientY<6?"after":this.event.clientY-t<6?"before":"child"}},e.prototype.setDestimationMeta=function(e){for(var t=e;t&&!t[r.DOM_KENDO_ITEM_ID_FIELD];)t=t.parentNode;t&&t[r.DOM_KENDO_ITEM_ID_FIELD]&&(this.destDomNodeWithMeta=t,this.destItemId=t[r.DOM_KENDO_ITEM_ID_FIELD],this.destTreeViewGuid=t[r.DOM_KENDO_TREEVIEW_GUID_FIELD])},e}();t.TreeViewDragAnalyzer=o},380:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeViewDragClue=void 0;var a=n(899),l=n(966),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,text:"",operationClassName:"k-i-cancel"},t}return o(t,e),t.prototype.render=function(){var e={top:this.state.top+"px",left:this.state.left+"px"};return this.state.visible&&a.createElement("div",{className:"k-header k-drag-clue",style:i(i({},this.props.style),e)},a.createElement("span",{className:l.classNames("k-icon k-drag-status k-icon-with-modifier",this.state.operationClassName)},a.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.text)},t.prototype.show=function(e,t,n,r){this.setState({visible:!0,top:e,left:t,text:n,operationClassName:r})},t.prototype.hide=function(){this.setState({visible:!1})},t.defaultProps={style:{display:"block",position:"absolute",zIndex:2e4,padding:"4px 6px"}},t}(a.PureComponent);t.TreeViewDragClue=c},141:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeViewItem=t.TreeViewItemPropsContext=void 0;var a=n(899),l=n(966),c=n(293),s=n(375),u=n(498),d=n(609),p=l.kendoThemeMaps.sizeMap;t.TreeViewItemPropsContext=a.createContext((function(e){return e}));var f=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=l.guid(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e[d.DOM_KENDO_ITEM_ID_FIELD]=t.props.itemId,e[d.DOM_KENDO_TREEVIEW_GUID_FIELD]=t.props.treeGuid)},t}return o(n,e),n.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return a.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},a.createElement("div",{className:"k-treeview-"+this.props.position,ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?a.createElement(l.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?a.createElement(u.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},n.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},n.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},n.prototype.renderCheckbox=function(){var e,t=this;if(this.props.checkboxes){var n=this.props.size;return a.createElement("div",{className:"k-checkbox-wrap"},a.createElement("input",{type:"checkbox",className:l.classNames("k-checkbox k-rounded-md",(e={},e["k-checkbox-"+(p[n]||n)]=n,e)),checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),a.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid}))}},n.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||s.hasChildren(this.item,this.fieldsSvc.getChildrenField()))&&a.createElement("span",{className:"k-treeview-toggle"},a.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}))},n.prototype.renderSubitemsIfApplicable=function(){var e=this,n=this.fieldsSvc.children(this.item);return s.isItemExpandedAndWithChildren(this.item,this.fieldsSvc)?a.createElement("ul",{className:"k-treeview-group",role:"group"},n.map((function(r,o){return a.createElement(t.TreeViewItem,{item:r,position:0===o?"top":o===n.length-1?"bot":"mid",itemId:c.createId(o,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:o,size:e.props.size})}))):void 0},n.prototype.renderItemInPart=function(){return a.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},a.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?a.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))},Object.defineProperty(n.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||s.hasChildren(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!1,configurable:!0}),n.prototype.getIconClassName=function(){var e=this.fieldsSvc.expanded(this.item);return l.classNames("k-icon",{"k-i-expand":!e,"k-i-collapse":e,"k-i-loading":e&&!s.hasChildren(this.item,this.fieldsSvc.getChildrenField())})},n.prototype.getRootClassName=function(){return l.classNames("k-treeview-item",{"k-disabled":this.fieldsSvc.disabled(this.item)})},n.prototype.getContentClassName=function(){return l.classNames("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item)})},n.defaultProps={position:"top"},n}(a.Component);t.TreeViewItem=a.forwardRef((function(e,n){var r=a.useContext(t.TreeViewItemPropsContext).call(void 0,e);return a.createElement(f,i({ref:n},r))})),t.TreeViewItem.displayName="TreeViewItem"},391:function(e,t,n){var r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleTreeViewCheckChange=void 0;var o=n(375),i=n(293),a=n(290),l=n(609);t.handleTreeViewCheckChange=function(e,t,n,c,s){if(void 0===c&&(c={}),!n||!n.length)return[];var u,d=function(e){var t,n=void 0;return a.isArray(e)?t=e:(t=e.ids||[],n=e.idField),{ids:t,idField:n}}(t),p=d.ids,f=d.idField,h=f?a.getNestedValue(f,e.item):e.itemHierarchicalIndex,m=p.indexOf(h),v=-1===m,g=s||l.CHILDREN_FIELD;return c.singleMode?u=v?[h]:[]:(u=p.slice(),v?u.push(h):u.splice(m,1),c.checkChildren&&function(e,t,n,r,i,a){o.getAllDirectIndirectChildrenIds(e,t,i,r).forEach((function(e){n&&-1===a.indexOf(e)?a.push(e):!n&&a.indexOf(e)>-1&&a.splice(a.indexOf(e),1)}))}(e.item,e.itemHierarchicalIndex,v,f,g,u),c.checkParents&&function(e,t,n,l,c,s){var u=function(){var c,u,d;return r(this,(function(r){switch(r.label){case 0:if(!n)return[3,5];c=o.getAllParents(e,l,s),u=c.length-1,r.label=1;case 1:return u>-1?[4,{id:a.getNestedValue(n,c[u]),item:t?c[u]:void 0}]:[3,4];case 2:r.sent(),r.label=3;case 3:return u--,[3,1];case 4:return[3,8];case 5:d=i.getDirectParentId(e),r.label=6;case 6:return d?[4,{id:d,item:t?i.getItemById(d,s,l):void 0}]:[3,8];case 7:return r.sent(),d=i.getDirectParentId(d),[3,6];case 8:return[2]}}))}(),d=u.next();t?function(){for(;!d.done;){var e=d.value,t=e.id,r=e.item;if(-1!==c.indexOf(t)||!o.areAllDirectChildrenChecked(r,t,n,l,c))break;c.push(t),d=u.next()}}():function(){for(;!d.done;){var e=d.value.id,t=c.indexOf(e);if(!(t>-1))break;c.splice(t,1),d=u.next()}}()}(e.itemHierarchicalIndex,v,f,g,u,n)),a.isArray(t)?u:Object.assign({},t,{ids:u})}},61:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveTreeViewItem=void 0;var r=n(375),o=n(293),i=n(609);t.moveTreeViewItem=function(e,t,n,a,l,c){var s=c||i.CHILDREN_FIELD;if(!function(){if(!(t&&t.length&&e&&a))return!1;if(l&&!l.length)return!1;var n=l&&l!==t?l:t;return!!o.getItemById(a,n,s)}())return f();var u=o.getItemById(e,t,s);if(!u)return f();if(l&&l!==t)return{sourceData:r.removeItem(e,s,t),targetData:r.addItem(u,n,s,a,l)};if((a+"_").startsWith(e+"_"))return f();var d=r.removeItem(e,s,t),p=r.addItem(u,n,s,o.getDecrementedItemIdAfterRemoval(e,a),d);return l?{sourceData:p,targetData:p}:p;function f(){return l?{sourceData:t,targetData:l}:t}}},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653648152,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"}},990:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.processTreeViewItems=void 0;var o=n(375),i=n(609),a=n(290);function l(e,t,n,r,i){if(n){var l=c(n,t),u=l.ids,d=l.field;return function(e,t,n,r,i){var a=e;return t.forEach((function(e){a=o.updateItem(a,e,(function(e){return s(n,e)}),r,i)})),a}(e,!a.isArray(n)&&n.idField?o.resolveItemsIds(u,n.idField,e,i):u,d,r,i)}return e}function c(e,t){var n,r;return a.isArray(e)?(n=e,r=t):(n=e.ids||[],r=e.operationField||t),{ids:n,field:r}}function s(e,t){for(var n=(e||"").split("."),o=t,i=0;i<n.length;i++){var a=n[i];if(i===n.length-1)o[a]=!0;else{if(void 0===o[a])return;o[a]=r({},o[a]),o=o[a]}}}function u(e,t,n,r,o){for(var i=!1,l=0;l<e.length;l++){var c=e[l];if(a.getNestedValue(r,c)){if(!i)for(var d=0;d<t.length;d++)s(o,t[d]);i=!0,c[n]&&u(c[n],[],n,r,o)}else c[n]&&u(c[n],i?[c]:t.concat([c]),n,r,o)}}t.processTreeViewItems=function(e,t){if(!e||!e.length)return[];var n=e,r=t.cloneField||"cloned",o=t.expandField||i.EXPAND_FIELD,s=t.selectField||i.SELECT_FIELD,d=t.checkField||i.CHECK_FIELD,p=t.childrenField||i.CHILDREN_FIELD;return n=l(n,o,t.expand,r,p),n=l(n,s,t.select,r,p),function(e,t,n){if(n&&!a.isArray(n)&&n.applyCheckIndeterminate)for(var r=c(n,i.CHECK_FIELD).field,o=n.checkIndeterminateField||i.CHECK_INDETERMINATE_FIELD,l=0;l<e.length;l++){var s=e[l],d=s[t];d&&u(d,a.getNestedValue(r,s)?[]:[s],t,r,o)}}(n=l(n,d,t.check,r,p),p,t.check),n}},16:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(290),o=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return r.getNestedValue(this.expandField,e)},e.prototype.selected=function(e){return r.getNestedValue(this.selectField,e)},e.prototype.text=function(e){return r.getNestedValue(this.textField,e)},e.prototype.disabled=function(e){return r.getNestedValue(this.disableField,e)},e.prototype.hasChildren=function(e){return r.getNestedValue(this.hasChildrenField,e)},e.prototype.children=function(e){return r.getNestedValue(this.childrenField,e)||[]},e.prototype.checked=function(e){return r.getNestedValue(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return r.getNestedValue(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&r.getNestedValue(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}();t.default=o},767:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();t.default=n},609:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DOM_KENDO_TREEVIEW_GUID_FIELD=t.DOM_KENDO_ITEM_ID_FIELD=t.CHECK_INDETERMINATE_FIELD=t.CHECK_FIELD=t.SELECT_FIELD=t.HAS_CHILDREN_FIELD=t.CHILDREN_FIELD=t.DISABLED_FIELD=t.TEXT_FIELD=t.EXPAND_FIELD=void 0,t.EXPAND_FIELD="expanded",t.TEXT_FIELD="text",t.DISABLED_FIELD="disabled",t.CHILDREN_FIELD="items",t.HAS_CHILDREN_FIELD="hasChildren",t.SELECT_FIELD="selected",t.CHECK_FIELD="checked",t.CHECK_INDETERMINATE_FIELD="checkIndeterminate",t.DOM_KENDO_ITEM_ID_FIELD="_kendoItemId",t.DOM_KENDO_TREEVIEW_GUID_FIELD="_kendoTreeViewGuid"},98:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(966),o=n(293),i=n(375);function a(e,t,n){var r=o.getDirectParentId(e),i=r?o.getItemById(r,t,n.getChildrenField()):void 0,l=i?i[n.getChildrenField()]:t,c=Number(o.getShortId(e));return c<l.length-1?o.createId(c+1,r):i?a(r,t,n):void 0}function l(e,t,n){var r=o.getItemById(e,t,n.getChildrenField());return i.isItemExpandedAndWithChildren(r,n)?l(o.createId(r[n.getChildrenField()].length-1,e),t,n):e}t.default=function(e,t,n,c,s){switch(c){case r.Keys.left:return o.isIdZeroLevel(t)||s.expanded(e)&&i.isEnabledAndAllParentsEnabled(t,n,s)?t:o.getDirectParentId(t);case r.Keys.right:return i.isItemExpandedAndWithChildren(e,s)?o.getFirstChildId(t):t;case r.Keys.up:return u=Number(o.getShortId(t)),d=o.getDirectParentId(t),u?l(o.createId(u-1,d),n,s):o.isIdZeroLevel(t)?t:d;case r.Keys.down:return i.isItemExpandedAndWithChildren(e,s)?o.getFirstChildId(t):a(t,n,s)||t;case r.Keys.home:return o.ZERO_LEVEL_ZERO_NODE_ID;case r.Keys.end:return function(){for(var e,t=(n.length-1).toString(),r=n[n.length-1];i.isItemExpandedAndWithChildren(r,s);)e=r[s.getChildrenField()],t=o.createId(e.length-1,t),r=e[e.length-1];return t}();default:return t}var u,d}},293:(e,t)=>{function n(e){return a(e)?e:e.split(t.SEPARATOR)[0]}function r(e){if(a(e))return e;var n=e.indexOf(t.SEPARATOR);return e.substring(n+1)}function o(e,n){return e=e.toString(),n?n+t.SEPARATOR+e:e}function i(e){var n=e.lastIndexOf(t.SEPARATOR);return n<0?t.EMPTY_ID:e.substring(0,n)}function a(e){return e===t.EMPTY_ID||e.indexOf(t.SEPARATOR)<0}function l(e){return e!==t.EMPTY_ID&&e.indexOf(t.SEPARATOR)<0}function c(e){var n=e.lastIndexOf(t.SEPARATOR);return n<0?e:e.substring(n+1)}Object.defineProperty(t,"__esModule",{value:!0}),t.getDecrementedItemIdAfterRemoval=t.isItemFirstFromSiblings=t.getShortId=t.getAllShortIds=t.isIdZeroLevel=t.isIdEmptyOrZeroLevel=t.getDirectParentId=t.createId=t.getFirstChildId=t.getIdWithoutRootParentId=t.getRootParentId=t.getItemById=t.SEPARATOR=t.ZERO_LEVEL_ZERO_NODE_ID=t.EMPTY_ID=void 0,t.EMPTY_ID="",t.ZERO_LEVEL_ZERO_NODE_ID="0",t.SEPARATOR="_",t.getItemById=function e(t,o,i){if(l(t))return o[Number(t)];var a=o[Number(n(t))],c=a&&a[i]||[];return c.length?e(r(t),c,i):void 0},t.getRootParentId=n,t.getIdWithoutRootParentId=r,t.getFirstChildId=function(e){return o("0",e)},t.createId=o,t.getDirectParentId=i,t.isIdEmptyOrZeroLevel=a,t.isIdZeroLevel=l,t.getAllShortIds=function(e){return e.split(t.SEPARATOR)},t.getShortId=c,t.isItemFirstFromSiblings=function(e){return c(e)===t.ZERO_LEVEL_ZERO_NODE_ID},t.getDecrementedItemIdAfterRemoval=function(e,o){var a=o;e="r"+t.SEPARATOR+e,o="r"+t.SEPARATOR+o;var l=i(e)+t.SEPARATOR;if(o.startsWith(l)){var s=o.substring(l.length);if(s){var u=n(s);if(Number(c(e))<Number(u))return r(l+(Number(u)-1).toString()+s.substring(u.length))}}return a}},375:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.addItem=t.removeItem=t.getAllParents=t.areAllDirectChildrenChecked=t.getAllDirectIndirectChildrenIds=t.isEnabledAndAllParentsEnabled=t.updateItem=t.resolveItemsIds=t.resolveItemId=t.isItemExpandedAndWithChildren=t.hasChildren=void 0;var o=n(293),i=n(767),a=n(290);function l(e,t){var n=a.getNestedValue(t,e);return Boolean(n&&n.length)}function c(e,t,n,r){var a=[],l=new i.default;return l.init(e),s(l,t,n,o.EMPTY_ID,a,r),a}function s(e,t,n,r,i,c){for(var u=0;u<n.length;u++){var d=n[u],p=o.createId(u,r);e.hasId(a.getNestedValue(t,d))&&i.push(p),l(d,c)&&s(e,t,a.getNestedValue(c,d),p,i,c)}}t.hasChildren=l,t.isItemExpandedAndWithChildren=function(e,t){return t.expanded(e)&&l(e,t.getChildrenField())},t.resolveItemId=function(e,t,n,r){var o=c([e],t,n,r);return o.length?o[0]:void 0},t.resolveItemsIds=c,t.updateItem=function e(t,n,r,i,a){var l,c=Number(o.getRootParentId(n));if(c>=t.length)return t;var s=t,u=t[c];return u[i]||(u=(s=t.slice())[c]=Object.assign({},u,((l={})[i]=!0,l))),o.isIdZeroLevel(n)?r(u):u[a]&&(u[a]=e(u[a],o.getIdWithoutRootParentId(n),r,i,a)),s},t.isEnabledAndAllParentsEnabled=function(e,t,n){for(var r=o.getAllShortIds(e),i=t,a=0;a<r.length;a++){var l=i[Number(r[a])];if(n.disabled(l))return!1;i=l[n.getChildrenField()]}return!0},t.getAllDirectIndirectChildrenIds=function(e,t,n,r){return r?function e(t){for(var o=[],i=t[n]||[],l=0;l<i.length;l++)o.push(a.getNestedValue(r,i[l])),o=o.concat(e(i[l]));return o}(e):function e(t,r){for(var i=[],a=t[n]||[],l=0;l<a.length;l++){var c=o.createId(l,r);i.push(c),i=i.concat(e(a[l],c))}return i}(e,t)},t.areAllDirectChildrenChecked=function(e,t,n,r,i){return(e[r]||[]).every((function(e,r){return i.indexOf(n?a.getNestedValue(n,e):o.createId(r,t))>-1}))},t.getAllParents=function(e,t,n){for(var r=[],i=o.getAllShortIds(e),a=n,l=0;l<i.length-1&&a;l++){var c=a[Number(i[l])];r.push(c),a=c[t]}return r},t.removeItem=function e(t,n,i){var a=i.slice();if(o.isIdZeroLevel(t))a.splice(Number(t),1);else{var l=Number(o.getRootParentId(t)),c=a[l]=r({},a[l]);c[n]=e(o.getIdWithoutRootParentId(t),n,c[n])}return a},t.addItem=function e(t,n,i,a,l){var c=l.slice();if(o.isIdZeroLevel(a))if("child"===n){var s=c[Number(a)]=r({},c[Number(a)]);s[i]?(s[i]=s[i].slice(),s[i].push(t)):s[i]=[t]}else c.splice(Number(a)+("after"===n?1:0),0,t);else{var u=Number(o.getRootParentId(a)),d=c[u]=r({},c[u]);d[i]=e(t,n,i,o.getIdWithoutRootParentId(a),d[i])}return c}},290:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=t.getNestedValue=void 0,t.getNestedValue=function(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r},t.isArray=function(e){return void 0!==e.length}},498:(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>O,AnimationChild:()=>m,Expand:()=>w,Fade:()=>C,Push:()=>S,Reveal:()=>H,Slide:()=>F,Zoom:()=>L,useAnimation:()=>K});var r=n(899),o=n(189),i=n(47),a=n(228),l=n(144);const c=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},s=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},u={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"};var d,p=(d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},h=u,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=r.createRef(),t}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.style,a=t.appear,c=t.enter,s=t.exit,u=t.transitionName,d=t.transitionEnterDuration,p=t.transitionExitDuration,m=t.className,v=t.onEnter,g=t.onEntering,y=t.onEntered,b=t.onExit,E=t.onExiting,O=t.onExited,I=t.onAfterExited,x=t.mountOnEnter,C=t.unmountOnExit,k=t.animationEnteringStyle,D=t.animationEnteredStyle,w=t.animationExitingStyle,_=t.animationExitedStyle,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),N=(0,i.A)(m,h["child-animation-container"]),S=f({transitionDelay:"0ms"},o),T={entering:f({transitionDuration:d+"ms"},k),entered:f({},D),exiting:f({transitionDuration:p+"ms"},w),exited:f({},_)},R={in:this.props.in,appear:a,enter:c,exit:s,mountOnEnter:x,unmountOnExit:C,timeout:{enter:d,exit:p},onEnter:function(){v&&v.call(void 0,{animatedElement:e.element,target:e})},onEntering:function(){g&&g.call(void 0,{animatedElement:e.element,target:e})},onEntered:function(){y&&y.call(void 0,{animatedElement:e.element,target:e})},onExit:function(){b&&b.call(void 0,{animatedElement:e.element,target:e})},onExiting:function(){E&&E.call(void 0,{animatedElement:e.element,target:e})},onExited:function(){I&&I.call(void 0,{animatedElement:e.element,target:e}),O&&O.call(void 0,{animatedElement:e.element,target:e})},classNames:{appear:h[u+"-appear"]||u+"-appear",appearActive:h[u+"-appear-active"]||u+"-appear-active",enter:h[u+"-enter"]||u+"-enter",enterActive:h[u+"-enter-active"]||u+"-enter-active",exit:h[u+"-exit"]||u+"-exit",exitActive:h[u+"-exit-active"]||u+"-exit-active"}};return r.createElement(l.CSSTransition,f({},R,P,{nodeRef:this.elementRef}),(function(t){return r.createElement("div",{style:f(f({},S),T[t]),className:N,ref:e.elementRef},n)}))},t.propTypes={in:o.bool,children:o.oneOfType([o.arrayOf(o.node),o.node]),transitionName:o.string.isRequired,className:o.string,appear:o.bool,enter:o.bool,exit:o.bool,transitionEnterDuration:o.number.isRequired,transitionExitDuration:o.number.isRequired,mountOnEnter:o.bool,unmountOnExit:o.bool,animationEnteringStyle:o.object,animationEnteredStyle:o.object,animationExitingStyle:o.object,animationExitedStyle:o.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:a.Z,onEntering:a.Z,onEntered:a.Z,onExit:a.Z,onExiting:a.Z,onExited:a.Z,onAfterExited:a.Z,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(r.Component),v=n(6),g={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653647937,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"},y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)},E=u,O=function(e){function t(t){var n=e.call(this,t)||this;return(0,v.s)(g),n}return y(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,o=e.children,a=e.component,c=e.className,s=e.childFactory,u=(e.stackChildren,e.componentChildStyle),d=e.componentChildClassName,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),f={id:t,style:n,component:a,childFactory:s,className:(0,i.A)(E["animation-container"],E["animation-container-relative"],c)},h=r.Children.map(o||null,(function(e){return r.createElement(m,b({},p,{style:u,className:d}),e)}));return r.createElement(l.TransitionGroup,b({},f),h)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,component:o.string,id:o.string,style:o.any,transitionName:o.string.isRequired,appear:o.bool.isRequired,enter:o.bool.isRequired,exit:o.bool.isRequired,transitionEnterDuration:o.number.isRequired,transitionExitDuration:o.number.isRequired},t.defaultProps={component:"div"},t}(r.Component),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)},C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return r.createElement(O,x({},{transitionName:"fade"},n),t)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500},t}(r.Component),k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["direction","children"]),i={transitionName:"expand-"+t};return r.createElement(O,D({},i,o),n)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["horizontal","vertical"]),component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(r.Component),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)},N={position:"absolute",top:"0",left:"0"},S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","direction"]);return r.createElement(O,P({},o,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?N:void 0}),t)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["up","down","left","right"]),component:o.string,id:o.string,style:o.any,stackChildren:o.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1},t}(r.Component),T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["direction","children"]),i={transitionName:"slide-"+t};return r.createElement(O,R({},i,o),n)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["up","down","left","right"]),component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"},t}(r.Component),j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)},A={position:"absolute",top:"0",left:"0"},L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","direction"]);return r.createElement(O,M({},o,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?A:void 0}),t)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["in","out"]),component:o.string,id:o.string,style:o.any,stackChildren:o.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1},t}(r.Component),V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)},H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=a.Z);var r=e.firstChild;if(r){var o=c(r),i=s(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return V(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,o=t.children,i=t.childFactory,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["direction","children","childFactory"]),l=this.state,c=l.maxHeight,s=l.maxWidth,u={maxHeight:(e="vertical"===n?{maxHeight:c?c+"px":null}:{maxWidth:s?s+"px":null}).maxHeight,maxWidth:e.maxWidth};return r.createElement(O,z({},a,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:r.cloneElement(n,z(z({},n.props),{style:z(z({},n.props.style),{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:u,transitionName:"reveal-"+n}),o)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["horizontal","vertical"]),component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(r.Component),K=function(e,t){var n=r.useRef(0),o=r.useRef(!1),i=r.useRef();r.useEffect((function(){return function(e){var t,r=e.duration,o=n.current&&1-n.current;e.onStart&&e.onStart();var a=function(l){t||(t=l);var c=(l-t+1)/r+o;c<=1?(e.onUpdate&&e.onUpdate(c),i.current=window.requestAnimationFrame(a),n.current=c):(e.onEnd&&e.onEnd(1),n.current=0)};i.current=window.requestAnimationFrame(a)}(e),function(){i.current&&window.cancelAnimationFrame(i.current)}}),t),r.useEffect((function(){o.current=!0}),[])}},47:(e,t,n)=>{n.d(t,{A:()=>r});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[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(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},966:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>Z,BrowserSupportService:()=>l,COLLECTION_ACTION:()=>J,DragAndDrop:()=>Pe,Draggable:()=>He,Droppable:()=>Ue,FormComponent:()=>g,Icon:()=>le,Keys:()=>C,SvgIcon:()=>ue,Typography:()=>Ie,ZIndexContext:()=>o,canUseDOM:()=>c,canUseRef:()=>s,classNames:()=>u.A,clone:()=>p,cloneArray:()=>m,cloneDate:()=>d,cloneObject:()=>f,cloneValue:()=>h,createPropsContext:()=>Y,dispatchEvent:()=>H,extendDataItem:()=>A,focusFirstFocusableChild:()=>v,getItemPath:()=>L,getScrollbarWidth:()=>D,getTabIndex:()=>y,getter:()=>I,guid:()=>x,hasRelativeStackingContext:()=>z,kendoThemeMaps:()=>We,mapTree:()=>j,mapTreeItem:()=>M,noop:()=>k.Z,setScrollbarWidth:()=>w,setter:()=>N,useAsyncFocusBlur:()=>U,useCollection:()=>te,useCustomComponent:()=>ee,useDir:()=>q,useDocument:()=>ne,useDraggable:()=>ze,useDroppable:()=>Ke,useMouse:()=>Q,usePropsContext:()=>B,useRtl:()=>$,useWindow:()=>re,useZIndexContext:()=>i,validatePackage:()=>V.s,withPropsContext:()=>G});var r=n(899),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var a=function(){return"undefined"!=typeof document?document:{}},l=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=a();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},u=n(47),d=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=h(r,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return d(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function E(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var O={};function I(e){if(O[e])return O[e];var t=E(e);return O[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},O[e]}O.undefined=function(){};var x=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},C={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},k=n(228),D=function(){return!(!c||!document.body)&&(new l).scrollbarWidth},w=function(){if(!c||!document.body)return!1;var e=(new l).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},_={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function N(e){if(_[e])return _[e];var t=E(e);return _[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||P(t[a+1],r);o[t[i]]=n},_[e]}var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)},T=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function R(e,t,n){var r;return n?S(S({},e),((r={})[t]=n.length?T([],n):void 0,r)):e&&e[t]?T([],e[t]):[]}function F(e,t,n){if(e[t]){var r=R(e,t).map((function(e){return F(e,t,n)}));return n(R(e,t,r))}return n(e)}var j=function(e,t,n){return T([],e.map((function(e){return F(e,t,n)})))},M=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var l=i.length>1?i[i.length-2]:e,c=t[t.length-1],s=r(l[c]);l.splice(c,1,s)},A=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},L=function(e,t,n){var r=[],o=T([],t);if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},V=n(6),z=function(e){if(!c)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function H(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var K=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function U(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,a=r.useRef(!1),l=r.useRef(0),c=r.useCallback((function(e){clearTimeout(l.current),l.current=window.setTimeout((function(){return e()}))}),[l]),s=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(l.current),o&&o.call.apply(o,K([void 0],e)),a.current||(a.current=!0,t&&t.call.apply(t,K([void 0],e)))}),[a,t,o]),u=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,K([void 0],e)),c((function(){a.current&&n&&(a.current=!1,n.call.apply(n,K([void 0],e)))}))}),[a,c,n,i]);return r.useEffect((function(){return function(){clearTimeout(l.current)}}),[]),{onFocus:s,onBlur:u}}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)},Z=function(e){var t=e.children,n=U({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,W({},n))},B=function(e,t){return r.useContext(e)(t)},X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X.apply(this,arguments)},Y=function(){return r.createContext((function(e){return e}))},G=function(e,t){return r.forwardRef((function(n,o){var i=B(e,n);return r.createElement(t,X({},i,{ref:o}))}))};function q(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}function $(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}var J,Q=function(e,t,n){void 0===n&&(n={});var o=r.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=r.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:r.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:o,onDoubleClick:r.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:r.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:r.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:r.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:r.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:r.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},ee=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(J||(J={}));var te=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case J.add:t.current.push(e.item);break;case J.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ne=function(e){var t=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return r.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},re=function(e){var t=ne(e);return r.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},oe=n(189),ie={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ae=function(){return ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ae.apply(this,arguments)},le=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,l=e.flip,c=e.style,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","name","themeColor","size","flip","style"]),d=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(d,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return d.current}));var f=r.useMemo((function(){return i||ce.themeColor}),[i]),h=r.useMemo((function(){return a||ce.size}),[a]),m=r.useMemo((function(){return l||ce.flip}),[l]),v=r.useMemo((function(){return(0,u.A)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},ie[h],n)}),[o,f,h,m,n]),g=Q(e,d);return r.createElement("span",ae({ref:p},s,g,{className:v,style:c,role:"presentation"}))}));le.propTypes={style:oe.object,classNames:oe.string,name:oe.string,themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:oe.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:oe.oneOf(["default","horizontal","vertical","both"])};var ce={size:"default",themeColor:"inherit",flip:"default"};le.displayName="KendoIcon";var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},se.apply(this,arguments)},ue=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,l=e.flip,c=e.size,s=e.style,d=e.svgStyle,p=e.themeColor,f=e.viewBox,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var v=r.useMemo((function(){return a?a.name:de.icon}),[a]),g=r.useMemo((function(){return p||de.themeColor}),[p]),y=r.useMemo((function(){return c||de.size}),[c]),b=r.useMemo((function(){return l||de.flip}),[l]),E=r.useMemo((function(){return f||de.viewBox}),[f]),O=r.useMemo((function(){return(0,u.A)("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},ie[y],o)}),[v,g,y,b,o]),I=r.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},s):e.width?se({width:e.width,height:e.width},s):e.height?se({width:e.height,height:e.height},s):se({},s)}),[e.width,e.height,s]);return r.createElement("span",{className:O,style:I,ref:m},r.createElement("svg",se({className:i,style:d,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:E,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));ue.propTypes={style:oe.object,classNames:oe.string,children:oe.any,icon:oe.object,themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:oe.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:oe.oneOf(["default","horizontal","vertical","both"])};var de={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ue.displayName="KendoSvgIcon";var pe={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},fe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},he={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"},me={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ve={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ge={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ye={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},be={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"},Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)},Oe=function(e){var t=r.forwardRef((function(t,n){var o=t.id,i=t.style,a=t.className,l=t.fontSize,c=t.fontWeight,s=t.textAlign,u=t.textTransform,d=t.themeColor,p=t.margin,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=r.useRef(null),m=r.useRef(null);r.useImperativeHandle(h,(function(){return{element:m.current,props:t}})),r.useImperativeHandle(n,(function(){return h.current}));var v=e;return r.createElement(v,Ee({id:o,ref:m,className:["k-"+("p"===e?"paragraph":e),pe[l],fe[c],ge[s],ye[u],be[d],function(){if(void 0!==p){if("string"==typeof p)return[he[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-"+p];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,r;null!==p[t]&&void 0!==p[t]&&e.push((n=t,r=p[t],""+ve[n]+("string"==typeof r?me[r]:r)))})),e.join(" ")}}}(),a].filter((function(e){return void 0!==e})).join(" "),style:i},f),t.children)}));return t.propTypes={style:oe.object,className:oe.string,fontSize:oe.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:oe.oneOf(["light","normal","bold"]),margin:oe.oneOfType([oe.number,oe.object,oe.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:oe.oneOf(["left","right","center","justify"]),textTransform:oe.oneOf(["lowercase","uppercase","capitalize"]),themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Ie={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")},xe=function(){return xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xe.apply(this,arguments)},Ce=function(e,t,n){var o=r.useState(t||e),i=o[0],a=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){a(e),n&&n.call(void 0,xe(xe({},t),{value:e}))}),[n,a])]},ke=r.createContext([void 0,k.Z]),De=r.createContext([void 0,k.Z]),we=r.createContext([[],k.Z,k.Z]),_e=r.createContext([[],k.Z,k.Z]),Pe=function(e){var t=Ce(null,void 0),n=t[0],o=t[1],i=Ce(null,void 0),a=i[0],l=i[1],c=te([]),s=c[0],u=c[1],d=te([]),p=d[0],f=d[1];return r.createElement(ke.Provider,{value:[n,o]},r.createElement(De.Provider,{value:[a,l]},r.createElement(we.Provider,{value:[s,function(e){u({type:J.add,item:e})},function(e){u({type:J.remove,item:e})}]},r.createElement(_e.Provider,{value:[p,function(e){f({type:J.add,item:e})},function(e){f({type:J.remove,item:e})}]},e.children))))};Pe.displayName="KendoReactDragAndDrop";var Ne,Se=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Te=function(e){return e&&e.ownerDocument||window.document},Re=function(e){var t=Se(),n=Te(e);return t.edge||t.safari?n.body:n.documentElement},Fe=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},je=function(e){var t=Re(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Fe(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Ne||(Ne={}));var Me=function(){},Ae=function(e,t,n){void 0===n&&(n={});var r,o,i,a,l,c=n.onIsPressedChange,s=void 0===c?Me:c,u=n.onIsScrollingChange,d=void 0===u?Me:u,p=n.onVelocityChange,f=void 0===p?Me:p,h=n.onOffsetChange,m=void 0===h?Me:h,v=n.onPageOffsetChange,g=void 0===v?Me:v,y=n.onClientOffsetChange,b=void 0===y?Me:y,E=n.onScrollOffsetChange,O=void 0===E?Me:E,I=n.onInitialScrollOffsetChange,x=void 0===I?Me:I,C=t.payload,k=C.element,D=C.hint,w=e.autoScrollDirection,_=e.scrollableParent,P=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(P.type){case Ne.POINTER_DOWN:if(P.type===Ne.POINTER_DOWN&&(!P.originalEvent.isPrimary||0!==P.originalEvent.button))break;case Ne.MOUSE_DOWN:if(P.type===Ne.MOUSE_DOWN&&P.originalEvent.which&&P.originalEvent.which>1||e.ignoreMouse)break;case Ne.TOUCH_START:if(P.type===Ne.TOUCH_START&&1!==P.originalEvent.touches.length)break;case Ne.START:var N=_||je(t.payload.element);x(N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop}),b({x:P.clientX,y:P.clientY}),g({x:P.pageX,y:P.pageY}),m({x:P.offsetX,y:P.offsetY}),s(!0),C.onPress&&C.onPress(P);break;case Ne.SCROLL:if(P.type===Ne.SCROLL&&!e.pressed)break;var S=_||je(k),T=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};P.scrollX=T.x-e.initialScrollOffset.x,P.scrollY=T.y-e.initialScrollOffset.y,O({x:P.scrollX,y:P.scrollY});case Ne.POINTER_MOVE:if(P.type===Ne.POINTER_MOVE&&!P.originalEvent.isPrimary)break;case Ne.MOUSE_MOVE:case Ne.TOUCH_MOVE:if(P.type===Ne.TOUCH_MOVE&&1!==P.originalEvent.touches.length)break;case Ne.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==P.originalEvent.type&&k){var R=Te(k),F=_||je(R.elementFromPoint(P.clientX,P.clientY)),j=(r=P.pageX,o=P.pageY,i=function(e,t){var n=Re(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(F,function(e){var t=Te(e);return t&&t.defaultView||window}(k)),a={x:0,y:0},l=50,r-i.left<l?a.x=-(l-(r-i.left)):i.right-r<l&&(a.x=l-(i.right-r)),o-i.top<l?a.y=-(l-(o-i.top)):i.bottom-o<l&&(a.y=l-(i.bottom-o)),a);f({x:w&&!1===w.horizontal?0:j.x,y:w&&!1===w.vertical?0:j.y}),d(0!==j.y||0!==j.x)}!e.drag&&C.onDragStart&&C.onDragStart(P),C.onDrag&&C.onDrag(P);var M=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),l=Math.min(r.top+r.height,n.top+n.height),c=a-i,s=l-o;if(i<a&&o<l){var u=r.width*r.height,d=n.width*n.height,p=c*s;return Number((p/(u+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r}(D||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(D||k)}))),A=e.drops.find((function(e){return e.element===M}));A&&M&&function(e,t,n){var r=n.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}(P.clientX,P.clientY,_||je(M))&&M!==k?(e.drop&&e.drop.element)!==M?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P),A.onDragEnter&&A.onDragEnter(P)):A.onDragOver&&A.onDragOver(P):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}b({x:P.clientX,y:P.clientY}),g({x:P.pageX,y:P.pageY});break;case Ne.POINTER_UP:if(P.type===Ne.POINTER_UP&&!P.originalEvent.isPrimary)break;case Ne.MOUSE_UP:case Ne.TOUCH_END:if(P.type===Ne.TOUCH_END&&1!==P.originalEvent.touches.length)break;case Ne.END:s(!1),d(!1),C.onRelease&&C.onRelease(P),e.drop&&e.drop.onDrop&&e.drop.onDrop(P),C.onDragEnd&&C.onDragEnd(P);break;case Ne.POINTER_CANCEL:case Ne.CONTEXT_MENU:case Ne.TOUCH_CANCEL:case Ne.CANCEL:s(!1),d(!1),C.onDragEnd&&C.onDragEnd(P),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}},Le=function(e,t){if(e){var n,r;e===Re(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,l=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),l?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},Ve=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),l=a[0],c=a[1];return[void 0!==o?o:l,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):c(e[0])}]};function ze(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?k.Z:o,a=t.onRelease,l=void 0===a?k.Z:a,c=t.onDragStart,s=void 0===c?k.Z:c,u=t.onDrag,d=void 0===u?k.Z:u,p=t.onDragEnd,f=void 0===p?k.Z:p,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,E=n.scrollContainer,O=void 0===E?null:E,I=r.useState(!1),x=I[0],C=I[1],D=r.useState(!1),w=D[0],_=D[1],P=Ve(De)[0],N=Ve(ke),S=N[0],T=N[1],R=r.useContext(_e)[0],F=r.useContext(we),j=F[0],M=F[1],A=F[2],L=r.useRef({x:0,y:0}),V=r.useRef(),z=r.useRef(!1),H=r.useRef(),K=r.useRef(null),U=r.useRef(!1),W=r.useRef({x:0,y:0}),Z=r.useRef({x:0,y:0}),B=r.useRef({x:0,y:0}),X=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),q=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&q,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 O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=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]),ne=r.useRef(null);r.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:ve,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]),ie=r.useCallback((function(){return{drag:S?S.current:null,drop:P?P.current:null,drags:j.map((function(e){return e.current})),drops:R.map((function(e){return e.current})),pressed:x,ignoreMouse:z.current,scrollOffset:Y.current,offset:W.current,pageOffset:Z.current,initialScrollOffset:G.current,clientOffset:B.current,initialClientOffset:X.current,velocity:L.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:w}}),[S,P,j,R,x,b,te,w]),ae=r.useCallback((function(e){C(e)}),[]),le=r.useCallback((function(e){_(e)}),[]),ce=r.useCallback((function(e){L.current=e}),[]),se=r.useCallback((function(e){W.current=e}),[]),ue=r.useCallback((function(e){B.current=e}),[]),de=r.useCallback((function(e){Z.current=e}),[]),pe=r.useCallback((function(e){X.current=e}),[]),fe=r.useCallback((function(e){Y.current=e}),[]),he=r.useCallback((function(e){G.current=e}),[]),me=r.useCallback((function(e){i(e)}),[i]),ve=r.useCallback((function(e){l(e)}),[l]),ge=r.useCallback((function(t){T(ne,{target:e.current,event:t}),s(t)}),[T,e,s]),ye=r.useCallback((function(e){d(e)}),[d]),be=r.useCallback((function(t){U.current||(T(null,{target:e.current,event:t}),f(t))}),[f,T,e]),Ee=r.useCallback((function(e){Ae(ie(),{event:e,payload:ne.current},{onVelocityChange:ce,onOffsetChange:se,onClientOffsetChange:ue,onPageOffsetChange:de,onInitialClientOffsetChange:pe,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:le})}),[ie,ce,se,de,ue,pe,he,ae,fe,le]),Oe=r.useCallback((function(e){Ee(e)}),[Ee]),Ie=r.useCallback((function(e){Ee(e)}),[Ee]),xe=r.useCallback((function(e){Ee(e)}),[Ee]),Ce=r.useCallback((function(e){Ee(e)}),[Ee]),Pe=r.useCallback((function(e){Ee(e)}),[Ee]),Ne=r.useCallback((function(e){Ee(e)}),[Ee]),Se=r.useCallback((function(e){Ee(e)}),[Ee]),Te=r.useCallback((function(e){e.preventDefault(),Ee(e)}),[Ee]),Re=r.useCallback((function(e){e.preventDefault(),Ee(e)}),[Ee]),Fe=r.useCallback((function(e){e.preventDefault(),Ee(e)}),[Ee]),Me=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=oe();z.current=!0,H.current=t.setTimeout((function(){z.current=!1}),2e3)}Ee(e)}),[Ee,oe]),ze=r.useCallback((function(e){Ee(e)}),[Ee]),He=r.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=r.useCallback((function(){return M(ne),function(){A(ne)}}),[A,M]);r.useEffect((function(){var e=oe();if(w){var t=ee()||je(document.elementFromPoint(B.current.x,B.current.y));e.clearInterval(V.current),V.current=e.setInterval((function(){Le(t,{x:L.current.x,y:L.current.y})}),50)}return function(){e.clearInterval(V.current)}}),[J,ee,oe,w]),r.useEffect(He,[He]),r.useEffect((function(){var e=oe(),t=J(),n=re();return $?(t&&(K.current=je(t),K.current&&K.current.addEventListener("scroll",ze,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),x&&(n.addEventListener("pointermove",Ie),n.addEventListener("pointerup",Ce,!0),n.addEventListener("contextmenu",Te),n.addEventListener("pointercancel",xe,{passive:!0}))):(e.addEventListener("touchmove",k.Z,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Pe,{passive:!0}),g||(t.addEventListener("touchstart",Re,{passive:!0}),x&&(t.addEventListener("touchmove",Fe,{passive:!0}),t.addEventListener("touchend",Me,{passive:!0})))),x&&(n.addEventListener("mousemove",Ne,{passive:!0}),n.addEventListener("mouseup",Se,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",ze),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Pe),t.removeEventListener("touchstart",Re),t.removeEventListener("touchmove",Fe),t.removeEventListener("touchend",Me)),n.removeEventListener("pointermove",Ie),n.removeEventListener("pointerup",Ce,!0),n.removeEventListener("contextmenu",Te),n.removeEventListener("pointercancel",xe),n.removeEventListener("mousemove",Ne),n.removeEventListener("mouseup",Se),e.removeEventListener("touchmove",k.Z),e.clearTimeout(H.current)}}),[x,oe,J,re,g,$,Te,Pe,Ne,Se,xe,Oe,Ie,Ce,Me,Fe,Re,ze]),r.useEffect((function(){return function(){U.current=!0}}),[]),r.useLayoutEffect(Ke,[Ke])}var He=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),l=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),c=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),s=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),u=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return ze(n,{onPress:a,onRelease:l,onDragStart:c,onDrag:s,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));function Ke(e,t){void 0===t&&(t={onDragEnter:k.Z,onDragOver:k.Z,onDragLeave:k.Z,onDrop:k.Z});var n=t.onDragEnter,o=void 0===n?k.Z:n,i=t.onDragOver,a=void 0===i?k.Z:i,l=t.onDragLeave,c=void 0===l?k.Z:l,s=t.onDrop,u=void 0===s?k.Z:s,d=Ve(De)[1],p=r.useContext(_e),f=p[1],h=p[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=r.useRef(null);r.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:E,data:e.current}}));var g=r.useCallback((function(t){d(v,{target:e.current,event:t}),o(t)}),[d,e,o]),y=r.useCallback((function(e){a(e)}),[a]),b=r.useCallback((function(t){d(null,{target:e.current,event:t}),c(t)}),[d,e,c]),E=r.useCallback((function(t){d(null,{target:e.current,event:t}),u(t)}),[d,e,u]),O=r.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);r.useLayoutEffect(O,[O])}He.displayName="KendoReactDraggable";var Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),l=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),c=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),s=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Ke(n,{onDragEnter:a,onDragOver:l,onDragLeave:c,onDrop:s}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ue.displayName="KendoReactDroppable";var We={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},228:(e,t,n)=>{n.d(t,{Z:()=>r});var r=function(){}},6:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(302);function o(e){if(void 0!==r)r.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}},302:e=>{e.exports=n},189:e=>{e.exports=t},899:t=>{t.exports=e},144:e=>{e.exports=r}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{var e=l;Object.defineProperty(e,"__esModule",{value:!0}),e.TreeViewDragAnalyzer=e.moveTreeViewItem=e.TreeViewDragClue=e.handleTreeViewCheckChange=e.processTreeViewItems=e.TreeView=e.TreeViewItemPropsContext=void 0;var t=a(64);Object.defineProperty(e,"TreeView",{enumerable:!0,get:function(){return t.TreeView}});var n=a(990);Object.defineProperty(e,"processTreeViewItems",{enumerable:!0,get:function(){return n.processTreeViewItems}});var r=a(61);Object.defineProperty(e,"moveTreeViewItem",{enumerable:!0,get:function(){return r.moveTreeViewItem}});var o=a(391);Object.defineProperty(e,"handleTreeViewCheckChange",{enumerable:!0,get:function(){return o.handleTreeViewCheckChange}});var i=a(380);Object.defineProperty(e,"TreeViewDragClue",{enumerable:!0,get:function(){return i.TreeViewDragClue}});var c=a(482);Object.defineProperty(e,"TreeViewDragAnalyzer",{enumerable:!0,get:function(){return c.TreeViewDragAnalyzer}});var s=a(141);Object.defineProperty(e,"TreeViewItemPropsContext",{enumerable:!0,get:function(){return s.TreeViewItemPropsContext}})})(),l})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-transition-group")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-transition-group"],t):"object"==typeof exports?exports.KendoReactTreeview=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-transition-group")):e.KendoReactTreeview=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactTransitionGroup)}(self,(function(e,t,n,r){return(()=>{"use strict";var o={64:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TreeView=void 0;var i=n(899),a=n(189),c=n(966),l=n(98),s=n(375),u=n(141),d=n(293),p=n(16),f=n(966),h=n(363),m=n(609),v=c.kendoThemeMaps.sizeMap,g=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:d.ZERO_LEVEL_ZERO_NODE_ID},n.fieldsSvc=null,n.allowExplicitFocus=!1,n.treeGuid=(0,c.guid)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,r){n.setFocus(r),n.dispatchCheckChange(e,t,r)},n.onExpandChange=function(e,t,r){n.setFocus(r),n.dispatchExpandChange(e,t,r)},n.onPress=function(e,t,r){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:r})},n.onDrag=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,c=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:c})},n.onRelease=function(e,t,r){var o=e.pageX,i=e.pageY,a=e.clientX,c=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:r,pageX:o,pageY:i,clientX:a,clientY:c})},n.onItemClick=function(e,t,r){n.setFocus(r),n.dispatchItemClick(e,t,r)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t&&n.fieldsSvc){var r=(0,l.default)(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);r!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(r)),n.dispatchEventsOnKeyDown(e,t)}},(0,f.validatePackage)(h.packageMetadata),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this;this.fieldsSvc=new p.default(this.props);var n=this.props,r=n.size,o=n.className;return i.createElement("div",{className:(0,c.classNames)("k-treeview",(e={},e["k-treeview-".concat(v[r]||r)]=r,e),o),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(e){return t._element=e},tabIndex:this.props.tabIndex},i.createElement("ul",{className:"k-treeview-lines k-treeview-group",role:"group"},this.data.map((function(e,n){return i.createElement(u.TreeViewItem,{item:e,position:0===n?"top":n===t.data.length-1?"bot":"mid",itemId:n.toString(),treeGuid:t.treeGuid,animate:t.props.animate,focusedItemId:t.state.focusedItemId,tabbableItemId:t.state.tabbableItemId,fieldsService:t.fieldsSvc,itemUI:t.props.item,checkboxes:t.props.checkboxes,ariaMultiSelectable:t.ariaMultiSelectable,onItemClick:t.onItemClick,onFocusDomElNeeded:t.onFocusDomElNeeded,draggable:t.props.draggable,onPress:t.onPress,onDrag:t.onDrag,onRelease:t.onRelease,expandIcons:t.props.expandIcons,onExpandChange:t.onExpandChange,onCheckChange:t.onCheckChange,key:n,size:r})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this;if(null!==this.fieldsSvc){var r=function(){return n.fieldsSvc&&(0,s.isEnabledAndAllParentsEnabled)(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===c.Keys.left&&this.fieldsSvc.expanded(t)&&r()||e.keyCode===c.Keys.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||(0,s.hasChildren)(t,this.props.childrenField))&&r()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===c.Keys.enter&&r()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===c.Keys.space&&r()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))}},t.prototype.setFocus=function(e){if(e&&this.fieldsSvc)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return(0,d.getItemById)(e,this.data,this.props.childrenField||m.CHILDREN_FIELD)},t.prototype.dispatchCheckChange=function(e,t,n){(0,c.dispatchEvent)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){(0,c.dispatchEvent)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){(0,c.dispatchEvent)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc&&this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):(0,s.resolveItemId)(e,this.fieldsSvc.focusIdField,this.data,this.props.childrenField);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!1,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!1,configurable:!0}),t.propTypes={data:a.arrayOf(a.any),animate:a.bool,tabIndex:a.number,focusIdField:a.string,getHierarchicalIndexById:a.func,onExpandChange:a.func,onItemClick:a.func,expandField:a.string,selectField:a.string,childrenField:a.string,hasChildrenField:a.string,textField:a.string,disableField:a.string,item:a.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":a.string,"aria-labelledby":a.string,size:a.oneOf([null,"small","medium","large"])},t.defaultProps={animate:!0,expandField:m.EXPAND_FIELD,selectField:m.SELECT_FIELD,hasChildrenField:m.HAS_CHILDREN_FIELD,childrenField:m.CHILDREN_FIELD,textField:m.TEXT_FIELD,disableField:m.DISABLED_FIELD,checkField:m.CHECK_FIELD,checkIndeterminateField:m.CHECK_INDETERMINATE_FIELD,size:"medium"},t}(i.Component);t.TreeView=g},482:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeViewDragAnalyzer=void 0;var r=n(609),o=function(){function e(e){this.event=e,this.initialized=!1,this.destItemId="",this.destTreeViewGuid="",this.itemId=e.itemHierarchicalIndex,this.treeViewGuid=e.target.guid}return e.prototype.init=function(){return this.initialized||(this.setDestimationMeta(document.elementFromPoint(this.event.clientX,this.event.clientY)),this.initialized=!0),this},Object.defineProperty(e.prototype,"isDropAllowed",{get:function(){return!!(this.initialized&&this.destItemId&&this.destTreeViewGuid)&&!"".concat(this.destTreeViewGuid,"_").concat(this.destItemId,"_").startsWith("".concat(this.treeViewGuid,"_").concat(this.itemId,"_"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"destinationMeta",{get:function(){return{itemHierarchicalIndex:this.destItemId,treeViewGuid:this.destTreeViewGuid}},enumerable:!1,configurable:!0}),e.prototype.getDropOperation=function(){if(this.initialized&&this.isDropAllowed){var e=this.destDomNodeWithMeta.getBoundingClientRect(),t=e.top;return t+e.height-this.event.clientY<6?"after":this.event.clientY-t<6?"before":"child"}},e.prototype.setDestimationMeta=function(e){for(var t=e;t&&!t[r.DOM_KENDO_ITEM_ID_FIELD];)t=t.parentNode;t&&t[r.DOM_KENDO_ITEM_ID_FIELD]&&(this.destDomNodeWithMeta=t,this.destItemId=t[r.DOM_KENDO_ITEM_ID_FIELD],this.destTreeViewGuid=t[r.DOM_KENDO_TREEVIEW_GUID_FIELD])},e}();t.TreeViewDragAnalyzer=o},380:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeViewDragClue=void 0;var a=n(899),c=n(966),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1,top:0,left:0,text:"",operationClassName:"k-i-cancel"},t}return o(t,e),t.prototype.render=function(){var e={top:this.state.top+"px",left:this.state.left+"px"};return this.state.visible&&a.createElement("div",{className:"k-header k-drag-clue",style:i(i({},this.props.style),e)},a.createElement("span",{className:(0,c.classNames)("k-icon k-drag-status k-icon-with-modifier",this.state.operationClassName)},a.createElement("span",{className:"k-icon k-icon-modifier"})),this.state.text)},t.prototype.show=function(e,t,n,r){this.setState({visible:!0,top:e,left:t,text:n,operationClassName:r})},t.prototype.hide=function(){this.setState({visible:!1})},t.defaultProps={style:{display:"block",position:"absolute",zIndex:2e4,padding:"4px 6px"}},t}(a.PureComponent);t.TreeViewDragClue=l},141:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeViewItem=t.TreeViewItemPropsContext=void 0;var a=n(899),c=n(966),l=n(293),s=n(375),u=n(498),d=n(609),p=c.kendoThemeMaps.sizeMap;t.TreeViewItemPropsContext=a.createContext((function(e){return e}));var f=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=(0,c.guid)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e[d.DOM_KENDO_ITEM_ID_FIELD]=t.props.itemId,e[d.DOM_KENDO_TREEVIEW_GUID_FIELD]=t.props.treeGuid)},t}return o(n,e),n.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return a.createElement("li",{className:this.getRootClassName(),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.fieldsSvc.disabled(this.item)||void 0,ref:function(t){return e.itemElement=t}},a.createElement("div",{className:"k-treeview-".concat(this.props.position),ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?a.createElement(c.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?a.createElement(u.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},n.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},n.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},n.prototype.renderCheckbox=function(){var e,t=this;if(this.props.checkboxes){var n=this.props.size;return a.createElement("div",{className:"k-checkbox-wrap"},a.createElement("input",{type:"checkbox",className:(0,c.classNames)("k-checkbox k-rounded-md",(e={},e["k-checkbox-".concat(p[n]||n)]=n,e)),checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),a.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid}))}},n.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||(0,s.hasChildren)(this.item,this.fieldsSvc.getChildrenField()))&&a.createElement("span",{className:"k-treeview-toggle"},a.createElement("span",{className:this.getIconClassName(),onClick:this.onExpandChange}))},n.prototype.renderSubitemsIfApplicable=function(){var e=this,n=this.fieldsSvc.children(this.item);return(0,s.isItemExpandedAndWithChildren)(this.item,this.fieldsSvc)?a.createElement("ul",{className:"k-treeview-group",role:"group"},n.map((function(r,o){return a.createElement(t.TreeViewItem,{item:r,position:0===o?"top":o===n.length-1?"bot":"mid",itemId:(0,l.createId)(o,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,key:o,size:e.props.size})}))):void 0},n.prototype.renderItemInPart=function(){return a.createElement("span",{className:this.getContentClassName(),style:{touchAction:"none"},onClick:this.onItemClick},a.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?a.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))},Object.defineProperty(n.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||(0,s.hasChildren)(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.fieldsSvc.disabled(this.item)&&void 0:void 0)},enumerable:!1,configurable:!0}),n.prototype.getIconClassName=function(){var e=this.fieldsSvc.expanded(this.item);return(0,c.classNames)("k-icon",{"k-i-expand":!e,"k-i-collapse":e,"k-i-loading":e&&!(0,s.hasChildren)(this.item,this.fieldsSvc.getChildrenField())})},n.prototype.getRootClassName=function(){return(0,c.classNames)("k-treeview-item",{"k-disabled":this.fieldsSvc.disabled(this.item)})},n.prototype.getContentClassName=function(){return(0,c.classNames)("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item)})},n.defaultProps={position:"top"},n}(a.Component);t.TreeViewItem=a.forwardRef((function(e,n){var r=a.useContext(t.TreeViewItemPropsContext).call(void 0,e);return a.createElement(f,i({ref:n},r))})),t.TreeViewItem.displayName="TreeViewItem"},391:function(e,t,n){var r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleTreeViewCheckChange=void 0;var o=n(375),i=n(293),a=n(290),c=n(609);t.handleTreeViewCheckChange=function(e,t,n,l,s){if(void 0===l&&(l={}),!n||!n.length)return[];var u,d=function(e){var t,n=void 0;return(0,a.isArray)(e)?t=e:(t=e.ids||[],n=e.idField),{ids:t,idField:n}}(t),p=d.ids,f=d.idField,h=f?(0,a.getNestedValue)(f,e.item):e.itemHierarchicalIndex,m=p.indexOf(h),v=-1===m,g=s||c.CHILDREN_FIELD;return l.singleMode?u=v?[h]:[]:(u=p.slice(),v?u.push(h):u.splice(m,1),l.checkChildren&&function(e,t,n,r,i,a){(0,o.getAllDirectIndirectChildrenIds)(e,t,i,r).forEach((function(e){n&&-1===a.indexOf(e)?a.push(e):!n&&a.indexOf(e)>-1&&a.splice(a.indexOf(e),1)}))}(e.item,e.itemHierarchicalIndex,v,f,g,u),l.checkParents&&function(e,t,n,c,l,s){var u=function(){var l,u,d;return r(this,(function(r){switch(r.label){case 0:if(!n)return[3,5];l=(0,o.getAllParents)(e,c,s),u=l.length-1,r.label=1;case 1:return u>-1?[4,{id:(0,a.getNestedValue)(n,l[u]),item:t?l[u]:void 0}]:[3,4];case 2:r.sent(),r.label=3;case 3:return u--,[3,1];case 4:return[3,8];case 5:d=(0,i.getDirectParentId)(e),r.label=6;case 6:return d?[4,{id:d,item:t?(0,i.getItemById)(d,s,c):void 0}]:[3,8];case 7:return r.sent(),d=(0,i.getDirectParentId)(d),[3,6];case 8:return[2]}}))}(),d=u.next();t?function(){for(;!d.done;){var e=d.value,t=e.id,r=e.item;if(-1!==l.indexOf(t)||!(0,o.areAllDirectChildrenChecked)(r,t,n,c,l))break;l.push(t),d=u.next()}}():function(){for(;!d.done;){var e=d.value.id,t=l.indexOf(e);if(!(t>-1))break;l.splice(t,1),d=u.next()}}()}(e.itemHierarchicalIndex,v,f,g,u,n)),(0,a.isArray)(t)?u:Object.assign({},t,{ids:u})}},61:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveTreeViewItem=void 0;var r=n(375),o=n(293),i=n(609);t.moveTreeViewItem=function(e,t,n,a,c,l){var s=l||i.CHILDREN_FIELD;if(!function(){if(!(t&&t.length&&e&&a))return!1;if(c&&!c.length)return!1;var n=c&&c!==t?c:t;return!!(0,o.getItemById)(a,n,s)}())return f();var u=(0,o.getItemById)(e,t,s);if(!u)return f();if(c&&c!==t)return{sourceData:(0,r.removeItem)(e,s,t),targetData:(0,r.addItem)(u,n,s,a,c)};if("".concat(a,"_").startsWith("".concat(e,"_")))return f();var d=(0,r.removeItem)(e,s,t),p=(0,r.addItem)(u,n,s,(0,o.getDecrementedItemIdAfterRemoval)(e,a),d);return c?{sourceData:p,targetData:p}:p;function f(){return c?{sourceData:t,targetData:c}:t}}},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654761885,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"}},990:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.processTreeViewItems=void 0;var o=n(375),i=n(609),a=n(290);function c(e,t,n,r,i){if(n){var c=l(n,t),u=c.ids,d=c.field;return function(e,t,n,r,i){var a=e;return t.forEach((function(e){a=(0,o.updateItem)(a,e,(function(e){return s(n,e)}),r,i)})),a}(e,!(0,a.isArray)(n)&&n.idField?(0,o.resolveItemsIds)(u,n.idField,e,i):u,d,r,i)}return e}function l(e,t){var n,r;return(0,a.isArray)(e)?(n=e,r=t):(n=e.ids||[],r=e.operationField||t),{ids:n,field:r}}function s(e,t){for(var n=(e||"").split("."),o=t,i=0;i<n.length;i++){var a=n[i];if(i===n.length-1)o[a]=!0;else{if(void 0===o[a])return;o[a]=r({},o[a]),o=o[a]}}}function u(e,t,n,r,o){for(var i=!1,c=0;c<e.length;c++){var l=e[c];if((0,a.getNestedValue)(r,l)){if(!i)for(var d=0;d<t.length;d++)s(o,t[d]);i=!0,l[n]&&u(l[n],[],n,r,o)}else l[n]&&u(l[n],i?[l]:t.concat([l]),n,r,o)}}t.processTreeViewItems=function(e,t){if(!e||!e.length)return[];var n=e,r=t.cloneField||"cloned",o=t.expandField||i.EXPAND_FIELD,s=t.selectField||i.SELECT_FIELD,d=t.checkField||i.CHECK_FIELD,p=t.childrenField||i.CHILDREN_FIELD;return n=c(n,o,t.expand,r,p),n=c(n,s,t.select,r,p),function(e,t,n){if(n&&!(0,a.isArray)(n)&&n.applyCheckIndeterminate)for(var r=l(n,i.CHECK_FIELD).field,o=n.checkIndeterminateField||i.CHECK_INDETERMINATE_FIELD,c=0;c<e.length;c++){var s=e[c],d=s[t];d&&u(d,(0,a.getNestedValue)(r,s)?[]:[s],t,r,o)}}(n=c(n,d,t.check,r,p),p,t.check),n}},16:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(290),o=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return(0,r.getNestedValue)(this.expandField,e)},e.prototype.selected=function(e){return(0,r.getNestedValue)(this.selectField,e)},e.prototype.text=function(e){return(0,r.getNestedValue)(this.textField,e)},e.prototype.disabled=function(e){return(0,r.getNestedValue)(this.disableField,e)},e.prototype.hasChildren=function(e){return(0,r.getNestedValue)(this.hasChildrenField,e)},e.prototype.children=function(e){return(0,r.getNestedValue)(this.childrenField,e)||[]},e.prototype.checked=function(e){return(0,r.getNestedValue)(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return(0,r.getNestedValue)(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&(0,r.getNestedValue)(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}();t.default=o},767:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}();t.default=n},609:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DOM_KENDO_TREEVIEW_GUID_FIELD=t.DOM_KENDO_ITEM_ID_FIELD=t.CHECK_INDETERMINATE_FIELD=t.CHECK_FIELD=t.SELECT_FIELD=t.HAS_CHILDREN_FIELD=t.CHILDREN_FIELD=t.DISABLED_FIELD=t.TEXT_FIELD=t.EXPAND_FIELD=void 0,t.EXPAND_FIELD="expanded",t.TEXT_FIELD="text",t.DISABLED_FIELD="disabled",t.CHILDREN_FIELD="items",t.HAS_CHILDREN_FIELD="hasChildren",t.SELECT_FIELD="selected",t.CHECK_FIELD="checked",t.CHECK_INDETERMINATE_FIELD="checkIndeterminate",t.DOM_KENDO_ITEM_ID_FIELD="_kendoItemId",t.DOM_KENDO_TREEVIEW_GUID_FIELD="_kendoTreeViewGuid"},98:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(966),o=n(293),i=n(375);function a(e,t,n){var r=o.getDirectParentId(e),i=r?o.getItemById(r,t,n.getChildrenField()):void 0,c=i?i[n.getChildrenField()]:t,l=Number(o.getShortId(e));return l<c.length-1?o.createId(l+1,r):i?a(r,t,n):void 0}function c(e,t,n){var r=o.getItemById(e,t,n.getChildrenField());return(0,i.isItemExpandedAndWithChildren)(r,n)?c(o.createId(r[n.getChildrenField()].length-1,e),t,n):e}t.default=function(e,t,n,l,s){switch(l){case r.Keys.left:return o.isIdZeroLevel(t)||s.expanded(e)&&(0,i.isEnabledAndAllParentsEnabled)(t,n,s)?t:o.getDirectParentId(t);case r.Keys.right:return(0,i.isItemExpandedAndWithChildren)(e,s)?o.getFirstChildId(t):t;case r.Keys.up:return u=Number(o.getShortId(t)),d=o.getDirectParentId(t),u?c(o.createId(u-1,d),n,s):o.isIdZeroLevel(t)?t:d;case r.Keys.down:return(0,i.isItemExpandedAndWithChildren)(e,s)?o.getFirstChildId(t):a(t,n,s)||t;case r.Keys.home:return o.ZERO_LEVEL_ZERO_NODE_ID;case r.Keys.end:return function(){for(var e,t=(n.length-1).toString(),r=n[n.length-1];(0,i.isItemExpandedAndWithChildren)(r,s);)e=r[s.getChildrenField()],t=o.createId(e.length-1,t),r=e[e.length-1];return t}();default:return t}var u,d}},293:(e,t)=>{function n(e){return a(e)?e:e.split(t.SEPARATOR)[0]}function r(e){if(a(e))return e;var n=e.indexOf(t.SEPARATOR);return e.substring(n+1)}function o(e,n){return e=e.toString(),n?n+t.SEPARATOR+e:e}function i(e){var n=e.lastIndexOf(t.SEPARATOR);return n<0?t.EMPTY_ID:e.substring(0,n)}function a(e){return e===t.EMPTY_ID||e.indexOf(t.SEPARATOR)<0}function c(e){return e!==t.EMPTY_ID&&e.indexOf(t.SEPARATOR)<0}function l(e){var n=e.lastIndexOf(t.SEPARATOR);return n<0?e:e.substring(n+1)}Object.defineProperty(t,"__esModule",{value:!0}),t.getDecrementedItemIdAfterRemoval=t.isItemFirstFromSiblings=t.getShortId=t.getAllShortIds=t.isIdZeroLevel=t.isIdEmptyOrZeroLevel=t.getDirectParentId=t.createId=t.getFirstChildId=t.getIdWithoutRootParentId=t.getRootParentId=t.getItemById=t.SEPARATOR=t.ZERO_LEVEL_ZERO_NODE_ID=t.EMPTY_ID=void 0,t.EMPTY_ID="",t.ZERO_LEVEL_ZERO_NODE_ID="0",t.SEPARATOR="_",t.getItemById=function e(t,o,i){if(c(t))return o[Number(t)];var a=o[Number(n(t))],l=a&&a[i]||[];return l.length?e(r(t),l,i):void 0},t.getRootParentId=n,t.getIdWithoutRootParentId=r,t.getFirstChildId=function(e){return o("0",e)},t.createId=o,t.getDirectParentId=i,t.isIdEmptyOrZeroLevel=a,t.isIdZeroLevel=c,t.getAllShortIds=function(e){return e.split(t.SEPARATOR)},t.getShortId=l,t.isItemFirstFromSiblings=function(e){return l(e)===t.ZERO_LEVEL_ZERO_NODE_ID},t.getDecrementedItemIdAfterRemoval=function(e,o){var a=o;e="r"+t.SEPARATOR+e,o="r"+t.SEPARATOR+o;var c=i(e)+t.SEPARATOR;if(o.startsWith(c)){var s=o.substring(c.length);if(s){var u=n(s);if(Number(l(e))<Number(u))return r(c+(Number(u)-1).toString()+s.substring(u.length))}}return a}},375:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.addItem=t.removeItem=t.getAllParents=t.areAllDirectChildrenChecked=t.getAllDirectIndirectChildrenIds=t.isEnabledAndAllParentsEnabled=t.updateItem=t.resolveItemsIds=t.resolveItemId=t.isItemExpandedAndWithChildren=t.hasChildren=void 0;var o=n(293),i=n(767),a=n(290);function c(e,t){var n=(0,a.getNestedValue)(t,e);return Boolean(n&&n.length)}function l(e,t,n,r){var a=[],c=new i.default;return c.init(e),s(c,t,n,o.EMPTY_ID,a,r),a}function s(e,t,n,r,i,l){for(var u=0;u<n.length;u++){var d=n[u],p=(0,o.createId)(u,r);e.hasId((0,a.getNestedValue)(t,d))&&i.push(p),c(d,l)&&s(e,t,(0,a.getNestedValue)(l,d),p,i,l)}}t.hasChildren=c,t.isItemExpandedAndWithChildren=function(e,t){return t.expanded(e)&&c(e,t.getChildrenField())},t.resolveItemId=function(e,t,n,r){var o=l([e],t,n,r);return o.length?o[0]:void 0},t.resolveItemsIds=l,t.updateItem=function e(t,n,r,i,a){var c,l=Number((0,o.getRootParentId)(n));if(l>=t.length)return t;var s=t,u=t[l];return u[i]||(u=(s=t.slice())[l]=Object.assign({},u,((c={})[i]=!0,c))),(0,o.isIdZeroLevel)(n)?r(u):u[a]&&(u[a]=e(u[a],(0,o.getIdWithoutRootParentId)(n),r,i,a)),s},t.isEnabledAndAllParentsEnabled=function(e,t,n){for(var r=(0,o.getAllShortIds)(e),i=t,a=0;a<r.length;a++){var c=i[Number(r[a])];if(n.disabled(c))return!1;i=c[n.getChildrenField()]}return!0},t.getAllDirectIndirectChildrenIds=function(e,t,n,r){return r?function e(t){for(var o=[],i=t[n]||[],c=0;c<i.length;c++)o.push((0,a.getNestedValue)(r,i[c])),o=o.concat(e(i[c]));return o}(e):function e(t,r){for(var i=[],a=t[n]||[],c=0;c<a.length;c++){var l=(0,o.createId)(c,r);i.push(l),i=i.concat(e(a[c],l))}return i}(e,t)},t.areAllDirectChildrenChecked=function(e,t,n,r,i){return(e[r]||[]).every((function(e,r){return i.indexOf(n?(0,a.getNestedValue)(n,e):(0,o.createId)(r,t))>-1}))},t.getAllParents=function(e,t,n){for(var r=[],i=(0,o.getAllShortIds)(e),a=n,c=0;c<i.length-1&&a;c++){var l=a[Number(i[c])];r.push(l),a=l[t]}return r},t.removeItem=function e(t,n,i){var a=i.slice();if((0,o.isIdZeroLevel)(t))a.splice(Number(t),1);else{var c=Number((0,o.getRootParentId)(t)),l=a[c]=r({},a[c]);l[n]=e((0,o.getIdWithoutRootParentId)(t),n,l[n])}return a},t.addItem=function e(t,n,i,a,c){var l=c.slice();if((0,o.isIdZeroLevel)(a))if("child"===n){var s=l[Number(a)]=r({},l[Number(a)]);s[i]?(s[i]=s[i].slice(),s[i].push(t)):s[i]=[t]}else l.splice(Number(a)+("after"===n?1:0),0,t);else{var u=Number((0,o.getRootParentId)(a)),d=l[u]=r({},l[u]);d[i]=e(t,n,i,(0,o.getIdWithoutRootParentId)(a),d[i])}return l}},290:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=t.getNestedValue=void 0,t.getNestedValue=function(e,t){var n=(e||"").split("."),r=t;return n.forEach((function(e){r=r?r[e]:void 0})),r},t.isArray=function(e){return void 0!==e.length}},498:(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>O,AnimationChild:()=>m,Expand:()=>w,Fade:()=>C,Push:()=>S,Reveal:()=>H,Slide:()=>F,Zoom:()=>L,useAnimation:()=>K});var r=n(899),o=n(189),i=n(47),a=n(228),c=n(144);const l=function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.marginBottom);return e.offsetHeight+n+r},s=function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),r=parseFloat(t.marginRight);return e.offsetWidth+n+r},u={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"};var d,p=(d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},h=u,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=r.createRef(),t}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.style,a=t.appear,l=t.enter,s=t.exit,u=t.transitionName,d=t.transitionEnterDuration,p=t.transitionExitDuration,m=t.className,v=t.onEnter,g=t.onEntering,y=t.onEntered,b=t.onExit,E=t.onExiting,O=t.onExited,I=t.onAfterExited,x=t.mountOnEnter,C=t.unmountOnExit,k=t.animationEnteringStyle,D=t.animationEnteredStyle,w=t.animationExitingStyle,_=t.animationExitedStyle,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),N=(0,i.A)(m,h["child-animation-container"]),S=f({transitionDelay:"0ms"},o),T={entering:f({transitionDuration:"".concat(d,"ms")},k),entered:f({},D),exiting:f({transitionDuration:"".concat(p,"ms")},w),exited:f({},_)},R={in:this.props.in,appear:a,enter:l,exit:s,mountOnEnter:x,unmountOnExit:C,timeout:{enter:d,exit:p},onEnter:function(){v&&v.call(void 0,{animatedElement:e.element,target:e})},onEntering:function(){g&&g.call(void 0,{animatedElement:e.element,target:e})},onEntered:function(){y&&y.call(void 0,{animatedElement:e.element,target:e})},onExit:function(){b&&b.call(void 0,{animatedElement:e.element,target:e})},onExiting:function(){E&&E.call(void 0,{animatedElement:e.element,target:e})},onExited:function(){I&&I.call(void 0,{animatedElement:e.element,target:e}),O&&O.call(void 0,{animatedElement:e.element,target:e})},classNames:{appear:h["".concat(u,"-appear")]||"".concat(u,"-appear"),appearActive:h["".concat(u,"-appear-active")]||"".concat(u,"-appear-active"),enter:h["".concat(u,"-enter")]||"".concat(u,"-enter"),enterActive:h["".concat(u,"-enter-active")]||"".concat(u,"-enter-active"),exit:h["".concat(u,"-exit")]||"".concat(u,"-exit"),exitActive:h["".concat(u,"-exit-active")]||"".concat(u,"-exit-active")}};return r.createElement(c.CSSTransition,f({},R,P,{nodeRef:this.elementRef}),(function(t){return r.createElement("div",{style:f(f({},S),T[t]),className:N,ref:e.elementRef},n)}))},t.propTypes={in:o.bool,children:o.oneOfType([o.arrayOf(o.node),o.node]),transitionName:o.string.isRequired,className:o.string,appear:o.bool,enter:o.bool,exit:o.bool,transitionEnterDuration:o.number.isRequired,transitionExitDuration:o.number.isRequired,mountOnEnter:o.bool,unmountOnExit:o.bool,animationEnteringStyle:o.object,animationEnteredStyle:o.object,animationExitingStyle:o.object,animationExitedStyle:o.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:a.Z,onEntering:a.Z,onEntered:a.Z,onExit:a.Z,onExiting:a.Z,onExited:a.Z,onAfterExited:a.Z,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(r.Component),v=n(6),g={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654761593,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"},y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)},E=u,O=function(e){function t(t){var n=e.call(this,t)||this;return(0,v.s)(g),n}return y(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,o=e.children,a=e.component,l=e.className,s=e.childFactory,u=(e.stackChildren,e.componentChildStyle),d=e.componentChildClassName,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),f={id:t,style:n,component:a,childFactory:s,className:(0,i.A)(E["animation-container"],E["animation-container-relative"],l)},h=r.Children.map(o||null,(function(e){return r.createElement(m,b({},p,{style:u,className:d}),e)}));return r.createElement(c.TransitionGroup,b({},f),h)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,component:o.string,id:o.string,style:o.any,transitionName:o.string.isRequired,appear:o.bool.isRequired,enter:o.bool.isRequired,exit:o.bool.isRequired,transitionEnterDuration:o.number.isRequired,transitionExitDuration:o.number.isRequired},t.defaultProps={component:"div"},t}(r.Component),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)},C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return r.createElement(O,x({},{transitionName:"fade"},n),t)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500},t}(r.Component),k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["direction","children"]),i={transitionName:"expand-".concat(t)};return r.createElement(O,D({},i,o),n)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["horizontal","vertical"]),component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(r.Component),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)},N={position:"absolute",top:"0",left:"0"},S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","direction"]);return r.createElement(O,P({},o,{transitionName:"push-".concat(n),animationExitingStyle:this.props.stackChildren?N:void 0}),t)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["up","down","left","right"]),component:o.string,id:o.string,style:o.any,stackChildren:o.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1},t}(r.Component),T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["direction","children"]),i={transitionName:"slide-".concat(t)};return r.createElement(O,R({},i,o),n)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["up","down","left","right"]),component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"},t}(r.Component),j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)},A={position:"absolute",top:"0",left:"0"},L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","direction"]);return r.createElement(O,M({},o,{transitionName:"zoom-".concat(n),animationExitingStyle:this.props.stackChildren?A:void 0}),t)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["in","out"]),component:o.string,id:o.string,style:o.any,stackChildren:o.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1},t}(r.Component),V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)},H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,r=n.onEnter,o=n.onBeforeEnter;o&&o.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){r&&r.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=a.Z);var r=e.firstChild;if(r){var o=l(r),i=s(r);t.setState({maxHeight:o,maxWidth:i},n)}},t}return V(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,o=t.children,i=t.childFactory,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["direction","children","childFactory"]),c=this.state,l=c.maxHeight,s=c.maxWidth,u={maxHeight:(e="vertical"===n?{maxHeight:l?"".concat(l,"px"):""}:{maxWidth:s?"".concat(s,"px"):""}).maxHeight,maxWidth:e.maxWidth};return r.createElement(O,z({},a,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:r.cloneElement(n,z(z({},n.props),{style:z(z({},n.props.style),{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:u,transitionName:"reveal-".concat(n)}),o)},t.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node]),childFactory:o.any,className:o.string,direction:o.oneOf(["horizontal","vertical"]),component:o.string,id:o.string,style:o.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(r.Component),K=function(e,t){var n=r.useRef(0),o=r.useRef(!1),i=r.useRef();r.useEffect((function(){return function(e){var t,r=e.duration,o=n.current&&1-n.current;e.onStart&&e.onStart();var a=function(c){t||(t=c);var l=(c-t+1)/r+o;l<=1?(e.onUpdate&&e.onUpdate(l),i.current=window.requestAnimationFrame(a),n.current=l):(e.onEnd&&e.onEnd(1),n.current=0)};i.current=window.requestAnimationFrame(a)}(e),function(){i.current&&window.cancelAnimationFrame(i.current)}}),t),r.useEffect((function(){o.current=!0}),[])}},47:(e,t,n)=>{n.d(t,{A:()=>r});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},r=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[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(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},966:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>Z,BrowserSupportService:()=>c,COLLECTION_ACTION:()=>J,DragAndDrop:()=>Pe,Draggable:()=>He,Droppable:()=>Ue,FormComponent:()=>g,Icon:()=>ce,Keys:()=>C,SvgIcon:()=>ue,Typography:()=>Ie,ZIndexContext:()=>o,canUseDOM:()=>l,canUseRef:()=>s,classNames:()=>u.A,clone:()=>p,cloneArray:()=>m,cloneDate:()=>d,cloneObject:()=>f,cloneValue:()=>h,createPropsContext:()=>Y,dispatchEvent:()=>H,extendDataItem:()=>A,focusFirstFocusableChild:()=>v,getItemPath:()=>L,getScrollbarWidth:()=>D,getTabIndex:()=>y,getter:()=>I,guid:()=>x,hasRelativeStackingContext:()=>z,kendoThemeMaps:()=>We,mapTree:()=>j,mapTreeItem:()=>M,noop:()=>k.Z,setScrollbarWidth:()=>w,setter:()=>N,useAsyncFocusBlur:()=>U,useCollection:()=>te,useCustomComponent:()=>ee,useDir:()=>q,useDocument:()=>ne,useDraggable:()=>ze,useDroppable:()=>Ke,useMouse:()=>Q,usePropsContext:()=>B,useRtl:()=>$,useWindow:()=>re,useZIndexContext:()=>i,validatePackage:()=>V.s,withPropsContext:()=>G});var r=n(899),o=r.createContext(0),i=function(){return r.useContext(o)};o.displayName="KendoReactZIndexContext";var a=function(){return"undefined"!=typeof document?document:{}},c=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=a();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},u=n(47),d=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=h(r,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return d(e);if(r.isValidElement(e))return r.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},g=function(){},y=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function E(e){var t=[];return e.replace(b,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var O={};function I(e){if(O[e])return O[e];var t=E(e);return O[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},O[e]}O.undefined=function(){};var x=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},C={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},k=n(228),D=function(){return!(!l||!document.body)&&(new c).scrollbarWidth},w=function(){if(!l||!document.body)return!1;var e=(new c).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},_={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function N(e){if(_[e])return _[e];var t=E(e);return _[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||P(t[a+1],r);o[t[i]]=n},_[e]}var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)},T=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function R(e,t,n){var r;return n?S(S({},e),((r={})[t]=n.length?T([],n,!0):void 0,r)):e&&e[t]?T([],e[t],!0):[]}function F(e,t,n){if(e[t]){var r=R(e,t).map((function(e){return F(e,t,n)}));return n(R(e,t,r))}return n(e)}var j=function(e,t,n){return T([],e.map((function(e){return F(e,t,n)})),!0)},M=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var c=i.length>1?i[i.length-2]:e,l=t[t.length-1],s=r(c[l]);c.splice(l,1,s)},A=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},L=function(e,t,n){var r=[],o=T([],t,!0);if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r},V=n(6),z=function(e){if(!l)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: '.concat(10,'px;">child</div>'),t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r};function H(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var K=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function U(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,i=e.onSyncBlur,a=r.useRef(!1),c=r.useRef(0),l=r.useCallback((function(e){clearTimeout(c.current),c.current=window.setTimeout((function(){return e()}))}),[c]),s=r.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(c.current),o&&o.call(void 0,e[0]),a.current||(a.current=!0,t&&t.call.apply(t,K([void 0],e,!1)))}),[a,t,o]),u=r.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call(void 0,e[0]),l((function(){a.current&&n&&(a.current=!1,n.call.apply(n,K([void 0],e,!1)))}))}),[a,l,n,i]);return r.useEffect((function(){return function(){clearTimeout(c.current)}}),[]),{onFocus:s,onBlur:u}}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)},Z=function(e){var t=e.children,n=U({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return r.createElement(r.Fragment,null,t.call(void 0,W({},n)))},B=function(e,t){return r.useContext(e)(t)},X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X.apply(this,arguments)},Y=function(){return r.createContext((function(e){return e}))},G=function(e,t){return r.forwardRef((function(n,o){var i=B(e,n);return r.createElement(t,X({},i,{ref:o}))}))};function q(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}function $(e,t,n){var o=r.useState(t),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}var J,Q=function(e,t,n){void 0===n&&(n={});var o=r.useCallback((function(r){n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=r.useCallback((function(r){n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:r.useCallback((function(r){n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:o,onDoubleClick:r.useCallback((function(r){n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:r.useCallback((function(r){n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:r.useCallback((function(r){n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:r.useCallback((function(r){n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:r.useCallback((function(r){n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:r.useCallback((function(r){n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t])}},ee=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(J||(J={}));var te=function(e){void 0===e&&(e=[]);var t=r.useRef(e),n=r.useCallback((function(e){switch(e.type){case J.add:t.current.push(e.item);break;case J.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ne=function(e){var t=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return r.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},re=function(e){var t=ne(e);return r.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},oe=n(189),ie={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ae=function(){return ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ae.apply(this,arguments)},ce=r.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,c=e.flip,l=e.style,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","name","themeColor","size","flip","style"]),d=r.useRef(null),p=r.useRef(null);r.useImperativeHandle(d,(function(){return{element:p.current}})),r.useImperativeHandle(t,(function(){return d.current}));var f=r.useMemo((function(){return i||le.themeColor}),[i]),h=r.useMemo((function(){return a||le.size}),[a]),m=r.useMemo((function(){return c||le.flip}),[c]),v=r.useMemo((function(){return(0,u.A)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},ie[h],n)}),[o,f,h,m,n]),g=Q(e,d);return r.createElement("span",ae({ref:p},s,g,{className:v,style:l,role:"presentation"}))}));ce.propTypes={style:oe.object,classNames:oe.string,name:oe.string,themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:oe.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:oe.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",themeColor:"inherit",flip:"default"};ce.displayName="KendoIcon";var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},se.apply(this,arguments)},ue=r.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,c=e.flip,l=e.size,s=e.style,d=e.svgStyle,p=e.themeColor,f=e.viewBox,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=r.useRef(null);r.useImperativeHandle(t,(function(){return{element:m.current}}));var v=r.useMemo((function(){return a?a.name:de.icon}),[a]),g=r.useMemo((function(){return p||de.themeColor}),[p]),y=r.useMemo((function(){return l||de.size}),[l]),b=r.useMemo((function(){return c||de.flip}),[c]),E=r.useMemo((function(){return f||de.viewBox}),[f]),O=r.useMemo((function(){return(0,u.A)("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},ie[y],o)}),[v,g,y,b,o]),I=r.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},s):e.width?se({width:e.width,height:e.width},s):e.height?se({width:e.height,height:e.height},s):se({},s)}),[e.width,e.height,s]);return r.createElement("span",{className:O,style:I,ref:m},r.createElement("svg",se({className:i,style:d,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:E,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},h),a?void 0:n))}));ue.propTypes={style:oe.object,classNames:oe.string,children:oe.any,icon:oe.object,themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:oe.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:oe.oneOf(["default","horizontal","vertical","both"])};var de={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ue.displayName="KendoSvgIcon";var pe={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},fe={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},he={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"},me={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ve={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ge={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ye={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},be={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"},Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)},Oe=function(e){var t=r.forwardRef((function(t,n){var o=t.id,i=t.style,a=t.className,c=t.fontSize,l=t.fontWeight,s=t.textAlign,u=t.textTransform,d=t.themeColor,p=t.margin,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=r.useRef(null),m=r.useRef(null);r.useImperativeHandle(h,(function(){return{element:m.current,props:t}})),r.useImperativeHandle(n,(function(){return h.current}));var v=e;return r.createElement(v,Ee({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),pe[c],fe[l],ge[s],ye[u],be[d],function(){if(void 0!==p){if("string"==typeof p)return[he[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-".concat(p)];if("object"==typeof p){var e=[];return Object.keys(p).forEach((function(t){var n,r,o;null!==p[t]&&void 0!==p[t]&&e.push((n=t,o="string"==typeof(r=p[t])?me[r]:r,"".concat(ve[n]).concat(o)))})),e.join(" ")}}}(),a].filter((function(e){return void 0!==e})).join(" "),style:i},f),t.children)}));return t.propTypes={style:oe.object,className:oe.string,fontSize:oe.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:oe.oneOf(["light","normal","bold"]),margin:oe.oneOfType([oe.number,oe.object,oe.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:oe.oneOf(["left","right","center","justify"]),textTransform:oe.oneOf(["lowercase","uppercase","capitalize"]),themeColor:oe.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},Ie={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")},xe=function(){return xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xe.apply(this,arguments)},Ce=function(e,t,n){var o=r.useState(t||e),i=o[0],a=o[1];return[void 0!==t?t:i,r.useCallback((function(e,t){a(e),n&&n.call(void 0,xe(xe({},t),{value:e}))}),[n,a])]},ke=r.createContext([void 0,k.Z]),De=r.createContext([void 0,k.Z]),we=r.createContext([[],k.Z,k.Z]),_e=r.createContext([[],k.Z,k.Z]),Pe=function(e){var t=Ce(null,void 0),n=t[0],o=t[1],i=Ce(null,void 0),a=i[0],c=i[1],l=te([]),s=l[0],u=l[1],d=te([]),p=d[0],f=d[1];return r.createElement(ke.Provider,{value:[n,o]},r.createElement(De.Provider,{value:[a,c]},r.createElement(we.Provider,{value:[s,function(e){u({type:J.add,item:e})},function(e){u({type:J.remove,item:e})}]},r.createElement(_e.Provider,{value:[p,function(e){f({type:J.add,item:e})},function(e){f({type:J.remove,item:e})}]},e.children))))};Pe.displayName="KendoReactDragAndDrop";var Ne,Se=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Te=function(e){return e&&e.ownerDocument||window.document},Re=function(e){var t=Se(),n=Te(e);return t.edge||t.safari?n.body:n.documentElement},Fe=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},je=function(e){var t=Re(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!Fe(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Ne||(Ne={}));var Me=function(){},Ae=function(e,t,n){void 0===n&&(n={});var r,o,i,a,c,l=n.onIsPressedChange,s=void 0===l?Me:l,u=n.onIsScrollingChange,d=void 0===u?Me:u,p=n.onVelocityChange,f=void 0===p?Me:p,h=n.onOffsetChange,m=void 0===h?Me:h,v=n.onPageOffsetChange,g=void 0===v?Me:v,y=n.onClientOffsetChange,b=void 0===y?Me:y,E=n.onScrollOffsetChange,O=void 0===E?Me:E,I=n.onInitialScrollOffsetChange,x=void 0===I?Me:I,C=t.payload,k=C.element,D=C.hint,w=e.autoScrollDirection,_=e.scrollableParent,P=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(P.type){case Ne.POINTER_DOWN:if(P.type===Ne.POINTER_DOWN&&(!P.originalEvent.isPrimary||0!==P.originalEvent.button))break;case Ne.MOUSE_DOWN:if(P.type===Ne.MOUSE_DOWN&&P.originalEvent.which&&P.originalEvent.which>1||e.ignoreMouse)break;case Ne.TOUCH_START:if(P.type===Ne.TOUCH_START&&1!==P.originalEvent.touches.length)break;case Ne.START:var N=_||je(t.payload.element);x(N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop}),b({x:P.clientX,y:P.clientY}),g({x:P.pageX,y:P.pageY}),m({x:P.offsetX,y:P.offsetY}),s(!0),C.onPress&&C.onPress(P);break;case Ne.SCROLL:if(P.type===Ne.SCROLL&&!e.pressed)break;var S=_||je(k),T=S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop};P.scrollX=T.x-e.initialScrollOffset.x,P.scrollY=T.y-e.initialScrollOffset.y,O({x:P.scrollX,y:P.scrollY});case Ne.POINTER_MOVE:if(P.type===Ne.POINTER_MOVE&&!P.originalEvent.isPrimary)break;case Ne.MOUSE_MOVE:case Ne.TOUCH_MOVE:if(P.type===Ne.TOUCH_MOVE&&1!==P.originalEvent.touches.length)break;case Ne.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==P.originalEvent.type&&k){var R=Te(k),F=_||je(R.elementFromPoint(P.clientX,P.clientY)),j=(r=P.pageX,o=P.pageY,i=function(e,t){var n=Re(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var r=e.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(F,function(e){var t=Te(e);return t&&t.defaultView||window}(k)),a={x:0,y:0},c=50,r-i.left<c?a.x=-(c-(r-i.left)):i.right-r<c&&(a.x=c-(i.right-r)),o-i.top<c?a.y=-(c-(o-i.top)):i.bottom-o<c&&(a.y=c-(i.bottom-o)),a);f({x:w&&!1===w.horizontal?0:j.x,y:w&&!1===w.vertical?0:j.y}),d(0!==j.y||0!==j.x)}!e.drag&&C.onDragStart&&C.onDragStart(P),C.onDrag&&C.onDrag(P);var M=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),a=Math.min(r.left+r.width,n.left+n.width),c=Math.min(r.top+r.height,n.top+n.height),l=a-i,s=c-o;if(i<a&&o<c){var u=r.width*r.height,d=n.width*n.height,p=l*s;return Number((p/(u+d-p)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r}(D||k,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(D||k)}))),A=e.drops.find((function(e){return e.element===M}));A&&M&&function(e,t,n){var r=n.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}(P.clientX,P.clientY,_||je(M))&&M!==k?(e.drop&&e.drop.element)!==M?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P),A.onDragEnter&&A.onDragEnter(P)):A.onDragOver&&A.onDragOver(P):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}b({x:P.clientX,y:P.clientY}),g({x:P.pageX,y:P.pageY});break;case Ne.POINTER_UP:if(P.type===Ne.POINTER_UP&&!P.originalEvent.isPrimary)break;case Ne.MOUSE_UP:case Ne.TOUCH_END:if(P.type===Ne.TOUCH_END&&1!==P.originalEvent.touches.length)break;case Ne.END:s(!1),d(!1),C.onRelease&&C.onRelease(P),e.drop&&e.drop.onDrop&&e.drop.onDrop(P),C.onDragEnd&&C.onDragEnd(P);break;case Ne.POINTER_CANCEL:case Ne.CONTEXT_MENU:case Ne.TOUCH_CANCEL:case Ne.CANCEL:s(!1),d(!1),C.onDragEnd&&C.onDragEnd(P),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}},Le=function(e,t){if(e){var n,r;e===Re(e)?(n=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var o=e.scrollTop+t.y,i=n&&o>0&&o<e.scrollHeight,a=e.scrollLeft+t.x,c=r&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&o<0&&(e.scrollTop=0),c?e.scrollLeft+=t.x:r&&a<0&&(e.scrollLeft=0)}},Ve=function(e,t){var n=r.useContext(e),o=n[0],i=n[1],a=r.useState(t),c=a[0],l=a[1];return[void 0!==o?o:c,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?i.apply(void 0,e):l(e[0])}]};function ze(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?k.Z:o,a=t.onRelease,c=void 0===a?k.Z:a,l=t.onDragStart,s=void 0===l?k.Z:l,u=t.onDrag,d=void 0===u?k.Z:u,p=t.onDragEnd,f=void 0===p?k.Z:p,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,E=n.scrollContainer,O=void 0===E?null:E,I=r.useState(!1),x=I[0],C=I[1],D=r.useState(!1),w=D[0],_=D[1],P=Ve(De)[0],N=Ve(ke),S=N[0],T=N[1],R=r.useContext(_e)[0],F=r.useContext(we),j=F[0],M=F[1],A=F[2],L=r.useRef({x:0,y:0}),V=r.useRef(),z=r.useRef(!1),H=r.useRef(),K=r.useRef(null),U=r.useRef(!1),W=r.useRef({x:0,y:0}),Z=r.useRef({x:0,y:0}),B=r.useRef({x:0,y:0}),X=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),G=r.useRef({x:0,y:0}),q=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&q,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 O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=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]),ne=r.useRef(null);r.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:ve,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]),ie=r.useCallback((function(){return{drag:S?S.current:null,drop:P?P.current:null,drags:j.map((function(e){return e.current})),drops:R.map((function(e){return e.current})),pressed:x,ignoreMouse:z.current,scrollOffset:Y.current,offset:W.current,pageOffset:Z.current,initialScrollOffset:G.current,clientOffset:B.current,initialClientOffset:X.current,velocity:L.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:w}}),[S,P,j,R,x,b,te,w]),ae=r.useCallback((function(e){C(e)}),[]),ce=r.useCallback((function(e){_(e)}),[]),le=r.useCallback((function(e){L.current=e}),[]),se=r.useCallback((function(e){W.current=e}),[]),ue=r.useCallback((function(e){B.current=e}),[]),de=r.useCallback((function(e){Z.current=e}),[]),pe=r.useCallback((function(e){X.current=e}),[]),fe=r.useCallback((function(e){Y.current=e}),[]),he=r.useCallback((function(e){G.current=e}),[]),me=r.useCallback((function(e){i(e)}),[i]),ve=r.useCallback((function(e){c(e)}),[c]),ge=r.useCallback((function(t){T(ne,{target:e.current,event:t}),s(t)}),[T,e,s]),ye=r.useCallback((function(e){d(e)}),[d]),be=r.useCallback((function(t){U.current||(T(null,{target:e.current,event:t}),f(t))}),[f,T,e]),Ee=r.useCallback((function(e){Ae(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:se,onClientOffsetChange:ue,onPageOffsetChange:de,onInitialClientOffsetChange:pe,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:ce})}),[ie,le,se,de,ue,pe,he,ae,fe,ce]),Oe=r.useCallback((function(e){Ee(e)}),[Ee]),Ie=r.useCallback((function(e){Ee(e)}),[Ee]),xe=r.useCallback((function(e){Ee(e)}),[Ee]),Ce=r.useCallback((function(e){Ee(e)}),[Ee]),Pe=r.useCallback((function(e){Ee(e)}),[Ee]),Ne=r.useCallback((function(e){Ee(e)}),[Ee]),Se=r.useCallback((function(e){Ee(e)}),[Ee]),Te=r.useCallback((function(e){e.preventDefault(),Ee(e)}),[Ee]),Re=r.useCallback((function(e){e.preventDefault(),Ee(e)}),[Ee]),Fe=r.useCallback((function(e){e.preventDefault(),Ee(e)}),[Ee]),Me=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=oe();z.current=!0,H.current=t.setTimeout((function(){z.current=!1}),2e3)}Ee(e)}),[Ee,oe]),ze=r.useCallback((function(e){Ee(e)}),[Ee]),He=r.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ke=r.useCallback((function(){return M(ne),function(){A(ne)}}),[A,M]);r.useEffect((function(){var e=oe();if(w){var t=ee()||je(document.elementFromPoint(B.current.x,B.current.y));e.clearInterval(V.current),V.current=e.setInterval((function(){Le(t,{x:L.current.x,y:L.current.y})}),50)}return function(){e.clearInterval(V.current)}}),[J,ee,oe,w]),r.useEffect(He,[He]),r.useEffect((function(){var e=oe(),t=J(),n=re();return $?(t&&(K.current=je(t),K.current&&K.current.addEventListener("scroll",ze,{passive:!0}),t.addEventListener("pointerdown",Oe,{passive:!0})),x&&(n.addEventListener("pointermove",Ie),n.addEventListener("pointerup",Ce,!0),n.addEventListener("contextmenu",Te),n.addEventListener("pointercancel",xe,{passive:!0}))):(e.addEventListener("touchmove",k.Z,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Pe,{passive:!0}),g||(t.addEventListener("touchstart",Re,{passive:!0}),x&&(t.addEventListener("touchmove",Fe,{passive:!0}),t.addEventListener("touchend",Me,{passive:!0})))),x&&(n.addEventListener("mousemove",Ne,{passive:!0}),n.addEventListener("mouseup",Se,{passive:!0}))),function(){K.current&&K.current.removeEventListener("scroll",ze),t&&(t.removeEventListener("pointerdown",Oe),t.removeEventListener("mousedown",Pe),t.removeEventListener("touchstart",Re),t.removeEventListener("touchmove",Fe),t.removeEventListener("touchend",Me)),n.removeEventListener("pointermove",Ie),n.removeEventListener("pointerup",Ce,!0),n.removeEventListener("contextmenu",Te),n.removeEventListener("pointercancel",xe),n.removeEventListener("mousemove",Ne),n.removeEventListener("mouseup",Se),e.removeEventListener("touchmove",k.Z),e.clearTimeout(H.current)}}),[x,oe,J,re,g,$,Te,Pe,Ne,Se,xe,Oe,Ie,Ce,Me,Fe,Re,ze]),r.useEffect((function(){return function(){U.current=!0}}),[]),r.useLayoutEffect(Ke,[Ke])}var He=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||null}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:o.current,event:t})}),[i,e.onPress]),c=r.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:o.current,event:t})}),[i,e.onRelease]),l=r.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:o.current,event:t})}),[e,i]),s=r.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:o.current,event:t})}),[i,e.onDrag]),u=r.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:o.current,event:t})}),[i,e.onDragEnd]);return ze(n,{onPress:a,onRelease:c,onDragStart:l,onDrag:s,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));function Ke(e,t){void 0===t&&(t={onDragEnter:k.Z,onDragOver:k.Z,onDragLeave:k.Z,onDrop:k.Z});var n=t.onDragEnter,o=void 0===n?k.Z:n,i=t.onDragOver,a=void 0===i?k.Z:i,c=t.onDragLeave,l=void 0===c?k.Z:c,s=t.onDrop,u=void 0===s?k.Z:s,d=Ve(De)[1],p=r.useContext(_e),f=p[1],h=p[2],m=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=r.useRef(null);r.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:E,data:e.current}}));var g=r.useCallback((function(t){d(v,{target:e.current,event:t}),o(t)}),[d,e,o]),y=r.useCallback((function(e){a(e)}),[a]),b=r.useCallback((function(t){d(null,{target:e.current,event:t}),l(t)}),[d,e,l]),E=r.useCallback((function(t){d(null,{target:e.current,event:t}),u(t)}),[d,e,u]),O=r.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);r.useLayoutEffect(O,[O])}He.displayName="KendoReactDraggable";var Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null),i=r.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);r.useImperativeHandle(o,(function(){return{element:i()||void 0}})),r.useImperativeHandle(t,(function(){return o.current})),r.useImperativeHandle(e.childRef,(function(){return n.current}));var a=r.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:o.current,event:t})}),[e.onDragEnter,i]),c=r.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:o.current,event:t})}),[i,e.onDragOver]),l=r.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:o.current,event:t})}),[e.onDragLeave,i]),s=r.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:o.current,event:t})}),[e.onDrop,i]);return Ke(n,{onDragEnter:a,onDragOver:c,onDragLeave:l,onDrop:s}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null}));Ue.displayName="KendoReactDroppable";var We={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},228:(e,t,n)=>{n.d(t,{Z:()=>r});var r=function(){}},6:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(302);function o(e){if(void 0!==r)r.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},302:e=>{e.exports=n},189:e=>{e.exports=t},899:t=>{t.exports=e},144:e=>{e.exports=r}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{var e=c;Object.defineProperty(e,"__esModule",{value:!0}),e.TreeViewDragAnalyzer=e.moveTreeViewItem=e.TreeViewDragClue=e.handleTreeViewCheckChange=e.processTreeViewItems=e.TreeView=e.TreeViewItemPropsContext=void 0;var t=a(64);Object.defineProperty(e,"TreeView",{enumerable:!0,get:function(){return t.TreeView}});var n=a(990);Object.defineProperty(e,"processTreeViewItems",{enumerable:!0,get:function(){return n.processTreeViewItems}});var r=a(61);Object.defineProperty(e,"moveTreeViewItem",{enumerable:!0,get:function(){return r.moveTreeViewItem}});var o=a(391);Object.defineProperty(e,"handleTreeViewCheckChange",{enumerable:!0,get:function(){return o.handleTreeViewCheckChange}});var i=a(380);Object.defineProperty(e,"TreeViewDragClue",{enumerable:!0,get:function(){return i.TreeViewDragClue}});var l=a(482);Object.defineProperty(e,"TreeViewDragAnalyzer",{enumerable:!0,get:function(){return l.TreeViewDragAnalyzer}});var s=a(141);Object.defineProperty(e,"TreeViewItemPropsContext",{enumerable:!0,get:function(){return s.TreeViewItemPropsContext}})})(),c})()}));
|
package/dist/es/TreeView.d.ts
CHANGED
|
@@ -48,10 +48,10 @@ export declare class TreeView extends React.Component<TreeViewProps, TreeViewSta
|
|
|
48
48
|
textField: PropTypes.Requireable<string>;
|
|
49
49
|
disableField: PropTypes.Requireable<string>;
|
|
50
50
|
item: PropTypes.Requireable<any>;
|
|
51
|
-
'aria-multiselectable': (props: any, propName:
|
|
51
|
+
'aria-multiselectable': (props: any, propName: string, componentName: string) => Error | null;
|
|
52
52
|
'aria-label': PropTypes.Requireable<string>;
|
|
53
53
|
'aria-labelledby': PropTypes.Requireable<string>;
|
|
54
|
-
size: PropTypes.Requireable<"small" | "medium" | "large">;
|
|
54
|
+
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
57
|
* @hidden
|
|
@@ -66,14 +66,14 @@ export declare class TreeView extends React.Component<TreeViewProps, TreeViewSta
|
|
|
66
66
|
disableField: string;
|
|
67
67
|
checkField: string;
|
|
68
68
|
checkIndeterminateField: string;
|
|
69
|
-
size: "small" | "medium" | "large";
|
|
69
|
+
size: "small" | "medium" | "large" | null | undefined;
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
72
72
|
* @hidden
|
|
73
73
|
*/
|
|
74
74
|
state: {
|
|
75
|
-
focusedItemId:
|
|
76
|
-
focusedItemPublicId:
|
|
75
|
+
focusedItemId: undefined;
|
|
76
|
+
focusedItemPublicId: undefined;
|
|
77
77
|
tabbableItemId: string;
|
|
78
78
|
};
|
|
79
79
|
private blurRequest;
|
|
@@ -84,7 +84,7 @@ export declare class TreeView extends React.Component<TreeViewProps, TreeViewSta
|
|
|
84
84
|
/**
|
|
85
85
|
* @hidden
|
|
86
86
|
*/
|
|
87
|
-
get element(): HTMLDivElement;
|
|
87
|
+
get element(): HTMLDivElement | null;
|
|
88
88
|
constructor(props: TreeViewProps);
|
|
89
89
|
/**
|
|
90
90
|
* @hidden
|
package/dist/es/TreeView.js
CHANGED
|
@@ -53,6 +53,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
53
53
|
* @hidden
|
|
54
54
|
*/
|
|
55
55
|
_this.state = { focusedItemId: undefined, focusedItemPublicId: undefined, tabbableItemId: ZERO_LEVEL_ZERO_NODE_ID };
|
|
56
|
+
_this.fieldsSvc = null;
|
|
56
57
|
// When there is a change in state.focusedItemId, calling focus() on the dom element of the focused item
|
|
57
58
|
// is most often not needed, because the browser focuses the element on its own.
|
|
58
59
|
// https://github.com/telerik/kendo-react/issues/190
|
|
@@ -121,7 +122,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
121
122
|
};
|
|
122
123
|
_this.onKeyDown = function (event) {
|
|
123
124
|
var focusedItem = _this.getFocusedItem();
|
|
124
|
-
if (focusedItem) {
|
|
125
|
+
if (focusedItem && _this.fieldsSvc) {
|
|
125
126
|
var newItemId = nav(focusedItem, _this.state.focusedItemId, _this.data, event.keyCode, _this.fieldsSvc);
|
|
126
127
|
if (newItemId !== _this.state.focusedItemId) {
|
|
127
128
|
// This disables the auto-scroll. The scroll is achieved via item focusing.
|
|
@@ -154,7 +155,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
154
155
|
this.fieldsSvc = new FieldsService(this.props);
|
|
155
156
|
var _b = this.props, size = _b.size, className = _b.className;
|
|
156
157
|
return (React.createElement("div", { className: classNames('k-treeview', (_a = {},
|
|
157
|
-
_a["k-treeview-"
|
|
158
|
+
_a["k-treeview-".concat(sizeMap[size] || size)] = size,
|
|
158
159
|
_a), className), onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, role: "tree", "aria-multiselectable": this.ariaMultiSelectable ? true : undefined, "aria-label": this.props['aria-label'], "aria-labelledby": this.props['aria-labelledby'], ref: function (element) { return _this._element = element; }, tabIndex: this.props.tabIndex },
|
|
159
160
|
React.createElement("ul", { className: "k-treeview-lines k-treeview-group", role: "group" }, this.data.map(function (item, index) {
|
|
160
161
|
return (React.createElement(TreeViewItem, { item: item, position: index === 0 ? 'top' : index === _this.data.length - 1 ? 'bot' : 'mid', itemId: index.toString(), treeGuid: _this.treeGuid, animate: _this.props.animate, focusedItemId: _this.state.focusedItemId, tabbableItemId: _this.state.tabbableItemId, fieldsService: _this.fieldsSvc, itemUI: _this.props.item, checkboxes: _this.props.checkboxes, ariaMultiSelectable: _this.ariaMultiSelectable, onItemClick: _this.onItemClick, onFocusDomElNeeded: _this.onFocusDomElNeeded, draggable: _this.props.draggable, onPress: _this.onPress, onDrag: _this.onDrag, onRelease: _this.onRelease, expandIcons: _this.props.expandIcons, onExpandChange: _this.onExpandChange, onCheckChange: _this.onCheckChange, key: index, size: size }));
|
|
@@ -169,9 +170,12 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
169
170
|
};
|
|
170
171
|
TreeView.prototype.dispatchEventsOnKeyDown = function (event, focusedItem) {
|
|
171
172
|
var _this = this;
|
|
173
|
+
if (this.fieldsSvc === null) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
172
176
|
// isEnabled is the most expensive op and that is why is left last.
|
|
173
177
|
var isEnabled = function () {
|
|
174
|
-
return isEnabledAndAllParentsEnabled(_this.state.focusedItemId, _this.data, _this.fieldsSvc);
|
|
178
|
+
return _this.fieldsSvc && isEnabledAndAllParentsEnabled(_this.state.focusedItemId, _this.data, _this.fieldsSvc);
|
|
175
179
|
};
|
|
176
180
|
if (event.keyCode === Keys.left && this.fieldsSvc.expanded(focusedItem) && isEnabled()) {
|
|
177
181
|
this.dispatchExpandChange(event, focusedItem, this.state.focusedItemId);
|
|
@@ -190,7 +194,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
190
194
|
}
|
|
191
195
|
};
|
|
192
196
|
TreeView.prototype.setFocus = function (focusedItemId) {
|
|
193
|
-
if (focusedItemId) {
|
|
197
|
+
if (focusedItemId && this.fieldsSvc) {
|
|
194
198
|
if (this.fieldsSvc.focusIdField) {
|
|
195
199
|
var item = this.getItemById(focusedItemId);
|
|
196
200
|
this.setState({ focusedItemId: focusedItemId, focusedItemPublicId: this.fieldsSvc.focusId(item) });
|
|
@@ -225,7 +229,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
225
229
|
dispatchEvent(this.props.onItemClick, dispatchedEvent, this, { item: item, itemHierarchicalIndex: itemId });
|
|
226
230
|
};
|
|
227
231
|
TreeView.prototype.refocusDueToFocusIdField = function () {
|
|
228
|
-
if (this.fieldsSvc.focusIdField) {
|
|
232
|
+
if (this.fieldsSvc && this.fieldsSvc.focusIdField) {
|
|
229
233
|
var focusedItemPublicId = this.state.focusedItemPublicId;
|
|
230
234
|
if (focusedItemPublicId) {
|
|
231
235
|
var focusedItemId = this.props.getFocusHierarchicalIndex ?
|
|
@@ -130,6 +130,6 @@ export declare class TreeViewDragAnalyzer {
|
|
|
130
130
|
* * `child`—Indicates that the dragged item is positioned in the middle of the destination item.
|
|
131
131
|
* * `undefined`—Indicates that dropping is not allowed.
|
|
132
132
|
*/
|
|
133
|
-
getDropOperation(): "after" | "child" | "before";
|
|
133
|
+
getDropOperation(): "after" | "child" | "before" | undefined;
|
|
134
134
|
private setDestimationMeta;
|
|
135
135
|
}
|