@progress/kendo-react-conversational-ui 5.6.0-dev.202208040930 → 5.6.0-dev.202208080636

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("@progress/kendo-licensing"),require("prop-types"),require("@progress/kendo-react-intl"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-licensing","prop-types","@progress/kendo-react-intl","react-dom"],t):"object"==typeof exports?exports.KendoReactConversationalUi=t(require("react"),require("@progress/kendo-licensing"),require("prop-types"),require("@progress/kendo-react-intl"),require("react-dom")):e.KendoReactConversationalUi=t(e.React,e.KendoLicensing,e.PropTypes,e.KendoReactIntl,e.ReactDOM)}(self,(function(e,t,n,o,r){return(()=>{"use strict";var i={271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},310:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},203:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertMsgsToViewItems=void 0;var o=n(147),r=function(e){return e[e.length-1]};t.convertMsgsToViewItems=function(e){var t,n,i,a=e.slice().reduce((i=e.length,function(e,t,n){var a=n===i-1;return function(e,t){var n,o,i=t.timestamp,a=r(e);if(i&&(!a||(n=i,o=a.timestamp,n&&o&&(o.getDate()!==n.getDate()||o.getMonth()!==n.getMonth()||o.getFullYear()!==n.getFullYear())))){var s={type:"date-marker",timestamp:i,trackBy:i.getTime()};e.push(s)}}(e,t),function(e,t,n){var i=r(e),a=void 0;t.typing&&!n||(i&&"message-group"===i.type&&(a=i.messages),a&&(0,o.isAuthor)(t.author,r(a))?a.push(t):e.push({type:"message-group",messages:[t],author:t.author,timestamp:t.timestamp,trackBy:t}))}(e,t,a),t.attachments&&t.attachments.length>1&&e.push({type:"attachment-group",attachments:t.attachments,attachmentLayout:t.attachmentLayout,timestamp:t.timestamp,trackBy:t}),t.suggestedActions&&a&&e.push({type:"action-group",actions:t.suggestedActions,timestamp:t.timestamp,trackBy:t}),e}),[]);return n=0,(t=a).forEach((function(e){"message-group"===e.type?e.messages.forEach((function(e){e.selectionIndex=n++})):"attachment-group"!==e.type&&"action-group"!==e.type||(e.selectionIndex=n++)})),t.lastSelectionIndex=n-1,a}},240:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},286:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},325: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});var i=n(899),a=n(859),s=n(859),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},t.prototype.getClassNames=function(){return(0,s.classNames)("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected})},t}(n(854).FocusableUponSelection);t.default=l},88: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});var i=n(899),a=n(859),s=n(325),l=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map((function(n,o){return i.createElement(s.default,{item:n,onActionExecute:e.props.onActionExecute,selected:o===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&o===e.state.selectedItemIndex,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,key:o})})))},t.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},t}(n(536).SelectableItemsContainer);t.default=l},797: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});var i=n(899),a=n(859),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},t.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},t.prototype.getClassNames=function(){return(0,a.classNames)({"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-card-wrap",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup})},t.prototype.getTitleView=function(){return this.props.item.title?i.createElement("h5",{className:"k-card-title"},this.props.item.title):null},t.prototype.getSubtitleView=function(){return this.props.item.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.item.subtitle):null},t.prototype.getContentView=function(){return 0===this.props.item.contentType.indexOf("image/")?i.createElement("img",{src:this.props.item.content}):this.props.item.content},t}(n(854).FocusableUponSelection);t.default=s},564: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});var i=n(899),a=n(859),s=n(797),l=n(536),c=n(389),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this,t=this.isCardDeckLayout(this.props),n=i.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map((function(t,n){return i.createElement(s.default,{item:t,template:e.props.itemTemplate,selected:n===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&n===e.state.selectedItemIndex,isFirstItemInGroup:0===n,isLastItemInGroup:n===e.getLastItemIndex(),onClick:function(){return e.onAttachmentClick(n)},key:n})})));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),n,this.getRightScrollBtn()):n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),t.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},t.prototype.getLeftScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex&&(t=i.createElement(c.Button,{icon:"arrow-chevron-left",onClick:function(){return e.onNavigateBtnClick(!1)}})),t},t.prototype.getRightScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()&&(t=i.createElement(c.Button,{icon:"arrow-chevron-right",onClick:function(){return e.onNavigateBtnClick(!0)}})),t},t.prototype.onAttachmentClick=function(e){this.onRequestContainerSelection(),this.setState({selectedItemIndex:e})},t.prototype.onNavigateBtnClick=function(e){this.onRequestContainerSelection(),this.navigate(e,1)},t.prototype.isCardDeckLayout=function(e){return"list"!==e.group.attachmentLayout},t.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(l.SelectableItemsContainer);t.default=u},177: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.Chat=void 0;var i=n(859),a=n(189),s=n(899),l=n(203),c=n(88),u=n(564),p=n(372),d=n(575),f=n(415),h=n(626),m=n(859),v=n(363),y=function(e){function t(t){var n=e.call(this,t)||this;return n.viewItems=[],n.isDirectionRightToLeft=!1,n.scrollToBottomOnLoadingData=!0,n.onFocus=function(){clearTimeout(n.timeoutIdForChatLosingFocus)},n.onBlur=function(){n.timeoutIdForChatLosingFocus=window.setTimeout((function(){n.setState({selectedItemIndex:null})}),0)},n.onSelectionRequested=function(e){n.setState({selectedItemIndex:e})},n.onKeyDown=function(e){var t=null,o=null!==n.state.selectedItemIndex?n.state.selectedItemIndex:n.viewItems.lastSelectionIndex;e.keyCode===i.Keys.up?null===o?t=0:o>0&&(t=o-1):e.keyCode===i.Keys.down&&(null===o?t=0:o<n.viewItems.lastSelectionIndex&&(t=o+1)),null!==t&&(n.setState({selectedItemIndex:t}),e.preventDefault())},n.onMessageSend=function(e,t){(0,i.dispatchEvent)(n.props.onMessageSend,t,n,{message:e})},n.onActionExecute=function(e,t){if((0,i.dispatchEvent)(n.props.onActionExecute,t,n,{action:e}),!t.isDefaultPrevented()){switch(e.type){case"reply":n.onMessageSend({author:n.props.user,text:e.value,timestamp:new Date},t);break;case"call":window.open("tel:"+e.value);break;case"openUrl":window.open(e.value)}n.newMsgComp.focusInput()}},(0,m.validatePackage)(v.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}return r(t,e),t.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),s.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},s.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},s.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),s.createElement(f.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},t.prototype.componentDidMount=function(){var e=this;this.setState({isFirstRender:!1},(function(){e.nextTickId=window.setTimeout((function(){return e.scrollViewItemsToBottom()}),250)}))},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidUpdate=function(e){e.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},t.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},t.prototype.checkIsDirectionRightToLeft=function(e){var t=void 0!==e.dir?"rtl"===e.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},t.prototype.renderViewItems=function(){var e=this,n=this.viewItems.length-1;return this.viewItems.map((function(o,r){return"date-marker"===o.type?s.createElement(p.default,{item:o,key:r}):"message-group"===o.type?s.createElement(d.default,{group:o,itemTemplate:e.props.messageTemplate,attachmentTemplate:e.props.attachmentTemplate,user:e.props.user,selectedItemIndex:e.state.selectedItemIndex,onRequestSelection:e.onSelectionRequested,isLastGroup:r===n,key:r,message:e.props.message||t.defaultProps.message}):"attachment-group"===o.type?s.createElement(u.default,{group:o,itemTemplate:e.props.attachmentTemplate,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):"action-group"===o.type?s.createElement(c.default,{group:o,onActionExecute:e.onActionExecute,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):void 0}))},t.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},t.prototype.getViewItemsFromMsgs=function(e){return e.length>0?(0,l.convertMsgsToViewItems)(e):[]},t.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(s.Component);t.Chat=y},626: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.ChatMessage=void 0;var i=n(899),a=n(859),s=n(499),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},t.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},t.prototype.getTimestampView=function(){var e=null;return this.props.item.timestamp&&(e=i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},(0,s.provideIntlService)(this).formatDate(this.props.item.timestamp,this.props.dateFormat))),e},t.prototype.getStatusView=function(){var e=null;return this.props.item.status&&(e=i.createElement("span",{className:"k-message-status"},this.props.item.status)),e},t.prototype.getClassNames=function(){return(0,a.classNames)({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-message")},t.defaultProps={dateFormat:"g",tabIndex:-1},t}(n(854).FocusableUponSelection);t.ChatMessage=l,(0,s.registerForIntl)(l)},372: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});var i=n(899),a=n(499),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(e.timestamp,"D"))},t}(i.Component);t.default=s,(0,a.registerForIntl)(s)},575: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});var i=n(899),a=n(859),s=n(797),l=n(147),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},t.prototype.getMsgGroupClassNames=function(){return(0,a.classNames)("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":(0,l.isAuthor)(this.props.user,this.props.group.messages[0])})},t.prototype.getAvatarView=function(){var e=null;return this.props.group.author.avatarUrl&&(e=i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"})),e},t.prototype.getAuthorNameView=function(){var e=null;return this.props.group.author.name&&(e=i.createElement("p",{className:"k-author"},this.props.group.author.name)),e},t.prototype.getGroupMessagesView=function(){var e=this,t=this.props.group.messages.length-1;return this.props.group.messages.map((function(n,o){var r=[i.createElement(e.props.message,{item:n,template:e.props.itemTemplate,selected:n.selectionIndex===e.props.selectedItemIndex,onRequestSelection:e.props.onRequestSelection,tabIndex:o===t&&e.props.isLastGroup?0:-1,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,isOnlyItemInGroup:0===t,key:o})];return n.attachments&&1===n.attachments.length&&r.push(i.createElement(s.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-".concat(o)})),r}))},t}(i.Component);t.default=c},415: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});var i=n(859),a=n(899),s=n(540),l=n(389),c=n(499),u=n(965),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.inputEl=null,t.onInputKeyDown=function(e){e.keyCode===i.Keys.enter&&t.sendMessage(e)},t.sendMessage=function(e){if(t.props.onMessageSend&&null!==t.inputEl){var n=t.inputEl.value;if(n){var o={author:t.props.user,text:n,timestamp:new Date};t.props.onMessageSend(o,e)}}null!==t.inputEl&&(t.inputEl.value=null)},t}return r(t,e),t.prototype.render=function(){var e=this,n=(0,c.provideLocalizationService)(this),o=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return e.setState({focused:!0})},onBlur:function(){return e.setState({focused:!1})},ref:function(t){return e.inputEl=t}}),r=a.createElement(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":n.toLanguageString(u.newMessageSendButton,u.messages[u.newMessageSendButton]),dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:t.buttonIconPath})))),i=a.createElement(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)},"aria-label":n.toLanguageString(u.newMessageOptionsButton,u.messages[u.newMessageOptionsButton])},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:o,sendButton:r,toolbarButton:i}):a.createElement(a.Fragment,null,o,this.props.toolbar&&i,r)),this.props.showToolbar&&a.createElement(s.default,null,this.props.toolbar))},t.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},t.prototype.getClassNames=function(){return(0,i.classNames)({"k-focus":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},t.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",t}(a.Component);t.default=p},540: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});var i=n(899),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},t}(i.Component);t.default=a},854: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.FocusableUponSelection=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.componentDidUpdate=function(e){!e.selected&&this.props.selected&&this.elementToFocus.focus()},t}(n(899).Component);t.FocusableUponSelection=i},536: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.SelectableItemsContainer=void 0;var i=n(899),a=n(859),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selectedItemIndex:null},t.onRequestContainerSelection=function(){return t.props.onRequestSelection(t.props.group.selectionIndex)},t.onKeyDown=function(e){var n,o,r=null;t.isKeyboardNavigationLeftRight?(n=a.Keys.left,o=a.Keys.right):(n=a.Keys.up,o=a.Keys.down),e.keyCode===n?r=t.navigate(!1):e.keyCode===o&&(r=t.navigate(!0)),null!==r&&(e.preventDefault(),e.stopPropagation())},t}return r(t,e),t.getDerivedStateFromProps=function(e,t){return e.selected||null===t.selectedItemIndex?e.selected&&null===t.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},t.prototype.navigate=function(e,t){void 0===t&&(t=0);var n=null,o=this.state.selectedItemIndex;return e?null===o?n=t:o<this.getLastSelectionIndex()&&(n=o+1):null===o?n=0:o>0&&(n=o-1),null!==n&&this.setState({selectedItemIndex:n}),n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getLastSelectionIndex=function(){var e=-1;if("action-group"===this.props.group.type){var t=this.props.group;e=t.actions?t.actions.length-1:-1}else if("attachment-group"===this.props.group.type){var n=this.props.group;e=n.attachments?n.attachments.length-1:-1}return e},t}(i.Component);t.SelectableItemsContainer=s},280: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.HeroCard=void 0;var i=n(899),a=n(389),s=n(859),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onBtnClick=function(e,n){(0,s.dispatchEvent)(t.props.onActionExecute,n,t,{action:e})},t}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},t.prototype.getActionsView=function(){var e=this;return this.props.actions.map((function(t,n){return i.createElement("span",{className:"k-card-action",key:n},i.createElement(a.Button,{fillMode:"flat",onClick:function(n){return e.onBtnClick(t,n)}},t.title))}))},t.prototype.getTitleView=function(){var e=null;return this.props.title&&(e=i.createElement("h5",{className:"k-card-title"},this.props.title)),e},t.prototype.getSubtitleView=function(){var e=null;return this.props.subtitle&&(e=i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle)),e},t}(i.Component);t.HeroCard=l},468:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMessage=void 0;var i=n(626);Object.defineProperty(t,"ChatMessage",{enumerable:!0,get:function(){return i.ChatMessage}}),r(n(240),t),r(n(647),t),r(n(286),t),r(n(318),t),r(n(177),t),r(n(271),t),r(n(310),t),r(n(280),t)},965:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.newMessageOptionsButton=t.newMessageSendButton=void 0,t.newMessageSendButton="newMessage.sendButton",t.newMessageOptionsButton="newMessage.optionsButton",t.messages=((n={})[t.newMessageSendButton]="Send",n[t.newMessageOptionsButton]="Options",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659604017,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"}},147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthor=void 0,t.isAuthor=function(e,t){return e&&t.author&&e.id===t.author.id}},389:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>d,ButtonGroup:()=>b,Chip:()=>st,ChipList:()=>ot,DropDownButton:()=>je,DropDownButtonItem:()=>Se,FloatingActionButton:()=>vt,FloatingActionButtonItem:()=>ut,SplitButton:()=>Ne,SplitButtonItem:()=>E,Toolbar:()=>Be,ToolbarItem:()=>Fe,ToolbarSeparator:()=>Ue,ToolbarSpacer:()=>He,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:1659603934,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,h=(o.className,o.onClick,o.size),m=void 0===h?t.defaultProps.size:h,v=o.shape,y=void 0===v?t.defaultProps.shape:v,g=o.rounded,b=void 0===g?t.defaultProps.rounded:g,w=o.fillMode,k=void 0===w?t.defaultProps.fillMode:w,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,_=void 0!==i,I=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[m]||m)]=m,e["k-button-".concat(y)]=y,e["k-button-".concat(k)]=k,e["k-button-".concat(k,"-").concat(O)]=Boolean(k&&O),e["k-rounded-".concat(s.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!_&&E,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),I,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:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),f=':not(.k-disabled):not([disabled]):not([disabled="true"])',h=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",m=["button"+f+h,".k-button-group > button"+f+h,".k-dropdownlist"+f,".k-colorpicker"+f];var v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),y=function(){return y=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},y.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"},b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(c),n}return v(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",y({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=y(y({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=y(y(y(y({},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),w=n(198),k=n(493),C=n(407),O=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};O.displayName="KendoReactButtonItem";var x=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 x(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),_=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}},I=n(994),D=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},P="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),N=n(827),M=n(259);const S="bottom",R="center",T="middle",j="left",A="right",L="top",B="fit",z="flip",F="none";var K,U,H,V=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!==R&&a!==T&&i!==R&&i!==T){var c=i===L||i===j;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},G=(K=function(e){if(!Y())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},H=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return H||(U=K.apply(void 0,e),H=!0),U}),Y=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const q={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:G,canUseDOM:Y};function X(e){return e.ownerDocument||e.document||e}const $=function(e){return X(e).defaultView},Z=function(e){return X(e).documentElement};var J=0;function Q(){if(!J&&"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),J=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return J}function ee(e){var t=$(e),n=Z(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=Q()),o}function te(e){var t=Z(e),n=$(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const ne=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 oe(e){return e===(e.ownerDocument||{}).body?te(e):{x:e.scrollLeft,y:e.scrollTop}}const re=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||Z(e)};function ie(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function ae(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var se=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],le=function(){return q.canUseDOM()?window:null},ce=/auto|scroll/,ue=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)},pe=function(e){if(!e||!q.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},de=function(){return q.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},fe={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===S&&(d+=t.height),s!==R&&s!==T||(d+=Math.round(t.height/2)),c===S&&(d-=o.height,p*=-1),c!==R&&c!==T||(d-=Math.round(o.height/2),p*=-1),a===A&&(f+=t.width),a!==R&&a!==T||(f+=Math.round(t.width/2)),l===A&&(f-=o.width,u*=-1),l!==R&&l!==T||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=ee(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=le();if(!t||!e)return[];var n=t.getComputedStyle(e);return se.map((function(e){return{key:e,value:n[e]}}))},getWindow:le,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?ne(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=ne(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?re(t):null,r=function(e,t){var n=$(e),o=n.getComputedStyle(e),r=ne(e),i=t||re(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=ne(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?oe(e):function(e){var t=re(e);return t?oe(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,h=s.horizontal||0,m=s.vertical||0,v=0,y=0,g=i.vertical===B,b=i.horizontal===B,w=i.vertical===z,k=i.horizontal===z;g&&(y+=V(l,u,d)),b&&(v+=V(c,p,f)),w&&(y+=W({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),k&&(v+=W({margin:h,offset:c,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==y,O=k&&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:te,scrollableParents:function(e){var t=[];if(!q.canUseDOM())return t;for(var n=e.parentElement;n;)(ce.test(ue(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:pe,stackingElementOffset:function(e){var t=pe(e);return t?ne(t):null},stackingElementScroll:function(e){var t=pe(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=pe(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(pe(e))},windowViewPort:ee,zoomLevel:de,isZoomed:function(){return de()>1},zIndex:function(e,t){if(!e||!q.canUseDOM())return null;var n=function(e,t){for(var n,o,r=ie(e),i=t;i&&(n=ae(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(ie(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 he=fe;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&&he.hasOffsetParent(n)?function(e,t,n,o){var r=q.eitherRect(he.position(e,t,o),n);return q.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:he.scrollPosition(t)}(e,t),i=q.eitherRect(he.offset(e),n),a=2*o,s=he.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=he.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),he.removeScroll(he.addScroll(q.removeStackingOffset(q.scaleRect(i,o),l),s),r)}(t,n,a,l),u=q.scaleRect(he.offset(n),l);return he.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var ve={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659603910,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"},ye=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 be(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 we,ke={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(we||(we={}));var Ce="k-animation-container-shown",Oe=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:we.hidden,previous:we.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:we.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=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=he.offsetAtPoint(o,n),u=q.scaleRect(c,l),p=q.scaleRect(he.offset(t),l),d=q.eitherRect(p,n),f=e.viewPort||he.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var h=he.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:f}),m=he.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}({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=p.offset.top+"px",e.style.left=p.offset.left+"px",n._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},n.props.onPosition){var d={target:n,flipped:p.flipped,fitted:p.fitted};n.props.onPosition.call(void 0,d)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(Ce),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),D(e),"exit"===o&&(e.style.display="none"),r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var c=l.defaultView;if(c){var u=function(){D(e),e.classList.add(i),c.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};P?c.requestAnimationFrame(u):u()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(Ce),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===we.hiding&&n.state.previous===we.shown&&n.setState({current:we.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)(ve),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 ye(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===we.hidden||t.current===we.hiding?ge(ge({},f),{current:we.showing,previous:t.current}):t.current===we.showing?ge(ge({},f),{current:we.shown,previous:t.current}):t.current!==we.shown||be(p,t.props.offset)&&be(r,t.props.anchorAlign)&&be(i,t.props.appendTo)&&be(a,t.props.collision)&&be(s,t.props.popupAlign)&&be(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:ge(ge({},f),{current:we.reposition,previous:t.current}):t.current===we.hiding||t.current===we.hidden?ge(ge({},f),{current:we.hidden,previous:t.current}):ge(ge({},f),{current:we.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===we.showing&&this._popup?this.show(this._popup):this.state.current===we.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===we.reposition&&this.state.previous===we.shown?this.setState({current:we.shown,previous:this.state.current}):this.state.current===we.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===we.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===we.reposition&&this.state.previous===we.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c,top:0,left:-1e4},this.props.style||{}),d=this.state.current===we.hiding;if((s||d)&&u){var f=this.getCurrentZIndex(),h=r.createElement(M.$.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?I.createPortal(h,u):h}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=he.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:we.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([B,z,F]),vertical:i.oneOf([B,z,F])}),anchorAlign:i.shape({horizontal:i.oneOf([j,R,A]),vertical:i.oneOf([L,R,S])}),popupAlign:i.shape({horizontal:i.oneOf([j,R,A]),vertical:i.oneOf([L,R,S])}),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:B,vertical:z},anchorAlign:{horizontal:j,vertical:S},popupAlign:{horizontal:j,vertical:L},offset:ke,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=M.$,t.displayName="PopupComponent",t}(r.Component),xe=function(){return xe=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},xe.apply(this,arguments)},Ee=r.createContext((function(e){return e})),_e=r.forwardRef((function(e,t){var n=r.useContext(Ee).call(void 0,e);return r.createElement(Oe,xe({ref:t},n))}));function Ie(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function De(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}_e.displayName="Popup";var Pe=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,w.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=_(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,C.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,C.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,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Pe(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===E})).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:"arrow-s",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,C.N)(this.props.onButtonClick,e,this,void 0):(0,C.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(_e,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Ie(e),popupAlign:o.popupAlign||De(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(O,{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:"rectangle",fillMode:"solid",themeColor:"base"},t}(r.Component),Me=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)}}(),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(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),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)}}(),Te=function(){return Te=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},Te.apply(this,arguments)},je=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,w.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=Te({},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=_(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,C.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,C.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,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Re(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===Se})).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,C.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(_e,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Ie(e),popupAlign:o.popupAlign||De(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(O,{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:"rectangle",fillMode:"solid",themeColor:"base"},t}(r.Component),Ae=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)}}(),Le=function(){return Le=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},Le.apply(this,arguments)},Be=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,Le(Le({target:o},i),{nativeEvent:e}))}}},(0,l.s)(c),o}return Ae(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=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-widget k-toolbar",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(t){return e._element=t},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)},t.defaultProps={tabIndex:0},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)}}(),Fe=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("span",{id:this.props.id,className: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),Ke=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)}}(),Ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ke(t,e),t.prototype.render=function(){return r.createElement(Fe,{className:"k-separator"})},t}(r.PureComponent),He=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})}));He.displayName="KendoReactToolbarSpacer",He.propTypes={className:i.string};var Ve,We,Ge,Ye,qe=n(199),Xe=n(659),$e=n(322),Ze=n(703),Je=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"}(Ve||(Ve={})),function(e){e.toggle="toggle",e.remove="remove"}(We||(We={})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Ge||(Ge={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ye||(Ye={}));var Qe=function(){return Qe=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},Qe.apply(this,arguments)},et=r.createContext([null,function(e){}]),tt=r.createContext([null,function(e){}]),nt=r.createContext([null,function(e){}]),ot=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,qe.n)(i,e.dir),p=e.chip,d=e.id,f=e.style,h=e.tabIndex,m=e.disabled,v=e.size,y=e.className,g=e.ariaDescribedBy,b=e.ariaLabelledBy,w=e.selection,k=void 0===w?it.selection:w,C=e.value,O=void 0===C?it.defaultValue:C,x=e.defaultData,E=void 0===x?it.defaultData:x,_=e.valueField,I=void 0===_?it.valueField:_,D=e.textField,P=void 0===D?it.textField:D,N=e.onChange,M=e.onDataChange,S=r.useMemo((function(){return p||st}),[p,st]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var R=r.useCallback((function(e,t){N&&o.current&&N.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[N]),T=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 Ve.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 Ve.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})):Je(Je([],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})):Je(Je([],e,!0),[t.payload],!1):e;default:return e}case Ve.none:return null;default:return e}}(t.state||i,Qe(Qe({},e),t));n&&n(o,e.event),a(o)}]}(O,{selection:k,state:O},R),j=T[0],A=T[1],L=r.useCallback((function(e,t){M&&o.current&&M.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[M]),B=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 Ye.add:break;case Ye.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Ye.reorder:break;default:return e}}(t.state||i,Qe(Qe({},e),t));n&&n(o,e.event),a(o)}]}(e.data||E,{state:e.data,valueField:I},L),z=B[0],F=B[1],K=r.useCallback((function(e,t){return e.push(t[I]),e}),[I]),U=r.useMemo((function(){return e.data||z}),[e.data,z]),H=r.useMemo((function(){return O||j}),[O,j]),V=r.useMemo((function(){return U.reduce(K,[])}),[U,K]),W=r.useCallback((function(e){return(0,Xe.Y)(I)(e)}),[I]),G=r.useCallback((function(e){return(0,Xe.Y)(P)(e)}),[P]),Y=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 Ge.next:return n===t.items.length-1?e:t.items[n+1];case Ge.prev:return 0===n?e:t.items[n-1];case Ge.current:return t.payload;case Ge.reset:return null;default:return e}}(t.payload,Qe(Qe({},t),e));o(n)}]}({items:V}),q=Y[0],X=Y[1],$=(0,$e.i)(e,o);return r.createElement(et.Provider,{value:[H,A]},r.createElement(tt.Provider,{value:[q,X]},r.createElement(nt.Provider,{value:[U,F]},r.createElement("div",Qe({ref:i},$,{role:"listbox",id:d,dir:u,style:f,tabIndex:(0,Ze.p)(h,m,void 0),className:(0,a.A)("k-chip-list",(n={"k-rtl":"rtl"===u,"k-disabled":m},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(S,{role:"option",dataItem:e,size:v,key:[W(e),t].join("-"),text:G(e),value:W(e)})}))))))})),rt={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"])},it={chip:st,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ot.displayName="KendoReactChipList",ot.propTypes=rt,ot.defaultProps=it;var at=function(){return at=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},at.apply(this,arguments)},st=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,qe.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(et),d=p[0],f=p[1],h=r.useContext(tt),m=h[0],v=h[1],y=r.useContext(nt)[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 m===e.value}),[e.value,m]);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:Ye.remove,payload:e.value,event:t}),v({type:Ge.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:Ge.prev,payload:e.value,event:t});break;case k.R.right:v({type:Ge.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:Ge.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]),_=(0,$e.i)(e,o,{onClick:w});return r.createElement("div",at({},_,{role:e.role,id:e.value,style:e.style,ref:i,dir:u,tabIndex:(0,Ze.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:"k-chip-action"},r.createElement("span",{className:(0,a.A)("k-chip-remove-action","k-icon",e.removeIcon),onClick:C}))))})),lt={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"])};st.displayName="KendoReactChip",st.propTypes=lt,st.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var ct=function(){return ct=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},ct.apply(this,arguments)},ut=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,h=e.item,m=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()}),[]),w=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,w);var k=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=h;return r.createElement("li",ct({ref:g,id:c,className:C,style:l,role:"menuitem",tabIndex:(0,Ze.p)(p,o),"aria-disabled":o,"aria-label":"".concat(i||""," floatingactionbutton item"),onClick:k,onMouseDown:m,onPointerDown:m},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))})))}));ut.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},ut.displayName="KendoFloatingActionButtonItem";var pt="16px",dt=function(e){return"number"==typeof e?e+"px":e},ft=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ht=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)},vt=r.forwardRef((function(e,t){(0,l.s)(c);var n=e.align,o=void 0===n?yt.align:n,i=e.alignOffset,u=e.className,p=e.disabled,d=e.icon,f=e.iconClass,h=e.id,m=e.items,v=e.item,y=e.text,g=e.positionMode,b=void 0===g?yt.positionMode:g,O=e.shape,x=void 0===O?yt.shape:O,E=e.size,_=void 0===E?yt.size:E,I=e.style,D=e.rounded,P=void 0===D?yt.rounded:D,N=e.themeColor,S=void 0===N?yt.themeColor:N,R=e.overlayStyle,T=e.tabIndex,j=e.accessKey,A=e.popupSettings,L=void 0===A?{}:A,B=e.modal,z=e.onClick,F=e.onItemClick,K=e.onFocus,U=e.onBlur,H=e.onKeyDown,V=e.onOpen,W=e.onClose,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,["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"]),Y=(0,M.u)(),q=Y?Y+2:100,X=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(X,ee),r.useImperativeHandle(t,(function(){return X.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,w.M)()}),[]),pe=(0,qe.n)($,e.dir),de="rtl"===pe,fe=r.useMemo((function(){return(0,w.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?dt(n.x):pt,s=n&&void 0!==n.x?"calc(50% + ".concat(dt(n.x),")"):"50%",l=n&&void 0!==n.y?dt(n.y):pt,c=n&&void 0!==n.y?"calc(50% + ".concat(dt(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 he=r.useCallback((function(e,t){m&&(0,C.N)(t?V:W,e,ee(),void 0)}),[V,W,m]),me=r.useCallback((function(e){e.target&&!p&&(!m&&z?(0,C.N)(z,e,ee(),void 0):(oe(!ne),ae(!0),ce(ne?-1:0),he(e,!ne)))}),[oe,ae,ce,z,he,ne,m,p]),ve=r.useCallback((function(e){ae(!0),ce(ne?0:-1),K&&(0,C.N)(K,e,ee(),void 0)}),[K,ae,ce]),ye=r.useCallback((function(e){ae(!1),oe(!1),ce(-1),(0,C.N)(U,e,ee(),void 0),ne&&he(e,!1)}),[U,ae,oe,ce,he]),ge=r.useCallback((function(e){e.preventDefault()}),[]),be=r.useCallback((function(e,t){m&&(m[t].disabled||(0,C.N)(F,e,ee(),{itemProps:m[t],itemIndex:t}))}),[F]),we=r.useCallback((function(e,t){e.target&&m&&(ce(t),oe(!1),be(e,t),he(e,!1))}),[ce,oe,be,he]),ke=r.useCallback((function(e){document.activeElement===$.current&&e.preventDefault()}),[$,document.activeElement]),Ce=r.useCallback((function(e){var t=le,n=m?m.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,C.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"===_,e["k-fab-md"]="medium"===_,e["k-fab-lg"]="large"===_,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===b,e["k-pos-fixed"]="fixed"===b,e["k-focus"]=ie,e["k-rounded-".concat(s.G.roundedMap[P]||P)]=P,e["k-fab-solid-".concat(S)]=S,e),"k-".concat(o.vertical,"-").concat(o.horizontal),u)}),[S,_,P,x,p,b,o,ie,u]),xe=m&&m.map((function(e,t){return r.createElement(ut,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:we,onDown:ke}));var n,i})),Ee=d&&!y,Ie=($.current?$.current.offsetWidth:0)/2-16;return r.createElement(M.$.Provider,{value:q},r.createElement(r.Fragment,null,r.createElement("button",mt({ref:$,id:h||ue,role:m?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":m?ne:void 0,"aria-haspopup":!!m,"aria-label":"".concat(y||""," floatingactionbutton"),"aria-owns":m?fe:void 0,"aria-activedescendant":le>=0&&m?"".concat(fe,"-").concat(le):void 0,tabIndex:(0,Ze.p)(T,p),accessKey:j,dir:pe,disabled:p,className:Oe,style:I,onClick:me,onMouseDown:ge,onFocus:ve,onBlur:ye,onKeyDown:Ce},G),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)),B&&ne&&r.createElement("div",{className:"k-overlay",style:mt({zIndex:q},R)}),r.createElement(_e,{ref:J,anchor:$.current,show:ne,animate:L.animate,popupClass:(0,a.A)("k-popup-transparent k-fab-popup",L.popupClass),anchorAlign:L.anchorAlign||ft(o,de),popupAlign:L.popupAlign||ht(o,de),style:{boxShadow:"none"}},r.createElement("ul",{ref:Z,role:"menu","aria-labelledby":h,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:Ee?Ie:void 0,paddingRight:Ee?Ie:void 0}},xe))))}));vt.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 yt={align:{vertical:"bottom",horizontal:"end"},shape:"rectangle",size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};vt.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}},859:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>U,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>X,DragAndDrop:()=>_e,Draggable:()=>Be,Droppable:()=>Fe,FormComponent:()=>v,Icon:()=>re,Keys:()=>w.R,SvgIcon:()=>se,Typography:()=>be,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>p,cloneArray:()=>h,cloneDate:()=>u,cloneObject:()=>d,cloneValue:()=>f,createPropsContext:()=>W,dispatchEvent:()=>B.N,extendDataItem:()=>T,focusFirstFocusableChild:()=>m,getItemPath:()=>j,getScrollbarWidth:()=>C,getTabIndex:()=>y.p,getter:()=>g.Y,guid:()=>b.M,hasRelativeStackingContext:()=>L,kendoThemeMaps:()=>Ke.G,mapTree:()=>S,mapTreeItem:()=>R,noop:()=>k,setScrollbarWidth:()=>O,setter:()=>I,useAsyncFocusBlur:()=>F,useCollection:()=>J,useCustomComponent:()=>Z,useDir:()=>Y.n,useDocument:()=>Q,useDraggable:()=>Le,useDroppable:()=>ze,useMouse:()=>$.i,usePropsContext:()=>H,useRtl:()=>q,useWindow:()=>ee,useZIndexContext:()=>o.u,validatePackage:()=>A.s,withPropsContext:()=>G});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 h(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 h(e){return e.map((function(e){return f(e,void 0)}))}var m=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),w=n(493),k=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}},_=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(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]]||_(t[a+1],o);r[t[i]]=n},E[e]}var D=function(){return D=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},D.apply(this,arguments)},P=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 N(e,t,n){var o;return n?D(D({},e),((o={})[t]=n.length?P([],n,!0):void 0,o)):e&&e[t]?P([],e[t],!0):[]}function M(e,t,n){if(e[t]){var o=N(e,t).map((function(e){return M(e,t,n)}));return n(N(e,t,o))}return n(e)}var S=function(e,t,n){return P([],e.map((function(e){return M(e,t,n)})),!0)},R=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)},T=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},j=function(e,t,n){var o=[],r=P([],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},A=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},B=n(407),z=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,z([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,z([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)},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)},W=function(){return c.createContext((function(e){return e}))},G=function(e,t){return c.forwardRef((function(n,o){var r=H(e,n);return c.createElement(t,V({},r,{ref:o}))}))},Y=n(199);function q(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 X,$=n(322),Z=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(X||(X={}));var J=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case X.add:t.current.push(e.item);break;case X.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=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"]),p=c.useRef(null),d=c.useRef(null);c.useImperativeHandle(p,(function(){return{element:d.current}})),c.useImperativeHandle(t,(function(){return p.current}));var f=c.useMemo((function(){return r||ie.themeColor}),[r]),h=c.useMemo((function(){return i||ie.size}),[i]),m=c.useMemo((function(){return a||ie.flip}),[a]),v=c.useMemo((function(){return(0,l.A)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},ne[h],n)}),[o,f,h,m,n]),y=(0,$.i)(e,p);return c.createElement("span",oe({ref:d},u,y,{className:v,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",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},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.size,u=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=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","size","style","svgStyle","themeColor","viewBox"]),m=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:m.current}}));var v=c.useMemo((function(){return i?i.name:le.icon}),[i]),y=c.useMemo((function(){return d||le.themeColor}),[d]),g=c.useMemo((function(){return s||le.size}),[s]),b=c.useMemo((function(){return a||le.flip}),[a]),w=c.useMemo((function(){return f||le.viewBox}),[f]),k=c.useMemo((function(){return(0,l.A)("k-svg-icon","k-color-"+y,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},ne[g],o)}),[v,y,g,b,o]),C=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},u):e.width?ae({width:e.width,height:e.width},u):e.height?ae({width:e.height,height:e.height},u):ae({},u)}),[e.width,e.height,u]);return c.createElement("span",{className:k,style:C,ref:m},c.createElement("svg",ae({className:r,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));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",themeColor:"inherit",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-"},he={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},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"]),h=c.useRef(null),m=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:m.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var v=e;return c.createElement(v,ye({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),ce[a],ue[s],he[l],me[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")},we=function(){return we=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},we.apply(this,arguments)},ke=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,we(we({},t),{value:e}))}),[n,i])]},Ce=c.createContext([void 0,k]),Oe=c.createContext([void 0,k]),xe=c.createContext([[],k,k]),Ee=c.createContext([[],k,k]),_e=function(e){var t=ke(null,void 0),n=t[0],o=t[1],r=ke(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:X.add,item:e})},function(e){u({type:X.remove,item:e})}]},c.createElement(Ee.Provider,{value:[d,function(e){f({type:X.add,item:e})},function(e){f({type:X.remove,item:e})}]},e.children))))};_e.displayName="KendoReactDragAndDrop";var Ie,De=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},Pe=function(e){return e&&e.ownerDocument||window.document},Ne=function(e){var t=De(),n=Pe(e);return t.edge||t.safari?n.body:n.documentElement},Me=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},Se=function(e){var t=Ne(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&&!Me(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"}(Ie||(Ie={}));var Re=function(){},Te=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s,l=n.onIsPressedChange,c=void 0===l?Re:l,u=n.onIsScrollingChange,p=void 0===u?Re:u,d=n.onVelocityChange,f=void 0===d?Re:d,h=n.onOffsetChange,m=void 0===h?Re:h,v=n.onPageOffsetChange,y=void 0===v?Re:v,g=n.onClientOffsetChange,b=void 0===g?Re:g,w=n.onScrollOffsetChange,k=void 0===w?Re:w,C=n.onInitialScrollOffsetChange,O=void 0===C?Re:C,x=t.payload,E=x.element,_=x.hint,I=e.autoScrollDirection,D=e.scrollableParent,P=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(P.type){case Ie.POINTER_DOWN:if(P.type===Ie.POINTER_DOWN&&(!P.originalEvent.isPrimary||0!==P.originalEvent.button))break;case Ie.MOUSE_DOWN:if(P.type===Ie.MOUSE_DOWN&&P.originalEvent.which&&P.originalEvent.which>1||e.ignoreMouse)break;case Ie.TOUCH_START:if(P.type===Ie.TOUCH_START&&1!==P.originalEvent.touches.length)break;case Ie.START:var N=D||Se(t.payload.element);O(N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop}),b({x:P.clientX,y:P.clientY}),y({x:P.pageX,y:P.pageY}),m({x:P.offsetX,y:P.offsetY}),c(!0),x.onPress&&x.onPress(P);break;case Ie.SCROLL:if(P.type===Ie.SCROLL&&!e.pressed)break;var M=D||Se(E),S=M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop};P.scrollX=S.x-e.initialScrollOffset.x,P.scrollY=S.y-e.initialScrollOffset.y,k({x:P.scrollX,y:P.scrollY});case Ie.POINTER_MOVE:if(P.type===Ie.POINTER_MOVE&&!P.originalEvent.isPrimary)break;case Ie.MOUSE_MOVE:case Ie.TOUCH_MOVE:if(P.type===Ie.TOUCH_MOVE&&1!==P.originalEvent.touches.length)break;case Ie.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==P.originalEvent.type&&E){var R=Pe(E),T=D||Se(R.elementFromPoint(P.clientX,P.clientY)),j=(o=P.clientX,r=P.clientY,i=function(e,t){var n=Ne(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}}(T,function(e){var t=Pe(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:I&&!1===I.horizontal?0:j.x,y:I&&!1===I.vertical?0:j.y}),p(0!==j.y||0!==j.x)}!e.drag&&x.onDragStart&&x.onDragStart(P),x.onDrag&&x.onDrag(P);var A=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}(_||E,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(_||E)}))),L=e.drops.find((function(e){return e.element===A}));L&&A&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(P.clientX,P.clientY,D||Se(A))&&A!==E?(e.drop&&e.drop.element)!==A?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P),L.onDragEnter&&L.onDragEnter(P)):L.onDragOver&&L.onDragOver(P):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}b({x:P.clientX,y:P.clientY}),y({x:P.pageX,y:P.pageY});break;case Ie.POINTER_UP:if(P.type===Ie.POINTER_UP&&!P.originalEvent.isPrimary)break;case Ie.MOUSE_UP:case Ie.TOUCH_END:if(P.type===Ie.TOUCH_END&&1!==P.originalEvent.touches.length)break;case Ie.END:c(!1),p(!1),x.onRelease&&x.onRelease(P),e.drop&&e.drop.onDrop&&e.drop.onDrop(P),x.onDragEnd&&x.onDragEnd(P);break;case Ie.POINTER_CANCEL:case Ie.CONTEXT_MENU:case Ie.TOUCH_CANCEL:case Ie.CANCEL:c(!1),p(!1),x.onDragEnd&&x.onDragEnd(P),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}},je=function(e,t){if(e){var n,o;e===Ne(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)}},Ae=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?k:o,i=t.onRelease,a=void 0===i?k:i,s=t.onDragStart,l=void 0===s?k:s,u=t.onDrag,p=void 0===u?k:u,d=t.onDragEnd,f=void 0===d?k:d,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,y=void 0!==v&&v,g=n.autoScroll,b=void 0===g||g,w=n.scrollContainer,C=void 0===w?null:w,O=c.useState(!1),x=O[0],E=O[1],_=c.useState(!1),I=_[0],D=_[1],P=Ae(Oe)[0],N=Ae(Ce),M=N[0],S=N[1],R=c.useContext(Ee)[0],T=c.useContext(xe),j=T[0],A=T[1],L=T[2],B=c.useRef({x:0,y:0}),z=c.useRef(),F=c.useRef(!1),K=c.useRef(),U=c.useRef(null),H=c.useRef(!1),V=c.useRef({x:0,y:0}),W=c.useRef({x:0,y:0}),G=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),X=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 m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),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:me,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:M?M.current:null,drop:P?P.current:null,drags:j.map((function(e){return e.current})),drops:R.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:q.current,offset:V.current,pageOffset:W.current,initialScrollOffset:X.current,clientOffset:G.current,initialClientOffset:Y.current,velocity:B.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[M,P,j,R,x,b,te,I]),ae=c.useCallback((function(e){E(e)}),[]),se=c.useCallback((function(e){D(e)}),[]),le=c.useCallback((function(e){B.current=e}),[]),ce=c.useCallback((function(e){V.current=e}),[]),ue=c.useCallback((function(e){G.current=e}),[]),pe=c.useCallback((function(e){W.current=e}),[]),de=c.useCallback((function(e){Y.current=e}),[]),fe=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){X.current=e}),[]),me=c.useCallback((function(e){r(e)}),[r]),ve=c.useCallback((function(e){a(e)}),[a]),ye=c.useCallback((function(t){S(ne,{target:e.current,event:t}),l(t)}),[S,e,l]),ge=c.useCallback((function(e){p(e)}),[p]),be=c.useCallback((function(t){H.current||(S(null,{target:e.current,event:t}),f(t))}),[f,S,e]),we=c.useCallback((function(e){Te(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ce,pe,ue,de,he,ae,fe,se]),ke=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){we(e)}),[we]),Ie=c.useCallback((function(e){we(e)}),[we]),De=c.useCallback((function(e){we(e)}),[we]),Pe=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){we(e)}),[we]),Re=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Le=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Be=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),ze=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)}we(e)}),[we,re]),Fe=c.useCallback((function(e){we(e)}),[we]),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 A(ne),function(){L(ne)}}),[L,A]);c.useEffect((function(){var e=re();if(I){var t=ee()||Se(document.elementFromPoint(G.current.x,G.current.y));e.clearInterval(z.current),z.current=e.setInterval((function(){je(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(z.current)}}),[J,ee,re,I]),c.useEffect(Ke,[Ke]),c.useEffect((function(){var e=re(),t=J(),n=oe();return Z?(t&&(U.current=Se(t),U.current&&U.current.addEventListener("scroll",Fe,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0})),x&&(n.addEventListener("pointermove",_e),n.addEventListener("pointerup",De,!0),n.addEventListener("contextmenu",Re),n.addEventListener("pointercancel",Ie,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Pe,{passive:!0}),y||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",Be,{passive:!0}),t.addEventListener("touchend",ze,{passive:!0})))),x&&(n.addEventListener("mousemove",Ne,{passive:!0}),n.addEventListener("mouseup",Me,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Fe),t&&(t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",Pe),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",Be),t.removeEventListener("touchend",ze)),n.removeEventListener("pointermove",_e),n.removeEventListener("pointerup",De,!0),n.removeEventListener("contextmenu",Re),n.removeEventListener("pointercancel",Ie),n.removeEventListener("mousemove",Ne),n.removeEventListener("mouseup",Me),e.removeEventListener("touchmove",k),e.clearTimeout(K.current)}}),[x,re,J,oe,y,Z,Re,Pe,Ne,Me,Ie,ke,_e,De,ze,Be,Le,Fe]),c.useEffect((function(){return function(){H.current=!0}}),[]),c.useLayoutEffect(Ue,[Ue])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),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 ze(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,o=void 0===n?k:n,r=t.onDragOver,i=void 0===r?k:r,a=t.onDragLeave,s=void 0===a?k:a,l=t.onDrop,u=void 0===l?k:l,p=Ae(Oe)[1],d=c.useContext(Ee),f=d[1],h=d[2],m=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:m(),onDragEnter:y,onDragOver:g,onDragLeave:b,onDrop:w,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]),w=c.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),C=c.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);c.useLayoutEffect(C,[C])}Be.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 ze(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)},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=t},499:e=>{e.exports=o},189:e=>{e.exports=n},899:t=>{t.exports=e},994:e=>{e.exports=r}},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}return 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})},s(468)})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@progress/kendo-licensing"),require("prop-types"),require("@progress/kendo-react-intl"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-licensing","prop-types","@progress/kendo-react-intl","react-dom"],t):"object"==typeof exports?exports.KendoReactConversationalUi=t(require("react"),require("@progress/kendo-licensing"),require("prop-types"),require("@progress/kendo-react-intl"),require("react-dom")):e.KendoReactConversationalUi=t(e.React,e.KendoLicensing,e.PropTypes,e.KendoReactIntl,e.ReactDOM)}(self,(function(e,t,n,o,r){return(()=>{"use strict";var i={271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},310:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},203:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertMsgsToViewItems=void 0;var o=n(147),r=function(e){return e[e.length-1]};t.convertMsgsToViewItems=function(e){var t,n,i,a=e.slice().reduce((i=e.length,function(e,t,n){var a=n===i-1;return function(e,t){var n,o,i=t.timestamp,a=r(e);if(i&&(!a||(n=i,o=a.timestamp,n&&o&&(o.getDate()!==n.getDate()||o.getMonth()!==n.getMonth()||o.getFullYear()!==n.getFullYear())))){var s={type:"date-marker",timestamp:i,trackBy:i.getTime()};e.push(s)}}(e,t),function(e,t,n){var i=r(e),a=void 0;t.typing&&!n||(i&&"message-group"===i.type&&(a=i.messages),a&&(0,o.isAuthor)(t.author,r(a))?a.push(t):e.push({type:"message-group",messages:[t],author:t.author,timestamp:t.timestamp,trackBy:t}))}(e,t,a),t.attachments&&t.attachments.length>1&&e.push({type:"attachment-group",attachments:t.attachments,attachmentLayout:t.attachmentLayout,timestamp:t.timestamp,trackBy:t}),t.suggestedActions&&a&&e.push({type:"action-group",actions:t.suggestedActions,timestamp:t.timestamp,trackBy:t}),e}),[]);return n=0,(t=a).forEach((function(e){"message-group"===e.type?e.messages.forEach((function(e){e.selectionIndex=n++})):"attachment-group"!==e.type&&"action-group"!==e.type||(e.selectionIndex=n++)})),t.lastSelectionIndex=n-1,a}},240:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},286:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},325: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});var i=n(899),a=n(859),s=n(859),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},t.prototype.getClassNames=function(){return(0,s.classNames)("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected})},t}(n(854).FocusableUponSelection);t.default=l},88: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});var i=n(899),a=n(859),s=n(325),l=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map((function(n,o){return i.createElement(s.default,{item:n,onActionExecute:e.props.onActionExecute,selected:o===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&o===e.state.selectedItemIndex,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,key:o})})))},t.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},t}(n(536).SelectableItemsContainer);t.default=l},797: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});var i=n(899),a=n(859),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},t.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},t.prototype.getClassNames=function(){return(0,a.classNames)({"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-card-wrap",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup})},t.prototype.getTitleView=function(){return this.props.item.title?i.createElement("h5",{className:"k-card-title"},this.props.item.title):null},t.prototype.getSubtitleView=function(){return this.props.item.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.item.subtitle):null},t.prototype.getContentView=function(){return 0===this.props.item.contentType.indexOf("image/")?i.createElement("img",{src:this.props.item.content}):this.props.item.content},t}(n(854).FocusableUponSelection);t.default=s},564: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});var i=n(899),a=n(859),s=n(797),l=n(536),c=n(389),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this,t=this.isCardDeckLayout(this.props),n=i.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map((function(t,n){return i.createElement(s.default,{item:t,template:e.props.itemTemplate,selected:n===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&n===e.state.selectedItemIndex,isFirstItemInGroup:0===n,isLastItemInGroup:n===e.getLastItemIndex(),onClick:function(){return e.onAttachmentClick(n)},key:n})})));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),n,this.getRightScrollBtn()):n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),t.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},t.prototype.getLeftScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex&&(t=i.createElement(c.Button,{icon:"arrow-chevron-left",onClick:function(){return e.onNavigateBtnClick(!1)}})),t},t.prototype.getRightScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()&&(t=i.createElement(c.Button,{icon:"arrow-chevron-right",onClick:function(){return e.onNavigateBtnClick(!0)}})),t},t.prototype.onAttachmentClick=function(e){this.onRequestContainerSelection(),this.setState({selectedItemIndex:e})},t.prototype.onNavigateBtnClick=function(e){this.onRequestContainerSelection(),this.navigate(e,1)},t.prototype.isCardDeckLayout=function(e){return"list"!==e.group.attachmentLayout},t.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(l.SelectableItemsContainer);t.default=u},177: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.Chat=void 0;var i=n(859),a=n(189),s=n(899),l=n(203),c=n(88),u=n(564),p=n(372),d=n(575),f=n(415),h=n(626),m=n(859),v=n(363),y=function(e){function t(t){var n=e.call(this,t)||this;return n.viewItems=[],n.isDirectionRightToLeft=!1,n.scrollToBottomOnLoadingData=!0,n.onFocus=function(){clearTimeout(n.timeoutIdForChatLosingFocus)},n.onBlur=function(){n.timeoutIdForChatLosingFocus=window.setTimeout((function(){n.setState({selectedItemIndex:null})}),0)},n.onSelectionRequested=function(e){n.setState({selectedItemIndex:e})},n.onKeyDown=function(e){var t=null,o=null!==n.state.selectedItemIndex?n.state.selectedItemIndex:n.viewItems.lastSelectionIndex;e.keyCode===i.Keys.up?null===o?t=0:o>0&&(t=o-1):e.keyCode===i.Keys.down&&(null===o?t=0:o<n.viewItems.lastSelectionIndex&&(t=o+1)),null!==t&&(n.setState({selectedItemIndex:t}),e.preventDefault())},n.onMessageSend=function(e,t){(0,i.dispatchEvent)(n.props.onMessageSend,t,n,{message:e})},n.onActionExecute=function(e,t){if((0,i.dispatchEvent)(n.props.onActionExecute,t,n,{action:e}),!t.isDefaultPrevented()){switch(e.type){case"reply":n.onMessageSend({author:n.props.user,text:e.value,timestamp:new Date},t);break;case"call":window.open("tel:"+e.value);break;case"openUrl":window.open(e.value)}n.newMsgComp.focusInput()}},(0,m.validatePackage)(v.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}return r(t,e),t.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),s.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},s.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},s.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),s.createElement(f.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},t.prototype.componentDidMount=function(){var e=this;this.setState({isFirstRender:!1},(function(){e.nextTickId=window.setTimeout((function(){return e.scrollViewItemsToBottom()}),250)}))},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidUpdate=function(e){e.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},t.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},t.prototype.checkIsDirectionRightToLeft=function(e){var t=void 0!==e.dir?"rtl"===e.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},t.prototype.renderViewItems=function(){var e=this,n=this.viewItems.length-1;return this.viewItems.map((function(o,r){return"date-marker"===o.type?s.createElement(p.default,{item:o,key:r}):"message-group"===o.type?s.createElement(d.default,{group:o,itemTemplate:e.props.messageTemplate,attachmentTemplate:e.props.attachmentTemplate,user:e.props.user,selectedItemIndex:e.state.selectedItemIndex,onRequestSelection:e.onSelectionRequested,isLastGroup:r===n,key:r,message:e.props.message||t.defaultProps.message}):"attachment-group"===o.type?s.createElement(u.default,{group:o,itemTemplate:e.props.attachmentTemplate,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):"action-group"===o.type?s.createElement(c.default,{group:o,onActionExecute:e.onActionExecute,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):void 0}))},t.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},t.prototype.getViewItemsFromMsgs=function(e){return e.length>0?(0,l.convertMsgsToViewItems)(e):[]},t.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(s.Component);t.Chat=y},626: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.ChatMessage=void 0;var i=n(899),a=n(859),s=n(499),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},t.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},t.prototype.getTimestampView=function(){var e=null;return this.props.item.timestamp&&(e=i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},(0,s.provideIntlService)(this).formatDate(this.props.item.timestamp,this.props.dateFormat))),e},t.prototype.getStatusView=function(){var e=null;return this.props.item.status&&(e=i.createElement("span",{className:"k-message-status"},this.props.item.status)),e},t.prototype.getClassNames=function(){return(0,a.classNames)({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-message")},t.defaultProps={dateFormat:"g",tabIndex:-1},t}(n(854).FocusableUponSelection);t.ChatMessage=l,(0,s.registerForIntl)(l)},372: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});var i=n(899),a=n(499),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(e.timestamp,"D"))},t}(i.Component);t.default=s,(0,a.registerForIntl)(s)},575: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});var i=n(899),a=n(859),s=n(797),l=n(147),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},t.prototype.getMsgGroupClassNames=function(){return(0,a.classNames)("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":(0,l.isAuthor)(this.props.user,this.props.group.messages[0])})},t.prototype.getAvatarView=function(){var e=null;return this.props.group.author.avatarUrl&&(e=i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"})),e},t.prototype.getAuthorNameView=function(){var e=null;return this.props.group.author.name&&(e=i.createElement("p",{className:"k-author"},this.props.group.author.name)),e},t.prototype.getGroupMessagesView=function(){var e=this,t=this.props.group.messages.length-1;return this.props.group.messages.map((function(n,o){var r=[i.createElement(e.props.message,{item:n,template:e.props.itemTemplate,selected:n.selectionIndex===e.props.selectedItemIndex,onRequestSelection:e.props.onRequestSelection,tabIndex:o===t&&e.props.isLastGroup?0:-1,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,isOnlyItemInGroup:0===t,key:o})];return n.attachments&&1===n.attachments.length&&r.push(i.createElement(s.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-".concat(o)})),r}))},t}(i.Component);t.default=c},415: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});var i=n(859),a=n(899),s=n(540),l=n(389),c=n(499),u=n(965),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.inputEl=null,t.onInputKeyDown=function(e){e.keyCode===i.Keys.enter&&t.sendMessage(e)},t.sendMessage=function(e){if(t.props.onMessageSend&&null!==t.inputEl){var n=t.inputEl.value;if(n){var o={author:t.props.user,text:n,timestamp:new Date};t.props.onMessageSend(o,e)}}null!==t.inputEl&&(t.inputEl.value=null)},t}return r(t,e),t.prototype.render=function(){var e=this,n=(0,c.provideLocalizationService)(this),o=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return e.setState({focused:!0})},onBlur:function(){return e.setState({focused:!1})},ref:function(t){return e.inputEl=t}}),r=a.createElement(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":n.toLanguageString(u.newMessageSendButton,u.messages[u.newMessageSendButton]),dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:t.buttonIconPath})))),i=a.createElement(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)},"aria-label":n.toLanguageString(u.newMessageOptionsButton,u.messages[u.newMessageOptionsButton])},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:o,sendButton:r,toolbarButton:i}):a.createElement(a.Fragment,null,o,this.props.toolbar&&i,r)),this.props.showToolbar&&a.createElement(s.default,null,this.props.toolbar))},t.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},t.prototype.getClassNames=function(){return(0,i.classNames)({"k-focus":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},t.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",t}(a.Component);t.default=p},540: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});var i=n(899),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},t}(i.Component);t.default=a},854: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.FocusableUponSelection=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.componentDidUpdate=function(e){!e.selected&&this.props.selected&&this.elementToFocus.focus()},t}(n(899).Component);t.FocusableUponSelection=i},536: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.SelectableItemsContainer=void 0;var i=n(899),a=n(859),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selectedItemIndex:null},t.onRequestContainerSelection=function(){return t.props.onRequestSelection(t.props.group.selectionIndex)},t.onKeyDown=function(e){var n,o,r=null;t.isKeyboardNavigationLeftRight?(n=a.Keys.left,o=a.Keys.right):(n=a.Keys.up,o=a.Keys.down),e.keyCode===n?r=t.navigate(!1):e.keyCode===o&&(r=t.navigate(!0)),null!==r&&(e.preventDefault(),e.stopPropagation())},t}return r(t,e),t.getDerivedStateFromProps=function(e,t){return e.selected||null===t.selectedItemIndex?e.selected&&null===t.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},t.prototype.navigate=function(e,t){void 0===t&&(t=0);var n=null,o=this.state.selectedItemIndex;return e?null===o?n=t:o<this.getLastSelectionIndex()&&(n=o+1):null===o?n=0:o>0&&(n=o-1),null!==n&&this.setState({selectedItemIndex:n}),n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getLastSelectionIndex=function(){var e=-1;if("action-group"===this.props.group.type){var t=this.props.group;e=t.actions?t.actions.length-1:-1}else if("attachment-group"===this.props.group.type){var n=this.props.group;e=n.attachments?n.attachments.length-1:-1}return e},t}(i.Component);t.SelectableItemsContainer=s},280: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.HeroCard=void 0;var i=n(899),a=n(389),s=n(859),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onBtnClick=function(e,n){(0,s.dispatchEvent)(t.props.onActionExecute,n,t,{action:e})},t}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},t.prototype.getActionsView=function(){var e=this;return this.props.actions.map((function(t,n){return i.createElement("span",{className:"k-card-action",key:n},i.createElement(a.Button,{fillMode:"flat",onClick:function(n){return e.onBtnClick(t,n)}},t.title))}))},t.prototype.getTitleView=function(){var e=null;return this.props.title&&(e=i.createElement("h5",{className:"k-card-title"},this.props.title)),e},t.prototype.getSubtitleView=function(){var e=null;return this.props.subtitle&&(e=i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle)),e},t}(i.Component);t.HeroCard=l},468:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMessage=void 0;var i=n(626);Object.defineProperty(t,"ChatMessage",{enumerable:!0,get:function(){return i.ChatMessage}}),r(n(240),t),r(n(647),t),r(n(286),t),r(n(318),t),r(n(177),t),r(n(271),t),r(n(310),t),r(n(280),t)},965:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.newMessageOptionsButton=t.newMessageSendButton=void 0,t.newMessageSendButton="newMessage.sendButton",t.newMessageOptionsButton="newMessage.optionsButton",t.messages=((n={})[t.newMessageSendButton]="Send",n[t.newMessageOptionsButton]="Options",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659939238,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"}},147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthor=void 0,t.isAuthor=function(e,t){return e&&t.author&&e.id===t.author.id}},389:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>d,ButtonGroup:()=>b,Chip:()=>st,ChipList:()=>ot,DropDownButton:()=>je,DropDownButtonItem:()=>Se,FloatingActionButton:()=>vt,FloatingActionButtonItem:()=>ut,SplitButton:()=>Ne,SplitButtonItem:()=>E,Toolbar:()=>Be,ToolbarItem:()=>Fe,ToolbarSeparator:()=>Ue,ToolbarSpacer:()=>He,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:1659939160,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,h=(o.className,o.onClick,o.size),m=void 0===h?t.defaultProps.size:h,v=o.shape,y=void 0===v?t.defaultProps.shape:v,g=o.rounded,b=void 0===g?t.defaultProps.rounded:g,w=o.fillMode,k=void 0===w?t.defaultProps.fillMode:w,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,_=void 0!==i,I=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[m]||m)]=m,e["k-button-".concat(y)]=y,e["k-button-".concat(k)]=k,e["k-button-".concat(k,"-").concat(O)]=Boolean(k&&O),e["k-rounded-".concat(s.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!_&&E,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),I,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:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),f=':not(.k-disabled):not([disabled]):not([disabled="true"])',h=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",m=["button"+f+h,".k-button-group > button"+f+h,".k-dropdownlist"+f,".k-colorpicker"+f];var v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),y=function(){return y=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},y.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"},b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,l.s)(c),n}return v(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",y({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=y(y({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=y(y(y(y({},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),w=n(198),k=n(493),C=n(407),O=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};O.displayName="KendoReactButtonItem";var x=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 x(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),_=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}},I=n(994),D=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},P="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),N=n(827),M=n(259);const S="bottom",R="center",T="middle",j="left",A="right",L="top",B="fit",z="flip",F="none";var K,U,H,V=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!==R&&a!==T&&i!==R&&i!==T){var c=i===L||i===j;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},G=(K=function(e){if(!Y())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},H=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return H||(U=K.apply(void 0,e),H=!0),U}),Y=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const q={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:G,canUseDOM:Y};function X(e){return e.ownerDocument||e.document||e}const $=function(e){return X(e).defaultView},Z=function(e){return X(e).documentElement};var J=0;function Q(){if(!J&&"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),J=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return J}function ee(e){var t=$(e),n=Z(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=Q()),o}function te(e){var t=Z(e),n=$(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const ne=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 oe(e){return e===(e.ownerDocument||{}).body?te(e):{x:e.scrollLeft,y:e.scrollTop}}const re=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||Z(e)};function ie(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function ae(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var se=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],le=function(){return q.canUseDOM()?window:null},ce=/auto|scroll/,ue=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)},pe=function(e){if(!e||!q.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},de=function(){return q.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},fe={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===S&&(d+=t.height),s!==R&&s!==T||(d+=Math.round(t.height/2)),c===S&&(d-=o.height,p*=-1),c!==R&&c!==T||(d-=Math.round(o.height/2),p*=-1),a===A&&(f+=t.width),a!==R&&a!==T||(f+=Math.round(t.width/2)),l===A&&(f-=o.width,u*=-1),l!==R&&l!==T||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=ee(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=le();if(!t||!e)return[];var n=t.getComputedStyle(e);return se.map((function(e){return{key:e,value:n[e]}}))},getWindow:le,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?ne(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=ne(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?re(t):null,r=function(e,t){var n=$(e),o=n.getComputedStyle(e),r=ne(e),i=t||re(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=ne(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?oe(e):function(e){var t=re(e);return t?oe(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,h=s.horizontal||0,m=s.vertical||0,v=0,y=0,g=i.vertical===B,b=i.horizontal===B,w=i.vertical===z,k=i.horizontal===z;g&&(y+=V(l,u,d)),b&&(v+=V(c,p,f)),w&&(y+=W({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),k&&(v+=W({margin:h,offset:c,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var C=w&&0!==y,O=k&&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:te,scrollableParents:function(e){var t=[];if(!q.canUseDOM())return t;for(var n=e.parentElement;n;)(ce.test(ue(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:pe,stackingElementOffset:function(e){var t=pe(e);return t?ne(t):null},stackingElementScroll:function(e){var t=pe(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=pe(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(pe(e))},windowViewPort:ee,zoomLevel:de,isZoomed:function(){return de()>1},zIndex:function(e,t){if(!e||!q.canUseDOM())return null;var n=function(e,t){for(var n,o,r=ie(e),i=t;i&&(n=ae(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(ie(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 he=fe;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&&he.hasOffsetParent(n)?function(e,t,n,o){var r=q.eitherRect(he.position(e,t,o),n);return q.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:he.scrollPosition(t)}(e,t),i=q.eitherRect(he.offset(e),n),a=2*o,s=he.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=he.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),he.removeScroll(he.addScroll(q.removeStackingOffset(q.scaleRect(i,o),l),s),r)}(t,n,a,l),u=q.scaleRect(he.offset(n),l);return he.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var ve={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659939137,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"},ye=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 be(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 we,ke={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(we||(we={}));var Ce="k-animation-container-shown",Oe=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:we.hidden,previous:we.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:we.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=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=he.offsetAtPoint(o,n),u=q.scaleRect(c,l),p=q.scaleRect(he.offset(t),l),d=q.eitherRect(p,n),f=e.viewPort||he.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var h=he.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:f}),m=he.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}({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=p.offset.top+"px",e.style.left=p.offset.left+"px",n._collisions={fit:p.fit,fitted:p.fitted,flip:p.flip,flipped:p.flipped},n.props.onPosition){var d={target:n,flipped:p.flipped,fitted:p.fitted};n.props.onPosition.call(void 0,d)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(Ce),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),D(e),"exit"===o&&(e.style.display="none"),r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var c=l.defaultView;if(c){var u=function(){D(e),e.classList.add(i),c.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};P?c.requestAnimationFrame(u):u()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(Ce),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===we.hiding&&n.state.previous===we.shown&&n.setState({current:we.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)(ve),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 ye(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===we.hidden||t.current===we.hiding?ge(ge({},f),{current:we.showing,previous:t.current}):t.current===we.showing?ge(ge({},f),{current:we.shown,previous:t.current}):t.current!==we.shown||be(p,t.props.offset)&&be(r,t.props.anchorAlign)&&be(i,t.props.appendTo)&&be(a,t.props.collision)&&be(s,t.props.popupAlign)&&be(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?f:ge(ge({},f),{current:we.reposition,previous:t.current}):t.current===we.hiding||t.current===we.hidden?ge(ge({},f),{current:we.hidden,previous:t.current}):ge(ge({},f),{current:we.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===we.showing&&this._popup?this.show(this._popup):this.state.current===we.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===we.reposition&&this.state.previous===we.shown?this.setState({current:we.shown,previous:this.state.current}):this.state.current===we.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===we.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===we.reposition&&this.state.previous===we.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:c,top:0,left:-1e4},this.props.style||{}),d=this.state.current===we.hiding;if((s||d)&&u){var f=this.getCurrentZIndex(),h=r.createElement(M.$.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?I.createPortal(h,u):h}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=he.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:we.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([B,z,F]),vertical:i.oneOf([B,z,F])}),anchorAlign:i.shape({horizontal:i.oneOf([j,R,A]),vertical:i.oneOf([L,R,S])}),popupAlign:i.shape({horizontal:i.oneOf([j,R,A]),vertical:i.oneOf([L,R,S])}),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:B,vertical:z},anchorAlign:{horizontal:j,vertical:S},popupAlign:{horizontal:j,vertical:L},offset:ke,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=M.$,t.displayName="PopupComponent",t}(r.Component),xe=function(){return xe=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},xe.apply(this,arguments)},Ee=r.createContext((function(e){return e})),_e=r.forwardRef((function(e,t){var n=r.useContext(Ee).call(void 0,e);return r.createElement(Oe,xe({ref:t},n))}));function Ie(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function De(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}_e.displayName="Popup";var Pe=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,w.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=_(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,C.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,C.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,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Pe(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===E})).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:"arrow-s",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,C.N)(this.props.onButtonClick,e,this,void 0):(0,C.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(_e,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Ie(e),popupAlign:o.popupAlign||De(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(O,{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:"rectangle",fillMode:"solid",themeColor:"base"},t}(r.Component),Me=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)}}(),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Me(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),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)}}(),Te=function(){return Te=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},Te.apply(this,arguments)},je=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,w.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=Te({},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=_(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,C.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,opened:!1,focusedIndex:-1}),(0,C.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,C.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},(0,l.s)(c),n}return Re(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===Se})).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,C.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(_e,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,a.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Ie(e),popupAlign:o.popupAlign||De(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(O,{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:"rectangle",fillMode:"solid",themeColor:"base"},t}(r.Component),Ae=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)}}(),Le=function(){return Le=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},Le.apply(this,arguments)},Be=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,Le(Le({target:o},i),{nativeEvent:e}))}}},(0,l.s)(c),o}return Ae(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=this;return r.createElement("div",{id:this.props.id,className:(0,a.A)("k-widget k-toolbar",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(t){return e._element=t},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)},t.defaultProps={tabIndex:0},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)}}(),Fe=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("span",{id:this.props.id,className: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),Ke=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)}}(),Ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ke(t,e),t.prototype.render=function(){return r.createElement(Fe,{className:"k-separator"})},t}(r.PureComponent),He=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})}));He.displayName="KendoReactToolbarSpacer",He.propTypes={className:i.string};var Ve,We,Ge,Ye,qe=n(199),Xe=n(659),$e=n(322),Ze=n(703),Je=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"}(Ve||(Ve={})),function(e){e.toggle="toggle",e.remove="remove"}(We||(We={})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Ge||(Ge={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ye||(Ye={}));var Qe=function(){return Qe=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},Qe.apply(this,arguments)},et=r.createContext([null,function(e){}]),tt=r.createContext([null,function(e){}]),nt=r.createContext([null,function(e){}]),ot=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,qe.n)(i,e.dir),p=e.chip,d=e.id,f=e.style,h=e.tabIndex,m=e.disabled,v=e.size,y=e.className,g=e.ariaDescribedBy,b=e.ariaLabelledBy,w=e.selection,k=void 0===w?it.selection:w,C=e.value,O=void 0===C?it.defaultValue:C,x=e.defaultData,E=void 0===x?it.defaultData:x,_=e.valueField,I=void 0===_?it.valueField:_,D=e.textField,P=void 0===D?it.textField:D,N=e.onChange,M=e.onDataChange,S=r.useMemo((function(){return p||st}),[p,st]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var R=r.useCallback((function(e,t){N&&o.current&&N.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[N]),T=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 Ve.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 Ve.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})):Je(Je([],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})):Je(Je([],e,!0),[t.payload],!1):e;default:return e}case Ve.none:return null;default:return e}}(t.state||i,Qe(Qe({},e),t));n&&n(o,e.event),a(o)}]}(O,{selection:k,state:O},R),j=T[0],A=T[1],L=r.useCallback((function(e,t){M&&o.current&&M.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[M]),B=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 Ye.add:break;case Ye.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case Ye.reorder:break;default:return e}}(t.state||i,Qe(Qe({},e),t));n&&n(o,e.event),a(o)}]}(e.data||E,{state:e.data,valueField:I},L),z=B[0],F=B[1],K=r.useCallback((function(e,t){return e.push(t[I]),e}),[I]),U=r.useMemo((function(){return e.data||z}),[e.data,z]),H=r.useMemo((function(){return O||j}),[O,j]),V=r.useMemo((function(){return U.reduce(K,[])}),[U,K]),W=r.useCallback((function(e){return(0,Xe.Y)(I)(e)}),[I]),G=r.useCallback((function(e){return(0,Xe.Y)(P)(e)}),[P]),Y=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 Ge.next:return n===t.items.length-1?e:t.items[n+1];case Ge.prev:return 0===n?e:t.items[n-1];case Ge.current:return t.payload;case Ge.reset:return null;default:return e}}(t.payload,Qe(Qe({},t),e));o(n)}]}({items:V}),q=Y[0],X=Y[1],$=(0,$e.i)(e,o);return r.createElement(et.Provider,{value:[H,A]},r.createElement(tt.Provider,{value:[q,X]},r.createElement(nt.Provider,{value:[U,F]},r.createElement("div",Qe({ref:i},$,{role:"listbox",id:d,dir:u,style:f,tabIndex:(0,Ze.p)(h,m,void 0),className:(0,a.A)("k-chip-list",(n={"k-rtl":"rtl"===u,"k-disabled":m},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(S,{role:"option",dataItem:e,size:v,key:[W(e),t].join("-"),text:G(e),value:W(e)})}))))))})),rt={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"])},it={chip:st,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ot.displayName="KendoReactChipList",ot.propTypes=rt,ot.defaultProps=it;var at=function(){return at=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},at.apply(this,arguments)},st=r.forwardRef((function(e,t){var n;(0,l.s)(c);var o=r.useRef(null),i=r.useRef(null),u=(0,qe.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(et),d=p[0],f=p[1],h=r.useContext(tt),m=h[0],v=h[1],y=r.useContext(nt)[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 m===e.value}),[e.value,m]);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:Ye.remove,payload:e.value,event:t}),v({type:Ge.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:Ge.prev,payload:e.value,event:t});break;case k.R.right:v({type:Ge.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:Ge.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]),_=(0,$e.i)(e,o,{onClick:w});return r.createElement("div",at({},_,{role:e.role,id:e.value,style:e.style,ref:i,dir:u,tabIndex:(0,Ze.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:"k-chip-action"},r.createElement("span",{className:(0,a.A)("k-chip-remove-action","k-icon",e.removeIcon),onClick:C}))))})),lt={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"])};st.displayName="KendoReactChip",st.propTypes=lt,st.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var ct=function(){return ct=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},ct.apply(this,arguments)},ut=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,h=e.item,m=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()}),[]),w=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,w);var k=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=h;return r.createElement("li",ct({ref:g,id:c,className:C,style:l,role:"menuitem",tabIndex:(0,Ze.p)(p,o),"aria-disabled":o,"aria-label":"".concat(i||""," floatingactionbutton item"),onClick:k,onMouseDown:m,onPointerDown:m},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))})))}));ut.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},ut.displayName="KendoFloatingActionButtonItem";var pt="16px",dt=function(e){return"number"==typeof e?e+"px":e},ft=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},ht=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)},vt=r.forwardRef((function(e,t){(0,l.s)(c);var n=e.align,o=void 0===n?yt.align:n,i=e.alignOffset,u=e.className,p=e.disabled,d=e.icon,f=e.iconClass,h=e.id,m=e.items,v=e.item,y=e.text,g=e.positionMode,b=void 0===g?yt.positionMode:g,O=e.shape,x=void 0===O?yt.shape:O,E=e.size,_=void 0===E?yt.size:E,I=e.style,D=e.rounded,P=void 0===D?yt.rounded:D,N=e.themeColor,S=void 0===N?yt.themeColor:N,R=e.overlayStyle,T=e.tabIndex,j=e.accessKey,A=e.popupSettings,L=void 0===A?{}:A,B=e.modal,z=e.onClick,F=e.onItemClick,K=e.onFocus,U=e.onBlur,H=e.onKeyDown,V=e.onOpen,W=e.onClose,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,["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"]),Y=(0,M.u)(),q=Y?Y+2:100,X=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(X,ee),r.useImperativeHandle(t,(function(){return X.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,w.M)()}),[]),pe=(0,qe.n)($,e.dir),de="rtl"===pe,fe=r.useMemo((function(){return(0,w.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?dt(n.x):pt,s=n&&void 0!==n.x?"calc(50% + ".concat(dt(n.x),")"):"50%",l=n&&void 0!==n.y?dt(n.y):pt,c=n&&void 0!==n.y?"calc(50% + ".concat(dt(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 he=r.useCallback((function(e,t){m&&(0,C.N)(t?V:W,e,ee(),void 0)}),[V,W,m]),me=r.useCallback((function(e){e.target&&!p&&(!m&&z?(0,C.N)(z,e,ee(),void 0):(oe(!ne),ae(!0),ce(ne?-1:0),he(e,!ne)))}),[oe,ae,ce,z,he,ne,m,p]),ve=r.useCallback((function(e){ae(!0),ce(ne?0:-1),K&&(0,C.N)(K,e,ee(),void 0)}),[K,ae,ce]),ye=r.useCallback((function(e){ae(!1),oe(!1),ce(-1),(0,C.N)(U,e,ee(),void 0),ne&&he(e,!1)}),[U,ae,oe,ce,he]),ge=r.useCallback((function(e){e.preventDefault()}),[]),be=r.useCallback((function(e,t){m&&(m[t].disabled||(0,C.N)(F,e,ee(),{itemProps:m[t],itemIndex:t}))}),[F]),we=r.useCallback((function(e,t){e.target&&m&&(ce(t),oe(!1),be(e,t),he(e,!1))}),[ce,oe,be,he]),ke=r.useCallback((function(e){document.activeElement===$.current&&e.preventDefault()}),[$,document.activeElement]),Ce=r.useCallback((function(e){var t=le,n=m?m.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,C.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"===_,e["k-fab-md"]="medium"===_,e["k-fab-lg"]="large"===_,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===b,e["k-pos-fixed"]="fixed"===b,e["k-focus"]=ie,e["k-rounded-".concat(s.G.roundedMap[P]||P)]=P,e["k-fab-solid-".concat(S)]=S,e),"k-".concat(o.vertical,"-").concat(o.horizontal),u)}),[S,_,P,x,p,b,o,ie,u]),xe=m&&m.map((function(e,t){return r.createElement(ut,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:we,onDown:ke}));var n,i})),Ee=d&&!y,Ie=($.current?$.current.offsetWidth:0)/2-16;return r.createElement(M.$.Provider,{value:q},r.createElement(r.Fragment,null,r.createElement("button",mt({ref:$,id:h||ue,role:m?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":m?ne:void 0,"aria-haspopup":!!m,"aria-label":"".concat(y||""," floatingactionbutton"),"aria-owns":m?fe:void 0,"aria-activedescendant":le>=0&&m?"".concat(fe,"-").concat(le):void 0,tabIndex:(0,Ze.p)(T,p),accessKey:j,dir:pe,disabled:p,className:Oe,style:I,onClick:me,onMouseDown:ge,onFocus:ve,onBlur:ye,onKeyDown:Ce},G),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)),B&&ne&&r.createElement("div",{className:"k-overlay",style:mt({zIndex:q},R)}),r.createElement(_e,{ref:J,anchor:$.current,show:ne,animate:L.animate,popupClass:(0,a.A)("k-popup-transparent k-fab-popup",L.popupClass),anchorAlign:L.anchorAlign||ft(o,de),popupAlign:L.popupAlign||ht(o,de),style:{boxShadow:"none"}},r.createElement("ul",{ref:Z,role:"menu","aria-labelledby":h,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:Ee?Ie:void 0,paddingRight:Ee?Ie:void 0}},xe))))}));vt.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 yt={align:{vertical:"bottom",horizontal:"end"},shape:"rectangle",size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};vt.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}},859:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>U,BrowserSupportService:()=>i,COLLECTION_ACTION:()=>X,DragAndDrop:()=>_e,Draggable:()=>Be,Droppable:()=>Fe,FormComponent:()=>v,Icon:()=>re,Keys:()=>w.R,SvgIcon:()=>se,Typography:()=>be,ZIndexContext:()=>o.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>p,cloneArray:()=>h,cloneDate:()=>u,cloneObject:()=>d,cloneValue:()=>f,createPropsContext:()=>W,dispatchEvent:()=>B.N,extendDataItem:()=>T,focusFirstFocusableChild:()=>m,getItemPath:()=>j,getScrollbarWidth:()=>C,getTabIndex:()=>y.p,getter:()=>g.Y,guid:()=>b.M,hasRelativeStackingContext:()=>L,kendoThemeMaps:()=>Ke.G,mapTree:()=>S,mapTreeItem:()=>R,noop:()=>k,setScrollbarWidth:()=>O,setter:()=>I,useAsyncFocusBlur:()=>F,useCollection:()=>J,useCustomComponent:()=>Z,useDir:()=>Y.n,useDocument:()=>Q,useDraggable:()=>Le,useDroppable:()=>ze,useMouse:()=>$.i,usePropsContext:()=>H,useRtl:()=>q,useWindow:()=>ee,useZIndexContext:()=>o.u,validatePackage:()=>A.s,withPropsContext:()=>G});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 h(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 h(e){return e.map((function(e){return f(e,void 0)}))}var m=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),w=n(493),k=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}},_=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(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]]||_(t[a+1],o);r[t[i]]=n},E[e]}var D=function(){return D=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},D.apply(this,arguments)},P=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 N(e,t,n){var o;return n?D(D({},e),((o={})[t]=n.length?P([],n,!0):void 0,o)):e&&e[t]?P([],e[t],!0):[]}function M(e,t,n){if(e[t]){var o=N(e,t).map((function(e){return M(e,t,n)}));return n(N(e,t,o))}return n(e)}var S=function(e,t,n){return P([],e.map((function(e){return M(e,t,n)})),!0)},R=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)},T=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},j=function(e,t,n){var o=[],r=P([],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},A=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},B=n(407),z=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,z([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,z([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)},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)},W=function(){return c.createContext((function(e){return e}))},G=function(e,t){return c.forwardRef((function(n,o){var r=H(e,n);return c.createElement(t,V({},r,{ref:o}))}))},Y=n(199);function q(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 X,$=n(322),Z=function(e){return[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(X||(X={}));var J=function(e){void 0===e&&(e=[]);var t=c.useRef(e),n=c.useCallback((function(e){switch(e.type){case X.add:t.current.push(e.item);break;case X.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=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"]),p=c.useRef(null),d=c.useRef(null);c.useImperativeHandle(p,(function(){return{element:d.current}})),c.useImperativeHandle(t,(function(){return p.current}));var f=c.useMemo((function(){return r||ie.themeColor}),[r]),h=c.useMemo((function(){return i||ie.size}),[i]),m=c.useMemo((function(){return a||ie.flip}),[a]),v=c.useMemo((function(){return(0,l.A)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},ne[h],n)}),[o,f,h,m,n]),y=(0,$.i)(e,p);return c.createElement("span",oe({ref:d},u,y,{className:v,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",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},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.size,u=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=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","size","style","svgStyle","themeColor","viewBox"]),m=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:m.current}}));var v=c.useMemo((function(){return i?i.name:le.icon}),[i]),y=c.useMemo((function(){return d||le.themeColor}),[d]),g=c.useMemo((function(){return s||le.size}),[s]),b=c.useMemo((function(){return a||le.flip}),[a]),w=c.useMemo((function(){return f||le.viewBox}),[f]),k=c.useMemo((function(){return(0,l.A)("k-svg-icon","k-color-"+y,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},ne[g],o)}),[v,y,g,b,o]),C=c.useMemo((function(){return e.width&&e.height?ae({width:e.width,height:e.height},u):e.width?ae({width:e.width,height:e.width},u):e.height?ae({width:e.height,height:e.height},u):ae({},u)}),[e.width,e.height,u]);return c.createElement("span",{className:k,style:C,ref:m},c.createElement("svg",ae({className:r,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:w,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));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",themeColor:"inherit",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-"},he={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},me={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},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"]),h=c.useRef(null),m=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:m.current,props:t}})),c.useImperativeHandle(n,(function(){return h.current}));var v=e;return c.createElement(v,ye({id:o,ref:m,className:["k-".concat("p"===e?"paragraph":e),ce[a],ue[s],he[l],me[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")},we=function(){return we=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},we.apply(this,arguments)},ke=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,we(we({},t),{value:e}))}),[n,i])]},Ce=c.createContext([void 0,k]),Oe=c.createContext([void 0,k]),xe=c.createContext([[],k,k]),Ee=c.createContext([[],k,k]),_e=function(e){var t=ke(null,void 0),n=t[0],o=t[1],r=ke(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:X.add,item:e})},function(e){u({type:X.remove,item:e})}]},c.createElement(Ee.Provider,{value:[d,function(e){f({type:X.add,item:e})},function(e){f({type:X.remove,item:e})}]},e.children))))};_e.displayName="KendoReactDragAndDrop";var Ie,De=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},Pe=function(e){return e&&e.ownerDocument||window.document},Ne=function(e){var t=De(),n=Pe(e);return t.edge||t.safari?n.body:n.documentElement},Me=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},Se=function(e){var t=Ne(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&&!Me(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"}(Ie||(Ie={}));var Re=function(){},Te=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s,l=n.onIsPressedChange,c=void 0===l?Re:l,u=n.onIsScrollingChange,p=void 0===u?Re:u,d=n.onVelocityChange,f=void 0===d?Re:d,h=n.onOffsetChange,m=void 0===h?Re:h,v=n.onPageOffsetChange,y=void 0===v?Re:v,g=n.onClientOffsetChange,b=void 0===g?Re:g,w=n.onScrollOffsetChange,k=void 0===w?Re:w,C=n.onInitialScrollOffsetChange,O=void 0===C?Re:C,x=t.payload,E=x.element,_=x.hint,I=e.autoScrollDirection,D=e.scrollableParent,P=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(P.type){case Ie.POINTER_DOWN:if(P.type===Ie.POINTER_DOWN&&(!P.originalEvent.isPrimary||0!==P.originalEvent.button))break;case Ie.MOUSE_DOWN:if(P.type===Ie.MOUSE_DOWN&&P.originalEvent.which&&P.originalEvent.which>1||e.ignoreMouse)break;case Ie.TOUCH_START:if(P.type===Ie.TOUCH_START&&1!==P.originalEvent.touches.length)break;case Ie.START:var N=D||Se(t.payload.element);O(N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop}),b({x:P.clientX,y:P.clientY}),y({x:P.pageX,y:P.pageY}),m({x:P.offsetX,y:P.offsetY}),c(!0),x.onPress&&x.onPress(P);break;case Ie.SCROLL:if(P.type===Ie.SCROLL&&!e.pressed)break;var M=D||Se(E),S=M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop};P.scrollX=S.x-e.initialScrollOffset.x,P.scrollY=S.y-e.initialScrollOffset.y,k({x:P.scrollX,y:P.scrollY});case Ie.POINTER_MOVE:if(P.type===Ie.POINTER_MOVE&&!P.originalEvent.isPrimary)break;case Ie.MOUSE_MOVE:case Ie.TOUCH_MOVE:if(P.type===Ie.TOUCH_MOVE&&1!==P.originalEvent.touches.length)break;case Ie.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==P.originalEvent.type&&E){var R=Pe(E),T=D||Se(R.elementFromPoint(P.clientX,P.clientY)),j=(o=P.clientX,r=P.clientY,i=function(e,t){var n=Ne(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}}(T,function(e){var t=Pe(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:I&&!1===I.horizontal?0:j.x,y:I&&!1===I.vertical?0:j.y}),p(0!==j.y||0!==j.x)}!e.drag&&x.onDragStart&&x.onDragStart(P),x.onDrag&&x.onDrag(P);var A=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}(_||E,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(_||E)}))),L=e.drops.find((function(e){return e.element===A}));L&&A&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(P.clientX,P.clientY,D||Se(A))&&A!==E?(e.drop&&e.drop.element)!==A?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P),L.onDragEnter&&L.onDragEnter(P)):L.onDragOver&&L.onDragOver(P):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}b({x:P.clientX,y:P.clientY}),y({x:P.pageX,y:P.pageY});break;case Ie.POINTER_UP:if(P.type===Ie.POINTER_UP&&!P.originalEvent.isPrimary)break;case Ie.MOUSE_UP:case Ie.TOUCH_END:if(P.type===Ie.TOUCH_END&&1!==P.originalEvent.touches.length)break;case Ie.END:c(!1),p(!1),x.onRelease&&x.onRelease(P),e.drop&&e.drop.onDrop&&e.drop.onDrop(P),x.onDragEnd&&x.onDragEnd(P);break;case Ie.POINTER_CANCEL:case Ie.CONTEXT_MENU:case Ie.TOUCH_CANCEL:case Ie.CANCEL:c(!1),p(!1),x.onDragEnd&&x.onDragEnd(P),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(P)}},je=function(e,t){if(e){var n,o;e===Ne(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)}},Ae=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?k:o,i=t.onRelease,a=void 0===i?k:i,s=t.onDragStart,l=void 0===s?k:s,u=t.onDrag,p=void 0===u?k:u,d=t.onDragEnd,f=void 0===d?k:d,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,y=void 0!==v&&v,g=n.autoScroll,b=void 0===g||g,w=n.scrollContainer,C=void 0===w?null:w,O=c.useState(!1),x=O[0],E=O[1],_=c.useState(!1),I=_[0],D=_[1],P=Ae(Oe)[0],N=Ae(Ce),M=N[0],S=N[1],R=c.useContext(Ee)[0],T=c.useContext(xe),j=T[0],A=T[1],L=T[2],B=c.useRef({x:0,y:0}),z=c.useRef(),F=c.useRef(!1),K=c.useRef(),U=c.useRef(null),H=c.useRef(!1),V=c.useRef({x:0,y:0}),W=c.useRef({x:0,y:0}),G=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),X=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 m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),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:me,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:M?M.current:null,drop:P?P.current:null,drags:j.map((function(e){return e.current})),drops:R.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:q.current,offset:V.current,pageOffset:W.current,initialScrollOffset:X.current,clientOffset:G.current,initialClientOffset:Y.current,velocity:B.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[M,P,j,R,x,b,te,I]),ae=c.useCallback((function(e){E(e)}),[]),se=c.useCallback((function(e){D(e)}),[]),le=c.useCallback((function(e){B.current=e}),[]),ce=c.useCallback((function(e){V.current=e}),[]),ue=c.useCallback((function(e){G.current=e}),[]),pe=c.useCallback((function(e){W.current=e}),[]),de=c.useCallback((function(e){Y.current=e}),[]),fe=c.useCallback((function(e){q.current=e}),[]),he=c.useCallback((function(e){X.current=e}),[]),me=c.useCallback((function(e){r(e)}),[r]),ve=c.useCallback((function(e){a(e)}),[a]),ye=c.useCallback((function(t){S(ne,{target:e.current,event:t}),l(t)}),[S,e,l]),ge=c.useCallback((function(e){p(e)}),[p]),be=c.useCallback((function(t){H.current||(S(null,{target:e.current,event:t}),f(t))}),[f,S,e]),we=c.useCallback((function(e){Te(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ce,pe,ue,de,he,ae,fe,se]),ke=c.useCallback((function(e){we(e)}),[we]),_e=c.useCallback((function(e){we(e)}),[we]),Ie=c.useCallback((function(e){we(e)}),[we]),De=c.useCallback((function(e){we(e)}),[we]),Pe=c.useCallback((function(e){we(e)}),[we]),Ne=c.useCallback((function(e){we(e)}),[we]),Me=c.useCallback((function(e){we(e)}),[we]),Re=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Le=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),Be=c.useCallback((function(e){e.preventDefault(),we(e)}),[we]),ze=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)}we(e)}),[we,re]),Fe=c.useCallback((function(e){we(e)}),[we]),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 A(ne),function(){L(ne)}}),[L,A]);c.useEffect((function(){var e=re();if(I){var t=ee()||Se(document.elementFromPoint(G.current.x,G.current.y));e.clearInterval(z.current),z.current=e.setInterval((function(){je(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(z.current)}}),[J,ee,re,I]),c.useEffect(Ke,[Ke]),c.useEffect((function(){var e=re(),t=J(),n=oe();return Z?(t&&(U.current=Se(t),U.current&&U.current.addEventListener("scroll",Fe,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0})),x&&(n.addEventListener("pointermove",_e),n.addEventListener("pointerup",De,!0),n.addEventListener("contextmenu",Re),n.addEventListener("pointercancel",Ie,{passive:!0}))):(e.addEventListener("touchmove",k,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Pe,{passive:!0}),y||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",Be,{passive:!0}),t.addEventListener("touchend",ze,{passive:!0})))),x&&(n.addEventListener("mousemove",Ne,{passive:!0}),n.addEventListener("mouseup",Me,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Fe),t&&(t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",Pe),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",Be),t.removeEventListener("touchend",ze)),n.removeEventListener("pointermove",_e),n.removeEventListener("pointerup",De,!0),n.removeEventListener("contextmenu",Re),n.removeEventListener("pointercancel",Ie),n.removeEventListener("mousemove",Ne),n.removeEventListener("mouseup",Me),e.removeEventListener("touchmove",k),e.clearTimeout(K.current)}}),[x,re,J,oe,y,Z,Re,Pe,Ne,Me,Ie,ke,_e,De,ze,Be,Le,Fe]),c.useEffect((function(){return function(){H.current=!0}}),[]),c.useLayoutEffect(Ue,[Ue])}var Be=c.forwardRef((function(e,t){var n=c.useRef(null),o=c.useRef(null),r=c.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);c.useImperativeHandle(o,(function(){return{element:r()||null}})),c.useImperativeHandle(t,(function(){return o.current})),c.useImperativeHandle(e.childRef,(function(){return n.current}));var i=c.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=c.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),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 ze(e,t){void 0===t&&(t={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var n=t.onDragEnter,o=void 0===n?k:n,r=t.onDragOver,i=void 0===r?k:r,a=t.onDragLeave,s=void 0===a?k:a,l=t.onDrop,u=void 0===l?k:l,p=Ae(Oe)[1],d=c.useContext(Ee),f=d[1],h=d[2],m=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:m(),onDragEnter:y,onDragOver:g,onDragLeave:b,onDrop:w,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]),w=c.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),C=c.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);c.useLayoutEffect(C,[C])}Be.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 ze(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)},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=t},499:e=>{e.exports=o},189:e=>{e.exports=n},899:t=>{t.exports=e},994:e=>{e.exports=r}},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}return 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})},s(468)})()}));
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-conversational-ui',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1659604017,
8
+ publishDate: 1659939238,
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
  };
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-conversational-ui',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1659604017,
11
+ publishDate: 1659939238,
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-conversational-ui",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","react"],function(t,e){var o={},r={},i={},a={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach(function(t){o[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){r[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){i[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){a[t]=e[t]})}],execute:function(){var n,s;t((n={262:(t,e,o)=>{"use strict";var i=o(586);function n(){}function s(){}s.resetWarningCache=n,t.exports=function(){function t(t,e,o,n,s,r){if(r!==i)throw(r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",r}function e(){return t}var o={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:s,resetWarningCache:n};return o.PropTypes=o}},980:(t,e,o)=>{t.exports=o(262)()},586:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},271:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},310:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},203:(t,e,o)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertMsgsToViewItems=void 0;function c(t){return t[t.length-1]}var p=o(147);e.convertMsgsToViewItems=function(t){var e,a,t=t.slice().reduce((a=t.length,function(t,e,o){var n,s,r,i,o=o===a-1;return n=t,r=e.timestamp,i=c(n),!r||i&&(i=i.timestamp,!(s=r)||!i||i.getDate()===s.getDate()&&i.getMonth()===s.getMonth()&&i.getFullYear()===s.getFullYear())||(i={type:"date-marker",timestamp:r,trackBy:r.getTime()},n.push(i)),s=e,n=c(r=t),i=void 0,s.typing&&!o||((i=n&&"message-group"===n.type?n.messages:i)&&(0,p.isAuthor)(s.author,c(i))?i.push(s):r.push({type:"message-group",messages:[s],author:s.author,timestamp:s.timestamp,trackBy:s})),e.attachments&&1<e.attachments.length&&t.push({type:"attachment-group",attachments:e.attachments,attachmentLayout:e.attachmentLayout,timestamp:e.timestamp,trackBy:e}),e.suggestedActions&&o&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}),[]),o=0;return(e=t).forEach(function(t){"message-group"===t.type?t.messages.forEach(function(t){t.selectionIndex=o++}):"attachment-group"!==t.type&&"action-group"!==t.type||(t.selectionIndex=o++)}),e.lastSelectionIndex=o-1,t}},240:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},647:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},286:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},318:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},325:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(811),o=(s=o(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},p.prototype.getClassNames=function(){return(0,c.classNames)("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected})},p);function p(){var e=null!==s&&s.apply(this,arguments)||this;return e.onKeyDown=function(t){t.keyCode===a.Keys.enter&&e.props.onActionExecute(e.props.item,t)},e}e.default=o},88:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(325),o=(s=o(536).SelectableItemsContainer,r(p,s),p.prototype.render=function(){var o=this,n=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map(function(t,e){return i.createElement(c.default,{item:t,onActionExecute:o.props.onActionExecute,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===n,key:e})}))},p.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},p);function p(t){return s.call(this,t)||this}e.default=o},797:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),o=(s=o(854).FocusableUponSelection,r(c,s),c.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},c.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},c.prototype.getClassNames=function(){return(0,a.classNames)({"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-card-wrap",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup})},c.prototype.getTitleView=function(){return this.props.item.title?i.createElement("h5",{className:"k-card-title"},this.props.item.title):null},c.prototype.getSubtitleView=function(){return this.props.item.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.item.subtitle):null},c.prototype.getContentView=function(){return 0===this.props.item.contentType.indexOf("image/")?i.createElement("img",{src:this.props.item.content}):this.props.item.content},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},564:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(536),u=o(414),o=(s=p.SelectableItemsContainer,r(l,s),l.prototype.render=function(){var o=this,t=this.isCardDeckLayout(this.props),e=i.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map(function(t,e){return i.createElement(c.default,{item:t,template:o.props.itemTemplate,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===o.getLastItemIndex(),onClick:function(){return o.onAttachmentClick(e)},key:e})}));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),e,this.getRightScrollBtn()):e},Object.defineProperty(l.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),l.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},l.prototype.getLeftScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement(u.Button,{icon:"arrow-chevron-left",onClick:function(){return t.onNavigateBtnClick(!1)}}):e},l.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement(u.Button,{icon:"arrow-chevron-right",onClick:function(){return t.onNavigateBtnClick(!0)}}):e},l.prototype.onAttachmentClick=function(t){this.onRequestContainerSelection(),this.setState({selectedItemIndex:t})},l.prototype.onNavigateBtnClick=function(t){this.onRequestContainerSelection(),this.navigate(t,1)},l.prototype.isCardDeckLayout=function(t){return"list"!==t.group.attachmentLayout},l.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},177:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chat=void 0,o(811)),a=o(980),c=o(954),p=o(203),u=o(88),l=o(564),m=o(372),h=o(575),d=o(415),f=o(626),y=o(811),g=o(363),o=(s=c.Component,r(v,s),v.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),c.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},c.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},c.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),c.createElement(d.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},v.prototype.componentDidMount=function(){var t=this;this.setState({isFirstRender:!1},function(){t.nextTickId=window.setTimeout(function(){return t.scrollViewItemsToBottom()},250)})},v.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},v.prototype.componentDidUpdate=function(t){t.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},v.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},v.prototype.checkIsDirectionRightToLeft=function(t){t=void 0!==t.dir?"rtl"===t.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},v.prototype.renderViewItems=function(){var o=this,n=this.viewItems.length-1;return this.viewItems.map(function(t,e){return"date-marker"===t.type?c.createElement(m.default,{item:t,key:e}):"message-group"===t.type?c.createElement(h.default,{group:t,itemTemplate:o.props.messageTemplate,attachmentTemplate:o.props.attachmentTemplate,user:o.props.user,selectedItemIndex:o.state.selectedItemIndex,onRequestSelection:o.onSelectionRequested,isLastGroup:e===n,key:e,message:o.props.message||v.defaultProps.message}):"attachment-group"===t.type?c.createElement(l.default,{group:t,itemTemplate:o.props.attachmentTemplate,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):"action-group"===t.type?c.createElement(u.default,{group:t,onActionExecute:o.onActionExecute,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):void 0})},v.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},v.prototype.getViewItemsFromMsgs=function(t){return 0<t.length?(0,p.convertMsgsToViewItems)(t):[]},v.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},v.defaultProps={messages:[],dateFormat:"g",message:f.ChatMessage},v);function v(t){var n=s.call(this,t)||this;return n.viewItems=[],n.isDirectionRightToLeft=!1,n.scrollToBottomOnLoadingData=!0,n.onFocus=function(){clearTimeout(n.timeoutIdForChatLosingFocus)},n.onBlur=function(){n.timeoutIdForChatLosingFocus=window.setTimeout(function(){n.setState({selectedItemIndex:null})},0)},n.onSelectionRequested=function(t){n.setState({selectedItemIndex:t})},n.onKeyDown=function(t){var e=null,o=null!==n.state.selectedItemIndex?n.state.selectedItemIndex:n.viewItems.lastSelectionIndex;t.keyCode===i.Keys.up?null===o?e=0:0<o&&(e=o-1):t.keyCode===i.Keys.down&&(null===o?e=0:o<n.viewItems.lastSelectionIndex&&(e=o+1)),null!==e&&(n.setState({selectedItemIndex:e}),t.preventDefault())},n.onMessageSend=function(t,e){(0,i.dispatchEvent)(n.props.onMessageSend,e,n,{message:t})},n.onActionExecute=function(t,e){if((0,i.dispatchEvent)(n.props.onActionExecute,e,n,{action:t}),!e.isDefaultPrevented()){switch(t.type){case"reply":n.onMessageSend({author:n.props.user,text:t.value,timestamp:new Date},e);break;case"call":window.open("tel:"+t.value);break;case"openUrl":window.open(t.value)}n.newMsgComp.focusInput()}},(0,y.validatePackage)(g.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}e.Chat=o},626:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(954)),a=o(811),c=o(987),o=(s=o(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},p.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},p.prototype.getTimestampView=function(){var t=null;return t=this.props.item.timestamp?i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},(0,c.provideIntlService)(this).formatDate(this.props.item.timestamp,this.props.dateFormat)):t},p.prototype.getStatusView=function(){var t=null;return t=this.props.item.status?i.createElement("span",{className:"k-message-status"},this.props.item.status):t},p.prototype.getClassNames=function(){return(0,a.classNames)({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-message")},p.defaultProps={dateFormat:"g",tabIndex:-1},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.ChatMessage=o,(0,c.registerForIntl)(o)},372:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(987),o=(s=i.Component,r(c,s),c.prototype.render=function(){var t=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(t.timestamp,"D"))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o,(0,a.registerForIntl)(o)},575:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(147),o=(s=i.Component,r(u,s),u.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},u.prototype.getMsgGroupClassNames=function(){return(0,a.classNames)("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":(0,p.isAuthor)(this.props.user,this.props.group.messages[0])})},u.prototype.getAvatarView=function(){var t=null;return t=this.props.group.author.avatarUrl?i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"}):t},u.prototype.getAuthorNameView=function(){var t=null;return t=this.props.group.author.name?i.createElement("p",{className:"k-author"},this.props.group.author.name):t},u.prototype.getGroupMessagesView=function(){var n=this,s=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var o=[i.createElement(n.props.message,{item:t,template:n.props.itemTemplate,selected:t.selectionIndex===n.props.selectedItemIndex,onRequestSelection:n.props.onRequestSelection,tabIndex:e===s&&n.props.isLastGroup?0:-1,isFirstItemInGroup:0===e,isLastItemInGroup:e===s,isOnlyItemInGroup:0==s,key:e})];return t.attachments&&1===t.attachments.length&&o.push(i.createElement(c.default,{item:t.attachments[0],template:n.props.attachmentTemplate,selected:!1,key:"att-".concat(e)})),o})},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.default=o},415:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(811)),a=o(954),c=o(540),p=o(414),u=o(987),l=o(965),o=(s=a.Component,r(m,s),m.prototype.render=function(){var e=this,t=(0,u.provideLocalizationService)(this),o=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return e.setState({focused:!0})},onBlur:function(){return e.setState({focused:!1})},ref:function(t){return e.inputEl=t}}),n=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":t.toLanguageString(l.newMessageSendButton,l.messages[l.newMessageSendButton]),dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:m.buttonIconPath})))),t=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)},"aria-label":t.toLanguageString(l.newMessageOptionsButton,l.messages[l.newMessageOptionsButton])},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:o,sendButton:n,toolbarButton:t}):a.createElement(a.Fragment,null,o,this.props.toolbar&&t,n)),this.props.showToolbar&&a.createElement(c.default,null,this.props.toolbar))},m.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},m.prototype.getClassNames=function(){return(0,i.classNames)({"k-focus":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},m.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",m);function m(){var o=null!==s&&s.apply(this,arguments)||this;return o.state={focused:!1},o.inputEl=null,o.onInputKeyDown=function(t){t.keyCode===i.Keys.enter&&o.sendMessage(t)},o.sendMessage=function(t){var e;o.props.onMessageSend&&null!==o.inputEl&&(e=o.inputEl.value)&&(e={author:o.props.user,text:e,timestamp:new Date},o.props.onMessageSend(e,t)),null!==o.inputEl&&(o.inputEl.value=null)},o}e.default=o},540:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),o=(s=i.Component,r(a,s),a.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},a);function a(){return null!==s&&s.apply(this,arguments)||this}e.default=o},854:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.FocusableUponSelection=void 0,s=o(954).Component,r(i,s),i.prototype.componentDidUpdate=function(t){!t.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==s&&s.apply(this,arguments)||this}e.FocusableUponSelection=o},536:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableItemsContainer=void 0,o(954)),a=o(811),o=(r=i.Component,s(c,r),c.getDerivedStateFromProps=function(t,e){return t.selected||null===e.selectedItemIndex?t.selected&&null===e.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},c.prototype.navigate=function(t,e){void 0===e&&(e=0);var o=null,n=this.state.selectedItemIndex;return t?null===n?o=e:n<this.getLastSelectionIndex()&&(o=n+1):null===n?o=0:0<n&&(o=n-1),null!==o&&this.setState({selectedItemIndex:o}),o},Object.defineProperty(c.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.getLastSelectionIndex=function(){var t,e=-1;return"action-group"===this.props.group.type?e=(t=this.props.group).actions?t.actions.length-1:-1:"attachment-group"===this.props.group.type&&(e=(t=this.props.group).attachments?t.attachments.length-1:-1),e},c);function c(){var s=null!==r&&r.apply(this,arguments)||this;return s.state={selectedItemIndex:null},s.onRequestContainerSelection=function(){return s.props.onRequestSelection(s.props.group.selectionIndex)},s.onKeyDown=function(t){var e,o=null,n=s.isKeyboardNavigationLeftRight?(e=a.Keys.left,a.Keys.right):(e=a.Keys.up,a.Keys.down);t.keyCode===e?o=s.navigate(!1):t.keyCode===n&&(o=s.navigate(!0)),null!==o&&(t.preventDefault(),t.stopPropagation())},s}e.SelectableItemsContainer=o},280:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.HeroCard=void 0,o(954)),a=o(414),c=o(811),o=(s=i.Component,r(p,s),p.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},p.prototype.getActionsView=function(){var o=this;return this.props.actions.map(function(e,t){return i.createElement("span",{className:"k-card-action",key:t},i.createElement(a.Button,{fillMode:"flat",onClick:function(t){return o.onBtnClick(e,t)}},e.title))})},p.prototype.getTitleView=function(){var t=null;return t=this.props.title?i.createElement("h5",{className:"k-card-title"},this.props.title):t},p.prototype.getSubtitleView=function(){var t=null;return t=this.props.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):t},p);function p(){var o=null!==s&&s.apply(this,arguments)||this;return o.onBtnClick=function(t,e){(0,c.dispatchEvent)(o.props.onActionExecute,e,o,{action:t})},o}e.HeroCard=o},468:function(t,e,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,o,n){void 0===n&&(n=o);var s=Object.getOwnPropertyDescriptor(e,o);s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,n,s)}:function(t,e,o,n){t[n=void 0===n?o:n]=e[o]}),s=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||n(e,t,o)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(626));Object.defineProperty(e,"ChatMessage",{enumerable:!0,get:function(){return r.ChatMessage}}),s(o(240),e),s(o(647),e),s(o(286),e),s(o(318),e),s(o(177),e),s(o(271),e),s(o(310),e),s(o(280),e)},965:(t,e)=>{"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.messages=e.newMessageOptionsButton=e.newMessageSendButton=void 0,e.newMessageSendButton="newMessage.sendButton",e.newMessageOptionsButton="newMessage.optionsButton",e.messages=((o={})[e.newMessageSendButton]="Send",o[e.newMessageOptionsButton]="Options",o)},363:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659604017,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"}},147:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAuthor=void 0,e.isAuthor=function(t,e){return t&&e.author&&t.id===e.author.id}},414:t=>{"use strict";t.exports=o},811:t=>{"use strict";t.exports=r},987:t=>{"use strict";t.exports=i},954:t=>{"use strict";t.exports=a}},s={},function t(e){var o=s[e];if(void 0!==o)return o.exports;o=s[e]={exports:{}};return n[e].call(o.exports,o,o.exports,t),o.exports}(468)))}}});
1
+ System.register("@progress/kendo-react-conversational-ui",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","react"],function(t,e){var o={},r={},i={},a={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach(function(t){o[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){r[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){i[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){a[t]=e[t]})}],execute:function(){var n,s;t((n={262:(t,e,o)=>{"use strict";var i=o(586);function n(){}function s(){}s.resetWarningCache=n,t.exports=function(){function t(t,e,o,n,s,r){if(r!==i)throw(r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",r}function e(){return t}var o={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:s,resetWarningCache:n};return o.PropTypes=o}},980:(t,e,o)=>{t.exports=o(262)()},586:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},271:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},310:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},203:(t,e,o)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertMsgsToViewItems=void 0;function c(t){return t[t.length-1]}var p=o(147);e.convertMsgsToViewItems=function(t){var e,a,t=t.slice().reduce((a=t.length,function(t,e,o){var n,s,r,i,o=o===a-1;return n=t,r=e.timestamp,i=c(n),!r||i&&(i=i.timestamp,!(s=r)||!i||i.getDate()===s.getDate()&&i.getMonth()===s.getMonth()&&i.getFullYear()===s.getFullYear())||(i={type:"date-marker",timestamp:r,trackBy:r.getTime()},n.push(i)),s=e,n=c(r=t),i=void 0,s.typing&&!o||((i=n&&"message-group"===n.type?n.messages:i)&&(0,p.isAuthor)(s.author,c(i))?i.push(s):r.push({type:"message-group",messages:[s],author:s.author,timestamp:s.timestamp,trackBy:s})),e.attachments&&1<e.attachments.length&&t.push({type:"attachment-group",attachments:e.attachments,attachmentLayout:e.attachmentLayout,timestamp:e.timestamp,trackBy:e}),e.suggestedActions&&o&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}),[]),o=0;return(e=t).forEach(function(t){"message-group"===t.type?t.messages.forEach(function(t){t.selectionIndex=o++}):"attachment-group"!==t.type&&"action-group"!==t.type||(t.selectionIndex=o++)}),e.lastSelectionIndex=o-1,t}},240:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},647:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},286:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},318:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},325:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(811),o=(s=o(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},p.prototype.getClassNames=function(){return(0,c.classNames)("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected})},p);function p(){var e=null!==s&&s.apply(this,arguments)||this;return e.onKeyDown=function(t){t.keyCode===a.Keys.enter&&e.props.onActionExecute(e.props.item,t)},e}e.default=o},88:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(325),o=(s=o(536).SelectableItemsContainer,r(p,s),p.prototype.render=function(){var o=this,n=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map(function(t,e){return i.createElement(c.default,{item:t,onActionExecute:o.props.onActionExecute,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===n,key:e})}))},p.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},p);function p(t){return s.call(this,t)||this}e.default=o},797:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),o=(s=o(854).FocusableUponSelection,r(c,s),c.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},c.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},c.prototype.getClassNames=function(){return(0,a.classNames)({"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-card-wrap",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup})},c.prototype.getTitleView=function(){return this.props.item.title?i.createElement("h5",{className:"k-card-title"},this.props.item.title):null},c.prototype.getSubtitleView=function(){return this.props.item.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.item.subtitle):null},c.prototype.getContentView=function(){return 0===this.props.item.contentType.indexOf("image/")?i.createElement("img",{src:this.props.item.content}):this.props.item.content},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},564:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(536),u=o(414),o=(s=p.SelectableItemsContainer,r(l,s),l.prototype.render=function(){var o=this,t=this.isCardDeckLayout(this.props),e=i.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map(function(t,e){return i.createElement(c.default,{item:t,template:o.props.itemTemplate,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===o.getLastItemIndex(),onClick:function(){return o.onAttachmentClick(e)},key:e})}));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),e,this.getRightScrollBtn()):e},Object.defineProperty(l.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),l.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},l.prototype.getLeftScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement(u.Button,{icon:"arrow-chevron-left",onClick:function(){return t.onNavigateBtnClick(!1)}}):e},l.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement(u.Button,{icon:"arrow-chevron-right",onClick:function(){return t.onNavigateBtnClick(!0)}}):e},l.prototype.onAttachmentClick=function(t){this.onRequestContainerSelection(),this.setState({selectedItemIndex:t})},l.prototype.onNavigateBtnClick=function(t){this.onRequestContainerSelection(),this.navigate(t,1)},l.prototype.isCardDeckLayout=function(t){return"list"!==t.group.attachmentLayout},l.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},177:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chat=void 0,o(811)),a=o(980),c=o(954),p=o(203),u=o(88),l=o(564),m=o(372),h=o(575),d=o(415),f=o(626),y=o(811),g=o(363),o=(s=c.Component,r(v,s),v.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),c.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},c.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},c.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),c.createElement(d.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},v.prototype.componentDidMount=function(){var t=this;this.setState({isFirstRender:!1},function(){t.nextTickId=window.setTimeout(function(){return t.scrollViewItemsToBottom()},250)})},v.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},v.prototype.componentDidUpdate=function(t){t.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},v.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},v.prototype.checkIsDirectionRightToLeft=function(t){t=void 0!==t.dir?"rtl"===t.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},v.prototype.renderViewItems=function(){var o=this,n=this.viewItems.length-1;return this.viewItems.map(function(t,e){return"date-marker"===t.type?c.createElement(m.default,{item:t,key:e}):"message-group"===t.type?c.createElement(h.default,{group:t,itemTemplate:o.props.messageTemplate,attachmentTemplate:o.props.attachmentTemplate,user:o.props.user,selectedItemIndex:o.state.selectedItemIndex,onRequestSelection:o.onSelectionRequested,isLastGroup:e===n,key:e,message:o.props.message||v.defaultProps.message}):"attachment-group"===t.type?c.createElement(l.default,{group:t,itemTemplate:o.props.attachmentTemplate,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):"action-group"===t.type?c.createElement(u.default,{group:t,onActionExecute:o.onActionExecute,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):void 0})},v.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},v.prototype.getViewItemsFromMsgs=function(t){return 0<t.length?(0,p.convertMsgsToViewItems)(t):[]},v.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},v.defaultProps={messages:[],dateFormat:"g",message:f.ChatMessage},v);function v(t){var n=s.call(this,t)||this;return n.viewItems=[],n.isDirectionRightToLeft=!1,n.scrollToBottomOnLoadingData=!0,n.onFocus=function(){clearTimeout(n.timeoutIdForChatLosingFocus)},n.onBlur=function(){n.timeoutIdForChatLosingFocus=window.setTimeout(function(){n.setState({selectedItemIndex:null})},0)},n.onSelectionRequested=function(t){n.setState({selectedItemIndex:t})},n.onKeyDown=function(t){var e=null,o=null!==n.state.selectedItemIndex?n.state.selectedItemIndex:n.viewItems.lastSelectionIndex;t.keyCode===i.Keys.up?null===o?e=0:0<o&&(e=o-1):t.keyCode===i.Keys.down&&(null===o?e=0:o<n.viewItems.lastSelectionIndex&&(e=o+1)),null!==e&&(n.setState({selectedItemIndex:e}),t.preventDefault())},n.onMessageSend=function(t,e){(0,i.dispatchEvent)(n.props.onMessageSend,e,n,{message:t})},n.onActionExecute=function(t,e){if((0,i.dispatchEvent)(n.props.onActionExecute,e,n,{action:t}),!e.isDefaultPrevented()){switch(t.type){case"reply":n.onMessageSend({author:n.props.user,text:t.value,timestamp:new Date},e);break;case"call":window.open("tel:"+t.value);break;case"openUrl":window.open(t.value)}n.newMsgComp.focusInput()}},(0,y.validatePackage)(g.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}e.Chat=o},626:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(954)),a=o(811),c=o(987),o=(s=o(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},p.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},p.prototype.getTimestampView=function(){var t=null;return t=this.props.item.timestamp?i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},(0,c.provideIntlService)(this).formatDate(this.props.item.timestamp,this.props.dateFormat)):t},p.prototype.getStatusView=function(){var t=null;return t=this.props.item.status?i.createElement("span",{className:"k-message-status"},this.props.item.status):t},p.prototype.getClassNames=function(){return(0,a.classNames)({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-message")},p.defaultProps={dateFormat:"g",tabIndex:-1},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.ChatMessage=o,(0,c.registerForIntl)(o)},372:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(987),o=(s=i.Component,r(c,s),c.prototype.render=function(){var t=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(t.timestamp,"D"))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o,(0,a.registerForIntl)(o)},575:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(147),o=(s=i.Component,r(u,s),u.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},u.prototype.getMsgGroupClassNames=function(){return(0,a.classNames)("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":(0,p.isAuthor)(this.props.user,this.props.group.messages[0])})},u.prototype.getAvatarView=function(){var t=null;return t=this.props.group.author.avatarUrl?i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"}):t},u.prototype.getAuthorNameView=function(){var t=null;return t=this.props.group.author.name?i.createElement("p",{className:"k-author"},this.props.group.author.name):t},u.prototype.getGroupMessagesView=function(){var n=this,s=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var o=[i.createElement(n.props.message,{item:t,template:n.props.itemTemplate,selected:t.selectionIndex===n.props.selectedItemIndex,onRequestSelection:n.props.onRequestSelection,tabIndex:e===s&&n.props.isLastGroup?0:-1,isFirstItemInGroup:0===e,isLastItemInGroup:e===s,isOnlyItemInGroup:0==s,key:e})];return t.attachments&&1===t.attachments.length&&o.push(i.createElement(c.default,{item:t.attachments[0],template:n.props.attachmentTemplate,selected:!1,key:"att-".concat(e)})),o})},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.default=o},415:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(811)),a=o(954),c=o(540),p=o(414),u=o(987),l=o(965),o=(s=a.Component,r(m,s),m.prototype.render=function(){var e=this,t=(0,u.provideLocalizationService)(this),o=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return e.setState({focused:!0})},onBlur:function(){return e.setState({focused:!1})},ref:function(t){return e.inputEl=t}}),n=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":t.toLanguageString(l.newMessageSendButton,l.messages[l.newMessageSendButton]),dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:m.buttonIconPath})))),t=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)},"aria-label":t.toLanguageString(l.newMessageOptionsButton,l.messages[l.newMessageOptionsButton])},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:o,sendButton:n,toolbarButton:t}):a.createElement(a.Fragment,null,o,this.props.toolbar&&t,n)),this.props.showToolbar&&a.createElement(c.default,null,this.props.toolbar))},m.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},m.prototype.getClassNames=function(){return(0,i.classNames)({"k-focus":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},m.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",m);function m(){var o=null!==s&&s.apply(this,arguments)||this;return o.state={focused:!1},o.inputEl=null,o.onInputKeyDown=function(t){t.keyCode===i.Keys.enter&&o.sendMessage(t)},o.sendMessage=function(t){var e;o.props.onMessageSend&&null!==o.inputEl&&(e=o.inputEl.value)&&(e={author:o.props.user,text:e,timestamp:new Date},o.props.onMessageSend(e,t)),null!==o.inputEl&&(o.inputEl.value=null)},o}e.default=o},540:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),o=(s=i.Component,r(a,s),a.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},a);function a(){return null!==s&&s.apply(this,arguments)||this}e.default=o},854:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.FocusableUponSelection=void 0,s=o(954).Component,r(i,s),i.prototype.componentDidUpdate=function(t){!t.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==s&&s.apply(this,arguments)||this}e.FocusableUponSelection=o},536:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableItemsContainer=void 0,o(954)),a=o(811),o=(r=i.Component,s(c,r),c.getDerivedStateFromProps=function(t,e){return t.selected||null===e.selectedItemIndex?t.selected&&null===e.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},c.prototype.navigate=function(t,e){void 0===e&&(e=0);var o=null,n=this.state.selectedItemIndex;return t?null===n?o=e:n<this.getLastSelectionIndex()&&(o=n+1):null===n?o=0:0<n&&(o=n-1),null!==o&&this.setState({selectedItemIndex:o}),o},Object.defineProperty(c.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.getLastSelectionIndex=function(){var t,e=-1;return"action-group"===this.props.group.type?e=(t=this.props.group).actions?t.actions.length-1:-1:"attachment-group"===this.props.group.type&&(e=(t=this.props.group).attachments?t.attachments.length-1:-1),e},c);function c(){var s=null!==r&&r.apply(this,arguments)||this;return s.state={selectedItemIndex:null},s.onRequestContainerSelection=function(){return s.props.onRequestSelection(s.props.group.selectionIndex)},s.onKeyDown=function(t){var e,o=null,n=s.isKeyboardNavigationLeftRight?(e=a.Keys.left,a.Keys.right):(e=a.Keys.up,a.Keys.down);t.keyCode===e?o=s.navigate(!1):t.keyCode===n&&(o=s.navigate(!0)),null!==o&&(t.preventDefault(),t.stopPropagation())},s}e.SelectableItemsContainer=o},280:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.HeroCard=void 0,o(954)),a=o(414),c=o(811),o=(s=i.Component,r(p,s),p.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},p.prototype.getActionsView=function(){var o=this;return this.props.actions.map(function(e,t){return i.createElement("span",{className:"k-card-action",key:t},i.createElement(a.Button,{fillMode:"flat",onClick:function(t){return o.onBtnClick(e,t)}},e.title))})},p.prototype.getTitleView=function(){var t=null;return t=this.props.title?i.createElement("h5",{className:"k-card-title"},this.props.title):t},p.prototype.getSubtitleView=function(){var t=null;return t=this.props.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):t},p);function p(){var o=null!==s&&s.apply(this,arguments)||this;return o.onBtnClick=function(t,e){(0,c.dispatchEvent)(o.props.onActionExecute,e,o,{action:t})},o}e.HeroCard=o},468:function(t,e,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,o,n){void 0===n&&(n=o);var s=Object.getOwnPropertyDescriptor(e,o);s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,n,s)}:function(t,e,o,n){t[n=void 0===n?o:n]=e[o]}),s=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||n(e,t,o)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(626));Object.defineProperty(e,"ChatMessage",{enumerable:!0,get:function(){return r.ChatMessage}}),s(o(240),e),s(o(647),e),s(o(286),e),s(o(318),e),s(o(177),e),s(o(271),e),s(o(310),e),s(o(280),e)},965:(t,e)=>{"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.messages=e.newMessageOptionsButton=e.newMessageSendButton=void 0,e.newMessageSendButton="newMessage.sendButton",e.newMessageOptionsButton="newMessage.optionsButton",e.messages=((o={})[e.newMessageSendButton]="Send",o[e.newMessageOptionsButton]="Options",o)},363:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659939238,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"}},147:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAuthor=void 0,e.isAuthor=function(t,e){return t&&e.author&&t.id===e.author.id}},414:t=>{"use strict";t.exports=o},811:t=>{"use strict";t.exports=r},987:t=>{"use strict";t.exports=i},954:t=>{"use strict";t.exports=a}},s={},function t(e){var o=s[e];if(void 0!==o)return o.exports;o=s[e]={exports:{}};return n[e].call(o.exports,o,o.exports,t),o.exports}(468)))}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-conversational-ui",
3
3
  "description": "KendoReact Conversational UI components",
4
- "version": "5.6.0-dev.202208040930",
4
+ "version": "5.6.0-dev.202208080636",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-react.git"
@@ -41,13 +41,13 @@
41
41
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@progress/kendo-react-common": "5.6.0-dev.202208040930"
44
+ "@progress/kendo-react-common": "5.6.0-dev.202208080636"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@progress/kendo-licensing": "^1.0.1",
48
- "@progress/kendo-react-buttons": "5.6.0-dev.202208040930",
49
- "@progress/kendo-react-dateinputs": "5.6.0-dev.202208040930",
50
- "@progress/kendo-react-intl": "5.6.0-dev.202208040930",
48
+ "@progress/kendo-react-buttons": "5.6.0-dev.202208080636",
49
+ "@progress/kendo-react-dateinputs": "5.6.0-dev.202208080636",
50
+ "@progress/kendo-react-intl": "5.6.0-dev.202208080636",
51
51
  "adaptivecards": "^1.0.0",
52
52
  "botframework-directlinejs": "^0.9.15"
53
53
  },