@progress/kendo-react-conversational-ui 5.13.0-dev.202304200559 → 5.13.0-dev.202304200917

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.
@@ -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: 1681968831,
8
+ publishDate: 1681980671,
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: 1681968831,
11
+ publishDate: 1681980671,
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","@progress/kendo-svg-icons","react"],function(e,t){var n={},r={},i={},a={},c={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){n[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){var o,s;e((o={262:(e,t,n)=>{"use strict";var i=n(586);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,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 t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n}},980:(e,t,n)=>{e.exports=n(262)()},586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertMsgsToViewItems=void 0;function c(e){return e[e.length-1]}var p=n(147);t.convertMsgsToViewItems=function(e){var t,a,e=e.slice().reduce((a=e.length,function(e,t,n){var o,s,r,i,n=n===a-1;return o=e,r=t.timestamp,i=c(o),!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()},o.push(i)),s=t,o=c(r=e),i=void 0,s.typing&&!n||((i=o&&"message-group"===o.type?o.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})),t.attachments&&1<t.attachments.length&&e.push({type:"attachment-group",attachments:t.attachments,attachmentLayout:t.attachmentLayout,timestamp:t.timestamp,trackBy:t}),t.suggestedActions&&n&&e.push({type:"action-group",actions:t.suggestedActions,timestamp:t.timestamp,trackBy:t}),e}),[]),n=0;return(t=e).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,e}},240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},325:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(811),n=(s=n(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var t=this;return i.createElement("span",{role:"button",className:this.getClassNames(),onClick:function(e){return t.props.onActionExecute(t.props.item,e)},ref:function(e){return t.elementToFocus=e},onKeyDown:this.onKeyDown,tabIndex:0},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 t=null!==s&&s.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}t.default=n},88:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(325),n=(s=n(536).SelectableItemsContainer,r(p,s),p.prototype.render=function(){var n=this,o=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(e,t){return i.createElement(c.default,{item:e,onActionExecute:n.props.onActionExecute,selected:t===n.state.selectedItemIndex,isFirstItemInGroup:0===t,isLastItemInGroup:t===o,key:t})}))},p.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},p);function p(e){return s.call(this,e)||this}t.default=n},797:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),n=(s=n(854).FocusableUponSelection,r(c,s),c.prototype.render=function(){var t=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(e){return t.elementToFocus=e}},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}t.default=n},564:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(233),p=n(797),u=n(536),l=n(414),n=(s=u.SelectableItemsContainer,r(m,s),m.prototype.render=function(){var n=this,e=this.isCardDeckLayout(this.props),t=i.createElement("div",{className:this.getClassNames(),onKeyDown:e?void 0:this.onKeyDown},this.props.group.attachments.map(function(e,t){return i.createElement(p.default,{item:e,template:n.props.itemTemplate,selected:t===n.state.selectedItemIndex,tabbable:n.props.isLastGroup&&t===n.state.selectedItemIndex,isFirstItemInGroup:0===t,isLastItemInGroup:t===n.getLastItemIndex(),onClick:function(){return n.onAttachmentClick(t)},key:t})}));return e?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),t,this.getRightScrollBtn()):t},Object.defineProperty(m.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),m.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},m.prototype.getLeftScrollBtn=function(){var e=this,t=null;return t=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement(l.Button,{icon:"chevron-left",onClick:function(){return e.onNavigateBtnClick(!1)},svgIcon:c.chevronLeftIcon}):t},m.prototype.getRightScrollBtn=function(){var e=this,t=null;return t=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement(l.Button,{icon:"chevron-right",onClick:function(){return e.onNavigateBtnClick(!0)},svgIcon:c.chevronRightIcon}):t},m.prototype.onAttachmentClick=function(e){this.onRequestContainerSelection(),this.setState({selectedItemIndex:e})},m.prototype.onNavigateBtnClick=function(e){this.onRequestContainerSelection(),this.navigate(e,1)},m.prototype.isCardDeckLayout=function(e){return"list"!==e.group.attachmentLayout},m.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},m);function m(){return null!==s&&s.apply(this,arguments)||this}t.default=n},177:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.Chat=void 0,n(811)),a=n(980),c=n(954),p=n(203),u=n(88),l=n(564),m=n(372),d=n(575),h=n(415),f=n(626),g=n(811),y=n(363),v=n(965),_=n(987),n=(s=c.Component,r(b,s),b.prototype.render=function(){var t=this,e=(this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),(0,_.provideLocalizationService)(this));return c.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(e){return t.chatWrapperEl=e}},c.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-label":e.toLanguageString(v.ariaLabelMessageList,v.messages[v.ariaLabelMessageList]),"aria-live":"polite",onScroll:function(e){t.scrollToBottomOnLoadingData=e.currentTarget.scrollTop===e.currentTarget.scrollHeight-e.currentTarget.clientHeight},ref:function(e){return t.viewItemsWrapperEl=e}},c.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),c.createElement(h.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(e){return t.newMsgComp=e},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},b.prototype.componentDidMount=function(){var e=this;this.setState({isFirstRender:!1},function(){e.nextTickId=window.setTimeout(function(){return e.scrollViewItemsToBottom()},250)})},b.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},b.prototype.componentDidUpdate=function(e){e.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},b.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},b.prototype.checkIsDirectionRightToLeft=function(e){e=void 0!==e.dir?"rtl"===e.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(e)},b.prototype.renderViewItems=function(){var n=this,o=this.viewItems.length-1;return this.viewItems.map(function(e,t){return"date-marker"===e.type?c.createElement(m.default,{item:e,key:t}):"message-group"===e.type?c.createElement(d.default,{group:e,itemTemplate:n.props.messageTemplate,attachmentTemplate:n.props.attachmentTemplate,user:n.props.user,selectedItemIndex:n.state.selectedItemIndex,onRequestSelection:n.onSelectionRequested,isLastGroup:t===o,key:t,message:n.props.message||b.defaultProps.message}):"attachment-group"===e.type?c.createElement(l.default,{group:e,itemTemplate:n.props.attachmentTemplate,onRequestSelection:n.onSelectionRequested,selected:e.selectionIndex===n.state.selectedItemIndex,isLastGroup:t===o,key:t}):"action-group"===e.type?c.createElement(u.default,{group:e,onActionExecute:n.onActionExecute,onRequestSelection:n.onSelectionRequested,selected:e.selectionIndex===n.state.selectedItemIndex,isLastGroup:t===o,key:t}):void 0})},b.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},b.prototype.getViewItemsFromMsgs=function(e){return 0<e.length?(0,p.convertMsgsToViewItems)(e):[]},b.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},b.defaultProps={messages:[],dateFormat:"g",message:f.ChatMessage},b);function b(e){var o=s.call(this,e)||this;return o.viewItems=[],o.isDirectionRightToLeft=!1,o.scrollToBottomOnLoadingData=!0,o.onFocus=function(){clearTimeout(o.timeoutIdForChatLosingFocus)},o.onBlur=function(){o.timeoutIdForChatLosingFocus=window.setTimeout(function(){o.setState({selectedItemIndex:null})},0)},o.onSelectionRequested=function(e){o.setState({selectedItemIndex:e})},o.onKeyDown=function(e){var t=null,n=null!==o.state.selectedItemIndex?o.state.selectedItemIndex:o.viewItems.lastSelectionIndex;e.keyCode===i.Keys.up?null===n?t=0:0<n&&(t=n-1):e.keyCode===i.Keys.down&&(null===n?t=0:n<o.viewItems.lastSelectionIndex&&(t=n+1)),null!==t&&(o.setState({selectedItemIndex:t}),e.preventDefault())},o.onMessageSend=function(e,t){(0,i.dispatchEvent)(o.props.onMessageSend,t,o,{message:e})},o.onActionExecute=function(e,t){if((0,i.dispatchEvent)(o.props.onActionExecute,t,o,{action:e}),!t.isDefaultPrevented()){switch(e.type){case"reply":o.onMessageSend({author:o.props.user,text:e.value,timestamp:new Date},t);break;case"call":window.open("tel:"+e.value);break;case"openUrl":window.open(e.value)}o.newMsgComp.focusInput()}},(0,g.validatePackage)(y.packageMetadata),o.state={selectedItemIndex:null,isFirstRender:!0},o}t.Chat=n},626:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMessage=void 0,n(954)),a=n(811),c=n(987),n=(s=n(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var t=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return t.props.onRequestSelection(t.props.item.selectionIndex)},onFocus:function(){return t.props.onRequestSelection(t.props.item.selectionIndex)},ref:function(e){return t.elementToFocus=e}},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 e=null;return e=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)):e},p.prototype.getStatusView=function(){var e=null;return e=this.props.item.status?i.createElement("span",{className:"k-message-status"},this.props.item.status):e},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}t.ChatMessage=n,(0,c.registerForIntl)(n)},372:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(987),n=(s=i.Component,r(c,s),c.prototype.render=function(){var e=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(e.timestamp,"D"))},c);function c(){return null!==s&&s.apply(this,arguments)||this}t.default=n,(0,a.registerForIntl)(n)},575:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(797),p=n(147),u=n(987),l=n(965),n=(s=i.Component,r(m,s),m.prototype.render=function(){var e=this.props.group.author,t=e.avatarUrl,n=e.avatarAltText,e=e.name,o=(0,u.provideLocalizationService)(this);return i.createElement("div",{className:this.getMsgGroupClassNames()},t&&i.createElement("img",{src:t,className:"k-avatar",alt:void 0!==n?n:o.toLanguageString(l.avatarAlt,l.messages[l.avatarAlt])}),e&&i.createElement("p",{className:"k-author"},e),this.getGroupMessagesView())},m.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])})},m.prototype.getGroupMessagesView=function(){var o=this,s=this.props.group.messages.length-1;return this.props.group.messages.map(function(e,t){var n=[i.createElement(o.props.message,{item:e,template:o.props.itemTemplate,selected:e.selectionIndex===o.props.selectedItemIndex,onRequestSelection:o.props.onRequestSelection,tabIndex:t===s&&o.props.isLastGroup?0:-1,isFirstItemInGroup:0===t,isLastItemInGroup:t===s,isOnlyItemInGroup:0==s,key:t})];return e.attachments&&1===e.attachments.length&&n.push(i.createElement(c.default,{item:e.attachments[0],template:o.props.attachmentTemplate,selected:!1,key:"att-".concat(t)})),n})},m);function m(){return null!==s&&s.apply(this,arguments)||this}t.default=n},415:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(811)),a=n(954),c=n(540),p=n(414),u=n(987),l=n(965),n=(s=a.Component,r(m,s),m.prototype.render=function(){var t=this,e=(0,u.provideLocalizationService)(this),n=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return t.setState({focused:!0})},onBlur:function(){return t.setState({focused:!1})},ref:function(e){return t.inputEl=e},"aria-label":e.toLanguageString(l.newMessageMessageInput,l.messages[l.newMessageMessageInput])}),o=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":e.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})))),e=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(e){return t.props.onToolbarActionButtonClick(!t.props.showToolbar,e)},"aria-label":e.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:n,sendButton:o,toolbarButton:e}):a.createElement(a.Fragment,null,n,this.props.toolbar&&e,o)),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 n=null!==s&&s.apply(this,arguments)||this;return n.state={focused:!1},n.inputEl=null,n.onInputKeyDown=function(e){e.keyCode===i.Keys.enter&&n.sendMessage(e)},n.sendMessage=function(e){var t;n.props.onMessageSend&&null!==n.inputEl&&(t=n.inputEl.value)&&(t={author:n.props.user,text:t,timestamp:new Date},n.props.onMessageSend(t,e)),null!==n.inputEl&&(n.inputEl.value=null)},n}t.default=n},540:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),n=(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}t.default=n},854:function(e,t,n){"use strict";var o,s,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])}))(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)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.FocusableUponSelection=void 0,s=n(954).Component,r(i,s),i.prototype.componentDidUpdate=function(e){!e.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==s&&s.apply(this,arguments)||this}t.FocusableUponSelection=n},536:function(e,t,n){"use strict";var o,r,s=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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectableItemsContainer=void 0,n(954)),a=n(811),n=(r=i.Component,s(c,r),c.getDerivedStateFromProps=function(e,t){return e.selected||null===t.selectedItemIndex?e.selected&&null===t.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},c.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:0<o&&(n=o-1),null!==n&&this.setState({selectedItemIndex:n}),n},Object.defineProperty(c.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.getLastSelectionIndex=function(){var e,t=-1;return"action-group"===this.props.group.type?t=(e=this.props.group).actions?e.actions.length-1:-1:"attachment-group"===this.props.group.type&&(t=(e=this.props.group).attachments?e.attachments.length-1:-1),t},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(e){var t,n=null,o=s.isKeyboardNavigationLeftRight?(t=a.Keys.left,a.Keys.right):(t=a.Keys.up,a.Keys.down);e.keyCode===t?n=s.navigate(!1):e.keyCode===o&&(n=s.navigate(!0)),null!==n&&(e.preventDefault(),e.stopPropagation())},s}t.SelectableItemsContainer=n},280:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.HeroCard=void 0,n(954)),a=n(414),c=n(811),n=(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 n=this;return this.props.actions.map(function(t,e){return i.createElement("span",{className:"k-card-action",key:e},i.createElement(a.Button,{fillMode:"flat",onClick:function(e){return n.onBtnClick(t,e)}},t.title))})},p.prototype.getTitleView=function(){var e=null;return e=this.props.title?i.createElement("h5",{className:"k-card-title"},this.props.title):e},p.prototype.getSubtitleView=function(){var e=null;return e=this.props.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):e},p);function p(){var n=null!==s&&s.apply(this,arguments)||this;return n.onBtnClick=function(e,t){(0,c.dispatchEvent)(n.props.onActionExecute,t,n,{action:e})},n}t.HeroCard=n},468:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,s)}:function(e,t,n,o){e[o=void 0===o?n:o]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},r=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMessage=void 0,n(626));Object.defineProperty(t,"ChatMessage",{enumerable:!0,get:function(){return r.ChatMessage}}),s(n(240),t),s(n(647),t),s(n(286),t),s(n(318),t),s(n(177),t),s(n(271),t),s(n(310),t),s(n(280),t)},965:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.ariaLabelMessageList=t.avatarAlt=t.newMessageMessageInput=t.newMessageOptionsButton=t.newMessageSendButton=void 0,t.newMessageSendButton="newMessage.sendButton",t.newMessageOptionsButton="newMessage.optionsButton",t.newMessageMessageInput="newMessage.messageInput",t.avatarAlt="avatar.alt",t.ariaLabelMessageList="messageList.ariaLabel",t.messages=((n={})[t.newMessageSendButton]="Send",n[t.newMessageOptionsButton]="Options",n[t.newMessageMessageInput]="Message",n[t.avatarAlt]="Avatar",n[t.ariaLabelMessageList]="Message list",n)},363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1681968831,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)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthor=void 0,t.isAuthor=function(e,t){return e&&t.author&&e.id===t.author.id}},414:e=>{"use strict";e.exports=n},811:e=>{"use strict";e.exports=r},987:e=>{"use strict";e.exports=i},233:e=>{"use strict";e.exports=a},954:e=>{"use strict";e.exports=c}},s={},function e(t){var n=s[t];return void 0!==n||(n=s[t]={exports:{}},o[t].call(n.exports,n,n.exports,e)),n.exports}(468)))}}});
1
+ System.register("@progress/kendo-react-conversational-ui",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-svg-icons","react"],function(e,t){var n={},r={},i={},a={},c={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){n[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){var o,s;e((o={262:(e,t,n)=>{"use strict";var i=n(586);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,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 t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n}},980:(e,t,n)=>{e.exports=n(262)()},586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertMsgsToViewItems=void 0;function c(e){return e[e.length-1]}var p=n(147);t.convertMsgsToViewItems=function(e){var t,a,e=e.slice().reduce((a=e.length,function(e,t,n){var o,s,r,i,n=n===a-1;return o=e,r=t.timestamp,i=c(o),!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()},o.push(i)),s=t,o=c(r=e),i=void 0,s.typing&&!n||((i=o&&"message-group"===o.type?o.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})),t.attachments&&1<t.attachments.length&&e.push({type:"attachment-group",attachments:t.attachments,attachmentLayout:t.attachmentLayout,timestamp:t.timestamp,trackBy:t}),t.suggestedActions&&n&&e.push({type:"action-group",actions:t.suggestedActions,timestamp:t.timestamp,trackBy:t}),e}),[]),n=0;return(t=e).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,e}},240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},325:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(811),n=(s=n(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var t=this;return i.createElement("span",{role:"button",className:this.getClassNames(),onClick:function(e){return t.props.onActionExecute(t.props.item,e)},ref:function(e){return t.elementToFocus=e},onKeyDown:this.onKeyDown,tabIndex:0},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 t=null!==s&&s.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}t.default=n},88:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(325),n=(s=n(536).SelectableItemsContainer,r(p,s),p.prototype.render=function(){var n=this,o=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(e,t){return i.createElement(c.default,{item:e,onActionExecute:n.props.onActionExecute,selected:t===n.state.selectedItemIndex,isFirstItemInGroup:0===t,isLastItemInGroup:t===o,key:t})}))},p.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},p);function p(e){return s.call(this,e)||this}t.default=n},797:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),n=(s=n(854).FocusableUponSelection,r(c,s),c.prototype.render=function(){var t=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(e){return t.elementToFocus=e}},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}t.default=n},564:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(233),p=n(797),u=n(536),l=n(414),n=(s=u.SelectableItemsContainer,r(m,s),m.prototype.render=function(){var n=this,e=this.isCardDeckLayout(this.props),t=i.createElement("div",{className:this.getClassNames(),onKeyDown:e?void 0:this.onKeyDown},this.props.group.attachments.map(function(e,t){return i.createElement(p.default,{item:e,template:n.props.itemTemplate,selected:t===n.state.selectedItemIndex,tabbable:n.props.isLastGroup&&t===n.state.selectedItemIndex,isFirstItemInGroup:0===t,isLastItemInGroup:t===n.getLastItemIndex(),onClick:function(){return n.onAttachmentClick(t)},key:t})}));return e?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),t,this.getRightScrollBtn()):t},Object.defineProperty(m.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),m.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},m.prototype.getLeftScrollBtn=function(){var e=this,t=null;return t=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement(l.Button,{icon:"chevron-left",onClick:function(){return e.onNavigateBtnClick(!1)},svgIcon:c.chevronLeftIcon}):t},m.prototype.getRightScrollBtn=function(){var e=this,t=null;return t=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement(l.Button,{icon:"chevron-right",onClick:function(){return e.onNavigateBtnClick(!0)},svgIcon:c.chevronRightIcon}):t},m.prototype.onAttachmentClick=function(e){this.onRequestContainerSelection(),this.setState({selectedItemIndex:e})},m.prototype.onNavigateBtnClick=function(e){this.onRequestContainerSelection(),this.navigate(e,1)},m.prototype.isCardDeckLayout=function(e){return"list"!==e.group.attachmentLayout},m.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},m);function m(){return null!==s&&s.apply(this,arguments)||this}t.default=n},177:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.Chat=void 0,n(811)),a=n(980),c=n(954),p=n(203),u=n(88),l=n(564),m=n(372),d=n(575),h=n(415),f=n(626),g=n(811),y=n(363),v=n(965),_=n(987),n=(s=c.Component,r(b,s),b.prototype.render=function(){var t=this,e=(this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),(0,_.provideLocalizationService)(this));return c.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(e){return t.chatWrapperEl=e}},c.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-label":e.toLanguageString(v.ariaLabelMessageList,v.messages[v.ariaLabelMessageList]),"aria-live":"polite",onScroll:function(e){t.scrollToBottomOnLoadingData=e.currentTarget.scrollTop===e.currentTarget.scrollHeight-e.currentTarget.clientHeight},ref:function(e){return t.viewItemsWrapperEl=e}},c.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),c.createElement(h.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(e){return t.newMsgComp=e},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},b.prototype.componentDidMount=function(){var e=this;this.setState({isFirstRender:!1},function(){e.nextTickId=window.setTimeout(function(){return e.scrollViewItemsToBottom()},250)})},b.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},b.prototype.componentDidUpdate=function(e){e.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},b.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},b.prototype.checkIsDirectionRightToLeft=function(e){e=void 0!==e.dir?"rtl"===e.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(e)},b.prototype.renderViewItems=function(){var n=this,o=this.viewItems.length-1;return this.viewItems.map(function(e,t){return"date-marker"===e.type?c.createElement(m.default,{item:e,key:t}):"message-group"===e.type?c.createElement(d.default,{group:e,itemTemplate:n.props.messageTemplate,attachmentTemplate:n.props.attachmentTemplate,user:n.props.user,selectedItemIndex:n.state.selectedItemIndex,onRequestSelection:n.onSelectionRequested,isLastGroup:t===o,key:t,message:n.props.message||b.defaultProps.message}):"attachment-group"===e.type?c.createElement(l.default,{group:e,itemTemplate:n.props.attachmentTemplate,onRequestSelection:n.onSelectionRequested,selected:e.selectionIndex===n.state.selectedItemIndex,isLastGroup:t===o,key:t}):"action-group"===e.type?c.createElement(u.default,{group:e,onActionExecute:n.onActionExecute,onRequestSelection:n.onSelectionRequested,selected:e.selectionIndex===n.state.selectedItemIndex,isLastGroup:t===o,key:t}):void 0})},b.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},b.prototype.getViewItemsFromMsgs=function(e){return 0<e.length?(0,p.convertMsgsToViewItems)(e):[]},b.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},b.defaultProps={messages:[],dateFormat:"g",message:f.ChatMessage},b);function b(e){var o=s.call(this,e)||this;return o.viewItems=[],o.isDirectionRightToLeft=!1,o.scrollToBottomOnLoadingData=!0,o.onFocus=function(){clearTimeout(o.timeoutIdForChatLosingFocus)},o.onBlur=function(){o.timeoutIdForChatLosingFocus=window.setTimeout(function(){o.setState({selectedItemIndex:null})},0)},o.onSelectionRequested=function(e){o.setState({selectedItemIndex:e})},o.onKeyDown=function(e){var t=null,n=null!==o.state.selectedItemIndex?o.state.selectedItemIndex:o.viewItems.lastSelectionIndex;e.keyCode===i.Keys.up?null===n?t=0:0<n&&(t=n-1):e.keyCode===i.Keys.down&&(null===n?t=0:n<o.viewItems.lastSelectionIndex&&(t=n+1)),null!==t&&(o.setState({selectedItemIndex:t}),e.preventDefault())},o.onMessageSend=function(e,t){(0,i.dispatchEvent)(o.props.onMessageSend,t,o,{message:e})},o.onActionExecute=function(e,t){if((0,i.dispatchEvent)(o.props.onActionExecute,t,o,{action:e}),!t.isDefaultPrevented()){switch(e.type){case"reply":o.onMessageSend({author:o.props.user,text:e.value,timestamp:new Date},t);break;case"call":window.open("tel:"+e.value);break;case"openUrl":window.open(e.value)}o.newMsgComp.focusInput()}},(0,g.validatePackage)(y.packageMetadata),o.state={selectedItemIndex:null,isFirstRender:!0},o}t.Chat=n},626:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMessage=void 0,n(954)),a=n(811),c=n(987),n=(s=n(854).FocusableUponSelection,r(p,s),p.prototype.render=function(){var t=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return t.props.onRequestSelection(t.props.item.selectionIndex)},onFocus:function(){return t.props.onRequestSelection(t.props.item.selectionIndex)},ref:function(e){return t.elementToFocus=e}},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 e=null;return e=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)):e},p.prototype.getStatusView=function(){var e=null;return e=this.props.item.status?i.createElement("span",{className:"k-message-status"},this.props.item.status):e},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}t.ChatMessage=n,(0,c.registerForIntl)(n)},372:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(987),n=(s=i.Component,r(c,s),c.prototype.render=function(){var e=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(e.timestamp,"D"))},c);function c(){return null!==s&&s.apply(this,arguments)||this}t.default=n,(0,a.registerForIntl)(n)},575:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),a=n(811),c=n(797),p=n(147),u=n(987),l=n(965),n=(s=i.Component,r(m,s),m.prototype.render=function(){var e=this.props.group.author,t=e.avatarUrl,n=e.avatarAltText,e=e.name,o=(0,u.provideLocalizationService)(this);return i.createElement("div",{className:this.getMsgGroupClassNames()},t&&i.createElement("img",{src:t,className:"k-avatar",alt:void 0!==n?n:o.toLanguageString(l.avatarAlt,l.messages[l.avatarAlt])}),e&&i.createElement("p",{className:"k-author"},e),this.getGroupMessagesView())},m.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])})},m.prototype.getGroupMessagesView=function(){var o=this,s=this.props.group.messages.length-1;return this.props.group.messages.map(function(e,t){var n=[i.createElement(o.props.message,{item:e,template:o.props.itemTemplate,selected:e.selectionIndex===o.props.selectedItemIndex,onRequestSelection:o.props.onRequestSelection,tabIndex:t===s&&o.props.isLastGroup?0:-1,isFirstItemInGroup:0===t,isLastItemInGroup:t===s,isOnlyItemInGroup:0==s,key:t})];return e.attachments&&1===e.attachments.length&&n.push(i.createElement(c.default,{item:e.attachments[0],template:o.props.attachmentTemplate,selected:!1,key:"att-".concat(t)})),n})},m);function m(){return null!==s&&s.apply(this,arguments)||this}t.default=n},415:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(811)),a=n(954),c=n(540),p=n(414),u=n(987),l=n(965),n=(s=a.Component,r(m,s),m.prototype.render=function(){var t=this,e=(0,u.provideLocalizationService)(this),n=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return t.setState({focused:!0})},onBlur:function(){return t.setState({focused:!1})},ref:function(e){return t.inputEl=e},"aria-label":e.toLanguageString(l.newMessageMessageInput,l.messages[l.newMessageMessageInput])}),o=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":e.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})))),e=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(e){return t.props.onToolbarActionButtonClick(!t.props.showToolbar,e)},"aria-label":e.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:n,sendButton:o,toolbarButton:e}):a.createElement(a.Fragment,null,n,this.props.toolbar&&e,o)),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 n=null!==s&&s.apply(this,arguments)||this;return n.state={focused:!1},n.inputEl=null,n.onInputKeyDown=function(e){e.keyCode===i.Keys.enter&&n.sendMessage(e)},n.sendMessage=function(e){var t;n.props.onMessageSend&&null!==n.inputEl&&(t=n.inputEl.value)&&(t={author:n.props.user,text:t,timestamp:new Date},n.props.onMessageSend(t,e)),null!==n.inputEl&&(n.inputEl.value=null)},n}t.default=n},540:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),n(954)),n=(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}t.default=n},854:function(e,t,n){"use strict";var o,s,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])}))(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)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.FocusableUponSelection=void 0,s=n(954).Component,r(i,s),i.prototype.componentDidUpdate=function(e){!e.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==s&&s.apply(this,arguments)||this}t.FocusableUponSelection=n},536:function(e,t,n){"use strict";var o,r,s=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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectableItemsContainer=void 0,n(954)),a=n(811),n=(r=i.Component,s(c,r),c.getDerivedStateFromProps=function(e,t){return e.selected||null===t.selectedItemIndex?e.selected&&null===t.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},c.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:0<o&&(n=o-1),null!==n&&this.setState({selectedItemIndex:n}),n},Object.defineProperty(c.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.getLastSelectionIndex=function(){var e,t=-1;return"action-group"===this.props.group.type?t=(e=this.props.group).actions?e.actions.length-1:-1:"attachment-group"===this.props.group.type&&(t=(e=this.props.group).attachments?e.attachments.length-1:-1),t},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(e){var t,n=null,o=s.isKeyboardNavigationLeftRight?(t=a.Keys.left,a.Keys.right):(t=a.Keys.up,a.Keys.down);e.keyCode===t?n=s.navigate(!1):e.keyCode===o&&(n=s.navigate(!0)),null!==n&&(e.preventDefault(),e.stopPropagation())},s}t.SelectableItemsContainer=n},280:function(e,t,n){"use strict";var o,s,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])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.HeroCard=void 0,n(954)),a=n(414),c=n(811),n=(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 n=this;return this.props.actions.map(function(t,e){return i.createElement("span",{className:"k-card-action",key:e},i.createElement(a.Button,{fillMode:"flat",onClick:function(e){return n.onBtnClick(t,e)}},t.title))})},p.prototype.getTitleView=function(){var e=null;return e=this.props.title?i.createElement("h5",{className:"k-card-title"},this.props.title):e},p.prototype.getSubtitleView=function(){var e=null;return e=this.props.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):e},p);function p(){var n=null!==s&&s.apply(this,arguments)||this;return n.onBtnClick=function(e,t){(0,c.dispatchEvent)(n.props.onActionExecute,t,n,{action:e})},n}t.HeroCard=n},468:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,s)}:function(e,t,n,o){e[o=void 0===o?n:o]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},r=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChatMessage=void 0,n(626));Object.defineProperty(t,"ChatMessage",{enumerable:!0,get:function(){return r.ChatMessage}}),s(n(240),t),s(n(647),t),s(n(286),t),s(n(318),t),s(n(177),t),s(n(271),t),s(n(310),t),s(n(280),t)},965:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.ariaLabelMessageList=t.avatarAlt=t.newMessageMessageInput=t.newMessageOptionsButton=t.newMessageSendButton=void 0,t.newMessageSendButton="newMessage.sendButton",t.newMessageOptionsButton="newMessage.optionsButton",t.newMessageMessageInput="newMessage.messageInput",t.avatarAlt="avatar.alt",t.ariaLabelMessageList="messageList.ariaLabel",t.messages=((n={})[t.newMessageSendButton]="Send",n[t.newMessageOptionsButton]="Options",n[t.newMessageMessageInput]="Message",n[t.avatarAlt]="Avatar",n[t.ariaLabelMessageList]="Message list",n)},363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1681980671,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)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthor=void 0,t.isAuthor=function(e,t){return e&&t.author&&e.id===t.author.id}},414:e=>{"use strict";e.exports=n},811:e=>{"use strict";e.exports=r},987:e=>{"use strict";e.exports=i},233:e=>{"use strict";e.exports=a},954:e=>{"use strict";e.exports=c}},s={},function e(t){var n=s[t];return void 0!==n||(n=s[t]={exports:{}},o[t].call(n.exports,n,n.exports,e)),n.exports}(468)))}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-conversational-ui",
3
3
  "description": "React Chat component allows the user to participate in chat sessions with users or chat bots. KendoReact Conversational UI components",
4
- "version": "5.13.0-dev.202304200559",
4
+ "version": "5.13.0-dev.202304200917",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-react.git"
@@ -42,13 +42,13 @@
42
42
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@progress/kendo-react-common": "5.13.0-dev.202304200559"
45
+ "@progress/kendo-react-common": "5.13.0-dev.202304200917"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@progress/kendo-licensing": "^1.3.0",
49
- "@progress/kendo-react-buttons": "5.13.0-dev.202304200559",
50
- "@progress/kendo-react-dateinputs": "5.13.0-dev.202304200559",
51
- "@progress/kendo-react-intl": "5.13.0-dev.202304200559",
49
+ "@progress/kendo-react-buttons": "5.13.0-dev.202304200917",
50
+ "@progress/kendo-react-dateinputs": "5.13.0-dev.202304200917",
51
+ "@progress/kendo-react-intl": "5.13.0-dev.202304200917",
52
52
  "@progress/kendo-svg-icons": "^1.0.0",
53
53
  "adaptivecards": "^1.0.0",
54
54
  "botframework-directlinejs": "^0.9.15"