@progress/kendo-react-listbox 5.10.0-dev.202301091032 → 5.10.0-dev.202301092204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactListbox=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):e.KendoReactListbox=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactDOM,e.KendoReactIntl)}(self,(function(e,t,n,o,r){return(()=>{"use strict";var i={873:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0;var a=n(899),s=n(189),l=n(556),c=n(719),u=n(556),p=n(363),d=function(e){function t(t){var n=e.call(this,t)||this;return n.setSelected=function(e){if(n.props.selectedField)return!!e[n.props.selectedField]},n.renderItem=function(e){return n.props.textField?e[n.props.textField]:e.toString()},n.handleKeyDown=function(e){n.props.onKeyDown&&(0,l.dispatchEvent)(n.props.onKeyDown,e,n,void 0)},n.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(n.props.data.length>0?(0,l.dispatchEvent)(n.props.onDrop,e,n,{dataItem:n.props.data[n.props.data.length-1]}):(0,l.dispatchEvent)(n.props.onDrop,e,n,{dataItem:null}))},n.setToolbarPosition=function(){return n.props.toolbarPosition===c.toolbarPosition.NONE||void 0===n.props.toolbar?"":"k-listbox-toolbar-".concat(n.props.toolbarPosition)},n.handleOnDragLeave=function(e){n.props.onDragLeave&&e.target.classList.contains("k-list-scroller")&&(0,l.dispatchEvent)(n.props.onDragLeave,e,n,void 0)},(0,u.validatePackage)(p.packageMetadata),n}return r(t,e),t.prototype.render=function(){var e,t=this;return a.createElement("div",{className:(0,l.classNames)(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&"bottom"!==this.props.toolbarPosition&&a.createElement(this.props.toolbar,null),a.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop,onDragLeave:this.handleOnDragLeave},a.createElement("div",{className:(0,l.classNames)("k-list",(e={},e["k-list-".concat(l.kendoThemeMaps.sizeMap[this.props.size]||this.props.size)]=this.props.size,e))},a.createElement("div",{className:"k-list-content"},a.createElement("ul",{className:"k-list-ul",role:"listbox","aria-label":"listbox-container",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map((function(e,n){var o=t.setSelected(e),r=(0,l.guid)(),s={className:(0,l.classNames)("k-list-item",{"k-selected":o}),role:"option","aria-selected":o,key:n,id:r+n,"data-uid":r+n,draggable:t.props.draggable,onDragStart:function(n){return(0,l.dispatchEvent)(t.props.onDragStart,n,t,{dataItem:e})},onDragOver:function(n){n.preventDefault(),(0,l.dispatchEvent)(t.props.onDragOver,n,t,{dataItem:e})},onDrop:function(n){return(0,l.dispatchEvent)(t.props.onDrop,n,t,{dataItem:e})},onClick:function(n){return(0,l.dispatchEvent)(t.props.onItemClick,n,t,{dataItem:e})}};return t.props.item?a.createElement(t.props.item,i({selected:o,dataItem:e},s),a.createElement("span",{className:"k-list-item-text"},e.name)):a.createElement("li",i({},s),a.createElement("span",{className:"k-list-item-text"},t.renderItem(e)))})))))),this.props.toolbar&&"bottom"===this.props.toolbarPosition&&a.createElement(this.props.toolbar,null),a.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map((function(e,n){var o=e[t.props.valueField||t.props.textField];return a.createElement("option",{key:n,value:o},o)}))))},t.propTypes={size:s.oneOf([null,"small","medium","large"]),toolbarPosition:s.oneOf(["none","top","bottom","left","right"]),textField:s.string,valueField:s.string,selectedField:s.string,data:s.array},t.defaultProps={toolbarPosition:c.toolbarPosition.RIGHT,draggable:!0,size:"medium"},t}(a.PureComponent);t.ListBox=d},943:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ListBoxToolbar=void 0;var i=n(899),a=n(556),s=n(389),l=n(499),c=n(364),u=n(189),p=[{name:"moveUp",iconName:"caret-alt-up"},{name:"moveDown",iconName:"caret-alt-down"},{name:"transferTo",iconName:"caret-alt-right"},{name:"transferFrom",iconName:"caret-alt-left"},{name:"transferAllTo",iconName:"caret-double-alt-right"},{name:"transferAllFrom",iconName:"caret-double-alt-left"},{name:"remove",iconName:"x"}],d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleToolClick=function(e,n){(0,a.dispatchEvent)(t.props.onToolClick,e,t,{toolName:n})},t.isItemDisabled=function(e){var n=!0,o=t.props.selectedField||"selected",r=t.props.data.length,i=t.props.dataConnected.length,a=t.props.data.findIndex((function(e){return!0===e[o]}))>=0,s=t.props.dataConnected.findIndex((function(e){return!0===e[o]}))>=0;switch(e){case"moveUp":n=a?!(t.props.data.length>0)||t.props.data[0].selected:!s||!(t.props.dataConnected.length>0)||t.props.dataConnected[0].selected;break;case"moveDown":n=a?!t.props.data[r-1]||t.props.data[r-1].selected:!s||!(t.props.dataConnected.length>0)||t.props.dataConnected[i-1].selected;break;case"transferTo":n=!(t.props.dataConnected&&a);break;case"transferFrom":n=!t.props.dataConnected||!(t.props.dataConnected&&s);break;case"transferAllTo":n=!(t.props.dataConnected&&t.props.data.length>0);break;case"transferAllFrom":n=!(t.props.dataConnected&&t.props.dataConnected.length>0);break;case"remove":n=!(a||s)}return n},t}return r(t,e),t.prototype.render=function(){var e=this,t=(0,l.provideLocalizationService)(this);return i.createElement("div",{className:(0,a.classNames)("k-listbox-toolbar")},i.createElement("ul",{className:"k-reset"},this.props.tools&&this.props.tools.map((function(n,o){var r=p.findIndex((function(e){return e.name===n})),a=p[r],l=e.isItemDisabled(a.name),u="listbox.".concat(a.name),d=t.toLanguageString(u,c.messages[u]);return i.createElement("li",{key:o},i.createElement(s.Button,{disabled:l,"data-command":a.name,title:d,"aria-label":d,icon:a.iconName,onClick:function(t){t.preventDefault(),e.handleToolClick(t,a.name||null)}}))}))))},t.propTypes={data:u.array,dataConnected:u.array,tools:u.array,selectedField:u.string},t.defaultProps={data:[],dataConnected:[],selectedField:"selected"},t}(i.PureComponent);t.ListBoxToolbar=d,(0,l.registerForLocalization)(d)},719:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toolbarPosition=void 0,(n=t.toolbarPosition||(t.toolbarPosition={})).TOP="top",n.BOTTOM="bottom",n.LEFT="left",n.RIGHT="right",n.NONE="none"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.remove=t.transferAllFrom=t.transferAllTo=t.transferFrom=t.transferTo=t.moveDown=t.moveUp=void 0,t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((n={})[t.moveUp]="Move Up",n[t.moveDown]="Move Down",n[t.transferTo]="Transfer To",n[t.transferFrom]="Transfer From",n[t.transferAllTo]="Transfer All To",n[t.transferAllFrom]="Transfer All From",n[t.remove]="Delete",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673259618,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"}},706:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.processListBoxDragAndDrop=t.moveItem=t.processListBoxData=void 0,t.processListBoxData=function(e,o,r,i){void 0===e&&(e=[]),void 0===o&&(o=[]);var a=[],s=[],l=[],c={listBoxOneData:e,listBoxTwoData:o};switch(r){case"moveUp":(a=n([],e,!0)).forEach((function(e,n){e[i]&&(a=(0,t.moveItem)(n,n-1,a))})),(l=n([],o,!0)).forEach((function(e,n){e[i]&&(l=(0,t.moveItem)(n,n-1,l))})),c.listBoxOneData=a,c.listBoxTwoData=l;break;case"moveDown":(a=e.reverse()).forEach((function(e,n){e[i]&&(a=(0,t.moveItem)(n,n-1,a))})),(l=o.reverse()).forEach((function(e,n){e[i]&&(l=(0,t.moveItem)(n,n-1,l))})),c.listBoxOneData=n([],a,!0).reverse(),c.listBoxTwoData=n([],l,!0).reverse();break;case"transferTo":a=e.filter((function(e){return!e[i]})),s=e.filter((function(e){return e[i]})),l=o.concat(s),c.listBoxOneData=a,c.listBoxTwoData=l;break;case"transferFrom":l=o.filter((function(e){return!e[i]})),s=o.filter((function(e){return e[i]})),a=e.concat(s),c.listBoxOneData=a,c.listBoxTwoData=l;break;case"transferAllTo":c.listBoxOneData=[],c.listBoxTwoData=o.concat(e);break;case"transferAllFrom":c.listBoxOneData=o.concat(e),c.listBoxTwoData=[];break;case"remove":l=o.filter((function(e){return!e[i]})),a=e.filter((function(e){return!e[i]})),c.listBoxOneData=a,c.listBoxTwoData=l}return c},t.moveItem=function(e,t,n){var o=n.splice(e,1)[0];return n.splice(t,0,o),n},t.processListBoxDragAndDrop=function(e,o,r,i,a){void 0===e&&(e=[]),void 0===o&&(o=[]);var s=e.findIndex((function(e){return e[a]===r[a]})),l=o.findIndex((function(e){return e[a]===r[a]})),c=null!==i?e.findIndex((function(e){return e[a]===i[a]})):-1,u=null!==i?o.findIndex((function(e){return e[a]===i[a]})):-1,p=s>=0,d=l>=0,f=c>=0,m=u>=0,h=n([],e,!0),v=n([],o,!0);return p&&f?{listBoxOneData:(0,t.moveItem)(s,c,e),listBoxTwoData:o}:d&&m?{listBoxOneData:e,listBoxTwoData:(0,t.moveItem)(l,u,o)}:p&&(m||null===i)?(null===i?v.push(e[s]):v.splice(u+1,0,e[s]),h.splice(s,1),{listBoxOneData:h,listBoxTwoData:v}):d&&(f||null===i)?(null===i?h.push(o[l]):h.splice(c+1,0,o[l]),v.splice(l,1),{listBoxOneData:h,listBoxTwoData:v}):{listBoxOneData:e,listBoxTwoData:o}}},389:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>d,ButtonGroup:()=>y,Chip:()=>at,ChipList:()=>nt,DropDownButton:()=>Ae,DropDownButtonItem:()=>_e,FloatingActionButton:()=>ht,FloatingActionButtonItem:()=>ct,SplitButton:()=>Ne,SplitButtonItem:()=>x,Toolbar:()=>Le,ToolbarItem:()=>Be,ToolbarSeparator:()=>Ke,ToolbarSpacer:()=>Ue,toolbarButtons:()=>m});var o,r=n(899),i=n(189),a=n(47),s=n(697),l=n(6),c={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673258873,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"},u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},d=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},(0,l.s)(c),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,n=this,o=this.props,i=o.children,l=o.togglable,c=o.icon,u=o.iconClass,d=o.imageUrl,f=o.imageAlt,m=(o.className,o.onClick,o.size),h=void 0===m?t.defaultProps.size:m,v=o.shape,g=void 0===v?t.defaultProps.shape:v,y=o.rounded,b=void 0===y?t.defaultProps.rounded:y,k=o.fillMode,w=void 0===k?t.defaultProps.fillMode:k,C=o.themeColor,O=void 0===C?t.defaultProps.themeColor:C,x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),E=void 0!==c||void 0!==u||void 0!==d,D=void 0!==i,P=function(e){var t=e.imageUrl,n=e.icon,o=e.iconClass,i=e.imageAlt;if(t)return r.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var s=(0,a.A)("k-button-icon k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:(0,a.A)("k-button-icon",o)}):null}({icon:c,iconClass:u,imageUrl:d,imageAlt:f});return r.createElement("button",p({ref:function(e){return n._element=e},"aria-pressed":l?this.state.selected:void 0},x,{onClick:this.handleClick,className:(0,a.A)("k-button",(e={},e["k-button-".concat(s.G.sizeMap[h]||h)]=h,e["k-button-".concat(g)]=g,e["k-button-".concat(w)]=w,e["k-button-".concat(w,"-").concat(O)]=Boolean(w&&O),e["k-rounded-".concat(s.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!D&&E,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),P,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:null,rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),f=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",m=["button"+f,".k-button-group > button"+f,".k-dropdownlist",".k-colorpicker"];var h=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),v=function(){return v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},g={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},y=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(c),n}return h(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=(0,a.A)([g["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[g["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",v({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,s=(0,a.A)(e.props.className,((i={})[g["group-start"]]=o?n:0===t,i[g["group-end"]]=o?0===t:n,i)),l=v(v({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=v(v(v(v({},e.props),s?{className:s}:{}),Object.keys(l).length?{style:l}:{}),void 0!==c?{disabled:c}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),b=n(198),k=n(493),w=n(407),C=function(e){var t,n=r.useCallback((function(t){e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),i=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=r.createElement("li",{id:e.id,className:(0,a.A)("k-item",e.className,{"k-focus":e.focused}),tabIndex:-1,onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},r.createElement("span",{tabIndex:-1,className:(0,a.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},o?r.createElement(o,{item:e.dataItem,itemIndex:e.index}):r.createElement(r.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&r.createElement("span",{className:(0,a.A)("k-icon",(t={},t["k-i-".concat(e.dataItem.icon)]=e.dataItem.icon,t["".concat(e.dataItem.iconClass)]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&r.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),i&&r.createElement("span",{className:"k-menu-link-text"},i))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};C.displayName="KendoReactButtonItem";var O=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(r.Component),E=function(e,t,n,o){if(n)return e;var r=Math.min(o-1,Math.max(0,e));switch(t){case k.R.enter:case k.R.space:case k.R.esc:return-1;case k.R.up:case k.R.left:return r-1<0?o-1:r-1;case k.R.down:case k.R.right:return r+1>=o?0:r+1;case k.R.home:return 0;case k.R.end:return o-1;default:return e}},D=n(994),P=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},I="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),N=n(827),R=n(259);const _="bottom",T="center",M="middle",A="left",S="right",j="top",L="fit",z="flip",B="none";var F,K,U,H=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},W=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&a!==T&&a!==M&&i!==T&&i!==M){var c=i===j||i===A;t<0&&c?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!c&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},Y=(F=function(e){if(!X())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},U=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return U||(K=F.apply(void 0,e),U=!0),K}),X=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const V={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:Y,canUseDOM:X};function G(e){return e.ownerDocument||e.document||e}const q=function(e){return G(e).defaultView},$=function(e){return G(e).documentElement};var Z=0;function J(){if(!Z&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),Z=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Z}function Q(e){var t=q(e),n=$(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=J()),o}function ee(e){var t=$(e),n=q(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const te=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}};function ne(e){return e===(e.ownerDocument||{}).body?ee(e):{x:e.scrollLeft,y:e.scrollTop}}const oe=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||$(e)};function re(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function ie(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var ae=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],se=function(){return V.canUseDOM()?window:null},le=/auto|scroll/,ce=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},ue=function(e){if(!e||!V.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},pe=function(){return V.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},de={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,c=r.vertical,u=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return s===_&&(d+=t.height),s!==T&&s!==M||(d+=Math.round(t.height/2)),c===_&&(d-=o.height,p*=-1),c!==T&&c!==M||(d-=Math.round(o.height/2),p*=-1),a===S&&(f+=t.width),a!==T&&a!==M||(f+=Math.round(t.width/2)),l===S&&(f-=o.width,u*=-1),l!==T&&l!==M||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=Q(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=se();if(!t||!e)return[];var n=t.getComputedStyle(e);return ae.map((function(e){return{key:e,value:n[e]}}))},getWindow:se,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?te(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=te(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?oe(t):null,r=function(e,t){var n=q(e),o=n.getComputedStyle(e),r=te(e),i=t||oe(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var c=n.getComputedStyle(i);(l=te(i)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}}(e,o),i=r.top,a=r.left,s=r.height,l=r.width,c=function(e,t){return e?ne(e):function(e){var t=oe(e);return t?ne(t):{x:0,y:0}}(t)}(o,e),u=c.x,p=c.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:a+u*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,c=o.left,u=o.height,p=o.width,d=a.height,f=a.width,m=s.horizontal||0,h=s.vertical||0,v=0,g=0,y=i.vertical===L,b=i.horizontal===L,k=i.vertical===z,w=i.horizontal===z;y&&(g+=H(l,u,d)),b&&(v+=H(c,p,f)),k&&(g+=W({margin:h,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=W({margin:m,offset:c,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=k&&0!==g,O=w&&0!==v,x=y&&0!==g,E=b&&0!==v;return{flipped:O||C,fitted:x||E,flip:{horizontal:O,vertical:C},fit:{horizontal:E,vertical:x},offset:{left:v,top:g}}},scrollPosition:ee,scrollableParents:function(e){var t=[];if(!V.canUseDOM())return t;for(var n=e.parentElement;n;)(le.test(ce(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:ue,stackingElementOffset:function(e){var t=ue(e);return t?te(t):null},stackingElementScroll:function(e){var t=ue(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=ue(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(ue(e))},windowViewPort:Q,zoomLevel:pe,isZoomed:function(){return pe()>1},zIndex:function(e,t){if(!e||!V.canUseDOM())return null;var n=function(e,t){for(var n,o,r=re(e),i=t;i&&(n=ie(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}(e,t);if(!n)return null;var o=[e].concat(re(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}};const fe=de;const me=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,c="fixed"!==s&&fe.hasOffsetParent(n)?function(e,t,n,o){var r=V.eitherRect(fe.position(e,t,o),n);return V.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:fe.scrollPosition(t)}(e,t),i=V.eitherRect(fe.offset(e),n),a=2*o,s=fe.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=fe.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),fe.removeScroll(fe.addScroll(V.removeStackingOffset(V.scaleRect(i,o),l),s),r)}(t,n,a,l),u=V.scaleRect(fe.offset(n),l);return fe.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var he={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673258849,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"},ve=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ge=function(){return ge=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ge.apply(this,arguments)};function ye(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var be,ke={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(be||(be={}));var we="k-animation-container-shown",Ce=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:be.hidden,previous:be.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:be.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,c=t.scale,u=t.positionMode,p=e.style,d=p.width,f=p.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var m=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,c=fe.offsetAtPoint(o,n),u=V.scaleRect(c,l),p=V.scaleRect(fe.offset(t),l),d=V.eitherRect(p,n),f=e.viewPort||fe.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var m=fe.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:f}),h=fe.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:h}}({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:me({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:u,scale:c}),margin:n.props.margin});if(e.style.top=m.offset.top+"px",e.style.left=m.offset.left+"px",e.style.width=d,e.style.height=f,n._collisions={fit:m.fit,fitted:m.fitted,flip:m.flip,flipped:m.flipped},n.props.onPosition){var h={target:n,flipped:m.flipped,fitted:m.fitted};n.props.onPosition.call(void 0,h)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(we),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,a=i.horizontal,s=i.vertical;r="left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),P(e),e.style.display="exit"===o?"none":"",r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var c=l.defaultView;if(c){var u=function(){P(e),e.classList.add(i),c.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};I?c.requestAnimationFrame(u):u()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(we),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===be.hiding&&n.state.previous===be.shown&&n.setState({current:be.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,l.s)(he),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=void 0,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=void 0,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=void 0),s=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,u)),a}}(n.reposition.bind(n),16.666666666666668),n}return ve(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,p=e.offset,d=e.contentKey,f=ge(ge({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:c,style:u,offset:p,contentKey:d}});return e.show?t.current===be.hidden||t.current===be.hiding?ge(ge({},f),{current:be.showing,previous:t.current}):t.current===be.showing?ge(ge({},f),{current:be.shown,previous:t.current}):t.current!==be.shown||ye(p,t.props.offset)&&ye(r,t.props.anchorAlign)&&ye(i,t.props.appendTo)&&ye(a,t.props.collision)&&ye(s,t.props.popupAlign)&&ye(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:ge(ge({},f),{current:be.reposition,previous:t.current}):t.current===be.hiding||t.current===be.hidden?ge(ge({},f),{current:be.hidden,previous:t.current}):ge(ge({},f),{current:be.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===be.showing&&this._popup?this.show(this._popup):this.state.current===be.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===be.reposition&&this.state.previous===be.shown?this.setState({current:be.shown,previous:this.state.current}):this.state.current===be.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===be.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,s=t.show,l=t.id,c=t.positionMode,u=this.props.appendTo?this.props.appendTo:N.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===be.reposition&&this.state.previous===be.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c,top:0,left:-1e4},this.props.style||{}),d=this.state.current===be.hiding;if((s||d)&&u){var f=this.getCurrentZIndex(),m=r.createElement(R.$.Provider,{value:f},r.createElement("div",{className:(0,a.A)("k-animation-container","k-animation-container-relative",o),id:l,ref:function(t){return e._popup=t},style:ge({zIndex:f},p)},r.createElement("div",{className:(0,a.A)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?D.createPortal(m,u):m}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=fe.scrollableParents(this.props.anchor||e),this._scrollableParents&&this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:be.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([L,z,B]),vertical:i.oneOf([L,z,B])}),anchorAlign:i.shape({horizontal:i.oneOf([A,T,S]),vertical:i.oneOf([j,T,_])}),popupAlign:i.shape({horizontal:i.oneOf([A,T,S]),vertical:i.oneOf([j,T,_])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:L,vertical:z},anchorAlign:{horizontal:A,vertical:_},popupAlign:{horizontal:A,vertical:j},offset:ke,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=R.$,t.displayName="PopupComponent",t}(r.Component),Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oe.apply(this,arguments)},xe=r.createContext((function(e){return e})),Ee=r.forwardRef((function(e,t){var n=r.useContext(xe).call(void 0,e);return r.createElement(Ce,Oe({ref:t},n))}));function De(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Pe(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}Ee.displayName="Popup";var Ie=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ne=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.list=null,n.guid=(0,b.M)(),n.skipFocus=!1,n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==k.R.down?n.opened&&e.keyCode===k.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=void 0;if(e.keyCode===k.R.enter||e.keyCode===k.R.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(o={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,o.opened))):n.opened&&e.keyCode===k.R.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=E(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===k.R.up||e.keyCode===k.R.down||e.keyCode===k.R.left||e.keyCode===k.R.right;e.altKey||!i&&e.keyCode!==k.R.home&&e.keyCode!==k.R.end||e.preventDefault()}o&&n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.onFocus=function(e){n.skipFocus||((0,w.N)(n.props.onFocus,e,n,void 0),n.setState({focused:!0}))},n.onItemClick=function(e,t){var o=n.opened;o&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),o&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.skipFocus||(n.setState({focused:!1,focusedIndex:-1,opened:!1}),(0,w.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){(0,w.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Ie(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===x})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,l=o.style,c=o.tabIndex,u=o.disabled;return r.createElement("div",{id:i,style:l,className:(0,a.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(s.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:u||void 0,tabIndex:c,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":u,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),r.createElement(d,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",className:"k-split-button-arrow",disabled:u||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,w.N)(this.props.onButtonClick,e,this,void 0):(0,w.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(C,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",shape:null,fillMode:"solid",themeColor:"base"},t}(r.Component),Re=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Re(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,selected:i.bool,disabled:i.bool,render:i.any},t}(r.Component),Te=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=function(){return Me=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Me.apply(this,arguments)},Ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.list=null,n.skipFocus=!1,n.guid=(0,b.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==k.R.down?n.opened&&e.keyCode===k.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=Me({},n.state);if(e.keyCode===k.R.enter||e.keyCode===k.R.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),o.focusedIndex=n.opened?-1:0,o.opened=!n.opened,n.dispatchPopupEvent(e,o.opened)):n.opened&&e.keyCode===k.R.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=E(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===k.R.up||e.keyCode===k.R.down||e.keyCode===k.R.left||e.keyCode===k.R.right;e.altKey||!i&&e.keyCode!==k.R.home&&e.keyCode!==k.R.end||e.preventDefault()}n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.handleFocus=function(e){n.skipFocus||(n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,w.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,w.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){(0,w.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Te(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,s=o.style,l=o.tabIndex,c=o.disabled;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===_e})).map((function(e){return e.props})),r.createElement("div",{id:i,style:s,className:(0,a.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:l,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,w.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,ref:this.listRef,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(C,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",shape:null,fillMode:"solid",themeColor:"base"},t}(r.Component),Se=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),je=function(){return je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},je.apply(this,arguments)},Le=function(e){function t(n){var o=e.call(this,n)||this;return o._element=null,o.offsetHeight=0,o.offsetWidth=0,o.buttons=[],o.focusedSelector=o.selectors.map((function(e){return e+":focus"})).join(","),o.setTabIndex=function(e){var n=o.props.tabIndex,r=void 0===n?t.defaultProps.tabIndex:n;o.buttons.forEach((function(t,n){t.tabIndex=n===e?r:-1}))},o.onKeyDown=function(e){var t=e.target;if((e.keyCode===k.R.left||e.keyCode===k.R.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===k.R.left?o.focusButton(n,n-1):o.focusButton(n,n+1)}},o.onWindowResize=function(e){var t=o.element;if(t){var n=t.offsetWidth,r=t.offsetHeight;if(o.offsetWidth!==n||o.offsetHeight!==r){o.offsetWidth=n,o.offsetHeight=r;var i={offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight};o.props.onResize&&o.props.onResize.call(void 0,je(je({target:o},i),{nativeEvent:e}))}}},(0,l.s)(c),o}return Se(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||m},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e,t=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-toolbar",(e={},e["k-toolbar-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,e),this.props.className),style:this.props.style,role:void 0!==this.props.role?this.props.role||void 0:"toolbar",dir:this.props.dir,ref:function(e){return t._element=e},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var o=this.props.tabIndex,r=void 0===o?t.defaultProps.tabIndex:o,i=this.buttons[n];if(i){i.tabIndex=r,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,role:i.string,onResize:i.func,buttons:i.arrayOf(i.string),size:i.oneOf([null,"small","medium","large"])},t.defaultProps={tabIndex:0,size:"medium"},t}(r.Component),ze=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return ze(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-toolbar-item",this.props.className),style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:i.string},t}(r.PureComponent),Fe=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fe(t,e),t.prototype.render=function(){return r.createElement("div",{className:(0,a.A)("k-separator",this.props.className)})},t}(r.PureComponent),Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null);r.useImperativeHandle(o,(function(){return{element:n.current}})),r.useImperativeHandle(t,(function(){return{element:n.current}}));var i=r.useMemo((function(){return(0,a.A)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));Ue.displayName="KendoReactToolbarSpacer",Ue.propTypes={className:i.string};var He,We,Ye,Xe,Ve=n(199),Ge=n(659),qe=n(322),$e=n(703),Ze=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(He||(He={})),function(e){e.toggle="toggle",e.remove="remove"}(We||(We={})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Ye||(Ye={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Xe||(Xe={}));var Je=function(){return Je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Je.apply(this,arguments)},Qe=r.createContext([null,function(e){}]),et=r.createContext([null,function(e){}]),tt=r.createContext([null,function(e){}]),nt=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ve.n)(i,e.dir),p=e.chip,d=e.id,f=e.style,m=e.tabIndex,h=e.disabled,v=e.size,g=e.className,y=e.ariaDescribedBy,b=e.ariaLabelledBy,k=e.selection,w=void 0===k?rt.selection:k,C=e.value,O=void 0===C?rt.defaultValue:C,x=e.defaultData,E=void 0===x?rt.defaultData:x,D=e.valueField,P=void 0===D?rt.valueField:D,I=e.textField,N=void 0===I?rt.textField:I,R=e.onChange,_=e.onDataChange,T=r.useMemo((function(){return p||at}),[p,at]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var M=r.useCallback((function(e,t){R&&o.current&&R.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[R]),A=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case He.single:switch(t.type){case We.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case We.remove:return t.payload===e?null:e;default:return e}case He.multiple:switch(t.type){case We.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):Ze(Ze([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case We.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):Ze(Ze([],e,!0),[t.payload],!1):e;default:return e}case He.none:return null;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(O,{selection:w,state:O},M),S=A[0],j=A[1],L=r.useCallback((function(e,t){_&&o.current&&_.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[_]),z=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.type){case Xe.add:break;case Xe.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Xe.reorder:break;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(e.data||E,{state:e.data,valueField:P},L),B=z[0],F=z[1],K=r.useCallback((function(e,t){return e.push(t[P]),e}),[P]),U=r.useMemo((function(){return e.data||B}),[e.data,B]),H=r.useMemo((function(){return O||S}),[O,S]),W=r.useMemo((function(){return U.reduce(K,[])}),[U,K]),Y=r.useCallback((function(e){return(0,Ge.Y)(P)(e)}),[P]),X=r.useCallback((function(e){return(0,Ge.Y)(N)(e)}),[N]),V=function(e){var t=r.useState(null),n=t[0],o=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case Ye.next:return n===t.items.length-1?e:t.items[n+1];case Ye.prev:return 0===n?e:t.items[n-1];case Ye.current:return t.payload;case Ye.reset:return null;default:return e}}(t.payload,Je(Je({},t),e));o(n)}]}({items:W}),G=V[0],q=V[1],$=(0,qe.i)(e,o);return r.createElement(Qe.Provider,{value:[H,j]},r.createElement(et.Provider,{value:[G,q]},r.createElement(tt.Provider,{value:[U,F]},r.createElement("div",Je({ref:i},$,{role:"listbox",id:d,dir:u,style:f,tabIndex:(0,$e.p)(m,h,void 0),className:(0,a.A)("k-chip-list",(n={"k-rtl":"rtl"===u,"k-disabled":h},n["k-chip-list-".concat(s.G.sizeMap[v]||v)]=v,n),g),"aria-labelledby":b,"aria-describedby":y}),U.map((function(e,t){return r.createElement(T,{role:"option",dataItem:e,size:v,key:[Y(e),t].join("-"),text:X(e),value:Y(e)})}))))))})),ot={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"])},rt={chip:at,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};nt.displayName="KendoReactChipList",nt.propTypes=ot,nt.defaultProps=rt;var it=function(){return it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},it.apply(this,arguments)},at=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ve.n)(i,e.dir);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var p=r.useContext(Qe),d=p[0],f=p[1],m=r.useContext(et),h=m[0],v=m[1],g=r.useContext(tt)[1],y=r.useMemo((function(){return e.selected||(Array.isArray(d)?d.some((function(t){return t===e.value})):d===e.value)}),[e.selected,e.value,d]),b=r.useMemo((function(){return h===e.value}),[e.value,h]);r.useEffect((function(){b&&i.current&&i.current.focus()}),[b]);var w=r.useCallback((function(t){f({type:We.toggle,payload:e.value,event:t})}),[f,e.value]),C=r.useCallback((function(t){e.removable&&(g({type:Xe.remove,payload:e.value,event:t}),v({type:Ye.reset,payload:e.value,event:t}),f({type:We.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,g,v,f]),O=r.useCallback((function(t){switch(t.keyCode){case k.R.left:v({type:Ye.prev,payload:e.value,event:t});break;case k.R.right:v({type:Ye.next,payload:e.value,event:t});break;case k.R.enter:f({type:We.toggle,payload:e.value,event:t});break;case k.R.delete:C(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,v,f,C]),x=r.useCallback((function(t){v({payload:e.value,type:Ye.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,v]),E=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),D=(0,qe.i)(e,o,{onClick:w});return r.createElement("div",it({},D,{role:e.role,id:e.value,style:e.style,ref:i,dir:u,tabIndex:(0,$e.p)(e.tabIndex,e.disabled,void 0),className:(0,a.A)("k-chip",(n={"k-rtl":"rtl"===u,"k-disabled":e.disabled,"k-selected":y,"k-focus":b},n["k-chip-".concat(s.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(s.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":y,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:x,onBlur:E,onKeyDown:O}),y&&e.selectedIcon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:"k-chip-actions"},r.createElement("span",{className:(0,a.A)("k-chip-action","k-chip-remove-action")},r.createElement("span",{className:(0,a.A)("k-icon",e.removeIcon),onClick:C}))))})),st={id:i.string,text:i.string,value:i.any,dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"outline","solid"]),themeColor:i.oneOf([null,"base","info","success","warning","error"])};at.displayName="KendoReactChip",at.propTypes=st,at.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},lt.apply(this,arguments)},ct=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,l=e.style,c=e.id,u=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,m=e.item,h=e.onDown,v=e.onClick,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=r.useRef(null),b=r.useCallback((function(){y.current&&y.current.focus()}),[]),k=r.useCallback((function(){return{element:y.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){v&&void 0!==d&&!o&&v(e,d)}),[v,d]),C=r.useMemo((function(){return(0,a.A)("k-fab-item",{"k-focus":u,"k-disabled":o},n)}),[n,o,u]),O=m;return r.createElement("li",lt({ref:y,id:c,className:C,style:l,role:"menuitem",tabIndex:(0,$e.p)(p,o),"aria-disabled":o,"aria-label":"".concat(i||""," floatingactionbutton item"),onClick:w,onMouseDown:h,onPointerDown:h},g),O?r.createElement(O,{itemIndex:d,item:f}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),s&&r.createElement("span",{className:(0,a.A)("k-fab-item-icon k-icon k-i-".concat(s))})))}));ct.propTypes={className:i.string,style:i.object,children:i.any,disabled:i.bool,focused:i.bool,index:i.number,icon:i.string,text:i.string,tabIndex:i.number,customProp:i.any},ct.displayName="KendoFloatingActionButtonItem";var ut="16px",pt=function(e){return"number"==typeof e?e+"px":e},dt=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ft=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},mt=function(){return mt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},mt.apply(this,arguments)},ht=r.forwardRef((function(e,t){(0,l.s)(c);var n=e.align,o=void 0===n?vt.align:n,i=e.alignOffset,u=e.className,p=e.disabled,d=e.icon,f=e.iconClass,m=e.id,h=e.items,v=e.item,g=e.text,y=e.positionMode,C=void 0===y?vt.positionMode:y,O=e.shape,x=void 0===O?vt.shape:O,E=e.size,D=void 0===E?vt.size:E,P=e.style,I=e.rounded,N=void 0===I?vt.rounded:I,_=e.themeColor,T=void 0===_?vt.themeColor:_,M=e.overlayStyle,A=e.tabIndex,S=e.accessKey,j=e.popupSettings,L=void 0===j?{}:j,z=e.modal,B=e.onClick,F=e.onItemClick,K=e.onFocus,U=e.onBlur,H=e.onKeyDown,W=e.onOpen,Y=e.onClose,X=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),V=(0,R.u)(),G=V?V+2:100,q=r.useRef(null),$=r.useRef(null),Z=r.useRef(null),J=r.useRef(null),Q=r.useCallback((function(){$.current&&$.current.focus()}),[]),ee=r.useCallback((function(){return{element:$.current,focus:Q}}),[Q]);r.useImperativeHandle(q,ee),r.useImperativeHandle(t,(function(){return q.current}));var te=r.useState(!1),ne=te[0],oe=te[1],re=r.useState(!1),ie=re[0],ae=re[1],se=r.useState(-1),le=se[0],ce=se[1],ue=r.useMemo((function(){return(0,b.M)()}),[]),pe=(0,Ve.n)($,e.dir),de="rtl"===pe,fe=r.useMemo((function(){return(0,b.M)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?pt(n.x):ut,s=n&&void 0!==n.x?"calc(50% + ".concat(pt(n.x),")"):"50%",l=n&&void 0!==n.y?pt(n.y):ut,c=n&&void 0!==n.y?"calc(50% + ".concat(pt(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,o),"center"===r?s:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?c:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}($,o,i,de)}),[$,o,i,de]),r.useEffect((function(){ie&&$&&$.current&&$.current.focus()}),[ie,$]);var me=r.useCallback((function(e,t){h&&(0,w.N)(t?W:Y,e,ee(),void 0)}),[W,Y,h]),he=r.useCallback((function(e){e.target&&!p&&(!h&&B?(0,w.N)(B,e,ee(),void 0):(oe(!ne),ae(!0),ce(ne?-1:0),me(e,!ne)))}),[oe,ae,ce,B,me,ne,h,p]),ve=r.useCallback((function(e){ae(!0),ce(ne?0:-1),K&&(0,w.N)(K,e,ee(),void 0)}),[K,ae,ce]),ge=r.useCallback((function(e){ae(!1),oe(!1),ce(-1),(0,w.N)(U,e,ee(),void 0),ne&&me(e,!1)}),[U,ae,oe,ce,me]),ye=r.useCallback((function(e){e.preventDefault()}),[]),be=r.useCallback((function(e,t){h&&(h[t].disabled||(0,w.N)(F,e,ee(),{itemProps:h[t],itemIndex:t}))}),[F]),ke=r.useCallback((function(e,t){e.target&&h&&(ce(t),oe(!1),be(e,t),me(e,!1))}),[ce,oe,be,me]),we=r.useCallback((function(e){document.activeElement===$.current&&e.preventDefault()}),[$,document.activeElement]),Ce=r.useCallback((function(e){var t=le,n=h?h.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case k.R.enter:case k.R.space:t>=0&&be(e,t),e.preventDefault(),oe(!ne),ce(ne?-1:0);break;case k.R.esc:e.preventDefault(),oe(!1),ce(-1);break;case k.R.home:e.preventDefault(),ce(0);break;case k.R.end:e.preventDefault(),ce(n);break;case k.R.down:case k.R.right:e.preventDefault(),t<n&&!r&&ce(t+1),t>0&&r&&ce(t-1);break;case k.R.up:case k.R.left:e.preventDefault(),t>0&&!r&&ce(t-1),t<n&&r&&ce(t+1)}(0,w.N)(H,e,ee(),void 0)}),[H,le,ce,de,oe]),Oe=r.useMemo((function(){var e;return(0,a.A)("k-fab k-fab-solid",((e={})["k-fab-".concat(x)]=x,e["k-fab-sm"]="small"===D,e["k-fab-md"]="medium"===D,e["k-fab-lg"]="large"===D,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===C,e["k-pos-fixed"]="fixed"===C,e["k-focus"]=ie,e["k-rounded-".concat(s.G.roundedMap[N]||N)]=N,e["k-fab-solid-".concat(T)]=T,e),"k-".concat(o.vertical,"-").concat(o.horizontal),u)}),[T,D,N,x,p,C,o,ie,u]),xe=h&&h.map((function(e,t){return r.createElement(ct,mt({},e,{key:t,index:t,id:"".concat(fe,"-").concat(t),disabled:p||e.disabled,focused:le===t,dataItem:e,item:v,className:(0,a.A)(e.className,(n=pe||"ltr",i=o.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===i?"end":"start"])),onClick:ke,onDown:we}));var n,i})),De=d&&!g,Pe=($.current?$.current.offsetWidth:0)/2-16;return r.createElement(R.$.Provider,{value:G},r.createElement(r.Fragment,null,r.createElement("button",mt({ref:$,id:m||ue,role:h?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":h?ne:void 0,"aria-haspopup":!!h,"aria-label":"".concat(g||""," floatingactionbutton"),"aria-owns":h?fe:void 0,"aria-activedescendant":le>=0&&h?"".concat(fe,"-").concat(le):void 0,tabIndex:(0,$e.p)(A,p),accessKey:S,dir:pe,disabled:p,className:Oe,style:P,onClick:he,onMouseDown:ye,onFocus:ve,onBlur:ge,onKeyDown:Ce},X),d?r.createElement("span",{role:"presentation",className:(0,a.A)("k-fab-icon k-icon k-i-".concat(d))}):f?r.createElement("span",{role:"presentation",className:f}):null,g&&r.createElement("span",{className:"k-fab-text"},g)),z&&ne&&r.createElement("div",{className:"k-overlay",style:mt({zIndex:G},M)}),r.createElement(Ee,{ref:J,anchor:$.current,show:ne,animate:L.animate,popupClass:(0,a.A)("k-popup-transparent k-fab-popup",L.popupClass),anchorAlign:L.anchorAlign||dt(o,de),popupAlign:L.popupAlign||ft(o,de),style:{boxShadow:"none"}},r.createElement("ul",{ref:Z,role:"menu","aria-labelledby":m,id:fe,className:(0,a.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:De?Pe:void 0,paddingRight:De?Pe:void 0}},xe))))}));ht.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf([null,"rectangle","square"]),size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),themeColor:i.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:i.bool,overlayStyle:i.object};var vt={align:{vertical:"bottom",horizontal:"end"},shape:null,size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};ht.displayName="KendoFloatingActionButton"},827:(e,t,n)=>{n.d(t,{N:()=>o});var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},47:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},259:(e,t,n)=>{n.d(t,{$:()=>r,u:()=>i});var o=n(899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},407:(e,t,n)=>{function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,{N:()=>o})},100:(e,t,n)=>{n.d(t,{E:()=>r});var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},703:(e,t,n)=>{n.d(t,{p:()=>o});var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},659:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(100),r={};function i(e){if(r[e])return r[e];var t=(0,o.E)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},198:(e,t,n)=>{n.d(t,{M:()=>o});var o=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}},199:(e,t,n)=>{n.d(t,{n:()=>r});var o=n(899);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},322:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(899),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},493:(e,t,n)=>{n.d(t,{R:()=>o});var o={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}},556:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>U,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>q,DragAndDrop:()=>De,Draggable:()=>ze,Droppable:()=>Fe,FormComponent:()=>v,Icon:()=>re,Keys:()=>k.R,SvgIcon:()=>se,Typography:()=>be,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>p,cloneArray:()=>m,cloneDate:()=>u,cloneObject:()=>d,cloneValue:()=>f,createPropsContext:()=>Y,dispatchEvent:()=>z.N,extendDataItem:()=>A,focusFirstFocusableChild:()=>h,getItemPath:()=>S,getScrollbarWidth:()=>C,getTabIndex:()=>g.p,getter:()=>y.Y,guid:()=>b.M,hasRelativeStackingContext:()=>L,kendoThemeMaps:()=>Ke.G,mapTree:()=>T,mapTreeItem:()=>M,memoizeOne:()=>He,noop:()=>w,setScrollbarWidth:()=>O,setter:()=>P,useAsyncFocusBlur:()=>F,useCollection:()=>J,useCustomComponent:()=>Z,useDir:()=>V.n,useDocument:()=>Q,useDraggable:()=>Le,useDroppable:()=>Be,useMouse:()=>$.i,usePropsContext:()=>H,useRtl:()=>G,useWindow:()=>ee,useZIndexContext:()=>o.u,validatePackage:()=>j.s,withPropsContext:()=>X});var o=n(259),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),a=n(827),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))},l=n(47),c=n(899),u=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=f(o,t[n])}}function f(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return u(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function m(e){return e.map((function(e){return f(e,void 0)}))}var h=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},v=function(){},g=n(703),y=n(659),b=n(198),k=n(493),w=function(){},C=function(){return!(!a.N||!document.body)&&(new i).scrollbarWidth},O=function(){if(!a.N||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},x=n(100),E={undefined:function(e){return e}},D=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function P(e){if(E[e])return E[e];var t=(0,x.E)(e);return E[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||D(t[a+1],o);r[t[i]]=n},E[e]}var I=function(){return I=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)},N=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function R(e,t,n){var o;return n?I(I({},e),((o={})[t]=n.length?N([],n,!0):void 0,o)):e&&e[t]?N([],e[t],!0):[]}function _(e,t,n){if(e[t]){var o=R(e,t).map((function(e){return _(e,t,n)}));return n(R(e,t,o))}return n(e)}var T=function(e,t,n){return N([],e.map((function(e){return _(e,t,n)})),!0)},M=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],c=o(s[l]);s.splice(l,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},S=function(e,t,n){var o=[],r=N([],t,!0);if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},j=n(6),L=function(e){if(!a.N)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r},z=n(407),B=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function F(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),s=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call(void 0,e[0]),i.current||(i.current=!0,t&&t.call.apply(t,B([void 0],e,!1)))}),[i,t,o]),u=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call(void 0,e[0]),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,B([void 0],e,!1)))}))}),[i,s,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var K=function(){return K=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},K.apply(this,arguments)},U=function(e){var t=e.children,n=F({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return c.createElement(c.Fragment,null,t.call(void 0,K({},n)))},H=function(e,t){return c.useContext(e)(t)},W=function(){return W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},W.apply(this,arguments)},Y=function(){return c.createContext((function(e){return e}))},X=function(e,t){return c.forwardRef((function(n,o){var r=H(e,n);return c.createElement(t,W({},r,{ref:o}))}))},V=n(199);function G(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,$=n(322),Z=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var J=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case q.add:t.current.push(e.item);break;case q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Q=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},ee=function(e){var t=Q(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},te=n(189),ne={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oe.apply(this,arguments)},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,s=e.style,u=e.id,p=e.tabIndex,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style","id","tabIndex"]),f=c.useRef(null),m=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:m.current}})),c.useImperativeHandle(t,(function(){return f.current}));var h=c.useMemo((function(){return i||ie.size}),[i]),v=c.useMemo((function(){return a||ie.flip}),[a]),g=c.useMemo((function(){var e;return(0,l.A)("k-icon","k-i-"+o,((e={})["k-color-".concat(r)]=r,e["k-flip-h"]="horizontal"===v||"both"===v,e["k-flip-v"]="vertical"===v||"both"===v,e),ne[h],n)}),[o,r,h,v,n]),y=(0,$.i)(e,f);return c.createElement("span",oe({ref:m},d,y,{className:g,id:u,tabIndex:p,style:s,role:"presentation"}))}));re.propTypes={style:te.object,classNames:te.string,name:te.string,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",flip:"default"};re.displayName="KendoIcon";var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ae.apply(this,arguments)},se=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,s=e.id,u=e.tabIndex,p=e.size,d=e.style,f=e.svgStyle,m=e.themeColor,h=e.viewBox,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox"]),g=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:g.current}}));var y=c.useMemo((function(){return i?i.name:le.icon}),[i]),b=c.useMemo((function(){return p||le.size}),[p]),k=c.useMemo((function(){return a||le.flip}),[a]),w=c.useMemo((function(){return h||le.viewBox}),[h]),C=c.useMemo((function(){var e;return(0,l.A)("k-svg-icon","k-svg-i-"+y,((e={})["k-color-".concat(m)]=m,e["k-flip-h"]="horizontal"===k||"both"===k,e["k-flip-v"]="vertical"===k||"both"===k,e),ne[b],o)}),[y,m,b,k,o]),O=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},d):e.width?ae({width:e.width,height:e.width},d):e.height?ae({width:e.height,height:e.height},d):ae({},d)}),[e.width,e.height,d]);return c.createElement("span",{className:C,style:O,ref:g},c.createElement("svg",ae({id:s,className:r,style:f,"aria-hidden":!0,tabIndex:u,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},v),i?void 0:n))}));se.propTypes={style:te.object,classNames:te.string,children:te.any,icon:te.object,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};se.displayName="KendoSvgIcon";var ce={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ue={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},fe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},me={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},he={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ve={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"},ge=function(){return ge=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ge.apply(this,arguments)},ye=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,s=t.fontWeight,l=t.textAlign,u=t.textTransform,p=t.themeColor,d=t.margin,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),m=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(m,(function(){return{element:h.current,props:t}})),c.useImperativeHandle(n,(function(){return m.current}));var v=e;return c.createElement(v,ge({id:o,ref:h,className:["k-".concat("p"===e?"paragraph":e),ce[a],ue[s],me[l],he[u],ve[p],function(){if(void 0!==d){if("string"==typeof d)return[pe[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,o,r;null!==d[t]&&void 0!==d[t]&&e.push((n=t,r="string"==typeof(o=d[t])?de[o]:o,"".concat(fe[n]).concat(r)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:r},f),t.children)}));return t.propTypes={style:te.object,className:te.string,fontSize:te.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:te.oneOf(["light","normal","bold"]),margin:te.oneOfType([te.number,te.object,te.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:te.oneOf(["left","right","center","justify"]),textTransform:te.oneOf(["lowercase","uppercase","capitalize"]),themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},be={h1:ye("h1"),h2:ye("h2"),h3:ye("h3"),h4:ye("h4"),h5:ye("h5"),h6:ye("h6"),p:ye("p"),code:ye("code"),pre:ye("pre")},ke=function(){return ke=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ke.apply(this,arguments)},we=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,ke(ke({},t),{value:e}))}),[n,i])]},Ce=c.createContext([void 0,w]),Oe=c.createContext([void 0,w]),xe=c.createContext([[],w,w]),Ee=c.createContext([[],w,w]),De=function(e){var t=we(null,void 0),n=t[0],o=t[1],r=we(null,void 0),i=r[0],a=r[1],s=J([]),l=s[0],u=s[1],p=J([]),d=p[0],f=p[1];return c.createElement(Ce.Provider,{value:[n,o]},c.createElement(Oe.Provider,{value:[i,a]},c.createElement(xe.Provider,{value:[l,function(e){u({type:q.add,item:e})},function(e){u({type:q.remove,item:e})}]},c.createElement(Ee.Provider,{value:[d,function(e){f({type:q.add,item:e})},function(e){f({type:q.remove,item:e})}]},e.children))))};De.displayName="KendoReactDragAndDrop";var Pe,Ie=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Ne=function(e){return e&&e.ownerDocument||window.document},Re=function(e){var t=Ie(),n=Ne(e);return t.edge||t.safari?n.body:n.documentElement},_e=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Te=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&&!_e(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Pe||(Pe={}));var Me=function(){},Ae=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s,l=n.onIsPressedChange,c=void 0===l?Me:l,u=n.onIsScrollingChange,p=void 0===u?Me:u,d=n.onVelocityChange,f=void 0===d?Me:d,m=n.onOffsetChange,h=void 0===m?Me:m,v=n.onPageOffsetChange,g=void 0===v?Me:v,y=n.onClientOffsetChange,b=void 0===y?Me:y,k=n.onScrollOffsetChange,w=void 0===k?Me:k,C=n.onInitialScrollOffsetChange,O=void 0===C?Me:C,x=t.payload,E=x.element,D=x.hint,P=e.autoScrollDirection,I=e.scrollableParent,N=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(N.type){case Pe.POINTER_DOWN:if(N.type===Pe.POINTER_DOWN&&(!N.originalEvent.isPrimary||0!==N.originalEvent.button))break;case Pe.MOUSE_DOWN:if(N.type===Pe.MOUSE_DOWN&&N.originalEvent.which&&N.originalEvent.which>1||e.ignoreMouse)break;case Pe.TOUCH_START:if(N.type===Pe.TOUCH_START&&1!==N.originalEvent.touches.length)break;case Pe.START:var R=I||Te(t.payload.element);O(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),b({x:N.clientX,y:N.clientY}),g({x:N.pageX,y:N.pageY}),h({x:N.offsetX,y:N.offsetY}),c(!0),x.onPress&&x.onPress(N);break;case Pe.SCROLL:if(N.type===Pe.SCROLL&&!e.pressed)break;var _=I||Te(E),T=_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop};N.scrollX=T.x-e.initialScrollOffset.x,N.scrollY=T.y-e.initialScrollOffset.y,w({x:N.scrollX,y:N.scrollY});case Pe.POINTER_MOVE:if(N.type===Pe.POINTER_MOVE&&!N.originalEvent.isPrimary)break;case Pe.MOUSE_MOVE:case Pe.TOUCH_MOVE:if(N.type===Pe.TOUCH_MOVE&&1!==N.originalEvent.touches.length)break;case Pe.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==N.originalEvent.type&&E){var M=Ne(E),A=I||Te(M.elementFromPoint(N.clientX,N.clientY)),S=(o=N.clientX,r=N.clientY,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 o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(A,function(e){var t=Ne(e);return t&&t.defaultView||window}(E)),a={x:0,y:0},s=50,o-i.left<s?a.x=-(s-(o-i.left)):i.right-o<s&&(a.x=s-(i.right-o)),r-i.top<s?a.y=-(s-(r-i.top)):i.bottom-r<s&&(a.y=s-(i.bottom-r)),a);f({x:P&&!1===P.horizontal?0:S.x,y:P&&!1===P.vertical?0:S.y}),p(0!==S.y||0!==S.x)}!e.drag&&x.onDragStart&&x.onDragStart(N),x.onDrag&&x.onDrag(N);var j=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,c=s-r;if(i<a&&r<s){var u=o.width*o.height,p=n.width*n.height,d=l*c;return Number((d/(u+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(D||E,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(D||E)}))),L=e.drops.find((function(e){return e.element===j}));L&&j&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(N.clientX,N.clientY,I||Te(j))&&j!==E?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N),L.onDragEnter&&L.onDragEnter(N)):L.onDragOver&&L.onDragOver(N):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}b({x:N.clientX,y:N.clientY}),g({x:N.pageX,y:N.pageY});break;case Pe.POINTER_UP:if(N.type===Pe.POINTER_UP&&!N.originalEvent.isPrimary)break;case Pe.MOUSE_UP:case Pe.TOUCH_END:if(N.type===Pe.TOUCH_END&&1!==N.originalEvent.touches.length)break;case Pe.END:c(!1),p(!1),w({x:0,y:0}),x.onRelease&&x.onRelease(N),e.drop&&e.drop.onDrop&&e.drop.onDrop(N),e.drag&&x.onDragEnd&&x.onDragEnd(N);break;case Pe.POINTER_CANCEL:case Pe.CONTEXT_MENU:case Pe.TOUCH_CANCEL:case Pe.CANCEL:c(!1),p(!1),w({x:0,y:0}),x.onDragEnd&&x.onDragEnd(N),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}},Se=function(e,t){if(e){var n,o;e===Re(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,s=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},je=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],s=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):s(e[0])}]};function Le(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?w:o,i=t.onRelease,a=void 0===i?w:i,s=t.onDragStart,l=void 0===s?w:s,u=t.onDrag,p=void 0===u?w:u,d=t.onDragEnd,f=void 0===d?w:d,m=n.hint,h=void 0===m?null:m,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,k=n.scrollContainer,C=void 0===k?null:k,O=c.useState(!1),x=O[0],E=O[1],D=c.useState(!1),P=D[0],I=D[1],N=je(Oe)[0],R=je(Ce),_=R[0],T=R[1],M=c.useContext(Ee)[0],A=c.useContext(xe),S=A[0],j=A[1],L=A[2],z=c.useRef({x:0,y:0}),B=c.useRef(),F=c.useRef(!1),K=c.useRef(),U=c.useRef(null),H=c.useRef(!1),W=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),X=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),G=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),$=Boolean("undefined"!=typeof window&&window.PointerEvent),Z=!g&&$,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return h&&h.current&&h.current.element?h.current.element:h?h.current:null}),[h]),ee=c.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),te=c.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:he,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:ve,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:_?_.current:null,drop:N?N.current:null,drags:S.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:G.current,offset:W.current,pageOffset:Y.current,initialScrollOffset:q.current,clientOffset:X.current,initialClientOffset:V.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[_,N,S,M,x,b,te,P]),ae=c.useCallback((function(e){E(e)}),[]),se=c.useCallback((function(e){I(e)}),[]),le=c.useCallback((function(e){z.current=e}),[]),ce=c.useCallback((function(e){W.current=e}),[]),ue=c.useCallback((function(e){X.current=e}),[]),pe=c.useCallback((function(e){Y.current=e}),[]),de=c.useCallback((function(e){V.current=e}),[]),fe=c.useCallback((function(e){G.current=e}),[]),me=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){r(e)}),[r]),ve=c.useCallback((function(e){a(e)}),[a]),ge=c.useCallback((function(t){T(ne,{target:e.current,event:t}),l(t)}),[T,e,l]),ye=c.useCallback((function(e){p(e)}),[p]),be=c.useCallback((function(t){H.current||(T(null,{target:e.current,event:t}),f(t))}),[f,T,e]),ke=c.useCallback((function(e){Ae(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:me,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ce,pe,ue,de,me,ae,fe,se]),we=c.useCallback((function(e){ke(e)}),[ke]),De=c.useCallback((function(e){ke(e)}),[ke]),Pe=c.useCallback((function(e){ke(e)}),[ke]),Ie=c.useCallback((function(e){ke(e)}),[ke]),Ne=c.useCallback((function(e){ke(e)}),[ke]),Re=c.useCallback((function(e){ke(e)}),[ke]),_e=c.useCallback((function(e){ke(e)}),[ke]),Me=c.useCallback((function(e){e.preventDefault(),ke(e)}),[ke]),Le=c.useCallback((function(e){e.preventDefault(),ke(e)}),[ke]),ze=c.useCallback((function(e){e.preventDefault(),ke(e)}),[ke]),Be=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();F.current=!0,K.current=t.setTimeout((function(){F.current=!1}),2e3)}ke(e)}),[ke,re]),Fe=c.useCallback((function(e){ke(e)}),[ke]),Ke=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ue=c.useCallback((function(){return j(ne),function(){L(ne)}}),[L,j]);c.useEffect((function(){var e=re();if(P){var t=ee()||Te(document.elementFromPoint(X.current.x,X.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){Se(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[J,ee,re,P]),c.useEffect(Ke,[Ke]),c.useEffect((function(){var e=re(),t=J(),n=oe();return Z?(t&&(U.current=Te(t),U.current&&U.current.addEventListener("scroll",Fe,{passive:!0}),t.addEventListener("pointerdown",we,{passive:!0})),x&&(n.addEventListener("pointermove",De),n.addEventListener("pointerup",Ie,!0),n.addEventListener("contextmenu",Me),n.addEventListener("pointercancel",Pe,{passive:!0}))):(e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Ne,{passive:!0}),g||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",ze,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",_e,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Fe),t&&(t.removeEventListener("pointerdown",we),t.removeEventListener("mousedown",Ne),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",ze),t.removeEventListener("touchend",Be)),n.removeEventListener("pointermove",De),n.removeEventListener("pointerup",Ie,!0),n.removeEventListener("contextmenu",Me),n.removeEventListener("pointercancel",Pe),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",_e),e.removeEventListener("touchmove",w),e.clearTimeout(K.current)}}),[x,re,J,oe,g,Z,Me,Ne,Re,_e,Pe,we,De,Ie,Be,ze,Le,Fe]),c.useEffect((function(){return function(){H.current=!0}}),[]),c.useLayoutEffect(Ue,[Ue])}var ze=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),s=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),l=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),u=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return Le(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:w,onDragOver:w,onDragLeave:w,onDrop:w});var n=t.onDragEnter,o=void 0===n?w:n,r=t.onDragOver,i=void 0===r?w:r,a=t.onDragLeave,s=void 0===a?w:a,l=t.onDrop,u=void 0===l?w:l,p=je(Oe)[1],d=c.useContext(Ee),f=d[1],m=d[2],h=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=c.useRef(null);c.useImperativeHandle(v,(function(){return{element:h(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:k,data:e.current}}));var g=c.useCallback((function(t){p(v,{target:e.current,event:t}),o(t)}),[p,e,o]),y=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),k=c.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),C=c.useCallback((function(){return f(v),function(){m(v)}}),[m,f]);c.useLayoutEffect(C,[C])}ze.displayName="KendoReactDraggable";var Fe=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),l=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Be(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));Fe.displayName="KendoReactDroppable";var Ke=n(697);function Ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function He(e,t){void 0===t&&(t=Ue);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}},697:(e,t,n)=>{n.d(t,{G:()=>o});var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},6:(e,t,n)=>{n.d(t,{s:()=>r});var o=n(302);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},302:e=>{e.exports=n},499:e=>{e.exports=r},189:e=>{e.exports=t},899:t=>{t.exports=e},994:e=>{e.exports=o}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.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.processListBoxDragAndDrop=e.moveItem=e.processListBoxData=e.ListBoxToolbar=e.ListBox=void 0;var t=s(873);Object.defineProperty(e,"ListBox",{enumerable:!0,get:function(){return t.ListBox}});var n=s(943);Object.defineProperty(e,"ListBoxToolbar",{enumerable:!0,get:function(){return n.ListBoxToolbar}});var o=s(706);Object.defineProperty(e,"processListBoxData",{enumerable:!0,get:function(){return o.processListBoxData}}),Object.defineProperty(e,"moveItem",{enumerable:!0,get:function(){return o.moveItem}}),Object.defineProperty(e,"processListBoxDragAndDrop",{enumerable:!0,get:function(){return o.processListBoxDragAndDrop}})})(),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-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactListbox=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):e.KendoReactListbox=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactDOM,e.KendoReactIntl)}(self,(function(e,t,n,o,r){return(()=>{"use strict";var i={873:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0;var a=n(899),s=n(189),l=n(556),c=n(719),u=n(556),p=n(363),d=function(e){function t(t){var n=e.call(this,t)||this;return n.setSelected=function(e){if(n.props.selectedField)return!!e[n.props.selectedField]},n.renderItem=function(e){return n.props.textField?e[n.props.textField]:e.toString()},n.handleKeyDown=function(e){n.props.onKeyDown&&(0,l.dispatchEvent)(n.props.onKeyDown,e,n,void 0)},n.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(n.props.data.length>0?(0,l.dispatchEvent)(n.props.onDrop,e,n,{dataItem:n.props.data[n.props.data.length-1]}):(0,l.dispatchEvent)(n.props.onDrop,e,n,{dataItem:null}))},n.setToolbarPosition=function(){return n.props.toolbarPosition===c.toolbarPosition.NONE||void 0===n.props.toolbar?"":"k-listbox-actions-".concat(n.props.toolbarPosition)},n.handleOnDragLeave=function(e){n.props.onDragLeave&&e.target.classList.contains("k-list-scroller")&&(0,l.dispatchEvent)(n.props.onDragLeave,e,n,void 0)},(0,u.validatePackage)(p.packageMetadata),n}return r(t,e),t.prototype.render=function(){var e,t=this;return a.createElement("div",{className:(0,l.classNames)(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&"bottom"!==this.props.toolbarPosition&&a.createElement(this.props.toolbar,null),a.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop,onDragLeave:this.handleOnDragLeave},a.createElement("div",{className:(0,l.classNames)("k-list",(e={},e["k-list-".concat(l.kendoThemeMaps.sizeMap[this.props.size]||this.props.size)]=this.props.size,e))},a.createElement("div",{className:"k-list-content"},a.createElement("ul",{className:"k-list-ul",role:"listbox","aria-label":"listbox-container",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map((function(e,n){var o=t.setSelected(e),r=(0,l.guid)(),s={className:(0,l.classNames)("k-list-item",{"k-selected":o}),role:"option","aria-selected":o,key:n,id:r+n,"data-uid":r+n,draggable:t.props.draggable,onDragStart:function(n){return(0,l.dispatchEvent)(t.props.onDragStart,n,t,{dataItem:e})},onDragOver:function(n){n.preventDefault(),(0,l.dispatchEvent)(t.props.onDragOver,n,t,{dataItem:e})},onDrop:function(n){return(0,l.dispatchEvent)(t.props.onDrop,n,t,{dataItem:e})},onClick:function(n){return(0,l.dispatchEvent)(t.props.onItemClick,n,t,{dataItem:e})}};return t.props.item?a.createElement(t.props.item,i({selected:o,dataItem:e},s),a.createElement("span",{className:"k-list-item-text"},e.name)):a.createElement("li",i({},s),a.createElement("span",{className:"k-list-item-text"},t.renderItem(e)))})))))),this.props.toolbar&&"bottom"===this.props.toolbarPosition&&a.createElement(this.props.toolbar,null),a.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map((function(e,n){var o=e[t.props.valueField||t.props.textField];return a.createElement("option",{key:n,value:o},o)}))))},t.propTypes={size:s.oneOf([null,"small","medium","large"]),toolbarPosition:s.oneOf(["none","top","bottom","left","right"]),textField:s.string,valueField:s.string,selectedField:s.string,data:s.array},t.defaultProps={toolbarPosition:c.toolbarPosition.RIGHT,draggable:!0,size:"medium"},t}(a.PureComponent);t.ListBox=d},943:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ListBoxToolbar=void 0;var i=n(899),a=n(556),s=n(389),l=n(499),c=n(364),u=n(189),p=[{name:"moveUp",iconName:"caret-alt-up"},{name:"moveDown",iconName:"caret-alt-down"},{name:"transferTo",iconName:"caret-alt-right"},{name:"transferFrom",iconName:"caret-alt-left"},{name:"transferAllTo",iconName:"caret-double-alt-right"},{name:"transferAllFrom",iconName:"caret-double-alt-left"},{name:"remove",iconName:"x"}],d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleToolClick=function(e,n){(0,a.dispatchEvent)(t.props.onToolClick,e,t,{toolName:n})},t.isItemDisabled=function(e){var n=!0,o=t.props.selectedField||"selected",r=t.props.data.length,i=t.props.dataConnected.length,a=t.props.data.findIndex((function(e){return!0===e[o]}))>=0,s=t.props.dataConnected.findIndex((function(e){return!0===e[o]}))>=0;switch(e){case"moveUp":n=a?!(t.props.data.length>0)||t.props.data[0].selected:!s||!(t.props.dataConnected.length>0)||t.props.dataConnected[0].selected;break;case"moveDown":n=a?!t.props.data[r-1]||t.props.data[r-1].selected:!s||!(t.props.dataConnected.length>0)||t.props.dataConnected[i-1].selected;break;case"transferTo":n=!(t.props.dataConnected&&a);break;case"transferFrom":n=!t.props.dataConnected||!(t.props.dataConnected&&s);break;case"transferAllTo":n=!(t.props.dataConnected&&t.props.data.length>0);break;case"transferAllFrom":n=!(t.props.dataConnected&&t.props.dataConnected.length>0);break;case"remove":n=!(a||s)}return n},t}return r(t,e),t.prototype.render=function(){var e=this,t=(0,l.provideLocalizationService)(this);return i.createElement("div",{className:(0,a.classNames)("k-listbox-actions")},this.props.tools&&this.props.tools.map((function(n,o){var r=p.findIndex((function(e){return e.name===n})),a=p[r],l=e.isItemDisabled(a.name),u="listbox.".concat(a.name),d=t.toLanguageString(u,c.messages[u]);return i.createElement(s.Button,{key:o,disabled:l,"data-command":a.name,title:d,"aria-label":d,icon:a.iconName,onClick:function(t){t.preventDefault(),e.handleToolClick(t,a.name||null)}})})))},t.propTypes={data:u.array,dataConnected:u.array,tools:u.array,selectedField:u.string},t.defaultProps={data:[],dataConnected:[],selectedField:"selected"},t}(i.PureComponent);t.ListBoxToolbar=d,(0,l.registerForLocalization)(d)},719:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toolbarPosition=void 0,(n=t.toolbarPosition||(t.toolbarPosition={})).TOP="top",n.BOTTOM="bottom",n.LEFT="left",n.RIGHT="right",n.NONE="none"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.remove=t.transferAllFrom=t.transferAllTo=t.transferFrom=t.transferTo=t.moveDown=t.moveUp=void 0,t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((n={})[t.moveUp]="Move Up",n[t.moveDown]="Move Down",n[t.transferTo]="Transfer To",n[t.transferFrom]="Transfer From",n[t.transferAllTo]="Transfer All To",n[t.transferAllFrom]="Transfer All From",n[t.remove]="Delete",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673301162,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"}},706:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.processListBoxDragAndDrop=t.moveItem=t.processListBoxData=void 0,t.processListBoxData=function(e,o,r,i){void 0===e&&(e=[]),void 0===o&&(o=[]);var a=[],s=[],l=[],c={listBoxOneData:e,listBoxTwoData:o};switch(r){case"moveUp":(a=n([],e,!0)).forEach((function(e,n){e[i]&&(a=(0,t.moveItem)(n,n-1,a))})),(l=n([],o,!0)).forEach((function(e,n){e[i]&&(l=(0,t.moveItem)(n,n-1,l))})),c.listBoxOneData=a,c.listBoxTwoData=l;break;case"moveDown":(a=e.reverse()).forEach((function(e,n){e[i]&&(a=(0,t.moveItem)(n,n-1,a))})),(l=o.reverse()).forEach((function(e,n){e[i]&&(l=(0,t.moveItem)(n,n-1,l))})),c.listBoxOneData=n([],a,!0).reverse(),c.listBoxTwoData=n([],l,!0).reverse();break;case"transferTo":a=e.filter((function(e){return!e[i]})),s=e.filter((function(e){return e[i]})),l=o.concat(s),c.listBoxOneData=a,c.listBoxTwoData=l;break;case"transferFrom":l=o.filter((function(e){return!e[i]})),s=o.filter((function(e){return e[i]})),a=e.concat(s),c.listBoxOneData=a,c.listBoxTwoData=l;break;case"transferAllTo":c.listBoxOneData=[],c.listBoxTwoData=o.concat(e);break;case"transferAllFrom":c.listBoxOneData=o.concat(e),c.listBoxTwoData=[];break;case"remove":l=o.filter((function(e){return!e[i]})),a=e.filter((function(e){return!e[i]})),c.listBoxOneData=a,c.listBoxTwoData=l}return c},t.moveItem=function(e,t,n){var o=n.splice(e,1)[0];return n.splice(t,0,o),n},t.processListBoxDragAndDrop=function(e,o,r,i,a){void 0===e&&(e=[]),void 0===o&&(o=[]);var s=e.findIndex((function(e){return e[a]===r[a]})),l=o.findIndex((function(e){return e[a]===r[a]})),c=null!==i?e.findIndex((function(e){return e[a]===i[a]})):-1,u=null!==i?o.findIndex((function(e){return e[a]===i[a]})):-1,p=s>=0,d=l>=0,f=c>=0,m=u>=0,h=n([],e,!0),v=n([],o,!0);return p&&f?{listBoxOneData:(0,t.moveItem)(s,c,e),listBoxTwoData:o}:d&&m?{listBoxOneData:e,listBoxTwoData:(0,t.moveItem)(l,u,o)}:p&&(m||null===i)?(null===i?v.push(e[s]):v.splice(u+1,0,e[s]),h.splice(s,1),{listBoxOneData:h,listBoxTwoData:v}):d&&(f||null===i)?(null===i?h.push(o[l]):h.splice(c+1,0,o[l]),v.splice(l,1),{listBoxOneData:h,listBoxTwoData:v}):{listBoxOneData:e,listBoxTwoData:o}}},389:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>d,ButtonGroup:()=>g,Chip:()=>at,ChipList:()=>nt,DropDownButton:()=>Ae,DropDownButtonItem:()=>_e,FloatingActionButton:()=>ht,FloatingActionButtonItem:()=>ct,SplitButton:()=>Ne,SplitButtonItem:()=>x,Toolbar:()=>Le,ToolbarItem:()=>Be,ToolbarSeparator:()=>Ke,ToolbarSpacer:()=>Ue,toolbarButtons:()=>m});var o,r=n(899),i=n(189),a=n(47),s=n(697),l=n(6),c={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673300411,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"},u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},d=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},(0,l.s)(c),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,n=this,o=this.props,i=o.children,l=o.togglable,c=o.icon,u=o.iconClass,d=o.imageUrl,f=o.imageAlt,m=(o.className,o.onClick,o.size),h=void 0===m?t.defaultProps.size:m,v=o.rounded,y=void 0===v?t.defaultProps.rounded:v,g=o.fillMode,b=void 0===g?t.defaultProps.fillMode:g,k=o.themeColor,w=void 0===k?t.defaultProps.themeColor:k,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","rounded","fillMode","themeColor"]),O=void 0!==c||void 0!==u||void 0!==d,x=void 0!==i,E=function(e){var t=e.imageUrl,n=e.icon,o=e.iconClass,i=e.imageAlt;if(t)return r.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var s=(0,a.A)("k-button-icon k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:(0,a.A)("k-button-icon",o)}):null}({icon:c,iconClass:u,imageUrl:d,imageAlt:f});return r.createElement("button",p({ref:function(e){return n._element=e},"aria-pressed":l?this.state.selected:void 0},C,{onClick:this.handleClick,className:(0,a.A)("k-button",(e={},e["k-button-".concat(s.G.sizeMap[h]||h)]=h,e["k-button-".concat(b)]=b,e["k-button-".concat(b,"-").concat(w)]=Boolean(b&&w),e["k-rounded-".concat(s.G.roundedMap[y]||y)]=y,e["k-icon-button"]=!x&&O,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),E,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),f=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",m=["button"+f,".k-button-group > button"+f,".k-dropdownlist",".k-colorpicker"];var h=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),v=function(){return v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},y={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},g=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(c),n}return h(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=(0,a.A)([y["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[y["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",v({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,s=(0,a.A)(e.props.className,((i={})[y["group-start"]]=o?n:0===t,i[y["group-end"]]=o?0===t:n,i)),l=v(v({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=v(v(v(v({},e.props),s?{className:s}:{}),Object.keys(l).length?{style:l}:{}),void 0!==c?{disabled:c}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),b=n(198),k=n(493),w=n(407),C=function(e){var t,n=r.useCallback((function(t){e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),i=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=r.createElement("li",{id:e.id,className:(0,a.A)("k-item",e.className,{"k-focus":e.focused}),tabIndex:-1,onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},r.createElement("span",{tabIndex:-1,className:(0,a.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},o?r.createElement(o,{item:e.dataItem,itemIndex:e.index}):r.createElement(r.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&r.createElement("span",{className:(0,a.A)("k-icon",(t={},t["k-i-".concat(e.dataItem.icon)]=e.dataItem.icon,t["".concat(e.dataItem.iconClass)]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&r.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),i&&r.createElement("span",{className:"k-menu-link-text"},i))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};C.displayName="KendoReactButtonItem";var O=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(r.Component),E=function(e,t,n,o){if(n)return e;var r=Math.min(o-1,Math.max(0,e));switch(t){case k.R.enter:case k.R.space:case k.R.esc:return-1;case k.R.up:case k.R.left:return r-1<0?o-1:r-1;case k.R.down:case k.R.right:return r+1>=o?0:r+1;case k.R.home:return 0;case k.R.end:return o-1;default:return e}},D=n(994),P=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},I="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),N=n(827),R=n(259);const _="bottom",T="center",M="middle",A="left",S="right",j="top",L="fit",z="flip",B="none";var F,K,U,H=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},W=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&a!==T&&a!==M&&i!==T&&i!==M){var c=i===j||i===A;t<0&&c?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!c&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},Y=(F=function(e){if(!X())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},U=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return U||(K=F.apply(void 0,e),U=!0),K}),X=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const V={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:Y,canUseDOM:X};function G(e){return e.ownerDocument||e.document||e}const q=function(e){return G(e).defaultView},$=function(e){return G(e).documentElement};var Z=0;function J(){if(!Z&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),Z=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Z}function Q(e){var t=q(e),n=$(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=J()),o}function ee(e){var t=$(e),n=q(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const te=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}};function ne(e){return e===(e.ownerDocument||{}).body?ee(e):{x:e.scrollLeft,y:e.scrollTop}}const oe=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||$(e)};function re(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function ie(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var ae=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],se=function(){return V.canUseDOM()?window:null},le=/auto|scroll/,ce=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},ue=function(e){if(!e||!V.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},pe=function(){return V.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},de={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,c=r.vertical,u=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return s===_&&(d+=t.height),s!==T&&s!==M||(d+=Math.round(t.height/2)),c===_&&(d-=o.height,p*=-1),c!==T&&c!==M||(d-=Math.round(o.height/2),p*=-1),a===S&&(f+=t.width),a!==T&&a!==M||(f+=Math.round(t.width/2)),l===S&&(f-=o.width,u*=-1),l!==T&&l!==M||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=Q(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=se();if(!t||!e)return[];var n=t.getComputedStyle(e);return ae.map((function(e){return{key:e,value:n[e]}}))},getWindow:se,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?te(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=te(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?oe(t):null,r=function(e,t){var n=q(e),o=n.getComputedStyle(e),r=te(e),i=t||oe(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var c=n.getComputedStyle(i);(l=te(i)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}}(e,o),i=r.top,a=r.left,s=r.height,l=r.width,c=function(e,t){return e?ne(e):function(e){var t=oe(e);return t?ne(t):{x:0,y:0}}(t)}(o,e),u=c.x,p=c.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:a+u*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,c=o.left,u=o.height,p=o.width,d=a.height,f=a.width,m=s.horizontal||0,h=s.vertical||0,v=0,y=0,g=i.vertical===L,b=i.horizontal===L,k=i.vertical===z,w=i.horizontal===z;g&&(y+=H(l,u,d)),b&&(v+=H(c,p,f)),k&&(y+=W({margin:h,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=W({margin:m,offset:c,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=k&&0!==y,O=w&&0!==v,x=g&&0!==y,E=b&&0!==v;return{flipped:O||C,fitted:x||E,flip:{horizontal:O,vertical:C},fit:{horizontal:E,vertical:x},offset:{left:v,top:y}}},scrollPosition:ee,scrollableParents:function(e){var t=[];if(!V.canUseDOM())return t;for(var n=e.parentElement;n;)(le.test(ce(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:ue,stackingElementOffset:function(e){var t=ue(e);return t?te(t):null},stackingElementScroll:function(e){var t=ue(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=ue(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(ue(e))},windowViewPort:Q,zoomLevel:pe,isZoomed:function(){return pe()>1},zIndex:function(e,t){if(!e||!V.canUseDOM())return null;var n=function(e,t){for(var n,o,r=re(e),i=t;i&&(n=ie(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}(e,t);if(!n)return null;var o=[e].concat(re(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}};const fe=de;const me=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,c="fixed"!==s&&fe.hasOffsetParent(n)?function(e,t,n,o){var r=V.eitherRect(fe.position(e,t,o),n);return V.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:fe.scrollPosition(t)}(e,t),i=V.eitherRect(fe.offset(e),n),a=2*o,s=fe.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=fe.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),fe.removeScroll(fe.addScroll(V.removeStackingOffset(V.scaleRect(i,o),l),s),r)}(t,n,a,l),u=V.scaleRect(fe.offset(n),l);return fe.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var he={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673300388,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"},ve=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ye=function(){return ye=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ye.apply(this,arguments)};function ge(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var be,ke={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(be||(be={}));var we="k-animation-container-shown",Ce=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:be.hidden,previous:be.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:be.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,c=t.scale,u=t.positionMode,p=e.style,d=p.width,f=p.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var m=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,c=fe.offsetAtPoint(o,n),u=V.scaleRect(c,l),p=V.scaleRect(fe.offset(t),l),d=V.eitherRect(p,n),f=e.viewPort||fe.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var m=fe.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:f}),h=fe.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:h}}({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:me({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:u,scale:c}),margin:n.props.margin});if(e.style.top=m.offset.top+"px",e.style.left=m.offset.left+"px",e.style.width=d,e.style.height=f,n._collisions={fit:m.fit,fitted:m.fitted,flip:m.flip,flipped:m.flipped},n.props.onPosition){var h={target:n,flipped:m.flipped,fitted:m.fitted};n.props.onPosition.call(void 0,h)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(we),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,a=i.horizontal,s=i.vertical;r="left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),P(e),e.style.display="exit"===o?"none":"",r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var c=l.defaultView;if(c){var u=function(){P(e),e.classList.add(i),c.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};I?c.requestAnimationFrame(u):u()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(we),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===be.hiding&&n.state.previous===be.shown&&n.setState({current:be.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,l.s)(he),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=void 0,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=void 0,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=void 0),s=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,u)),a}}(n.reposition.bind(n),16.666666666666668),n}return ve(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,p=e.offset,d=e.contentKey,f=ye(ye({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:c,style:u,offset:p,contentKey:d}});return e.show?t.current===be.hidden||t.current===be.hiding?ye(ye({},f),{current:be.showing,previous:t.current}):t.current===be.showing?ye(ye({},f),{current:be.shown,previous:t.current}):t.current!==be.shown||ge(p,t.props.offset)&&ge(r,t.props.anchorAlign)&&ge(i,t.props.appendTo)&&ge(a,t.props.collision)&&ge(s,t.props.popupAlign)&&ge(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:ye(ye({},f),{current:be.reposition,previous:t.current}):t.current===be.hiding||t.current===be.hidden?ye(ye({},f),{current:be.hidden,previous:t.current}):ye(ye({},f),{current:be.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===be.showing&&this._popup?this.show(this._popup):this.state.current===be.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===be.reposition&&this.state.previous===be.shown?this.setState({current:be.shown,previous:this.state.current}):this.state.current===be.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===be.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,s=t.show,l=t.id,c=t.positionMode,u=this.props.appendTo?this.props.appendTo:N.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===be.reposition&&this.state.previous===be.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c,top:0,left:-1e4},this.props.style||{}),d=this.state.current===be.hiding;if((s||d)&&u){var f=this.getCurrentZIndex(),m=r.createElement(R.$.Provider,{value:f},r.createElement("div",{className:(0,a.A)("k-animation-container","k-animation-container-relative",o),id:l,ref:function(t){return e._popup=t},style:ye({zIndex:f},p)},r.createElement("div",{className:(0,a.A)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?D.createPortal(m,u):m}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=fe.scrollableParents(this.props.anchor||e),this._scrollableParents&&this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.setState({current:be.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([L,z,B]),vertical:i.oneOf([L,z,B])}),anchorAlign:i.shape({horizontal:i.oneOf([A,T,S]),vertical:i.oneOf([j,T,_])}),popupAlign:i.shape({horizontal:i.oneOf([A,T,S]),vertical:i.oneOf([j,T,_])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:L,vertical:z},anchorAlign:{horizontal:A,vertical:_},popupAlign:{horizontal:A,vertical:j},offset:ke,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=R.$,t.displayName="PopupComponent",t}(r.Component),Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oe.apply(this,arguments)},xe=r.createContext((function(e){return e})),Ee=r.forwardRef((function(e,t){var n=r.useContext(xe).call(void 0,e);return r.createElement(Ce,Oe({ref:t},n))}));function De(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Pe(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}Ee.displayName="Popup";var Ie=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ne=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.list=null,n.guid=(0,b.M)(),n.skipFocus=!1,n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==k.R.down?n.opened&&e.keyCode===k.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=void 0;if(e.keyCode===k.R.enter||e.keyCode===k.R.space?(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0&&(o={focusedIndex:n.opened?-1:0,opened:!n.opened},n.dispatchPopupEvent(e,o.opened))):n.opened&&e.keyCode===k.R.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=E(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===k.R.up||e.keyCode===k.R.down||e.keyCode===k.R.left||e.keyCode===k.R.right;e.altKey||!i&&e.keyCode!==k.R.home&&e.keyCode!==k.R.end||e.preventDefault()}o&&n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.onFocus=function(e){n.skipFocus||((0,w.N)(n.props.onFocus,e,n,void 0),n.setState({focused:!0}))},n.onItemClick=function(e,t){var o=n.opened;o&&n.setState({focusedIndex:0,opened:!1}),n.dispatchClickEvent(e,t),o&&n.dispatchPopupEvent(e,!1)},n.onBlur=function(e){n.skipFocus||(n.setState({focused:!1,focusedIndex:-1,opened:!1}),(0,w.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,opened:t,focused:!0})}},n.onDownSplitPart=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){(0,w.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Ie(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===x})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,l=o.style,c=o.tabIndex,u=o.disabled;return r.createElement("div",{id:i,style:l,className:(0,a.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(s.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:u||void 0,tabIndex:c,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":u,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),r.createElement(d,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",className:"k-split-button-arrow",disabled:u||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,w.N)(this.props.onButtonClick,e,this,void 0):(0,w.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(C,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onButtonClick:i.func,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,text:i.string,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.any,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),Re=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Re(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,selected:i.bool,disabled:i.bool,render:i.any},t}(r.Component),Te=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=function(){return Me=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Me.apply(this,arguments)},Ae=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.list=null,n.skipFocus=!1,n.guid=(0,b.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==k.R.down?n.opened&&e.keyCode===k.R.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=Me({},n.state);if(e.keyCode===k.R.enter||e.keyCode===k.R.space?(t>=0&&n.dispatchClickEvent(e,t),e.preventDefault(),o.focusedIndex=n.opened?-1:0,o.opened=!n.opened,n.dispatchPopupEvent(e,o.opened)):n.opened&&e.keyCode===k.R.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=E(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===k.R.up||e.keyCode===k.R.down||e.keyCode===k.R.left||e.keyCode===k.R.right;e.altKey||!i&&e.keyCode!==k.R.home&&e.keyCode!==k.R.end||e.preventDefault()}n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.handleFocus=function(e){n.skipFocus||(n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,w.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,w.N)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!1))},n.onItemClick=function(e,t){n.setState({focusedIndex:-1,opened:!1}),n.dispatchClickEvent(e,t),n.dispatchPopupEvent(e,!1)},n.onItemDown=function(e){document.activeElement===n.list&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault(),n.element&&document.activeElement!==n.element&&document.activeElement!==n.list&&n.element.focus()},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))}))},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({opened:t,focused:!0,focusedIndex:t?0:-1}),n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){(0,w.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Te(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.id,s=o.style,l=o.tabIndex,c=o.disabled;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===_e})).map((function(e){return e.props})),r.createElement("div",{id:i,style:s,className:(0,a.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(d,{size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:l,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,w.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,i=this.state.focusedIndex;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||De(e),popupAlign:o.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},r.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,"aria-activedescendant":i>=0?"".concat(this.guid,"-").concat(i):void 0,ref:this.listRef,className:(0,a.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(C,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,ariaLabel:i.string,title:i.string,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),Se=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),je=function(){return je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},je.apply(this,arguments)},Le=function(e){function t(n){var o=e.call(this,n)||this;return o._element=null,o.offsetHeight=0,o.offsetWidth=0,o.buttons=[],o.focusedSelector=o.selectors.map((function(e){return e+":focus"})).join(","),o.setTabIndex=function(e){var n=o.props.tabIndex,r=void 0===n?t.defaultProps.tabIndex:n;o.buttons.forEach((function(t,n){t.tabIndex=n===e?r:-1}))},o.onKeyDown=function(e){var t=e.target;if((e.keyCode===k.R.left||e.keyCode===k.R.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===k.R.left?o.focusButton(n,n-1):o.focusButton(n,n+1)}},o.onWindowResize=function(e){var t=o.element;if(t){var n=t.offsetWidth,r=t.offsetHeight;if(o.offsetWidth!==n||o.offsetHeight!==r){o.offsetWidth=n,o.offsetHeight=r;var i={offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight};o.props.onResize&&o.props.onResize.call(void 0,je(je({target:o},i),{nativeEvent:e}))}}},(0,l.s)(c),o}return Se(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||m},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e,t=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-toolbar",(e={},e["k-toolbar-".concat(s.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,e),this.props.className),style:this.props.style,role:void 0!==this.props.role?this.props.role||void 0:"toolbar",dir:this.props.dir,ref:function(e){return t._element=e},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var o=this.props.tabIndex,r=void 0===o?t.defaultProps.tabIndex:o,i=this.buttons[n];if(i){i.tabIndex=r,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,role:i.string,onResize:i.func,buttons:i.arrayOf(i.string),size:i.oneOf([null,"small","medium","large"])},t.defaultProps={tabIndex:0,size:"medium"},t}(r.Component),ze=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return ze(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-toolbar-item",this.props.className),style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:i.string},t}(r.PureComponent),Fe=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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fe(t,e),t.prototype.render=function(){return r.createElement("div",{className:(0,a.A)("k-separator",this.props.className)})},t}(r.PureComponent),Ue=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useRef(null);r.useImperativeHandle(o,(function(){return{element:n.current}})),r.useImperativeHandle(t,(function(){return{element:n.current}}));var i=r.useMemo((function(){return(0,a.A)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));Ue.displayName="KendoReactToolbarSpacer",Ue.propTypes={className:i.string};var He,We,Ye,Xe,Ve=n(199),Ge=n(659),qe=n(322),$e=n(703),Ze=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(He||(He={})),function(e){e.toggle="toggle",e.remove="remove"}(We||(We={})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Ye||(Ye={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Xe||(Xe={}));var Je=function(){return Je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Je.apply(this,arguments)},Qe=r.createContext([null,function(e){}]),et=r.createContext([null,function(e){}]),tt=r.createContext([null,function(e){}]),nt=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ve.n)(i,e.dir),p=e.chip,d=e.id,f=e.style,m=e.tabIndex,h=e.disabled,v=e.size,y=e.className,g=e.ariaDescribedBy,b=e.ariaLabelledBy,k=e.selection,w=void 0===k?rt.selection:k,C=e.value,O=void 0===C?rt.defaultValue:C,x=e.defaultData,E=void 0===x?rt.defaultData:x,D=e.valueField,P=void 0===D?rt.valueField:D,I=e.textField,N=void 0===I?rt.textField:I,R=e.onChange,_=e.onDataChange,T=r.useMemo((function(){return p||at}),[p,at]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var M=r.useCallback((function(e,t){R&&o.current&&R.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[R]),A=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case He.single:switch(t.type){case We.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case We.remove:return t.payload===e?null:e;default:return e}case He.multiple:switch(t.type){case We.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):Ze(Ze([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case We.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):Ze(Ze([],e,!0),[t.payload],!1):e;default:return e}case He.none:return null;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(O,{selection:w,state:O},M),S=A[0],j=A[1],L=r.useCallback((function(e,t){_&&o.current&&_.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[_]),z=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.type){case Xe.add:break;case Xe.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Xe.reorder:break;default:return e}}(t.state||i,Je(Je({},e),t));n&&n(o,e.event),a(o)}]}(e.data||E,{state:e.data,valueField:P},L),B=z[0],F=z[1],K=r.useCallback((function(e,t){return e.push(t[P]),e}),[P]),U=r.useMemo((function(){return e.data||B}),[e.data,B]),H=r.useMemo((function(){return O||S}),[O,S]),W=r.useMemo((function(){return U.reduce(K,[])}),[U,K]),Y=r.useCallback((function(e){return(0,Ge.Y)(P)(e)}),[P]),X=r.useCallback((function(e){return(0,Ge.Y)(N)(e)}),[N]),V=function(e){var t=r.useState(null),n=t[0],o=t[1];return[n,function(t){var n=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case Ye.next:return n===t.items.length-1?e:t.items[n+1];case Ye.prev:return 0===n?e:t.items[n-1];case Ye.current:return t.payload;case Ye.reset:return null;default:return e}}(t.payload,Je(Je({},t),e));o(n)}]}({items:W}),G=V[0],q=V[1],$=(0,qe.i)(e,o);return r.createElement(Qe.Provider,{value:[H,j]},r.createElement(et.Provider,{value:[G,q]},r.createElement(tt.Provider,{value:[U,F]},r.createElement("div",Je({ref:i},$,{role:"listbox",id:d,dir:u,style:f,tabIndex:(0,$e.p)(m,h,void 0),className:(0,a.A)("k-chip-list",(n={"k-rtl":"rtl"===u,"k-disabled":h},n["k-chip-list-".concat(s.G.sizeMap[v]||v)]=v,n),y),"aria-labelledby":b,"aria-describedby":g}),U.map((function(e,t){return r.createElement(T,{role:"option",dataItem:e,size:v,key:[Y(e),t].join("-"),text:X(e),value:Y(e)})}))))))})),ot={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"])},rt={chip:at,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};nt.displayName="KendoReactChipList",nt.propTypes=ot,nt.defaultProps=rt;var it=function(){return it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},it.apply(this,arguments)},at=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,Ve.n)(i,e.dir);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var p=r.useContext(Qe),d=p[0],f=p[1],m=r.useContext(et),h=m[0],v=m[1],y=r.useContext(tt)[1],g=r.useMemo((function(){return e.selected||(Array.isArray(d)?d.some((function(t){return t===e.value})):d===e.value)}),[e.selected,e.value,d]),b=r.useMemo((function(){return h===e.value}),[e.value,h]);r.useEffect((function(){b&&i.current&&i.current.focus()}),[b]);var w=r.useCallback((function(t){f({type:We.toggle,payload:e.value,event:t})}),[f,e.value]),C=r.useCallback((function(t){e.removable&&(y({type:Xe.remove,payload:e.value,event:t}),v({type:Ye.reset,payload:e.value,event:t}),f({type:We.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,y,v,f]),O=r.useCallback((function(t){switch(t.keyCode){case k.R.left:v({type:Ye.prev,payload:e.value,event:t});break;case k.R.right:v({type:Ye.next,payload:e.value,event:t});break;case k.R.enter:f({type:We.toggle,payload:e.value,event:t});break;case k.R.delete:C(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,v,f,C]),x=r.useCallback((function(t){v({payload:e.value,type:Ye.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,v]),E=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),D=(0,qe.i)(e,o,{onClick:w});return r.createElement("div",it({},D,{role:e.role,id:e.value,style:e.style,ref:i,dir:u,tabIndex:(0,$e.p)(e.tabIndex,e.disabled,void 0),className:(0,a.A)("k-chip",(n={"k-rtl":"rtl"===u,"k-disabled":e.disabled,"k-selected":g,"k-focus":b},n["k-chip-".concat(s.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(s.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":g,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:x,onBlur:E,onKeyDown:O}),g&&e.selectedIcon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:(0,a.A)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:"k-chip-actions"},r.createElement("span",{className:(0,a.A)("k-chip-action","k-chip-remove-action")},r.createElement("span",{className:(0,a.A)("k-icon",e.removeIcon),onClick:C}))))})),st={id:i.string,text:i.string,value:i.any,dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"outline","solid"]),themeColor:i.oneOf([null,"base","info","success","warning","error"])};at.displayName="KendoReactChip",at.propTypes=st,at.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},lt.apply(this,arguments)},ct=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,l=e.style,c=e.id,u=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,m=e.item,h=e.onDown,v=e.onClick,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),g=r.useRef(null),b=r.useCallback((function(){g.current&&g.current.focus()}),[]),k=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){v&&void 0!==d&&!o&&v(e,d)}),[v,d]),C=r.useMemo((function(){return(0,a.A)("k-fab-item",{"k-focus":u,"k-disabled":o},n)}),[n,o,u]),O=m;return r.createElement("li",lt({ref:g,id:c,className:C,style:l,role:"menuitem",tabIndex:(0,$e.p)(p,o),"aria-disabled":o,"aria-label":"".concat(i||""," floatingactionbutton item"),onClick:w,onMouseDown:h,onPointerDown:h},y),O?r.createElement(O,{itemIndex:d,item:f}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),s&&r.createElement("span",{className:(0,a.A)("k-fab-item-icon k-icon k-i-".concat(s))})))}));ct.propTypes={className:i.string,style:i.object,children:i.any,disabled:i.bool,focused:i.bool,index:i.number,icon:i.string,text:i.string,tabIndex:i.number,customProp:i.any},ct.displayName="KendoFloatingActionButtonItem";var ut="16px",pt=function(e){return"number"==typeof e?e+"px":e},dt=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ft=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},mt=function(){return mt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},mt.apply(this,arguments)},ht=r.forwardRef((function(e,t){(0,l.s)(c);var n=e.align,o=void 0===n?vt.align:n,i=e.alignOffset,u=e.className,p=e.disabled,d=e.icon,f=e.iconClass,m=e.id,h=e.items,v=e.item,y=e.text,g=e.positionMode,C=void 0===g?vt.positionMode:g,O=e.size,x=void 0===O?vt.size:O,E=e.style,D=e.rounded,P=void 0===D?vt.rounded:D,I=e.themeColor,N=void 0===I?vt.themeColor:I,_=e.overlayStyle,T=e.tabIndex,M=e.accessKey,A=e.popupSettings,S=void 0===A?{}:A,j=e.modal,L=e.onClick,z=e.onItemClick,B=e.onFocus,F=e.onBlur,K=e.onKeyDown,U=e.onOpen,H=e.onClose,W=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),Y=(0,R.u)(),X=Y?Y+2:100,V=r.useRef(null),G=r.useRef(null),q=r.useRef(null),$=r.useRef(null),Z=r.useCallback((function(){G.current&&G.current.focus()}),[]),J=r.useCallback((function(){return{element:G.current,focus:Z}}),[Z]);r.useImperativeHandle(V,J),r.useImperativeHandle(t,(function(){return V.current}));var Q=r.useState(!1),ee=Q[0],te=Q[1],ne=r.useState(!1),oe=ne[0],re=ne[1],ie=r.useState(-1),ae=ie[0],se=ie[1],le=r.useMemo((function(){return(0,b.M)()}),[]),ce=(0,Ve.n)(G,e.dir),ue="rtl"===ce,pe=r.useMemo((function(){return(0,b.M)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?pt(n.x):ut,s=n&&void 0!==n.x?"calc(50% + ".concat(pt(n.x),")"):"50%",l=n&&void 0!==n.y?pt(n.y):ut,c=n&&void 0!==n.y?"calc(50% + ".concat(pt(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,o),"center"===r?s:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?c:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(G,o,i,ue)}),[G,o,i,ue]),r.useEffect((function(){oe&&G&&G.current&&G.current.focus()}),[oe,G]);var de=r.useCallback((function(e,t){h&&(0,w.N)(t?U:H,e,J(),void 0)}),[U,H,h]),fe=r.useCallback((function(e){e.target&&!p&&(!h&&L?(0,w.N)(L,e,J(),void 0):(te(!ee),re(!0),se(ee?-1:0),de(e,!ee)))}),[te,re,se,L,de,ee,h,p]),me=r.useCallback((function(e){re(!0),se(ee?0:-1),B&&(0,w.N)(B,e,J(),void 0)}),[B,re,se]),he=r.useCallback((function(e){re(!1),te(!1),se(-1),(0,w.N)(F,e,J(),void 0),ee&&de(e,!1)}),[F,re,te,se,de]),ve=r.useCallback((function(e){e.preventDefault()}),[]),ye=r.useCallback((function(e,t){h&&(h[t].disabled||(0,w.N)(z,e,J(),{itemProps:h[t],itemIndex:t}))}),[z]),ge=r.useCallback((function(e,t){e.target&&h&&(se(t),te(!1),ye(e,t),de(e,!1))}),[se,te,ye,de]),be=r.useCallback((function(e){document.activeElement===G.current&&e.preventDefault()}),[G,document.activeElement]),ke=r.useCallback((function(e){var t=ae,n=h?h.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case k.R.enter:case k.R.space:t>=0&&ye(e,t),e.preventDefault(),te(!ee),se(ee?-1:0);break;case k.R.esc:e.preventDefault(),te(!1),se(-1);break;case k.R.home:e.preventDefault(),se(0);break;case k.R.end:e.preventDefault(),se(n);break;case k.R.down:case k.R.right:e.preventDefault(),t<n&&!r&&se(t+1),t>0&&r&&se(t-1);break;case k.R.up:case k.R.left:e.preventDefault(),t>0&&!r&&se(t-1),t<n&&r&&se(t+1)}(0,w.N)(K,e,J(),void 0)}),[K,ae,se,ue,te]),we=r.useMemo((function(){var e;return(0,a.A)("k-fab k-fab-solid",((e={"k-fab-sm":"small"===x,"k-fab-md":"medium"===x,"k-fab-lg":"large"===x,"k-disabled":p,"k-pos-absolute":"absolute"===C,"k-pos-fixed":"fixed"===C,"k-focus":oe})["k-rounded-".concat(s.G.roundedMap[P]||P)]=P,e["k-fab-solid-".concat(N)]=N,e),"k-".concat(o.vertical,"-").concat(o.horizontal),u)}),[N,x,P,p,C,o,oe,u]),Ce=h&&h.map((function(e,t){return r.createElement(ct,mt({},e,{key:t,index:t,id:"".concat(pe,"-").concat(t),disabled:p||e.disabled,focused:ae===t,dataItem:e,item:v,className:(0,a.A)(e.className,(n=ce||"ltr",i=o.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===i?"end":"start"])),onClick:ge,onDown:be}));var n,i})),Oe=d&&!y,xe=(G.current?G.current.offsetWidth:0)/2-16;return r.createElement(R.$.Provider,{value:X},r.createElement(r.Fragment,null,r.createElement("button",mt({ref:G,id:m||le,role:h?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":h?ee:void 0,"aria-haspopup":!!h,"aria-label":"".concat(y||""," floatingactionbutton"),"aria-owns":h?pe:void 0,"aria-activedescendant":ae>=0&&h?"".concat(pe,"-").concat(ae):void 0,tabIndex:(0,$e.p)(T,p),accessKey:M,dir:ce,disabled:p,className:we,style:E,onClick:fe,onMouseDown:ve,onFocus:me,onBlur:he,onKeyDown:ke},W),d?r.createElement("span",{role:"presentation",className:(0,a.A)("k-fab-icon k-icon k-i-".concat(d))}):f?r.createElement("span",{role:"presentation",className:f}):null,y&&r.createElement("span",{className:"k-fab-text"},y)),j&&ee&&r.createElement("div",{className:"k-overlay",style:mt({zIndex:X},_)}),r.createElement(Ee,{ref:$,anchor:G.current,show:ee,animate:S.animate,popupClass:(0,a.A)("k-popup-transparent k-fab-popup",S.popupClass),anchorAlign:S.anchorAlign||dt(o,ue),popupAlign:S.popupAlign||ft(o,ue),style:{boxShadow:"none"}},r.createElement("ul",{ref:q,role:"menu","aria-labelledby":m,id:pe,className:(0,a.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:Oe?xe:void 0,paddingRight:Oe?xe:void 0}},Ce))))}));ht.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),themeColor:i.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:i.bool,overlayStyle:i.object};var vt={align:{vertical:"bottom",horizontal:"end"},size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};ht.displayName="KendoFloatingActionButton"},827:(e,t,n)=>{n.d(t,{N:()=>o});var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},47:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},259:(e,t,n)=>{n.d(t,{$:()=>r,u:()=>i});var o=n(899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},407:(e,t,n)=>{function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,{N:()=>o})},100:(e,t,n)=>{n.d(t,{E:()=>r});var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},703:(e,t,n)=>{n.d(t,{p:()=>o});var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},659:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(100),r={};function i(e){if(r[e])return r[e];var t=(0,o.E)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},198:(e,t,n)=>{n.d(t,{M:()=>o});var o=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}},199:(e,t,n)=>{n.d(t,{n:()=>r});var o=n(899);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},322:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(899),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},493:(e,t,n)=>{n.d(t,{R:()=>o});var o={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}},556:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>U,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>q,DragAndDrop:()=>De,Draggable:()=>ze,Droppable:()=>Fe,FormComponent:()=>v,Icon:()=>re,Keys:()=>k.R,SvgIcon:()=>se,Typography:()=>be,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>p,cloneArray:()=>m,cloneDate:()=>u,cloneObject:()=>d,cloneValue:()=>f,createPropsContext:()=>Y,dispatchEvent:()=>z.N,extendDataItem:()=>A,focusFirstFocusableChild:()=>h,getItemPath:()=>S,getScrollbarWidth:()=>C,getTabIndex:()=>y.p,getter:()=>g.Y,guid:()=>b.M,hasRelativeStackingContext:()=>L,kendoThemeMaps:()=>Ke.G,mapTree:()=>T,mapTreeItem:()=>M,memoizeOne:()=>He,noop:()=>w,setScrollbarWidth:()=>O,setter:()=>P,useAsyncFocusBlur:()=>F,useCollection:()=>J,useCustomComponent:()=>Z,useDir:()=>V.n,useDocument:()=>Q,useDraggable:()=>Le,useDroppable:()=>Be,useMouse:()=>$.i,usePropsContext:()=>H,useRtl:()=>G,useWindow:()=>ee,useZIndexContext:()=>o.u,validatePackage:()=>j.s,withPropsContext:()=>X});var o=n(259),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}(),a=n(827),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))},l=n(47),c=n(899),u=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=f(o,t[n])}}function f(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return u(e);if(c.isValidElement(e))return c.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function m(e){return e.map((function(e){return f(e,void 0)}))}var h=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},v=function(){},y=n(703),g=n(659),b=n(198),k=n(493),w=function(){},C=function(){return!(!a.N||!document.body)&&(new i).scrollbarWidth},O=function(){if(!a.N||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))},x=n(100),E={undefined:function(e){return e}},D=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function P(e){if(E[e])return E[e];var t=(0,x.E)(e);return E[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||D(t[a+1],o);r[t[i]]=n},E[e]}var I=function(){return I=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)},N=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function R(e,t,n){var o;return n?I(I({},e),((o={})[t]=n.length?N([],n,!0):void 0,o)):e&&e[t]?N([],e[t],!0):[]}function _(e,t,n){if(e[t]){var o=R(e,t).map((function(e){return _(e,t,n)}));return n(R(e,t,o))}return n(e)}var T=function(e,t,n){return N([],e.map((function(e){return _(e,t,n)})),!0)},M=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],c=o(s[l]);s.splice(l,1,c)},A=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},S=function(e,t,n){var o=[],r=N([],t,!0);if(r.length){var i=e[r.shift()||0];for(o.push(i);r.length&&n;)i=i[n][r.shift()||0],o.push(i)}return o},j=n(6),L=function(e){if(!a.N)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r},z=n(407),B=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function F(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),a=c.useRef(0),s=c.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call(void 0,e[0]),i.current||(i.current=!0,t&&t.call.apply(t,B([void 0],e,!1)))}),[i,t,o]),u=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call(void 0,e[0]),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,B([void 0],e,!1)))}))}),[i,s,n,r]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var K=function(){return K=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},K.apply(this,arguments)},U=function(e){var t=e.children,n=F({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return c.createElement(c.Fragment,null,t.call(void 0,K({},n)))},H=function(e,t){return c.useContext(e)(t)},W=function(){return W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},W.apply(this,arguments)},Y=function(){return c.createContext((function(e){return e}))},X=function(e,t){return c.forwardRef((function(n,o){var r=H(e,n);return c.createElement(t,W({},r,{ref:o}))}))},V=n(199);function G(e,t,n){var o=c.useState(t),r=o[0],i=o[1];return c.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,$=n(322),Z=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var J=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case q.add:t.current.push(e.item);break;case q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Q=function(e){var t=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return c.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},ee=function(e){var t=Q(e);return c.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},te=n(189),ne={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oe.apply(this,arguments)},re=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,s=e.style,u=e.id,p=e.tabIndex,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style","id","tabIndex"]),f=c.useRef(null),m=c.useRef(null);c.useImperativeHandle(f,(function(){return{element:m.current}})),c.useImperativeHandle(t,(function(){return f.current}));var h=c.useMemo((function(){return i||ie.size}),[i]),v=c.useMemo((function(){return a||ie.flip}),[a]),y=c.useMemo((function(){var e;return(0,l.A)("k-icon","k-i-"+o,((e={})["k-color-".concat(r)]=r,e["k-flip-h"]="horizontal"===v||"both"===v,e["k-flip-v"]="vertical"===v||"both"===v,e),ne[h],n)}),[o,r,h,v,n]),g=(0,$.i)(e,f);return c.createElement("span",oe({ref:m},d,g,{className:y,id:u,tabIndex:p,style:s,role:"presentation"}))}));re.propTypes={style:te.object,classNames:te.string,name:te.string,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",flip:"default"};re.displayName="KendoIcon";var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ae.apply(this,arguments)},se=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,s=e.id,u=e.tabIndex,p=e.size,d=e.style,f=e.svgStyle,m=e.themeColor,h=e.viewBox,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox"]),y=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:y.current}}));var g=c.useMemo((function(){return i?i.name:le.icon}),[i]),b=c.useMemo((function(){return p||le.size}),[p]),k=c.useMemo((function(){return a||le.flip}),[a]),w=c.useMemo((function(){return h||le.viewBox}),[h]),C=c.useMemo((function(){var e;return(0,l.A)("k-svg-icon","k-svg-i-"+g,((e={})["k-color-".concat(m)]=m,e["k-flip-h"]="horizontal"===k||"both"===k,e["k-flip-v"]="vertical"===k||"both"===k,e),ne[b],o)}),[g,m,b,k,o]),O=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},d):e.width?ae({width:e.width,height:e.width},d):e.height?ae({width:e.height,height:e.height},d):ae({},d)}),[e.width,e.height,d]);return c.createElement("span",{className:C,style:O,ref:y},c.createElement("svg",ae({id:s,className:r,style:f,"aria-hidden":!0,tabIndex:u,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},v),i?void 0:n))}));se.propTypes={style:te.object,classNames:te.string,children:te.any,icon:te.object,themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:te.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:te.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};se.displayName="KendoSvgIcon";var ce={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ue={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pe={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},de={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},fe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},me={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},he={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ve={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},ye=function(){return ye=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ye.apply(this,arguments)},ge=function(e){var t=c.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,s=t.fontWeight,l=t.textAlign,u=t.textTransform,p=t.themeColor,d=t.margin,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),m=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(m,(function(){return{element:h.current,props:t}})),c.useImperativeHandle(n,(function(){return m.current}));var v=e;return c.createElement(v,ye({id:o,ref:h,className:["k-".concat("p"===e?"paragraph":e),ce[a],ue[s],me[l],he[u],ve[p],function(){if(void 0!==d){if("string"==typeof d)return[pe[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,o,r;null!==d[t]&&void 0!==d[t]&&e.push((n=t,r="string"==typeof(o=d[t])?de[o]:o,"".concat(fe[n]).concat(r)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:r},f),t.children)}));return t.propTypes={style:te.object,className:te.string,fontSize:te.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:te.oneOf(["light","normal","bold"]),margin:te.oneOfType([te.number,te.object,te.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:te.oneOf(["left","right","center","justify"]),textTransform:te.oneOf(["lowercase","uppercase","capitalize"]),themeColor:te.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},be={h1:ge("h1"),h2:ge("h2"),h3:ge("h3"),h4:ge("h4"),h5:ge("h5"),h6:ge("h6"),p:ge("p"),code:ge("code"),pre:ge("pre")},ke=function(){return ke=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ke.apply(this,arguments)},we=function(e,t,n){var o=c.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,c.useCallback((function(e,t){i(e),n&&n.call(void 0,ke(ke({},t),{value:e}))}),[n,i])]},Ce=c.createContext([void 0,w]),Oe=c.createContext([void 0,w]),xe=c.createContext([[],w,w]),Ee=c.createContext([[],w,w]),De=function(e){var t=we(null,void 0),n=t[0],o=t[1],r=we(null,void 0),i=r[0],a=r[1],s=J([]),l=s[0],u=s[1],p=J([]),d=p[0],f=p[1];return c.createElement(Ce.Provider,{value:[n,o]},c.createElement(Oe.Provider,{value:[i,a]},c.createElement(xe.Provider,{value:[l,function(e){u({type:q.add,item:e})},function(e){u({type:q.remove,item:e})}]},c.createElement(Ee.Provider,{value:[d,function(e){f({type:q.add,item:e})},function(e){f({type:q.remove,item:e})}]},e.children))))};De.displayName="KendoReactDragAndDrop";var Pe,Ie=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Ne=function(e){return e&&e.ownerDocument||window.document},Re=function(e){var t=Ie(),n=Ne(e);return t.edge||t.safari?n.body:n.documentElement},_e=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},Te=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&&!_e(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Pe||(Pe={}));var Me=function(){},Ae=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s,l=n.onIsPressedChange,c=void 0===l?Me:l,u=n.onIsScrollingChange,p=void 0===u?Me:u,d=n.onVelocityChange,f=void 0===d?Me:d,m=n.onOffsetChange,h=void 0===m?Me:m,v=n.onPageOffsetChange,y=void 0===v?Me:v,g=n.onClientOffsetChange,b=void 0===g?Me:g,k=n.onScrollOffsetChange,w=void 0===k?Me:k,C=n.onInitialScrollOffsetChange,O=void 0===C?Me:C,x=t.payload,E=x.element,D=x.hint,P=e.autoScrollDirection,I=e.scrollableParent,N=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(N.type){case Pe.POINTER_DOWN:if(N.type===Pe.POINTER_DOWN&&(!N.originalEvent.isPrimary||0!==N.originalEvent.button))break;case Pe.MOUSE_DOWN:if(N.type===Pe.MOUSE_DOWN&&N.originalEvent.which&&N.originalEvent.which>1||e.ignoreMouse)break;case Pe.TOUCH_START:if(N.type===Pe.TOUCH_START&&1!==N.originalEvent.touches.length)break;case Pe.START:var R=I||Te(t.payload.element);O(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),b({x:N.clientX,y:N.clientY}),y({x:N.pageX,y:N.pageY}),h({x:N.offsetX,y:N.offsetY}),c(!0),x.onPress&&x.onPress(N);break;case Pe.SCROLL:if(N.type===Pe.SCROLL&&!e.pressed)break;var _=I||Te(E),T=_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop};N.scrollX=T.x-e.initialScrollOffset.x,N.scrollY=T.y-e.initialScrollOffset.y,w({x:N.scrollX,y:N.scrollY});case Pe.POINTER_MOVE:if(N.type===Pe.POINTER_MOVE&&!N.originalEvent.isPrimary)break;case Pe.MOUSE_MOVE:case Pe.TOUCH_MOVE:if(N.type===Pe.TOUCH_MOVE&&1!==N.originalEvent.touches.length)break;case Pe.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==N.originalEvent.type&&E){var M=Ne(E),A=I||Te(M.elementFromPoint(N.clientX,N.clientY)),S=(o=N.clientX,r=N.clientY,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 o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(A,function(e){var t=Ne(e);return t&&t.defaultView||window}(E)),a={x:0,y:0},s=50,o-i.left<s?a.x=-(s-(o-i.left)):i.right-o<s&&(a.x=s-(i.right-o)),r-i.top<s?a.y=-(s-(r-i.top)):i.bottom-r<s&&(a.y=s-(i.bottom-r)),a);f({x:P&&!1===P.horizontal?0:S.x,y:P&&!1===P.vertical?0:S.y}),p(0!==S.y||0!==S.x)}!e.drag&&x.onDragStart&&x.onDragStart(N),x.onDrag&&x.onDrag(N);var j=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,c=s-r;if(i<a&&r<s){var u=o.width*o.height,p=n.width*n.height,d=l*c;return Number((d/(u+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(D||E,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(D||E)}))),L=e.drops.find((function(e){return e.element===j}));L&&j&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(N.clientX,N.clientY,I||Te(j))&&j!==E?(e.drop&&e.drop.element)!==j?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N),L.onDragEnter&&L.onDragEnter(N)):L.onDragOver&&L.onDragOver(N):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}b({x:N.clientX,y:N.clientY}),y({x:N.pageX,y:N.pageY});break;case Pe.POINTER_UP:if(N.type===Pe.POINTER_UP&&!N.originalEvent.isPrimary)break;case Pe.MOUSE_UP:case Pe.TOUCH_END:if(N.type===Pe.TOUCH_END&&1!==N.originalEvent.touches.length)break;case Pe.END:c(!1),p(!1),w({x:0,y:0}),x.onRelease&&x.onRelease(N),e.drop&&e.drop.onDrop&&e.drop.onDrop(N),e.drag&&x.onDragEnd&&x.onDragEnd(N);break;case Pe.POINTER_CANCEL:case Pe.CONTEXT_MENU:case Pe.TOUCH_CANCEL:case Pe.CANCEL:c(!1),p(!1),w({x:0,y:0}),x.onDragEnd&&x.onDragEnd(N),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}},Se=function(e,t){if(e){var n,o;e===Re(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,s=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},je=function(e,t){var n=c.useContext(e),o=n[0],r=n[1],i=c.useState(t),a=i[0],s=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):s(e[0])}]};function Le(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?w:o,i=t.onRelease,a=void 0===i?w:i,s=t.onDragStart,l=void 0===s?w:s,u=t.onDrag,p=void 0===u?w:u,d=t.onDragEnd,f=void 0===d?w:d,m=n.hint,h=void 0===m?null:m,v=n.mouseOnly,y=void 0!==v&&v,g=n.autoScroll,b=void 0===g||g,k=n.scrollContainer,C=void 0===k?null:k,O=c.useState(!1),x=O[0],E=O[1],D=c.useState(!1),P=D[0],I=D[1],N=je(Oe)[0],R=je(Ce),_=R[0],T=R[1],M=c.useContext(Ee)[0],A=c.useContext(xe),S=A[0],j=A[1],L=A[2],z=c.useRef({x:0,y:0}),B=c.useRef(),F=c.useRef(!1),K=c.useRef(),U=c.useRef(null),H=c.useRef(!1),W=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),X=c.useRef({x:0,y:0}),V=c.useRef({x:0,y:0}),G=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),$=Boolean("undefined"!=typeof window&&window.PointerEvent),Z=!y&&$,J=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=c.useCallback((function(){return h&&h.current&&h.current.element?h.current.element:h?h.current:null}),[h]),ee=c.useCallback((function(){return C&&C.current&&C.current.element?C.current.element:C?C.current:null}),[C]),te=c.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ne=c.useRef(null);c.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:he,onDragStart:ye,onDrag:ge,onDragEnd:be,onRelease:ve,data:e.current}}));var oe=c.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=c.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=c.useCallback((function(){return{drag:_?_.current:null,drop:N?N.current:null,drags:S.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:G.current,offset:W.current,pageOffset:Y.current,initialScrollOffset:q.current,clientOffset:X.current,initialClientOffset:V.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[_,N,S,M,x,b,te,P]),ae=c.useCallback((function(e){E(e)}),[]),se=c.useCallback((function(e){I(e)}),[]),le=c.useCallback((function(e){z.current=e}),[]),ce=c.useCallback((function(e){W.current=e}),[]),ue=c.useCallback((function(e){X.current=e}),[]),pe=c.useCallback((function(e){Y.current=e}),[]),de=c.useCallback((function(e){V.current=e}),[]),fe=c.useCallback((function(e){G.current=e}),[]),me=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){r(e)}),[r]),ve=c.useCallback((function(e){a(e)}),[a]),ye=c.useCallback((function(t){T(ne,{target:e.current,event:t}),l(t)}),[T,e,l]),ge=c.useCallback((function(e){p(e)}),[p]),be=c.useCallback((function(t){H.current||(T(null,{target:e.current,event:t}),f(t))}),[f,T,e]),ke=c.useCallback((function(e){Ae(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:me,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ce,pe,ue,de,me,ae,fe,se]),we=c.useCallback((function(e){ke(e)}),[ke]),De=c.useCallback((function(e){ke(e)}),[ke]),Pe=c.useCallback((function(e){ke(e)}),[ke]),Ie=c.useCallback((function(e){ke(e)}),[ke]),Ne=c.useCallback((function(e){ke(e)}),[ke]),Re=c.useCallback((function(e){ke(e)}),[ke]),_e=c.useCallback((function(e){ke(e)}),[ke]),Me=c.useCallback((function(e){e.preventDefault(),ke(e)}),[ke]),Le=c.useCallback((function(e){e.preventDefault(),ke(e)}),[ke]),ze=c.useCallback((function(e){e.preventDefault(),ke(e)}),[ke]),Be=c.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();F.current=!0,K.current=t.setTimeout((function(){F.current=!1}),2e3)}ke(e)}),[ke,re]),Fe=c.useCallback((function(e){ke(e)}),[ke]),Ke=c.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ue=c.useCallback((function(){return j(ne),function(){L(ne)}}),[L,j]);c.useEffect((function(){var e=re();if(P){var t=ee()||Te(document.elementFromPoint(X.current.x,X.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){Se(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[J,ee,re,P]),c.useEffect(Ke,[Ke]),c.useEffect((function(){var e=re(),t=J(),n=oe();return Z?(t&&(U.current=Te(t),U.current&&U.current.addEventListener("scroll",Fe,{passive:!0}),t.addEventListener("pointerdown",we,{passive:!0})),x&&(n.addEventListener("pointermove",De),n.addEventListener("pointerup",Ie,!0),n.addEventListener("contextmenu",Me),n.addEventListener("pointercancel",Pe,{passive:!0}))):(e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Ne,{passive:!0}),y||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",ze,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",Re,{passive:!0}),n.addEventListener("mouseup",_e,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Fe),t&&(t.removeEventListener("pointerdown",we),t.removeEventListener("mousedown",Ne),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",ze),t.removeEventListener("touchend",Be)),n.removeEventListener("pointermove",De),n.removeEventListener("pointerup",Ie,!0),n.removeEventListener("contextmenu",Me),n.removeEventListener("pointercancel",Pe),n.removeEventListener("mousemove",Re),n.removeEventListener("mouseup",_e),e.removeEventListener("touchmove",w),e.clearTimeout(K.current)}}),[x,re,J,oe,y,Z,Me,Ne,Re,_e,Pe,we,De,Ie,Be,ze,Le,Fe]),c.useEffect((function(){return function(){H.current=!0}}),[]),c.useLayoutEffect(Ue,[Ue])}var ze=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),s=c.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),l=c.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),u=c.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return Le(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:w,onDragOver:w,onDragLeave:w,onDrop:w});var n=t.onDragEnter,o=void 0===n?w:n,r=t.onDragOver,i=void 0===r?w:r,a=t.onDragLeave,s=void 0===a?w:a,l=t.onDrop,u=void 0===l?w:l,p=je(Oe)[1],d=c.useContext(Ee),f=d[1],m=d[2],h=c.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=c.useRef(null);c.useImperativeHandle(v,(function(){return{element:h(),onDragEnter:y,onDragOver:g,onDragLeave:b,onDrop:k,data:e.current}}));var y=c.useCallback((function(t){p(v,{target:e.current,event:t}),o(t)}),[p,e,o]),g=c.useCallback((function(e){i(e)}),[i]),b=c.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),k=c.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),C=c.useCallback((function(){return f(v),function(){m(v)}}),[m,f]);c.useLayoutEffect(C,[C])}ze.displayName="KendoReactDraggable";var Fe=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||void 0}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=c.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=c.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),l=c.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Be(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?c.cloneElement(c.Children.only(e.children),{ref:n}):null}));Fe.displayName="KendoReactDroppable";var Ke=n(697);function Ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function He(e,t){void 0===t&&(t=Ue);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}},697:(e,t,n)=>{n.d(t,{G:()=>o});var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},6:(e,t,n)=>{n.d(t,{s:()=>r});var o=n(302);function r(e){if(void 0!==o)o.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},302:e=>{e.exports=n},499:e=>{e.exports=r},189:e=>{e.exports=t},899:t=>{t.exports=e},994:e=>{e.exports=o}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.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.processListBoxDragAndDrop=e.moveItem=e.processListBoxData=e.ListBoxToolbar=e.ListBox=void 0;var t=s(873);Object.defineProperty(e,"ListBox",{enumerable:!0,get:function(){return t.ListBox}});var n=s(943);Object.defineProperty(e,"ListBoxToolbar",{enumerable:!0,get:function(){return n.ListBoxToolbar}});var o=s(706);Object.defineProperty(e,"processListBoxData",{enumerable:!0,get:function(){return o.processListBoxData}}),Object.defineProperty(e,"moveItem",{enumerable:!0,get:function(){return o.moveItem}}),Object.defineProperty(e,"processListBoxDragAndDrop",{enumerable:!0,get:function(){return o.processListBoxDragAndDrop}})})(),l})()}));
@@ -61,7 +61,7 @@ var ListBox = /** @class */ (function (_super) {
61
61
  if (_this.props.toolbarPosition === toolbarPosition.NONE || _this.props.toolbar === undefined) {
62
62
  return '';
63
63
  }
64
- return "k-listbox-toolbar-".concat(_this.props.toolbarPosition);
64
+ return "k-listbox-actions-".concat(_this.props.toolbarPosition);
65
65
  };
66
66
  _this.handleOnDragLeave = function (event) {
67
67
  if (_this.props.onDragLeave && event.target.classList.contains('k-list-scroller')) {
@@ -99,19 +99,17 @@ var ListBoxToolbar = /** @class */ (function (_super) {
99
99
  ListBoxToolbar.prototype.render = function () {
100
100
  var _this = this;
101
101
  var localizationService = provideLocalizationService(this);
102
- return (React.createElement("div", { className: classNames('k-listbox-toolbar') },
103
- React.createElement("ul", { className: "k-reset" }, this.props.tools && this.props.tools.map(function (tool, index) {
104
- var indexOfTool = tools.findIndex(function (x) { return x.name === tool; });
105
- var currentTool = tools[indexOfTool];
106
- var isDisabled = _this.isItemDisabled(currentTool.name);
107
- var toolKey = "listbox.".concat(currentTool.name);
108
- var title = localizationService.toLanguageString(toolKey, messages[toolKey]);
109
- return (React.createElement("li", { key: index },
110
- React.createElement(Button, { disabled: isDisabled, "data-command": currentTool.name, title: title, "aria-label": title, icon: currentTool.iconName, onClick: function (e) {
111
- e.preventDefault();
112
- _this.handleToolClick(e, currentTool.name || null);
113
- } })));
114
- }))));
102
+ return (React.createElement("div", { className: classNames('k-listbox-actions') }, this.props.tools && this.props.tools.map(function (tool, index) {
103
+ var indexOfTool = tools.findIndex(function (x) { return x.name === tool; });
104
+ var currentTool = tools[indexOfTool];
105
+ var isDisabled = _this.isItemDisabled(currentTool.name);
106
+ var toolKey = "listbox.".concat(currentTool.name);
107
+ var title = localizationService.toLanguageString(toolKey, messages[toolKey]);
108
+ return (React.createElement(Button, { key: index, disabled: isDisabled, "data-command": currentTool.name, title: title, "aria-label": title, icon: currentTool.iconName, onClick: function (e) {
109
+ e.preventDefault();
110
+ _this.handleToolClick(e, currentTool.name || null);
111
+ } }));
112
+ })));
115
113
  };
116
114
  /**
117
115
  * @hidden
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-listbox',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1673259618,
8
+ publishDate: 1673301162,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -64,7 +64,7 @@ var ListBox = /** @class */ (function (_super) {
64
64
  if (_this.props.toolbarPosition === Enums_1.toolbarPosition.NONE || _this.props.toolbar === undefined) {
65
65
  return '';
66
66
  }
67
- return "k-listbox-toolbar-".concat(_this.props.toolbarPosition);
67
+ return "k-listbox-actions-".concat(_this.props.toolbarPosition);
68
68
  };
69
69
  _this.handleOnDragLeave = function (event) {
70
70
  if (_this.props.onDragLeave && event.target.classList.contains('k-list-scroller')) {
@@ -102,19 +102,17 @@ var ListBoxToolbar = /** @class */ (function (_super) {
102
102
  ListBoxToolbar.prototype.render = function () {
103
103
  var _this = this;
104
104
  var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
105
- return (React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-listbox-toolbar') },
106
- React.createElement("ul", { className: "k-reset" }, this.props.tools && this.props.tools.map(function (tool, index) {
107
- var indexOfTool = tools.findIndex(function (x) { return x.name === tool; });
108
- var currentTool = tools[indexOfTool];
109
- var isDisabled = _this.isItemDisabled(currentTool.name);
110
- var toolKey = "listbox.".concat(currentTool.name);
111
- var title = localizationService.toLanguageString(toolKey, messages_1.messages[toolKey]);
112
- return (React.createElement("li", { key: index },
113
- React.createElement(kendo_react_buttons_1.Button, { disabled: isDisabled, "data-command": currentTool.name, title: title, "aria-label": title, icon: currentTool.iconName, onClick: function (e) {
114
- e.preventDefault();
115
- _this.handleToolClick(e, currentTool.name || null);
116
- } })));
117
- }))));
105
+ return (React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-listbox-actions') }, this.props.tools && this.props.tools.map(function (tool, index) {
106
+ var indexOfTool = tools.findIndex(function (x) { return x.name === tool; });
107
+ var currentTool = tools[indexOfTool];
108
+ var isDisabled = _this.isItemDisabled(currentTool.name);
109
+ var toolKey = "listbox.".concat(currentTool.name);
110
+ var title = localizationService.toLanguageString(toolKey, messages_1.messages[toolKey]);
111
+ return (React.createElement(kendo_react_buttons_1.Button, { key: index, disabled: isDisabled, "data-command": currentTool.name, title: title, "aria-label": title, icon: currentTool.iconName, onClick: function (e) {
112
+ e.preventDefault();
113
+ _this.handleToolClick(e, currentTool.name || null);
114
+ } }));
115
+ })));
118
116
  };
119
117
  /**
120
118
  * @hidden
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-listbox',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1673259618,
11
+ publishDate: 1673301162,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-listbox",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","prop-types","react"],function(e,t){var l={},c={},p={},d={},u={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})}],execute:function(){e((()=>{"use strict";var o={873:function(e,t,o){var r,n,a=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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0,o(954)),l=o(895),c=o(811),p=o(719),d=o(811),u=o(363),o=(n=i.PureComponent,a(f,n),f.prototype.render=function(){var e,n=this;return i.createElement("div",{className:(0,c.classNames)(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&"bottom"!==this.props.toolbarPosition&&i.createElement(this.props.toolbar,null),i.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop,onDragLeave:this.handleOnDragLeave},i.createElement("div",{className:(0,c.classNames)("k-list",((e={})["k-list-".concat(c.kendoThemeMaps.sizeMap[this.props.size]||this.props.size)]=this.props.size,e))},i.createElement("div",{className:"k-list-content"},i.createElement("ul",{className:"k-list-ul",role:"listbox","aria-label":"listbox-container",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map(function(t,e){var o=n.setSelected(t),r=(0,c.guid)(),r={className:(0,c.classNames)("k-list-item",{"k-selected":o}),role:"option","aria-selected":o,key:e,id:r+e,"data-uid":r+e,draggable:n.props.draggable,onDragStart:function(e){return(0,c.dispatchEvent)(n.props.onDragStart,e,n,{dataItem:t})},onDragOver:function(e){e.preventDefault(),(0,c.dispatchEvent)(n.props.onDragOver,e,n,{dataItem:t})},onDrop:function(e){return(0,c.dispatchEvent)(n.props.onDrop,e,n,{dataItem:t})},onClick:function(e){return(0,c.dispatchEvent)(n.props.onItemClick,e,n,{dataItem:t})}};return n.props.item?i.createElement(n.props.item,s({selected:o,dataItem:t},r),i.createElement("span",{className:"k-list-item-text"},t.name)):i.createElement("li",s({},r),i.createElement("span",{className:"k-list-item-text"},n.renderItem(t)))}))))),this.props.toolbar&&"bottom"===this.props.toolbarPosition&&i.createElement(this.props.toolbar,null),i.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map(function(e,t){e=e[n.props.valueField||n.props.textField];return i.createElement("option",{key:t,value:e},e)})))},f.propTypes={size:l.oneOf([null,"small","medium","large"]),toolbarPosition:l.oneOf(["none","top","bottom","left","right"]),textField:l.string,valueField:l.string,selectedField:l.string,data:l.array},f.defaultProps={toolbarPosition:p.toolbarPosition.RIGHT,draggable:!0,size:"medium"},f);function f(e){var t=n.call(this,e)||this;return t.setSelected=function(e){if(t.props.selectedField)return!!e[t.props.selectedField]},t.renderItem=function(e){return t.props.textField?e[t.props.textField]:e.toString()},t.handleKeyDown=function(e){t.props.onKeyDown&&(0,c.dispatchEvent)(t.props.onKeyDown,e,t,void 0)},t.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(0<t.props.data.length?(0,c.dispatchEvent)(t.props.onDrop,e,t,{dataItem:t.props.data[t.props.data.length-1]}):(0,c.dispatchEvent)(t.props.onDrop,e,t,{dataItem:null}))},t.setToolbarPosition=function(){return t.props.toolbarPosition===p.toolbarPosition.NONE||void 0===t.props.toolbar?"":"k-listbox-toolbar-".concat(t.props.toolbarPosition)},t.handleOnDragLeave=function(e){t.props.onDragLeave&&e.target.classList.contains("k-list-scroller")&&(0,c.dispatchEvent)(t.props.onDragLeave,e,t,void 0)},(0,d.validatePackage)(u.packageMetadata),t}t.ListBox=o},943:function(e,t,o){var r,n,a=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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListBoxToolbar=void 0,o(954)),l=o(811),c=o(536),p=o(987),d=o(364),o=o(895),u=[{name:"moveUp",iconName:"caret-alt-up"},{name:"moveDown",iconName:"caret-alt-down"},{name:"transferTo",iconName:"caret-alt-right"},{name:"transferFrom",iconName:"caret-alt-left"},{name:"transferAllTo",iconName:"caret-double-alt-right"},{name:"transferAllFrom",iconName:"caret-double-alt-left"},{name:"remove",iconName:"x"}],a=(n=i.PureComponent,a(s,n),s.prototype.render=function(){var a=this,s=(0,p.provideLocalizationService)(this);return i.createElement("div",{className:(0,l.classNames)("k-listbox-toolbar")},i.createElement("ul",{className:"k-reset"},this.props.tools&&this.props.tools.map(function(t,e){var o=u.findIndex(function(e){return e.name===t}),r=u[o],o=a.isItemDisabled(r.name),n="listbox.".concat(r.name),n=s.toLanguageString(n,d.messages[n]);return i.createElement("li",{key:e},i.createElement(c.Button,{disabled:o,"data-command":r.name,title:n,"aria-label":n,icon:r.iconName,onClick:function(e){e.preventDefault(),a.handleToolClick(e,r.name||null)}}))})))},s.propTypes={data:o.array,dataConnected:o.array,tools:o.array,selectedField:o.string},s.defaultProps={data:[],dataConnected:[],selectedField:"selected"},s);function s(){var i=null!==n&&n.apply(this,arguments)||this;return i.handleToolClick=function(e,t){(0,l.dispatchEvent)(i.props.onToolClick,e,i,{toolName:t})},i.isItemDisabled=function(e){var t=!0,o=i.props.selectedField||"selected",r=i.props.data.length,n=i.props.dataConnected.length,a=0<=i.props.data.findIndex(function(e){return!0===e[o]}),s=0<=i.props.dataConnected.findIndex(function(e){return!0===e[o]});switch(e){case"moveUp":t=a?!(0<i.props.data.length)||i.props.data[0].selected:!s||!(0<i.props.dataConnected.length)||i.props.dataConnected[0].selected;break;case"moveDown":t=a?!i.props.data[r-1]||i.props.data[r-1].selected:!s||!(0<i.props.dataConnected.length)||i.props.dataConnected[n-1].selected;break;case"transferTo":t=!(i.props.dataConnected&&a);break;case"transferFrom":t=!i.props.dataConnected||!(i.props.dataConnected&&s);break;case"transferAllTo":t=!(i.props.dataConnected&&0<i.props.data.length);break;case"transferAllFrom":t=!(i.props.dataConnected&&0<i.props.dataConnected.length);break;case"remove":t=!(a||s)}return t},i}t.ListBoxToolbar=a,(0,p.registerForLocalization)(a)},719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toolbarPosition=void 0,(t=t.toolbarPosition||(t.toolbarPosition={})).TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.NONE="none"},364:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.remove=t.transferAllFrom=t.transferAllTo=t.transferFrom=t.transferTo=t.moveDown=t.moveUp=void 0,t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((o={})[t.moveUp]="Move Up",o[t.moveDown]="Move Down",o[t.transferTo]="Transfer To",o[t.transferFrom]="Transfer From",o[t.transferAllTo]="Transfer All To",o[t.transferAllFrom]="Transfer All From",o[t.remove]="Delete",o)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673259618,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"}},706:function(e,v){var b=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var r,n=0,a=t.length;n<a;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(v,"__esModule",{value:!0}),v.processListBoxDragAndDrop=v.moveItem=v.processListBoxData=void 0,v.processListBoxData=function(e,t,o,r){var n=[],a=[],s=[],i={listBoxOneData:e=void 0===e?[]:e,listBoxTwoData:t=void 0===t?[]:t};switch(o){case"moveUp":(n=b([],e,!0)).forEach(function(e,t){e[r]&&(n=(0,v.moveItem)(t,t-1,n))}),(s=b([],t,!0)).forEach(function(e,t){e[r]&&(s=(0,v.moveItem)(t,t-1,s))}),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"moveDown":(n=e.reverse()).forEach(function(e,t){e[r]&&(n=(0,v.moveItem)(t,t-1,n))}),(s=t.reverse()).forEach(function(e,t){e[r]&&(s=(0,v.moveItem)(t,t-1,s))}),i.listBoxOneData=b([],n,!0).reverse(),i.listBoxTwoData=b([],s,!0).reverse();break;case"transferTo":n=e.filter(function(e){return!e[r]}),a=e.filter(function(e){return e[r]}),s=t.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferFrom":s=t.filter(function(e){return!e[r]}),a=t.filter(function(e){return e[r]}),n=e.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferAllTo":i.listBoxOneData=[],i.listBoxTwoData=t.concat(e);break;case"transferAllFrom":i.listBoxOneData=t.concat(e),i.listBoxTwoData=[];break;case"remove":s=t.filter(function(e){return!e[r]}),n=e.filter(function(e){return!e[r]}),i.listBoxOneData=n,i.listBoxTwoData=s}return i},v.moveItem=function(e,t,o){e=o.splice(e,1)[0];return o.splice(t,0,e),o},v.processListBoxDragAndDrop=function(e,t,o,r,n){void 0===t&&(t=[]);var a=(e=void 0===e?[]:e).findIndex(function(e){return e[n]===o[n]}),s=t.findIndex(function(e){return e[n]===o[n]}),i=null!==r?e.findIndex(function(e){return e[n]===r[n]}):-1,l=null!==r?t.findIndex(function(e){return e[n]===r[n]}):-1,c=0<=a,p=0<=s,d=0<=i,u=0<=l,f=b([],e,!0),m=b([],t,!0);return c&&d?{listBoxOneData:(0,v.moveItem)(a,i,e),listBoxTwoData:t}:p&&u?{listBoxOneData:e,listBoxTwoData:(0,v.moveItem)(s,l,t)}:c&&(u||null===r)?(null===r?m.push(e[a]):m.splice(l+1,0,e[a]),f.splice(a,1),{listBoxOneData:f,listBoxTwoData:m}):p&&(d||null===r)?(null===r?f.push(t[s]):f.splice(i+1,0,t[s]),m.splice(s,1),{listBoxOneData:f,listBoxTwoData:m}):{listBoxOneData:e,listBoxTwoData:t}}},536:e=>{e.exports=l},811:e=>{e.exports=c},987:e=>{e.exports=p},895:e=>{e.exports=d},954:e=>{e.exports=u}},r={};function n(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},o[e].call(t.exports,t,t.exports,n)),t.exports}var e,t,a,s,i={};return e=i,Object.defineProperty(e,"__esModule",{value:!0}),e.processListBoxDragAndDrop=e.moveItem=e.processListBoxData=e.ListBoxToolbar=e.ListBox=void 0,t=n(873),Object.defineProperty(e,"ListBox",{enumerable:!0,get:function(){return t.ListBox}}),a=n(943),Object.defineProperty(e,"ListBoxToolbar",{enumerable:!0,get:function(){return a.ListBoxToolbar}}),s=n(706),Object.defineProperty(e,"processListBoxData",{enumerable:!0,get:function(){return s.processListBoxData}}),Object.defineProperty(e,"moveItem",{enumerable:!0,get:function(){return s.moveItem}}),Object.defineProperty(e,"processListBoxDragAndDrop",{enumerable:!0,get:function(){return s.processListBoxDragAndDrop}}),i})())}}});
1
+ System.register("@progress/kendo-react-listbox",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","prop-types","react"],function(e,t){var l={},c={},p={},d={},u={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})}],execute:function(){e((()=>{"use strict";var o={873:function(e,t,o){var r,n,a=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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0,o(954)),l=o(895),c=o(811),p=o(719),d=o(811),u=o(363),o=(n=i.PureComponent,a(f,n),f.prototype.render=function(){var e,n=this;return i.createElement("div",{className:(0,c.classNames)(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&"bottom"!==this.props.toolbarPosition&&i.createElement(this.props.toolbar,null),i.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop,onDragLeave:this.handleOnDragLeave},i.createElement("div",{className:(0,c.classNames)("k-list",((e={})["k-list-".concat(c.kendoThemeMaps.sizeMap[this.props.size]||this.props.size)]=this.props.size,e))},i.createElement("div",{className:"k-list-content"},i.createElement("ul",{className:"k-list-ul",role:"listbox","aria-label":"listbox-container",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map(function(t,e){var o=n.setSelected(t),r=(0,c.guid)(),r={className:(0,c.classNames)("k-list-item",{"k-selected":o}),role:"option","aria-selected":o,key:e,id:r+e,"data-uid":r+e,draggable:n.props.draggable,onDragStart:function(e){return(0,c.dispatchEvent)(n.props.onDragStart,e,n,{dataItem:t})},onDragOver:function(e){e.preventDefault(),(0,c.dispatchEvent)(n.props.onDragOver,e,n,{dataItem:t})},onDrop:function(e){return(0,c.dispatchEvent)(n.props.onDrop,e,n,{dataItem:t})},onClick:function(e){return(0,c.dispatchEvent)(n.props.onItemClick,e,n,{dataItem:t})}};return n.props.item?i.createElement(n.props.item,s({selected:o,dataItem:t},r),i.createElement("span",{className:"k-list-item-text"},t.name)):i.createElement("li",s({},r),i.createElement("span",{className:"k-list-item-text"},n.renderItem(t)))}))))),this.props.toolbar&&"bottom"===this.props.toolbarPosition&&i.createElement(this.props.toolbar,null),i.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map(function(e,t){e=e[n.props.valueField||n.props.textField];return i.createElement("option",{key:t,value:e},e)})))},f.propTypes={size:l.oneOf([null,"small","medium","large"]),toolbarPosition:l.oneOf(["none","top","bottom","left","right"]),textField:l.string,valueField:l.string,selectedField:l.string,data:l.array},f.defaultProps={toolbarPosition:p.toolbarPosition.RIGHT,draggable:!0,size:"medium"},f);function f(e){var t=n.call(this,e)||this;return t.setSelected=function(e){if(t.props.selectedField)return!!e[t.props.selectedField]},t.renderItem=function(e){return t.props.textField?e[t.props.textField]:e.toString()},t.handleKeyDown=function(e){t.props.onKeyDown&&(0,c.dispatchEvent)(t.props.onKeyDown,e,t,void 0)},t.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(0<t.props.data.length?(0,c.dispatchEvent)(t.props.onDrop,e,t,{dataItem:t.props.data[t.props.data.length-1]}):(0,c.dispatchEvent)(t.props.onDrop,e,t,{dataItem:null}))},t.setToolbarPosition=function(){return t.props.toolbarPosition===p.toolbarPosition.NONE||void 0===t.props.toolbar?"":"k-listbox-actions-".concat(t.props.toolbarPosition)},t.handleOnDragLeave=function(e){t.props.onDragLeave&&e.target.classList.contains("k-list-scroller")&&(0,c.dispatchEvent)(t.props.onDragLeave,e,t,void 0)},(0,d.validatePackage)(u.packageMetadata),t}t.ListBox=o},943:function(e,t,o){var r,n,a=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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListBoxToolbar=void 0,o(954)),l=o(811),c=o(536),p=o(987),d=o(364),o=o(895),u=[{name:"moveUp",iconName:"caret-alt-up"},{name:"moveDown",iconName:"caret-alt-down"},{name:"transferTo",iconName:"caret-alt-right"},{name:"transferFrom",iconName:"caret-alt-left"},{name:"transferAllTo",iconName:"caret-double-alt-right"},{name:"transferAllFrom",iconName:"caret-double-alt-left"},{name:"remove",iconName:"x"}],a=(n=i.PureComponent,a(s,n),s.prototype.render=function(){var a=this,s=(0,p.provideLocalizationService)(this);return i.createElement("div",{className:(0,l.classNames)("k-listbox-actions")},this.props.tools&&this.props.tools.map(function(t,e){var o=u.findIndex(function(e){return e.name===t}),r=u[o],o=a.isItemDisabled(r.name),n="listbox.".concat(r.name),n=s.toLanguageString(n,d.messages[n]);return i.createElement(c.Button,{key:e,disabled:o,"data-command":r.name,title:n,"aria-label":n,icon:r.iconName,onClick:function(e){e.preventDefault(),a.handleToolClick(e,r.name||null)}})}))},s.propTypes={data:o.array,dataConnected:o.array,tools:o.array,selectedField:o.string},s.defaultProps={data:[],dataConnected:[],selectedField:"selected"},s);function s(){var i=null!==n&&n.apply(this,arguments)||this;return i.handleToolClick=function(e,t){(0,l.dispatchEvent)(i.props.onToolClick,e,i,{toolName:t})},i.isItemDisabled=function(e){var t=!0,o=i.props.selectedField||"selected",r=i.props.data.length,n=i.props.dataConnected.length,a=0<=i.props.data.findIndex(function(e){return!0===e[o]}),s=0<=i.props.dataConnected.findIndex(function(e){return!0===e[o]});switch(e){case"moveUp":t=a?!(0<i.props.data.length)||i.props.data[0].selected:!s||!(0<i.props.dataConnected.length)||i.props.dataConnected[0].selected;break;case"moveDown":t=a?!i.props.data[r-1]||i.props.data[r-1].selected:!s||!(0<i.props.dataConnected.length)||i.props.dataConnected[n-1].selected;break;case"transferTo":t=!(i.props.dataConnected&&a);break;case"transferFrom":t=!i.props.dataConnected||!(i.props.dataConnected&&s);break;case"transferAllTo":t=!(i.props.dataConnected&&0<i.props.data.length);break;case"transferAllFrom":t=!(i.props.dataConnected&&0<i.props.dataConnected.length);break;case"remove":t=!(a||s)}return t},i}t.ListBoxToolbar=a,(0,p.registerForLocalization)(a)},719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toolbarPosition=void 0,(t=t.toolbarPosition||(t.toolbarPosition={})).TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.NONE="none"},364:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.remove=t.transferAllFrom=t.transferAllTo=t.transferFrom=t.transferTo=t.moveDown=t.moveUp=void 0,t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((o={})[t.moveUp]="Move Up",o[t.moveDown]="Move Down",o[t.transferTo]="Transfer To",o[t.transferFrom]="Transfer From",o[t.transferAllTo]="Transfer All To",o[t.transferAllFrom]="Transfer All From",o[t.remove]="Delete",o)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673301162,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"}},706:function(e,v){var b=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var r,n=0,a=t.length;n<a;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(v,"__esModule",{value:!0}),v.processListBoxDragAndDrop=v.moveItem=v.processListBoxData=void 0,v.processListBoxData=function(e,t,o,r){var n=[],a=[],s=[],i={listBoxOneData:e=void 0===e?[]:e,listBoxTwoData:t=void 0===t?[]:t};switch(o){case"moveUp":(n=b([],e,!0)).forEach(function(e,t){e[r]&&(n=(0,v.moveItem)(t,t-1,n))}),(s=b([],t,!0)).forEach(function(e,t){e[r]&&(s=(0,v.moveItem)(t,t-1,s))}),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"moveDown":(n=e.reverse()).forEach(function(e,t){e[r]&&(n=(0,v.moveItem)(t,t-1,n))}),(s=t.reverse()).forEach(function(e,t){e[r]&&(s=(0,v.moveItem)(t,t-1,s))}),i.listBoxOneData=b([],n,!0).reverse(),i.listBoxTwoData=b([],s,!0).reverse();break;case"transferTo":n=e.filter(function(e){return!e[r]}),a=e.filter(function(e){return e[r]}),s=t.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferFrom":s=t.filter(function(e){return!e[r]}),a=t.filter(function(e){return e[r]}),n=e.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferAllTo":i.listBoxOneData=[],i.listBoxTwoData=t.concat(e);break;case"transferAllFrom":i.listBoxOneData=t.concat(e),i.listBoxTwoData=[];break;case"remove":s=t.filter(function(e){return!e[r]}),n=e.filter(function(e){return!e[r]}),i.listBoxOneData=n,i.listBoxTwoData=s}return i},v.moveItem=function(e,t,o){e=o.splice(e,1)[0];return o.splice(t,0,e),o},v.processListBoxDragAndDrop=function(e,t,o,r,n){void 0===t&&(t=[]);var a=(e=void 0===e?[]:e).findIndex(function(e){return e[n]===o[n]}),s=t.findIndex(function(e){return e[n]===o[n]}),i=null!==r?e.findIndex(function(e){return e[n]===r[n]}):-1,l=null!==r?t.findIndex(function(e){return e[n]===r[n]}):-1,c=0<=a,p=0<=s,d=0<=i,u=0<=l,f=b([],e,!0),m=b([],t,!0);return c&&d?{listBoxOneData:(0,v.moveItem)(a,i,e),listBoxTwoData:t}:p&&u?{listBoxOneData:e,listBoxTwoData:(0,v.moveItem)(s,l,t)}:c&&(u||null===r)?(null===r?m.push(e[a]):m.splice(l+1,0,e[a]),f.splice(a,1),{listBoxOneData:f,listBoxTwoData:m}):p&&(d||null===r)?(null===r?f.push(t[s]):f.splice(i+1,0,t[s]),m.splice(s,1),{listBoxOneData:f,listBoxTwoData:m}):{listBoxOneData:e,listBoxTwoData:t}}},536:e=>{e.exports=l},811:e=>{e.exports=c},987:e=>{e.exports=p},895:e=>{e.exports=d},954:e=>{e.exports=u}},r={};function n(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},o[e].call(t.exports,t,t.exports,n)),t.exports}var e,t,a,s,i={};return e=i,Object.defineProperty(e,"__esModule",{value:!0}),e.processListBoxDragAndDrop=e.moveItem=e.processListBoxData=e.ListBoxToolbar=e.ListBox=void 0,t=n(873),Object.defineProperty(e,"ListBox",{enumerable:!0,get:function(){return t.ListBox}}),a=n(943),Object.defineProperty(e,"ListBoxToolbar",{enumerable:!0,get:function(){return a.ListBoxToolbar}}),s=n(706),Object.defineProperty(e,"processListBoxData",{enumerable:!0,get:function(){return s.processListBoxData}}),Object.defineProperty(e,"moveItem",{enumerable:!0,get:function(){return s.moveItem}}),Object.defineProperty(e,"processListBoxDragAndDrop",{enumerable:!0,get:function(){return s.processListBoxDragAndDrop}}),i})())}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-listbox",
3
- "version": "5.10.0-dev.202301091032",
3
+ "version": "5.10.0-dev.202301092204",
4
4
  "description": "React ListBox enables you to display a list of items and manage the data between multiple lists. KendoReact ListBox package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,13 +38,13 @@
38
38
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@progress/kendo-react-common": "5.10.0-dev.202301091032",
41
+ "@progress/kendo-react-common": "5.10.0-dev.202301092204",
42
42
  "prop-types": "^15.6.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@progress/kendo-licensing": "^1.0.1",
46
- "@progress/kendo-react-buttons": "5.10.0-dev.202301091032",
47
- "@progress/kendo-react-intl": "5.10.0-dev.202301091032"
46
+ "@progress/kendo-react-buttons": "5.10.0-dev.202301092204",
47
+ "@progress/kendo-react-intl": "5.10.0-dev.202301092204"
48
48
  },
49
49
  "@progress": {
50
50
  "friendlyName": "ListBox",