@progress/kendo-react-conversational-ui 4.11.0-dev.202111101237 → 4.11.0-dev.202111111356
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","@progress/kendo-react-intl","react-dom"],t):"object"==typeof exports?exports.KendoReactConversationalUi=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom")):e.KendoReactConversationalUi=t(e.React,e.PropTypes,e.KendoLicensing,e.KendoReactIntl,e.ReactDOM)}(window,(function(e,t,n,o,r){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserSupportService",(function(){return r})),n.d(t,"canUseDOM",(function(){return i})),n.d(t,"canUseRef",(function(){return s})),n.d(t,"classNames",(function(){return a})),n.d(t,"cloneDate",(function(){return c})),n.d(t,"clone",(function(){return u})),n.d(t,"cloneObject",(function(){return l})),n.d(t,"cloneValue",(function(){return p})),n.d(t,"cloneArray",(function(){return d})),n.d(t,"Draggable",(function(){return I})),n.d(t,"focusFirstFocusableChild",(function(){return P})),n.d(t,"FormComponent",(function(){return j})),n.d(t,"getTabIndex",(function(){return D})),n.d(t,"getter",(function(){return T})),n.d(t,"guid",(function(){return A})),n.d(t,"Keys",(function(){return R})),n.d(t,"noop",(function(){return K})),n.d(t,"getScrollbarWidth",(function(){return B})),n.d(t,"setScrollbarWidth",(function(){return F})),n.d(t,"setter",(function(){return U})),n.d(t,"mapTree",(function(){return W})),n.d(t,"mapTreeItem",(function(){return q})),n.d(t,"extendDataItem",(function(){return G})),n.d(t,"getItemPath",(function(){return Y})),n.d(t,"validatePackage",(function(){return $})),n.d(t,"hasRelativeStackingContext",(function(){return Z})),n.d(t,"dispatchEvent",(function(){return J})),n.d(t,"AsyncFocusBlur",(function(){return te})),n.d(t,"createPropsContext",(function(){return re})),n.d(t,"withContextProps",(function(){return ie})),n.d(t,"useDir",(function(){return se})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return ae})),n.d(t,"useRtl",(function(){return ce})),n.d(t,"useMouse",(function(){return ue})),n.d(t,"useCustomComponent",(function(){return le})),n.d(t,"useContextProps",(function(){return ne})),n.d(t,"Icon",(function(){return he})),n.d(t,"SvgIcon",(function(){return ge})),n.d(t,"Typography",(function(){return Ne}));var o=function(){return"undefined"!=typeof document?document:{}},r=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=o();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),i=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?a.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},c=function(e){return e?new Date(e.getTime()):null};function u(e){var t={};return l(e,t),t}function l(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=p(o,t[n])}}function p(e,t){if(Array.isArray(e))return d(e);if(e instanceof Date)return c(e);if(e&&"object"==typeof e){var n=t||{};return l(e,n),n}return e}function d(e){return e.map((function(e){return p(e,void 0)}))}var f=n(0),h=n(1),m=function(e,t){return function(n){return t(e(n))}},y=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},v=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},g=function(){},b=function(e){return e.preventDefault()},k=/touch/;function w(e){return e.type.match(k)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var O=function(e){var t=this,n=e.press;void 0===n&&(n=g);var o=e.drag;void 0===o&&(o=g);var r=e.release;void 0===r&&(r=g);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=m(w,n),this._dragHandler=m(w,o),this._releaseHandler=m(w,r),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){v(t.document,"mousemove",t._mousemove),v(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",b),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(v(t.document,"pointermove",t._pointermove),v(t.document,"pointerup",t._pointerup),v(t.document,"pointercancel",t._pointerup),v(t.document,"contextmenu",b),t._releaseHandler(e))}},_={document:{configurable:!0}};O.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},_.document.get=function(){return this._element?this._element.ownerDocument:document},O.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},O.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?y(e,"pointerdown",this._pointerdown):(y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend)))},O.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return v(e,"pointerdown",this._pointerdown),v(this.document,"pointermove",this._pointermove),v(this.document,"pointerup",this._pointerup),v(this.document,"contextmenu",b),void v(this.document,"pointercancel",this._pointerup);v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend))},O.prototype._usePointers=function(){return!this._mouseOnly&&O.supportPointerEvent()},O.prototype.update=function(e){var t=e.press;void 0===t&&(t=g);var n=e.drag;void 0===n&&(n=g);var o=e.release;void 0===o&&(o=g);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=m(w,t),this._dragHandler=m(w,n),this._releaseHandler=m(w,o),this._mouseOnly=r},O.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(O.prototype,_),O.default=O;var x,C=O,E=(x=function(e,t){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new C({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.childRef=function(e){var n=t.props.childRef;t.element=e,n&&"function"==typeof n&&n(e)},t}return E(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return f.cloneElement(f.Children.only(this.props.children),{ref:this.childRef})},t.propTypes={children:h.element.isRequired},t}(f.Component),P=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()}},j=function(){},D=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},N=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function M(e){var t=[];return e.replace(N,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var S={};function T(e){if(S[e])return S[e];var t=M(e);return S[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},S[e]}S.undefined=function(){};var A=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},R={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},K=function(){},B=function(){return!(!i||!document.body)&&(new r).scrollbarWidth},F=function(){if(!i||!document.body)return!1;var e=(new r).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},L={undefined:function(e){return e}},z=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function U(e){if(L[e])return L[e];var t=M(e);return L[e]=function(e,n,o){for(var r=e,i=t.length-1,s=0;s<i&&r;s++)r=r[t[s]]=r[t[s]]||z(t[s+1],o);r[t[i]]=n},L[e]}var H=function(){return(H=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}).apply(this,arguments)};function V(e,t,n){var o;return n?H({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var W=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=V(t,n).map((function(t){return e(t,n,o)}));return o(V(t,n,r))}return o(t)}(e,t,n)})).slice()},q=function(e,t,n,o){for(var r=e,i=[],s=0;s<t.length;s++)r=r[t[s]],r=Array.isArray(r)?r:r[n],i.push(r);var a=i.length>1?i[i.length-2]:e,c=t[t.length-1],u=o(a[c]);a.splice(c,1,u)},G=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},Y=function(e,t,n){var o=[],r=t.slice();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},X=n(4);function $(e){if(void 0!==X)X.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var Z=function(e){if(!i)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};function J(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function Q(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=f.useRef(!1),s=f.useRef(0),a=f.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),c=f.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),u=f.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),a((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,a,n,r]);return f.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:c,onBlur:u}}var ee=function(){return(ee=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}).apply(this,arguments)},te=function(e){var t=e.children,n=Q({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,ee({},n))},ne=function(e,t){return f.useContext(e)(t)},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}).apply(this,arguments)},re=function(){return f.createContext((function(e){return e}))},ie=function(e,t){return f.forwardRef((function(n,o){var r=ne(e,n);return f.createElement(t,oe({},r,{ref:o}))}))};function se(e,t,n){var o=f.useState(t),r=o[0],i=o[1];return f.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}function ae(e,t){var n=t.onPress,o=t.onDrag,r=t.onRelease,i=f.useMemo((function(){return new C({press:n,drag:o,release:r})}),[]);f.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),f.useEffect((function(){i.update({press:n,drag:o,release:r})}),[n,o,r])}function ce(e,t,n){var o=f.useState(t),r=o[0],i=o[1];return f.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var ue=function(e,t,n){void 0===n&&(n={});var o=f.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]),r=f.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:f.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:r,onMouseDown:o,onDoubleClick:f.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:f.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:f.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:f.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:f.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:f.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])}},le=function(e){return f.isValidElement(e)?[e.type,e.props]:[e,{}]},pe={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},de=function(){return(de=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}).apply(this,arguments)},fe=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&&(n[o[r]]=e[o[r]])}return n},he=f.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,s=e.flip,c=e.style,u=fe(e,["className","name","themeColor","size","flip","style"]),l=f.useRef(null),p=f.useRef(null);f.useImperativeHandle(l,(function(){return{element:p.current}})),f.useImperativeHandle(t,(function(){return l.current}));var d=f.useMemo((function(){return r||me.themeColor}),[r]),h=f.useMemo((function(){return i||me.size}),[i]),m=f.useMemo((function(){return s||me.flip}),[s]),y=f.useMemo((function(){return a("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},pe[h],n)}),[o,d,h,m,n]),v=ue(e,l);return f.createElement("span",de({ref:p},u,v,{className:y,style:c,role:"presentation"}))}));he.propTypes={style:h.object,classNames:h.string,name:h.string,themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:h.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:h.oneOf(["default","horizontal","vertical","both"])};var me={size:"default",themeColor:"inherit",flip:"default"};he.displayName="KendoIcon";var 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}).apply(this,arguments)},ve=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&&(n[o[r]]=e[o[r]])}return n},ge=f.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,s=e.flip,c=e.size,u=e.style,l=e.svgStyle,p=e.themeColor,d=e.viewBox,h=ve(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=f.useRef(null);f.useImperativeHandle(t,(function(){return{element:m.current}}));var y=f.useMemo((function(){return i?i.name:be.icon}),[i]),v=f.useMemo((function(){return p||be.themeColor}),[p]),g=f.useMemo((function(){return c||be.size}),[c]),b=f.useMemo((function(){return s||be.flip}),[s]),k=f.useMemo((function(){return d||be.viewBox}),[d]),w=f.useMemo((function(){return a("k-svg-icon","k-color-"+v,"k-svg-i-"+y,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},pe[g],o)}),[y,v,g,b,o]),O=f.useMemo((function(){return e.width&&e.height?ye({width:e.width,height:e.height},u):e.width?ye({width:e.width,height:e.width},u):e.height?ye({width:e.height,height:e.height},u):ye({},u)}),[e.width,e.height,u]);return f.createElement("span",{className:w,style:O,ref:m},f.createElement("svg",ye({className:r,style:l,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:k,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));ge.propTypes={style:h.object,classNames:h.string,children:h.any,icon:h.object,themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:h.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:h.oneOf(["default","horizontal","vertical","both"])};var be={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ge.displayName="KendoSvgIcon";var ke={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},we={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Oe={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"},_e={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Ce={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ee={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ie={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"},Pe=function(){return(Pe=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}).apply(this,arguments)},je=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&&(n[o[r]]=e[o[r]])}return n},De=function(e){var t=f.forwardRef((function(t,n){var o=t.className,r=t.fontSize,i=t.fontWeight,s=t.textAlign,a=t.textTransform,c=t.themeColor,u=t.margin,l=je(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),p=f.useRef(null),d=f.useRef(null);f.useImperativeHandle(p,(function(){return{element:d.current,props:t}})),f.useImperativeHandle(n,(function(){return p.current}));var h=e,m=function(){if(void 0!==u){if("string"==typeof u)return[Oe[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-"+u];if("object"==typeof u){var e=[];return Object.keys(u).forEach((function(t){var n,o;null!==u[t]&&void 0!==u[t]&&e.push((n=t,o=u[t],""+xe[n]+("string"==typeof o?_e[o]:o)))})),e.join(" ")}}};return f.createElement(h,Pe({ref:d,className:["k-"+("p"===e?"paragraph":e),ke[r],we[i],Ce[s],Ee[a],Ie[c],m(),o].filter((function(e){return void 0!==e})).join(" ")},l),t.children)}));return t.propTypes={style:h.object,className:h.string,fontSize:h.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:h.oneOf(["light","normal","bold"]),margin:h.oneOfType([h.number,h.object,h.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:h.oneOf(["left","right","center","justify"]),textTransform:h.oneOf(["lowercase","uppercase","capitalize"]),themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Ne={h1:De("h1"),h2:De("h2"),h3:De("h3"),h4:De("h4"),h5:De("h5"),h6:De("h6"),p:De("p"),code:De("code"),pre:De("pre")}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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=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(0).Component);t.FocusableUponSelection=i},function(e,t){e.exports=n},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(6),c=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},a.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 s.classNames({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected},"k-message")},t.defaultProps={dateFormat:"g",tabIndex:-1},t}(n(3).FocusableUponSelection);t.ChatMessage=c,a.registerForIntl(c)},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthor=function(e,t){return e&&t.author&&e.id===t.author.id}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=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=s.Keys.left,o=s.Keys.right):(n=s.Keys.up,o=s.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:!0,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=a},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=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 s.classNames({"k-state-selected":this.props.selected},{"k-state-focused":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(3).FocusableUponSelection);t.default=a},function(e,t){e.exports=r},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.ChatMessage=r.ChatMessage,o(n(12)),o(n(22))},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(2),s=n(1),a=n(0),c=n(13),u=n(14),l=n(16),p=n(17),d=n(18),f=n(19),h=n(5),m=n(2),y=n(21),v=function(e){function t(t){var n=e.call(this,t)||this;return 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){i.dispatchEvent(n.props.onMessageSend,t,n,{message:e})},n.onActionExecute=function(e,t){if(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()}},m.validatePackage(y.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),a.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},a.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}},a.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),a.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 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?a.createElement(p.default,{item:o,key:r}):"message-group"===o.type?a.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?a.createElement(l.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?a.createElement(u.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?c.convertMsgsToViewItems(e):[]},t.propTypes={messages:s.arrayOf(s.object),user:s.object,messageTemplate:s.any,attachmentTemplate:s.any,width:s.oneOfType([s.string,s.number]),onMessageSend:s.func,onActionExecute:s.func,dir:s.string,messageBox:s.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(a.Component);t.Chat=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=function(e){return e[e.length-1]},i=function(e){return function(t,n,i){var s=i===e-1;return function(e,t){var n,o,i=t.timestamp,s=r(e);if(i&&(!s||(n=i,o=s.timestamp,n&&o&&(o.getDate()!==n.getDate()||o.getMonth()!==n.getMonth()||o.getFullYear()!==n.getFullYear())))){var a={type:"date-marker",timestamp:i,trackBy:i.getTime()};e.push(a)}}(t,n),function(e,t,n){var i=r(e),s=void 0;t.typing&&!n||(i&&"message-group"===i.type&&(s=i.messages),s&&o.isAuthor(t.author,r(s))?s.push(t):e.push({type:"message-group",messages:[t],author:t.author,timestamp:t.timestamp,trackBy:t}))}(t,n,s),n.attachments&&n.attachments.length>1&&t.push({type:"attachment-group",attachments:n.attachments,attachmentLayout:n.attachmentLayout,timestamp:n.timestamp,trackBy:n}),n.suggestedActions&&s&&t.push({type:"action-group",actions:n.suggestedActions,timestamp:n.timestamp,trackBy:n}),t}};t.convertMsgsToViewItems=function(e){var t,n,o=e.slice().reduce(i(e.length),[]);return n=0,(t=o).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,o}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(15),c=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(a.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 s.classNames("k-quick-replies")},t}(n(8).SelectableItemsContainer);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===s.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 a.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected})},t}(n(3).FocusableUponSelection);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(9),c=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(a.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:!0,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("button",{className:"k-button k-button-icon",onClick:function(){return e.onNavigateBtnClick(!1)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-left"}))),t},t.prototype.getRightScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()&&(t=i.createElement("button",{className:"k-button k-button-icon",onClick:function(){return e.onNavigateBtnClick(!0)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-right"}))),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 s.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(n(8).SelectableItemsContainer);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(6),a=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"},s.provideIntlService(this).formatDate(e.timestamp,"D"))},t}(i.Component);t.default=a,s.registerForIntl(a)},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(9),c=n(7),u=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 s.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":c.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(a.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-"+o})),r}))},t}(i.Component);t.default=u},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(2),s=n(0),a=n(20),c=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=s.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}}),o=s.createElement("button",{className:"k-button k-flat k-button-icon k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},s.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},s.createElement("path",{d:t.buttonIconPath}))),r=s.createElement("button",{className:"k-button k-flat k-button-icon k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},s.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},s.createElement("g",null,s.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"}),s.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"}),s.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 s.createElement(s.Fragment,null,s.createElement("div",{className:"k-message-box"},this.props.MessageBox?s.createElement(this.props.MessageBox,{messageInput:n,sendButton:o,toolbarButton:r}):s.createElement(s.Fragment,null,n,this.props.toolbar&&r,o)),this.props.showToolbar&&s.createElement(a.default,null,this.props.toolbar))},t.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},t.prototype.getClassNames=function(){return i.classNames({"k-state-focused":this.state.focused},"k-input")},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}(s.Component);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636546643,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"}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(23),a=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onBtnClick=function(e,n){a.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(s.Button,{look:"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=c},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return ze})),n.d(t,"ToolbarItem",(function(){return He})),n.d(t,"ToolbarSeparator",(function(){return We})),n.d(t,"ToolbarSpacer",(function(){return qe})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return Se})),n.d(t,"SplitButtonItem",(function(){return _})),n.d(t,"DropDownButton",(function(){return Be})),n.d(t,"DropDownButtonItem",(function(){return Ae})),n.d(t,"Chip",(function(){return st})),n.d(t,"ChipList",(function(){return nt})),n.d(t,"FloatingActionButton",(function(){return bt})),n.d(t,"FloatingActionButtonItem",(function(){return pt}));var o,r=n(0),i=n(1),s=n(2),a={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636546530,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"},c=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',u=["button"+c,".k-button-group > button"+c,".k-dropdown > .k-dropdown-wrap"+c,".k-colorpicker > .k-picker-wrap"+c],l={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-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"},p=(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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}).apply(this,arguments)},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&&(n[o[r]]=e[o[r]])}return n},h=l;var m=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)},Object(s.validatePackage)(a),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,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,t=this,n=this.props,o=n.children,i=n.look,a=n.primary,c=n.togglable,u=n.icon,l=n.iconClass,p=n.imageUrl,m=n.imageAlt,y=n.className,v=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),g=void 0!==u||void 0!==l||void 0!==p,b=void 0!==o,k={className:Object(s.classNames)([h.button],((e={})[h[""+i]]="default"!==i,e[h.primary]=a,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!b&&g,e[h["button-icontext"]]=b&&g,e),[h[""+this.props.dir]],y),onClick:this.handleClick,role:c?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":c?this.state.selected:void 0},w=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-image",alt:i,src:t});if(n){var a=Object(s.classNames)("k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:a})}return o?r.createElement("span",{role:"presentation",className:o}):null}({icon:u,iconClass:l,imageUrl:p,imageAlt:m});return r.createElement("button",d({},k,v,{ref:function(e){return t._element=e}}),w,o)},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,look:i.oneOf(["default","flat","outline","clear"]),primary:i.bool,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(r.Component),y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=l,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.validatePackage)(a),n}return y(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=Object(s.classNames)([g["button-group"]],((e={})[g["state-disabled"]]=this.props.disabled,e[g["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",v({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,a=Object(s.classNames)(e.props.className,((i={})[g["group-start"]]=o?n:0===t,i[g["group-end"]]=o?0===t:n,i)),c=v({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,l=v({},e.props,a?{className:a}:{},Object.keys(c).length?{style:c}:{},void 0!==u?{disabled:u}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,l,e.props.children):r.cloneElement(e,l)},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),k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,o=e.id,i=e.onDown,a=e.render,c=r.createElement("li",{id:o,className:Object(s.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:i,onPointerDown:i,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==a?a.call(void 0,c,this.props):c},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,o=e.index,i=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),s=void 0!==t.text?t.text:n?t[n]:t,a=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&r.createElement(i,{item:t,itemIndex:o})||[a&&r.createElement("span",{className:a,role:"presentation",key:"icon"}),t.imageUrl&&r.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),s]},t}(r.Component),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(r.Component),x=function(e,t,n,o){if(n)return e;switch(t){case s.Keys.enter:case s.Keys.space:case s.Keys.esc:return-1;case s.Keys.up:case s.Keys.left:return Math.max(0,e-1);case s.Keys.down:case s.Keys.right:return Math.min(o-1,e+1);default:return e}},C=n(10),E=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},I="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),P="bottom",j="center",D="middle",N="left",M="right",S="top",T=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var s=n.horizontal,a=n.vertical,c=r.horizontal,u=r.vertical,l=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return a===P&&(d+=t.height),a!==j&&a!==D||(d+=Math.round(t.height/2)),u===P&&(d-=o.height,p*=-1),u!==j&&u!==D||(d-=Math.round(o.height/2),p*=-1),s===M&&(f+=t.width),s!==j&&s!==D||(f+=Math.round(t.width/2)),c===M&&(f-=o.width,l*=-1),c!==j&&c!==D||(f-=Math.round(o.width/2),l*=-1),{top:d+p,left:f+l}};function A(e){return e.ownerDocument||e.document||e}var R=function(e){return A(e).defaultView},K=function(e){return A(e).documentElement},B=0;function F(){if(!B&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),B=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return B}function L(e){var t=R(e),n=K(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=F()),o}var z=function(e){if(!e.getBoundingClientRect){var t=L(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}},U=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||K(e)},H=function(e){return U(e)===e.ownerDocument.body},V=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}},W=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function q(e){var t=K(e),n=R(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var G=function(e){return e===(e.ownerDocument||{}).body?q(e):{x:e.scrollLeft,y:e.scrollTop}};var Y=function(e,t){var n=R(e),o=n.getComputedStyle(e),r=V(e),i=t||U(e),s=e.ownerDocument,a=i!==s.body&&i!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var u=n.getComputedStyle(i);(c=V(i)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},X=function(e,t){return e?G(e):function(e){var t=U(e);return t?G(t):{x:0,y:0}}(t)};var $="fit",Z="flip",J=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},Q=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,s=e.elementAlignPoint,a=0,c=2*e.margin;if(s!==i&&!(s===j||s===D)&&!(i===j||i===D)){var u=i===S||i===N;t<0&&u?t+(a=n+o+c)+n>r&&(a=0):t>=0&&!u&&(t+n>r&&(a+=-(o+n+c)),t+a<0&&(a=0))}return a},ee=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,u=o.left,l=o.height,p=o.width,d=s.height,f=s.width,h=a.horizontal||0,m=a.vertical||0,y=0,v=0,g=i.horizontal===Z,b=i.vertical===Z;i.vertical===$&&(v+=J(c,l,d)),i.horizontal===$&&(y+=J(u,p,f)),b&&(v+=Q({margin:m,offset:c,size:l,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),g&&(y+=Q({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var k=g&&0!==y,w=b&&0!==v;return{flipped:k||w,flip:{horizontal:k,vertical:w},offset:{left:y,top:v}}},te=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ne=function(e,t){for(var n,o,r=W(e),i=t;i&&(n=te(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var oe=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},re=/auto|scroll/,ie=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},se=Object(s.hasRelativeStackingContext)(),ae="fit",ce="flip",ue="left",le="center",pe="right",de="bottom",fe="top",he=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.offset,s=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,i):this.relativeRect(t,n,i);return this._dom.align({anchorAlign:o,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var o=this._dom,r=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(oe(o.offset(e),n),o.stackingElementOffset(t)),i=o.stackingElementScroll(t),s=o.addScroll(r,i),a=this.elementScrollPosition(e,t),c=o.removeScroll(s,a);return c.left+=window.scrollX||window.pageXOffset,c.top+=window.scrollY||window.pageYOffset,c},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return oe(this._dom.position(e,t),n)},e}(),me=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return T(e)},e.prototype.boundingOffset=function(e){return z(e)},e.prototype.getWindow=function(){return s.canUseDOM?window:null},e.prototype.isBodyOffset=function(e){return H(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?V(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,o=t.top;e.style.left="0px",e.style.top="0px";var r=V(e);return e.style.left=n,e.style.top=o,r},e.prototype.position=function(e,t){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?U(t):null,r=Y(e,o),i=r.top,s=r.left,a=r.height,c=r.width,u=X(o,e),l=u.x,p=u.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:s+l*f,height:a,width:c}}(e,ne(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),o=t,r=this.isBodyOffset(e),i=n.top,s=n.left,r&&(s=0,i=0),{top:i+o.top,left:s+o.left,height:n.height,width:n.width};var n,o,r,i,s},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return ee(e)},e.prototype.scrollPosition=function(e){return q(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!s.canUseDOM)return t;for(var n=e.parentElement;n;)re.test(ie(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?V(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!se)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return L(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!s.canUseDOM)return null;var n=ne(e,t);if(!n)return null;var o=[e].concat(W(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}(e,t)},e.prototype.zoomLevel=function(){return s.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),ye=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,o=e.anchor,r=e.currentLocation,i=e.element,s=e.anchorAlign,a=e.elementAlign,c=e.collisions,u=this._dom,l=e.viewPort||u.stackingElementViewPort(i)||u.windowViewPort(i),p=oe(u.offset(o),r),d=(t=u.staticOffset(i),(n=r)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),f=this.elementRect(i,d),h=u.restrictToView({anchorAlign:s,anchorRect:p,collisions:c,elementAlign:a,elementRect:f,viewPort:l});return{flipped:h.flipped,offset:u.addOffset(d,h.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),ve={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636546502,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"},ge=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),be=function(){return(be=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}).apply(this,arguments)};function ke(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,Oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(we||(we={}));var _e=function(e){function t(t){var n=e.call(this,t)||this;return 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,s=t.offset,a=t.anchor,c=e.firstElementChild,u=getComputedStyle(c),l=u.width,p=u.height;c.style.position="absolute",c.style.width=l,c.style.height=p;var d=n._alignService.alignElement({anchor:a,element:c,elementAlign:r,anchorAlign:o,offset:s}),f=n._positionService.positionElement({anchor:a,anchorAlign:o,collisions:i,element:c,currentLocation:d,elementAlign:r});f.offset&&(e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",c.style.position="",c.style.width="",c.style.height=""),n._flipped=f.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){!function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,s=i+"-active",a=function(){e.removeEventListener("transitionend",a),E(e),r()};e.addEventListener("transitionend",a);var c=e.ownerDocument;if(c){var u=c.defaultView;if(u){var l=function(){E(e),e.classList.add(i),u.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(s)}))};I?u.requestAnimationFrame(l):l()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,o)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),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})},Object(s.validatePackage)(ve),n._domService=new me,n._alignService=new he(n._domService),n._positionService=new ye(n._domService),n.reposition=function(e,t,n){var o,r,i,s;void 0===n&&(n={});var a=0;n=n||{};var c=function(){a=!1===n.leading?0:(new Date).getTime(),o=null,s=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();a||!1!==n.leading||(a=u);var l=t-(u-a);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),a=u,s=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,l)),s}}(n.reposition.bind(n),1e3/60),n}return ge(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,s=e.collision,a=e.popupAlign,c=e.className,u=e.popupClass,l=e.style,p=e.offset,d=e.contentKey,f=be({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:s,popupAlign:a,className:c,popupClass:u,style:l,offset:p,contentKey:d}});return e.show?t.current===we.hidden||t.current===we.hiding?be({},f,{current:we.showing,previous:t.current}):t.current===we.showing?be({},f,{current:we.shown,previous:t.current}):t.current!==we.shown||ke(p,t.props.offset)&&ke(r,t.props.anchorAlign)&&ke(i,t.props.appendTo)&&ke(s,t.props.collision)&&ke(a,t.props.popupAlign)&&ke(l,t.props.style)&&o===t.props.anchor&&u===t.props.popupClass&&c===t.props.className?f:be({},f,{current:we.reposition,previous:t.current}):t.current===we.hiding||t.current===we.hidden?be({},f,{current:we.hidden,previous:t.current}):be({},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,a=t.show,c=t.id,u=this.props.appendTo?this.props.appendTo:s.canUseDOM?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 l=Object.assign({},{position:"absolute"},this.props.style||{}),p=this.state.current===we.hiding;if((a||p)&&u){var d=r.createElement("div",{className:Object(s.classNames)("k-animation-container","k-animation-container-relative",o),id:c,ref:function(t){return e._popup=t},style:l},r.createElement("div",{className:Object(s.classNames)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n));return C.createPortal(d,u)}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:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),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.string,id:i.string,popupClass:i.string,collision:i.shape({horizontal:i.oneOf([ae,ce]),vertical:i.oneOf([ae,ce])}),anchorAlign:i.shape({horizontal:i.oneOf([ue,le,pe]),vertical:i.oneOf([fe,le,de])}),popupAlign:i.shape({horizontal:i.oneOf([ue,le,pe]),vertical:i.oneOf([fe,le,de])}),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})])},t.defaultProps={collision:{horizontal:ae,vertical:ce},anchorAlign:{horizontal:ue,vertical:de},popupAlign:{horizontal:ue,vertical:fe},offset:Oe,animate:!0,show:!1},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}).apply(this,arguments)},Ce=r.createContext((function(e){return e})),Ee=r.forwardRef((function(e,t){var n=r.useContext(Ce).call(void 0,e);return r.createElement(_e,xe({ref:t},n))}));function Ie(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Pe(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var je,De,Ne=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=l,Se=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.guid=Object(s.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.Keys.down?n.opened&&e.keyCode===s.Keys.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===s.Keys.enter||e.keyCode===s.Keys.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===s.Keys.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===s.Keys.up||e.keyCode===s.Keys.down||e.keyCode===s.Keys.left||e.keyCode===s.Keys.right;!e.altKey&&i&&e.preventDefault()}o&&n.setState(o)}},n.onFocus=function(e){Object(s.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},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.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(s.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!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&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(s.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.validatePackage)(a),n}return Ne(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,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===_})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,a=o.disabled,c=this.state.focusedIndex;return r.createElement("div",{className:Object(s.classNames)("k-widget","k-split-button","k-button-group",[Me[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:a||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":a,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":c>=0?this.guid+"-"+c:void 0},this.props.text),r.createElement(m,{icon:"arrow-s",disabled:a||void 0,tabIndex:-1,look:this.props.look,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:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(s.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(s.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Ie(e),popupAlign:n.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},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,s){return r.createElement(w,{dataItem:t,textField:i,focused:e.state.focusedIndex===s,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:s,index:s,id:e.guid+"-"+s})})):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,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,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(r.Component),Te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Te(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(){return(Ke=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Be=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.guid=Object(s.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.Keys.down?n.opened&&e.keyCode===s.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=Ke({},n.state);if(e.keyCode===s.Keys.enter||e.keyCode===s.Keys.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===s.Keys.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===s.Keys.up||e.keyCode===s.Keys.down||e.keyCode===s.Keys.left||e.keyCode===s.Keys.right;!e.altKey&&i&&e.preventDefault()}n.setState(o)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(s.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(s.dispatchEvent)(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.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},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){Object(s.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.validatePackage)(a),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:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,a=o.disabled,c=this.state.focusedIndex;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===Ae})).map((function(e){return e.props})),r.createElement("div",{className:Object(s.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:a||void 0,tabIndex:i,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":a,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":c>=0?this.guid+"-"+c:void 0},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.state.focused&&this.element&&this.element.focus()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(s.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Ie(e),popupAlign:n.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},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,s){return r.createElement(w,{dataItem:t,textField:i,focused:e.state.focusedIndex===s,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:s,key:s,id:e.guid+"-"+s})})):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,primary:i.bool,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,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(r.Component),Fe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){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}).apply(this,arguments)},ze=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===s.Keys.left||e.keyCode===s.Keys.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===s.Keys.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({target:o},i,{nativeEvent:e}))}}},Object(s.validatePackage)(a),o}return Fe(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||u},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,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",{className:Object(s.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"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 s=this.buttons[e];s&&(s.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(r.Component),Ue=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),He=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return Ue(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return r.createElement("span",{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),Ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ve(t,e),t.prototype.render=function(){return r.createElement(He,{className:"k-separator"})},t}(r.PureComponent),qe=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 Object(s.classNames)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));qe.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(je||(je={})),function(e){e.toggle="toggle",e.remove="remove"}(De||(De={}));var Ge;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Ge||(Ge={}));var Ye;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ye||(Ye={}));var 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}).apply(this,arguments)},$e=r.createContext([null,function(e){}]),Ze=r.createContext([null,function(e){}]),Je=r.createContext([null,function(e){}]),Qe=function(e,t,n){var o=r.useState(e),i=o[0],s=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case je.single:switch(t.type){case De.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 De.remove:return t.payload===e?null:e;default:return e}case je.multiple:switch(t.type){case De.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case De.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case je.none:return null;default:return e}}(t.state||i,Xe({},e,t));n&&n(o,e.event),s(o)}]},et=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,Xe({},t,e));o(n)}]},tt=function(e,t,n){var o=r.useState(e),i=o[0],s=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,Xe({},e,t));n&&n(o,e.event),s(o)}]},nt=r.forwardRef((function(e,t){Object(s.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),i=Object(s.useDir)(o,e.dir),c=r.useMemo((function(){return e.chip||st}),[e.chip,st]),u=r.useMemo((function(){return e.selection||rt.selection}),[e.selection,rt.selection]);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var l=r.useCallback((function(t,o){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onChange]),p=Qe(e.value||e.defaultValue,{selection:u,state:e.value},l),d=p[0],f=p[1],h=r.useCallback((function(t,o){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onDataChange]),m=tt(e.data||e.defaultData||rt.defaultData,{state:e.data,valueField:e.valueField||rt.valueField},h),y=m[0],v=m[1],g=r.useCallback((function(t,n){return t.push(n[e.valueField||rt.valueField]),t}),[e.valueField,rt.valueField]),b=r.useMemo((function(){return e.data||y}),[e.data,y]),k=r.useMemo((function(){return e.value||d}),[e.value,d]),w=r.useMemo((function(){return b.reduce(g,[])}),[b,g]),O=et({items:w}),_=O[0],x=O[1],C=Object(s.useMouse)(e,n);return r.createElement($e.Provider,{value:[k,f]},r.createElement(Ze.Provider,{value:[_,x]},r.createElement(Je.Provider,{value:[b,v]},r.createElement("div",Xe({ref:o},C,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(s.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(s.classNames)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===u,"k-selection-multiple":"multiple"===u,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),b.map((function(t){return r.createElement(c,{role:"option",dataItem:t,key:t[e.valueField||rt.valueField],text:t[e.textField||rt.textField],value:t[e.valueField||rt.valueField]})}))))))})),ot={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string},rt={chip:st,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};nt.displayName="KendoReactChipList",nt.propTypes=ot,nt.defaultProps=rt;var it=function(){return(it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},st=r.forwardRef((function(e,t){Object(s.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),i=Object(s.useDir)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var c=r.useContext($e),u=c[0],l=c[1],p=r.useContext(Ze),d=p[0],f=p[1],h=r.useContext(Je)[1],m=r.useMemo((function(){return e.selected||(Array.isArray(u)?u.some((function(t){return t===e.value})):u===e.value)}),[e.selected,e.value,u]),y=r.useMemo((function(){return d===e.value}),[e.value,d]),v=r.useMemo((function(){return e.look||ct.look}),[e.look]);r.useEffect((function(){y&&o.current&&o.current.focus()}),[y]);var g=r.useCallback((function(t){l({type:De.toggle,payload:e.value,event:t}),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onClick,l,e.value]),b=r.useCallback((function(t){e.removable&&(h({type:Ye.remove,payload:e.value,event:t}),f({type:Ge.reset,payload:e.value,event:t}),l({type:De.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,l]),k=r.useCallback((function(t){switch(t.keyCode){case s.Keys.left:f({type:Ge.prev,payload:e.value,event:t});break;case s.Keys.right:f({type:Ge.next,payload:e.value,event:t});break;case s.Keys.enter:l({type:De.toggle,payload:e.value,event:t});break;case s.Keys.delete:b(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,l,b]),w=r.useCallback((function(t){f({payload:e.value,type:Ge.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),O=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),_=Object(s.useMouse)(e,n,{onClick:g});return r.createElement("div",it({},_,{role:e.role,id:e.value,style:e.style,ref:o,dir:i,tabIndex:Object(s.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(s.classNames)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":y,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outline"===v||"outlined"===v,"k-chip-solid":"solid"===v||"filled"===v},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:w,onBlur:O,onKeyDown:k}),m&&r.createElement("span",{className:"k-selected-icon-wrapper"},r.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||ct.selectedIcon)})),e.icon&&r.createElement("span",{className:"k-icon k-chip-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-remove-icon",onClick:b},r.createElement("span",{className:"k-icon "+e.removeIcon})))})),at={id:i.string,text:i.string,value:i.any,type:i.oneOf(["none","success","warning","error","info"]),dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,look:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string},ct={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};st.displayName="KendoReactChip",st.propTypes=at,st.defaultProps=ct;var ut=function(){return(ut=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}).apply(this,arguments)},lt=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&&(n[o[r]]=e[o[r]])}return n},pt=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,a=e.icon,c=e.style,u=e.id,l=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,y=e.onClick,v=lt(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),g=r.useRef(null),b=r.useCallback((function(){g.current&&g.current.focus()}),[]),k=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){y&&void 0!==d&&!o&&y(e,d)}),[y,d]),O=r.useMemo((function(){return Object(s.classNames)("k-fab-item",{"k-state-focus":l,"k-state-disabled":o},n)}),[n,o,l]),_=h;return r.createElement("li",ut({ref:g,id:u,className:O,style:c,role:"menuitem",tabIndex:Object(s.getTabIndex)(p,o),"aria-disabled":o,"aria-label":(i||"")+" floatingactionbutton item",onClick:w,onMouseDown:m,onPointerDown:m},v),_?r.createElement(_,{itemIndex:d,item:f}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),a&&r.createElement("span",{className:Object(s.classNames)("k-fab-item-icon k-icon k-i-"+a)})))}));pt.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},pt.displayName="KendoFloatingActionButtonItem";var 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(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},yt=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},vt=function(){return(vt=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}).apply(this,arguments)},gt=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&&(n[o[r]]=e[o[r]])}return n},bt=r.forwardRef((function(e,t){Object(s.validatePackage)(a);var n=e.align,o=void 0===n?kt.align:n,i=e.alignOffset,c=e.className,u=e.disabled,l=e.icon,p=e.iconClass,d=e.id,f=e.items,h=e.item,m=e.text,y=e.positionMode,v=void 0===y?kt.positionMode:y,g=e.shape,b=void 0===g?kt.shape:g,k=e.size,w=void 0===k?kt.size:k,O=e.style,_=e.themeColor,x=void 0===_?kt.themeColor:_,C=e.tabIndex,E=e.accessKey,I=e.popupSettings,P=void 0===I?{}:I,j=e.onClick,D=e.onItemClick,N=e.onFocus,M=e.onBlur,S=e.onKeyDown,T=e.onOpen,A=e.onClose,R=gt(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),K=r.useRef(null),B=r.useRef(null),F=r.useRef(null),L=r.useRef(null),z=r.useCallback((function(){B.current&&B.current.focus()}),[]),U=r.useCallback((function(){return{element:B.current,focus:z}}),[z]);r.useImperativeHandle(K,U),r.useImperativeHandle(t,(function(){return K.current}));var H=r.useState(!1),V=H[0],W=H[1],q=r.useState(!1),G=q[0],Y=q[1],X=r.useState(-1),$=X[0],Z=X[1],J=r.useMemo((function(){return Object(s.guid)()}),[]),Q=Object(s.useDir)(B,e.dir),ee="rtl"===Q,te=r.useMemo((function(){return Object(s.guid)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var s=n&&void 0!==n.x?dt(n.x):"16px",a=n&&void 0!==n.x?"calc(50% + "+dt(n.x)+")":"50%",c=n&&void 0!==n.y?dt(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+dt(n.y)+")":"50%";e.current.style.setProperty(mt(t,o),"center"===r?a:s),e.current.style.setProperty(yt(t),"middle"===i?u:c),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"))}}(B,o,i,ee)}),[B,o,i,ee]),r.useEffect((function(){G&&B&&B.current&&B.current.focus()}),[G,B]);var ne=r.useCallback((function(e,t){f&&Object(s.dispatchEvent)(t?T:A,e,U(),void 0)}),[T,A,f]),oe=r.useCallback((function(e){e.target&&!u&&(!f&&j?Object(s.dispatchEvent)(j,e,U(),void 0):(W(!V),Y(!0),Z(V?-1:0),ne(e,!V)))}),[W,Y,Z,j,ne,V,f,u]),re=r.useCallback((function(e){Y(!0),Z(V?0:-1),N&&Object(s.dispatchEvent)(N,e,U(),void 0)}),[N,Y,Z]),ie=r.useCallback((function(e){Y(!1),W(!1),Z(-1),Object(s.dispatchEvent)(M,e,U(),void 0),V&&ne(e,!1)}),[M,Y,W,Z,ne]),se=r.useCallback((function(e){e.preventDefault()}),[]),ae=r.useCallback((function(e,t){f&&(f[t].disabled||Object(s.dispatchEvent)(D,e,U(),{itemProps:f[t],itemIndex:t}))}),[D]),ce=r.useCallback((function(e,t){e.target&&f&&(Z(t),W(!1),ae(e,t),ne(e,!1))}),[Z,W,ae,ne]),ue=r.useCallback((function(e){document.activeElement===B.current&&e.preventDefault()}),[B,document.activeElement]),le=r.useCallback((function(e){var t=$,n=f?f.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case s.Keys.enter:case s.Keys.space:t>=0&&ae(e,t),e.preventDefault(),W(!V),Z(V?-1:0);break;case s.Keys.esc:e.preventDefault(),W(!1),Z(-1);break;case s.Keys.home:e.preventDefault(),Z(0);break;case s.Keys.end:e.preventDefault(),Z(n);break;case s.Keys.down:case s.Keys.right:e.preventDefault(),t<n&&!r&&Z(t+1),t>0&&r&&Z(t-1);break;case s.Keys.up:case s.Keys.left:e.preventDefault(),t>0&&!r&&Z(t-1),t<n&&r&&Z(t+1)}Object(s.dispatchEvent)(S,e,U(),void 0)}),[S,$,Z,ee,W]),pe=r.useMemo((function(){return Object(s.classNames)("k-fab","k-fab-"+x,"k-fab-"+b,{"k-fab-sm":"small"===w,"k-fab-md":"medium"===w,"k-fab-lg":"large"===w,"k-state-disabled":u,"k-pos-absolute":"absolute"===v,"k-pos-fixed":"fixed"===v,"k-state-focus":G},"k-"+o.vertical+"-"+o.horizontal,c)}),[x,w,b,u,v,o,G,c]),de=f&&f.map((function(e,t){return r.createElement(pt,vt({},e,{key:t,index:t,id:te+"-"+t,disabled:u||e.disabled,focused:$===t,dataItem:e,item:h,className:Object(s.classNames)(e.className,(n=Q||"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:ce,onDown:ue}));var n,i})),fe=l&&!m,he=(B.current?B.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",vt({ref:B,id:d||J,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?V:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?te:void 0,"aria-activedescendant":$>=0&&f?te+"-"+$:void 0,tabIndex:Object(s.getTabIndex)(C,u),accessKey:E,dir:Q,disabled:u,className:pe,style:O,onClick:oe,onMouseDown:se,onFocus:re,onBlur:ie,onKeyDown:le},R),l?r.createElement("span",{role:"presentation",className:Object(s.classNames)("k-fab-icon k-icon k-i-"+l)}):p?r.createElement("span",{role:"presentation",className:p}):null,m&&r.createElement("span",{className:"k-fab-text"},m)),r.createElement(Ee,{ref:L,anchor:B.current,show:V,animate:P.animate,popupClass:Object(s.classNames)("k-popup-transparent k-fab-popup",P.popupClass),anchorAlign:P.anchorAlign||ft(o,ee),popupAlign:P.popupAlign||ht(o,ee),style:{boxShadow:"none"}},r.createElement("ul",{ref:F,role:"menu","aria-labelledby":d,id:te,className:Object(s.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:fe?he:void 0,paddingRight:fe?he:void 0}},de)))}));bt.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(["rectangle","rounded","pill"]),size:i.oneOf(["small","medium","large"]),themeColor:i.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var kt={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};bt.displayName="KendoFloatingActionButton"}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","@progress/kendo-react-intl","react-dom"],t):"object"==typeof exports?exports.KendoReactConversationalUi=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("@progress/kendo-react-intl"),require("react-dom")):e.KendoReactConversationalUi=t(e.React,e.PropTypes,e.KendoLicensing,e.KendoReactIntl,e.ReactDOM)}(window,(function(e,t,n,o,r){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserSupportService",(function(){return r})),n.d(t,"canUseDOM",(function(){return i})),n.d(t,"canUseRef",(function(){return s})),n.d(t,"classNames",(function(){return a})),n.d(t,"cloneDate",(function(){return u})),n.d(t,"clone",(function(){return l})),n.d(t,"cloneObject",(function(){return p})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return f})),n.d(t,"Draggable",(function(){return I})),n.d(t,"focusFirstFocusableChild",(function(){return P})),n.d(t,"FormComponent",(function(){return j})),n.d(t,"getTabIndex",(function(){return D})),n.d(t,"getter",(function(){return T})),n.d(t,"guid",(function(){return A})),n.d(t,"Keys",(function(){return R})),n.d(t,"noop",(function(){return K})),n.d(t,"getScrollbarWidth",(function(){return B})),n.d(t,"setScrollbarWidth",(function(){return F})),n.d(t,"setter",(function(){return U})),n.d(t,"mapTree",(function(){return W})),n.d(t,"mapTreeItem",(function(){return q})),n.d(t,"extendDataItem",(function(){return G})),n.d(t,"getItemPath",(function(){return Y})),n.d(t,"validatePackage",(function(){return $})),n.d(t,"hasRelativeStackingContext",(function(){return Z})),n.d(t,"dispatchEvent",(function(){return J})),n.d(t,"AsyncFocusBlur",(function(){return te})),n.d(t,"createPropsContext",(function(){return re})),n.d(t,"withContextProps",(function(){return ie})),n.d(t,"useDir",(function(){return se})),n.d(t,"useAsyncFocusBlur",(function(){return Q})),n.d(t,"useDraggable",(function(){return ae})),n.d(t,"useRtl",(function(){return ce})),n.d(t,"useMouse",(function(){return ue})),n.d(t,"useCustomComponent",(function(){return le})),n.d(t,"useContextProps",(function(){return ne})),n.d(t,"Icon",(function(){return he})),n.d(t,"SvgIcon",(function(){return ge})),n.d(t,"Typography",(function(){return Ne}));var o=function(){return"undefined"!=typeof document?document:{}},r=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=o();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),i=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?a.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},c=n(0),u=function(e){return e?new Date(e.getTime()):null};function l(e){var t={};return p(e,t),t}function p(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return f(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 p(e,n),n}return e}function f(e){return e.map((function(e){return d(e,void 0)}))}var h=n(1),m=function(e,t){return function(n){return t(e(n))}},y=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},v=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},g=function(){},b=function(e){return e.preventDefault()},k=/touch/;function w(e){return e.type.match(k)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var O=function(e){var t=this,n=e.press;void 0===n&&(n=g);var o=e.drag;void 0===o&&(o=g);var r=e.release;void 0===r&&(r=g);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=m(w,n),this._dragHandler=m(w,o),this._releaseHandler=m(w,r),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){v(t.document,"mousemove",t._mousemove),v(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",b),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(v(t.document,"pointermove",t._pointermove),v(t.document,"pointerup",t._pointerup),v(t.document,"pointercancel",t._pointerup),v(t.document,"contextmenu",b),t._releaseHandler(e))}},_={document:{configurable:!0}};O.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},_.document.get=function(){return this._element?this._element.ownerDocument:document},O.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},O.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?y(e,"pointerdown",this._pointerdown):(y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend)))},O.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return v(e,"pointerdown",this._pointerdown),v(this.document,"pointermove",this._pointermove),v(this.document,"pointerup",this._pointerup),v(this.document,"contextmenu",b),void v(this.document,"pointercancel",this._pointerup);v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend))},O.prototype._usePointers=function(){return!this._mouseOnly&&O.supportPointerEvent()},O.prototype.update=function(e){var t=e.press;void 0===t&&(t=g);var n=e.drag;void 0===n&&(n=g);var o=e.release;void 0===o&&(o=g);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=m(w,t),this._dragHandler=m(w,n),this._releaseHandler=m(w,o),this._mouseOnly=r},O.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(O.prototype,_),O.default=O;var x,C=O,E=(x=function(e,t){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new C({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.childRef=function(e){var n=t.props.childRef;t.element=e,n&&"function"==typeof n&&n(e)},t}return E(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return c.cloneElement(c.Children.only(this.props.children),{ref:this.childRef})},t.propTypes={children:h.element.isRequired},t}(c.Component),P=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()}},j=function(){},D=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},N=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function M(e){var t=[];return e.replace(N,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var S={};function T(e){if(S[e])return S[e];var t=M(e);return S[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},S[e]}S.undefined=function(){};var A=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},R={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},K=function(){},B=function(){return!(!i||!document.body)&&(new r).scrollbarWidth},F=function(){if(!i||!document.body)return!1;var e=(new r).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},L={undefined:function(e){return e}},z=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function U(e){if(L[e])return L[e];var t=M(e);return L[e]=function(e,n,o){for(var r=e,i=t.length-1,s=0;s<i&&r;s++)r=r[t[s]]=r[t[s]]||z(t[s+1],o);r[t[i]]=n},L[e]}var H=function(){return(H=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}).apply(this,arguments)};function V(e,t,n){var o;return n?H({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var W=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=V(t,n).map((function(t){return e(t,n,o)}));return o(V(t,n,r))}return o(t)}(e,t,n)})).slice()},q=function(e,t,n,o){for(var r=e,i=[],s=0;s<t.length;s++)r=r[t[s]],r=Array.isArray(r)?r:r[n],i.push(r);var a=i.length>1?i[i.length-2]:e,c=t[t.length-1],u=o(a[c]);a.splice(c,1,u)},G=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},Y=function(e,t,n){var o=[],r=t.slice();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},X=n(4);function $(e){if(void 0!==X)X.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var Z=function(e){if(!i)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};function J(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function Q(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=c.useRef(!1),s=c.useRef(0),a=c.useCallback((function(e){clearTimeout(s.current),s.current=window.setTimeout((function(){return e()}))}),[s]),u=c.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),l=c.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),a((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,a,n,r]);return c.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:u,onBlur:l}}var ee=function(){return(ee=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}).apply(this,arguments)},te=function(e){var t=e.children,n=Q({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,ee({},n))},ne=function(e,t){return c.useContext(e)(t)},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}).apply(this,arguments)},re=function(){return c.createContext((function(e){return e}))},ie=function(e,t){return c.forwardRef((function(n,o){var r=ne(e,n);return c.createElement(t,oe({},r,{ref:o}))}))};function se(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}function ae(e,t){var n=t.onPress,o=t.onDrag,r=t.onRelease,i=c.useMemo((function(){return new C({press:n,drag:o,release:r})}),[]);c.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),c.useEffect((function(){i.update({press:n,drag:o,release:r})}),[n,o,r])}function ce(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 ue=function(e,t,n){void 0===n&&(n={});var o=c.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]),r=c.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:c.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:r,onMouseDown:o,onDoubleClick:c.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:c.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:c.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:c.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:c.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:c.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])}},le=function(e){return c.isValidElement(e)?[e.type,e.props]:[e,{}]},pe={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},de=function(){return(de=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}).apply(this,arguments)},fe=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&&(n[o[r]]=e[o[r]])}return n},he=c.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,s=e.flip,u=e.style,l=fe(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||me.themeColor}),[r]),h=c.useMemo((function(){return i||me.size}),[i]),m=c.useMemo((function(){return s||me.flip}),[s]),y=c.useMemo((function(){return a("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},pe[h],n)}),[o,f,h,m,n]),v=ue(e,p);return c.createElement("span",de({ref:d},l,v,{className:y,style:u,role:"presentation"}))}));he.propTypes={style:h.object,classNames:h.string,name:h.string,themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:h.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:h.oneOf(["default","horizontal","vertical","both"])};var me={size:"default",themeColor:"inherit",flip:"default"};he.displayName="KendoIcon";var 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}).apply(this,arguments)},ve=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&&(n[o[r]]=e[o[r]])}return n},ge=c.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,s=e.flip,u=e.size,l=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=ve(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=c.useRef(null);c.useImperativeHandle(t,(function(){return{element:m.current}}));var y=c.useMemo((function(){return i?i.name:be.icon}),[i]),v=c.useMemo((function(){return d||be.themeColor}),[d]),g=c.useMemo((function(){return u||be.size}),[u]),b=c.useMemo((function(){return s||be.flip}),[s]),k=c.useMemo((function(){return f||be.viewBox}),[f]),w=c.useMemo((function(){return a("k-svg-icon","k-color-"+v,"k-svg-i-"+y,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},pe[g],o)}),[y,v,g,b,o]),O=c.useMemo((function(){return e.width&&e.height?ye({width:e.width,height:e.height},l):e.width?ye({width:e.width,height:e.width},l):e.height?ye({width:e.height,height:e.height},l):ye({},l)}),[e.width,e.height,l]);return c.createElement("span",{className:w,style:O,ref:m},c.createElement("svg",ye({className:r,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:k,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));ge.propTypes={style:h.object,classNames:h.string,children:h.any,icon:h.object,themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:h.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:h.oneOf(["default","horizontal","vertical","both"])};var be={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ge.displayName="KendoSvgIcon";var ke={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},we={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Oe={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"},_e={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xe={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Ce={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ee={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ie={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"},Pe=function(){return(Pe=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}).apply(this,arguments)},je=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&&(n[o[r]]=e[o[r]])}return n},De=function(e){var t=c.forwardRef((function(t,n){var o=t.className,r=t.fontSize,i=t.fontWeight,s=t.textAlign,a=t.textTransform,u=t.themeColor,l=t.margin,p=je(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=c.useRef(null),f=c.useRef(null);c.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),c.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==l){if("string"==typeof l)return[Oe[l]];if("number"==typeof l&&l>=0&&l<=24)return["k-m-"+l];if("object"==typeof l){var e=[];return Object.keys(l).forEach((function(t){var n,o;null!==l[t]&&void 0!==l[t]&&e.push((n=t,o=l[t],""+xe[n]+("string"==typeof o?_e[o]:o)))})),e.join(" ")}}};return c.createElement(h,Pe({ref:f,className:["k-"+("p"===e?"paragraph":e),ke[r],we[i],Ce[s],Ee[a],Ie[u],m(),o].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:h.object,className:h.string,fontSize:h.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:h.oneOf(["light","normal","bold"]),margin:h.oneOfType([h.number,h.object,h.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:h.oneOf(["left","right","center","justify"]),textTransform:h.oneOf(["lowercase","uppercase","capitalize"]),themeColor:h.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Ne={h1:De("h1"),h2:De("h2"),h3:De("h3"),h4:De("h4"),h5:De("h5"),h6:De("h6"),p:De("p"),code:De("code"),pre:De("pre")}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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=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(0).Component);t.FocusableUponSelection=i},function(e,t){e.exports=n},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(6),c=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},a.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 s.classNames({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected},"k-message")},t.defaultProps={dateFormat:"g",tabIndex:-1},t}(n(3).FocusableUponSelection);t.ChatMessage=c,a.registerForIntl(c)},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthor=function(e,t){return e&&t.author&&e.id===t.author.id}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=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=s.Keys.left,o=s.Keys.right):(n=s.Keys.up,o=s.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:!0,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=a},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=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 s.classNames({"k-state-selected":this.props.selected},{"k-state-focused":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(3).FocusableUponSelection);t.default=a},function(e,t){e.exports=r},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.ChatMessage=r.ChatMessage,o(n(12)),o(n(22))},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(2),s=n(1),a=n(0),c=n(13),u=n(14),l=n(16),p=n(17),d=n(18),f=n(19),h=n(5),m=n(2),y=n(21),v=function(e){function t(t){var n=e.call(this,t)||this;return 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){i.dispatchEvent(n.props.onMessageSend,t,n,{message:e})},n.onActionExecute=function(e,t){if(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()}},m.validatePackage(y.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),a.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},a.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}},a.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),a.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 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?a.createElement(p.default,{item:o,key:r}):"message-group"===o.type?a.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?a.createElement(l.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?a.createElement(u.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?c.convertMsgsToViewItems(e):[]},t.propTypes={messages:s.arrayOf(s.object),user:s.object,messageTemplate:s.any,attachmentTemplate:s.any,width:s.oneOfType([s.string,s.number]),onMessageSend:s.func,onActionExecute:s.func,dir:s.string,messageBox:s.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(a.Component);t.Chat=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=function(e){return e[e.length-1]},i=function(e){return function(t,n,i){var s=i===e-1;return function(e,t){var n,o,i=t.timestamp,s=r(e);if(i&&(!s||(n=i,o=s.timestamp,n&&o&&(o.getDate()!==n.getDate()||o.getMonth()!==n.getMonth()||o.getFullYear()!==n.getFullYear())))){var a={type:"date-marker",timestamp:i,trackBy:i.getTime()};e.push(a)}}(t,n),function(e,t,n){var i=r(e),s=void 0;t.typing&&!n||(i&&"message-group"===i.type&&(s=i.messages),s&&o.isAuthor(t.author,r(s))?s.push(t):e.push({type:"message-group",messages:[t],author:t.author,timestamp:t.timestamp,trackBy:t}))}(t,n,s),n.attachments&&n.attachments.length>1&&t.push({type:"attachment-group",attachments:n.attachments,attachmentLayout:n.attachmentLayout,timestamp:n.timestamp,trackBy:n}),n.suggestedActions&&s&&t.push({type:"action-group",actions:n.suggestedActions,timestamp:n.timestamp,trackBy:n}),t}};t.convertMsgsToViewItems=function(e){var t,n,o=e.slice().reduce(i(e.length),[]);return n=0,(t=o).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,o}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(15),c=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(a.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 s.classNames("k-quick-replies")},t}(n(8).SelectableItemsContainer);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===s.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 a.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected})},t}(n(3).FocusableUponSelection);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(9),c=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(a.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:!0,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("button",{className:"k-button k-button-icon",onClick:function(){return e.onNavigateBtnClick(!1)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-left"}))),t},t.prototype.getRightScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()&&(t=i.createElement("button",{className:"k-button k-button-icon",onClick:function(){return e.onNavigateBtnClick(!0)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-right"}))),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 s.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(n(8).SelectableItemsContainer);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(6),a=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"},s.provideIntlService(this).formatDate(e.timestamp,"D"))},t}(i.Component);t.default=a,s.registerForIntl(a)},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(2),a=n(9),c=n(7),u=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 s.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":c.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(a.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-"+o})),r}))},t}(i.Component);t.default=u},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(2),s=n(0),a=n(20),c=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=s.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}}),o=s.createElement("button",{className:"k-button k-flat k-button-icon k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},s.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},s.createElement("path",{d:t.buttonIconPath}))),r=s.createElement("button",{className:"k-button k-flat k-button-icon k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},s.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},s.createElement("g",null,s.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"}),s.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"}),s.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 s.createElement(s.Fragment,null,s.createElement("div",{className:"k-message-box"},this.props.MessageBox?s.createElement(this.props.MessageBox,{messageInput:n,sendButton:o,toolbarButton:r}):s.createElement(s.Fragment,null,n,this.props.toolbar&&r,o)),this.props.showToolbar&&s.createElement(a.default,null,this.props.toolbar))},t.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},t.prototype.getClassNames=function(){return i.classNames({"k-state-focused":this.state.focused},"k-input")},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}(s.Component);t.default=c},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636637749,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"}},function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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(0),s=n(23),a=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onBtnClick=function(e,n){a.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(s.Button,{look:"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=c},function(e,t,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return ze})),n.d(t,"ToolbarItem",(function(){return He})),n.d(t,"ToolbarSeparator",(function(){return We})),n.d(t,"ToolbarSpacer",(function(){return qe})),n.d(t,"Button",(function(){return m})),n.d(t,"ButtonGroup",(function(){return b})),n.d(t,"SplitButton",(function(){return Se})),n.d(t,"SplitButtonItem",(function(){return _})),n.d(t,"DropDownButton",(function(){return Be})),n.d(t,"DropDownButtonItem",(function(){return Ae})),n.d(t,"Chip",(function(){return st})),n.d(t,"ChipList",(function(){return nt})),n.d(t,"FloatingActionButton",(function(){return bt})),n.d(t,"FloatingActionButtonItem",(function(){return pt}));var o,r=n(0),i=n(1),s=n(2),a={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636637632,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"},c=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',u=["button"+c,".k-button-group > button"+c,".k-dropdown > .k-dropdown-wrap"+c,".k-colorpicker > .k-picker-wrap"+c],l={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-state-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-state-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"},p=(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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}).apply(this,arguments)},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&&(n[o[r]]=e[o[r]])}return n},h=l;var m=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)},Object(s.validatePackage)(a),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!0,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,t=this,n=this.props,o=n.children,i=n.look,a=n.primary,c=n.togglable,u=n.icon,l=n.iconClass,p=n.imageUrl,m=n.imageAlt,y=n.className,v=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),g=void 0!==u||void 0!==l||void 0!==p,b=void 0!==o,k={className:Object(s.classNames)([h.button],((e={})[h[""+i]]="default"!==i,e[h.primary]=a,e[h["state-disabled"]]=this.props.disabled,e[h["state-selected"]]=this.state.selected,e[h["button-icon"]]=!b&&g,e[h["button-icontext"]]=b&&g,e),[h[""+this.props.dir]],y),onClick:this.handleClick,role:c?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":c?this.state.selected:void 0},w=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-image",alt:i,src:t});if(n){var a=Object(s.classNames)("k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:a})}return o?r.createElement("span",{role:"presentation",className:o}):null}({icon:u,iconClass:l,imageUrl:p,imageAlt:m});return r.createElement("button",d({},k,v,{ref:function(e){return t._element=e}}),w,o)},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,look:i.oneOf(["default","flat","outline","clear"]),primary:i.bool,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string},t.defaultProps={look:"default",primary:!1,togglable:!1},t}(r.Component),y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=l,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.validatePackage)(a),n}return y(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=Object(s.classNames)([g["button-group"]],((e={})[g["state-disabled"]]=this.props.disabled,e[g["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",v({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,a=Object(s.classNames)(e.props.className,((i={})[g["group-start"]]=o?n:0===t,i[g["group-end"]]=o?0===t:n,i)),c=v({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,l=v({},e.props,a?{className:a}:{},Object.keys(c).length?{style:c}:{},void 0!==u?{disabled:u}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,l,e.props.children):r.cloneElement(e,l)},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),k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){return t.props.onClick(e,t.props.index)},t}return k(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,o=e.id,i=e.onDown,a=e.render,c=r.createElement("li",{id:o,className:Object(s.classNames)("k-item",{"k-state-focused":n,"k-state-selected":t.selected,"k-state-disabled":t.disabled}),onClick:this.onClick,onMouseDown:i,onPointerDown:i,role:"menuItem","aria-disabled":t.disabled||void 0},this.renderContent());return void 0!==this.props.item&&void 0!==a?a.call(void 0,c,this.props):c},t.prototype.renderContent=function(){var e=this.props,t=e.dataItem,n=e.textField,o=e.index,i=this.props.dataItem.render||this.props.item||(void 0===this.props.item?this.props.render:null),s=void 0!==t.text?t.text:n?t[n]:t,a=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&r.createElement(i,{item:t,itemIndex:o})||[a&&r.createElement("span",{className:a,role:"presentation",key:"icon"}),t.imageUrl&&r.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),s]},t}(r.Component),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){return null},t.propTypes={text:i.string,icon:i.string,iconClass:i.string,imageUrl:i.string,disabled:i.bool,render:i.any},t}(r.Component),x=function(e,t,n,o){if(n)return e;switch(t){case s.Keys.enter:case s.Keys.space:case s.Keys.esc:return-1;case s.Keys.up:case s.Keys.left:return Math.max(0,e-1);case s.Keys.down:case s.Keys.right:return Math.min(o-1,e+1);default:return e}},C=n(10),E=function(e){e.style.transitionDuration="",e.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},I="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),P="bottom",j="center",D="middle",N="left",M="right",S="top",T=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var s=n.horizontal,a=n.vertical,c=r.horizontal,u=r.vertical,l=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return a===P&&(d+=t.height),a!==j&&a!==D||(d+=Math.round(t.height/2)),u===P&&(d-=o.height,p*=-1),u!==j&&u!==D||(d-=Math.round(o.height/2),p*=-1),s===M&&(f+=t.width),s!==j&&s!==D||(f+=Math.round(t.width/2)),c===M&&(f-=o.width,l*=-1),c!==j&&c!==D||(f-=Math.round(o.width/2),l*=-1),{top:d+p,left:f+l}};function A(e){return e.ownerDocument||e.document||e}var R=function(e){return A(e).defaultView},K=function(e){return A(e).documentElement},B=0;function F(){if(!B&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),B=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return B}function L(e){var t=R(e),n=K(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=F()),o}var z=function(e){if(!e.getBoundingClientRect){var t=L(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}},U=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||K(e)},H=function(e){return U(e)===e.ownerDocument.body},V=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}},W=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function q(e){var t=K(e),n=R(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var G=function(e){return e===(e.ownerDocument||{}).body?q(e):{x:e.scrollLeft,y:e.scrollTop}};var Y=function(e,t){var n=R(e),o=n.getComputedStyle(e),r=V(e),i=t||U(e),s=e.ownerDocument,a=i!==s.body&&i!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var u=n.getComputedStyle(i);(c=V(i)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},X=function(e,t){return e?G(e):function(e){var t=U(e);return t?G(t):{x:0,y:0}}(t)};var $="fit",Z="flip",J=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},Q=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,s=e.elementAlignPoint,a=0,c=2*e.margin;if(s!==i&&!(s===j||s===D)&&!(i===j||i===D)){var u=i===S||i===N;t<0&&u?t+(a=n+o+c)+n>r&&(a=0):t>=0&&!u&&(t+n>r&&(a+=-(o+n+c)),t+a<0&&(a=0))}return a},ee=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,u=o.left,l=o.height,p=o.width,d=s.height,f=s.width,h=a.horizontal||0,m=a.vertical||0,y=0,v=0,g=i.horizontal===Z,b=i.vertical===Z;i.vertical===$&&(v+=J(c,l,d)),i.horizontal===$&&(y+=J(u,p,f)),b&&(v+=Q({margin:m,offset:c,size:l,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),g&&(y+=Q({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var k=g&&0!==y,w=b&&0!==v;return{flipped:k||w,flip:{horizontal:k,vertical:w},offset:{left:y,top:v}}},te=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ne=function(e,t){for(var n,o,r=W(e),i=t;i&&(n=te(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var oe=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},re=/auto|scroll/,ie=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},se=Object(s.hasRelativeStackingContext)(),ae="fit",ce="flip",ue="left",le="center",pe="right",de="bottom",fe="top",he=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.offset,s=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,i):this.relativeRect(t,n,i);return this._dom.align({anchorAlign:o,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var o=this._dom,r=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(oe(o.offset(e),n),o.stackingElementOffset(t)),i=o.stackingElementScroll(t),s=o.addScroll(r,i),a=this.elementScrollPosition(e,t),c=o.removeScroll(s,a);return c.left+=window.scrollX||window.pageXOffset,c.top+=window.scrollY||window.pageYOffset,c},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return oe(this._dom.position(e,t),n)},e}(),me=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return T(e)},e.prototype.boundingOffset=function(e){return z(e)},e.prototype.getWindow=function(){return s.canUseDOM?window:null},e.prototype.isBodyOffset=function(e){return H(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?V(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,o=t.top;e.style.left="0px",e.style.top="0px";var r=V(e);return e.style.left=n,e.style.top=o,r},e.prototype.position=function(e,t){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?U(t):null,r=Y(e,o),i=r.top,s=r.left,a=r.height,c=r.width,u=X(o,e),l=u.x,p=u.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:s+l*f,height:a,width:c}}(e,ne(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),o=t,r=this.isBodyOffset(e),i=n.top,s=n.left,r&&(s=0,i=0),{top:i+o.top,left:s+o.left,height:n.height,width:n.width};var n,o,r,i,s},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return ee(e)},e.prototype.scrollPosition=function(e){return q(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!s.canUseDOM)return t;for(var n=e.parentElement;n;)re.test(ie(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?V(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!se)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return L(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!s.canUseDOM)return null;var n=ne(e,t);if(!n)return null;var o=[e].concat(W(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}(e,t)},e.prototype.zoomLevel=function(){return s.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),ye=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,o=e.anchor,r=e.currentLocation,i=e.element,s=e.anchorAlign,a=e.elementAlign,c=e.collisions,u=this._dom,l=e.viewPort||u.stackingElementViewPort(i)||u.windowViewPort(i),p=oe(u.offset(o),r),d=(t=u.staticOffset(i),(n=r)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),f=this.elementRect(i,d),h=u.restrictToView({anchorAlign:s,anchorRect:p,collisions:c,elementAlign:a,elementRect:f,viewPort:l});return{flipped:h.flipped,offset:u.addOffset(d,h.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),ve={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636637603,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"},ge=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),be=function(){return(be=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}).apply(this,arguments)};function ke(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,Oe={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(we||(we={}));var _e=function(e){function t(t){var n=e.call(this,t)||this;return 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,s=t.offset,a=t.anchor,c=e.firstElementChild,u=getComputedStyle(c),l=u.width,p=u.height;c.style.position="absolute",c.style.width=l,c.style.height=p;var d=n._alignService.alignElement({anchor:a,element:c,elementAlign:r,anchorAlign:o,offset:s}),f=n._positionService.positionElement({anchor:a,anchorAlign:o,collisions:i,element:c,currentLocation:d,elementAlign:r});f.offset&&(e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",c.style.position="",c.style.width="",c.style.height=""),n._flipped=f.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){!function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,s=i+"-active",a=function(){e.removeEventListener("transitionend",a),E(e),r()};e.addEventListener("transitionend",a);var c=e.ownerDocument;if(c){var u=c.defaultView;if(u){var l=function(){E(e),e.classList.add(i),u.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(s)}))};I?u.requestAnimationFrame(l):l()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,o)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),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})},Object(s.validatePackage)(ve),n._domService=new me,n._alignService=new he(n._domService),n._positionService=new ye(n._domService),n.reposition=function(e,t,n){var o,r,i,s;void 0===n&&(n={});var a=0;n=n||{};var c=function(){a=!1===n.leading?0:(new Date).getTime(),o=null,s=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();a||!1!==n.leading||(a=u);var l=t-(u-a);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),a=u,s=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,l)),s}}(n.reposition.bind(n),1e3/60),n}return ge(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,s=e.collision,a=e.popupAlign,c=e.className,u=e.popupClass,l=e.style,p=e.offset,d=e.contentKey,f=be({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:s,popupAlign:a,className:c,popupClass:u,style:l,offset:p,contentKey:d}});return e.show?t.current===we.hidden||t.current===we.hiding?be({},f,{current:we.showing,previous:t.current}):t.current===we.showing?be({},f,{current:we.shown,previous:t.current}):t.current!==we.shown||ke(p,t.props.offset)&&ke(r,t.props.anchorAlign)&&ke(i,t.props.appendTo)&&ke(s,t.props.collision)&&ke(a,t.props.popupAlign)&&ke(l,t.props.style)&&o===t.props.anchor&&u===t.props.popupClass&&c===t.props.className?f:be({},f,{current:we.reposition,previous:t.current}):t.current===we.hiding||t.current===we.hidden?be({},f,{current:we.hidden,previous:t.current}):be({},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,a=t.show,c=t.id,u=this.props.appendTo?this.props.appendTo:s.canUseDOM?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 l=Object.assign({},{position:"absolute"},this.props.style||{}),p=this.state.current===we.hiding;if((a||p)&&u){var d=r.createElement("div",{className:Object(s.classNames)("k-animation-container","k-animation-container-relative",o),id:c,ref:function(t){return e._popup=t},style:l},r.createElement("div",{className:Object(s.classNames)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n));return C.createPortal(d,u)}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:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),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.string,id:i.string,popupClass:i.string,collision:i.shape({horizontal:i.oneOf([ae,ce]),vertical:i.oneOf([ae,ce])}),anchorAlign:i.shape({horizontal:i.oneOf([ue,le,pe]),vertical:i.oneOf([fe,le,de])}),popupAlign:i.shape({horizontal:i.oneOf([ue,le,pe]),vertical:i.oneOf([fe,le,de])}),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})])},t.defaultProps={collision:{horizontal:ae,vertical:ce},anchorAlign:{horizontal:ue,vertical:de},popupAlign:{horizontal:ue,vertical:fe},offset:Oe,animate:!0,show:!1},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}).apply(this,arguments)},Ce=r.createContext((function(e){return e})),Ee=r.forwardRef((function(e,t){var n=r.useContext(Ce).call(void 0,e);return r.createElement(_e,xe({ref:t},n))}));function Ie(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Pe(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var je,De,Ne=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=l,Se=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.guid=Object(s.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.Keys.down?n.opened&&e.keyCode===s.Keys.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===s.Keys.enter||e.keyCode===s.Keys.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===s.Keys.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===s.Keys.up||e.keyCode===s.Keys.down||e.keyCode===s.Keys.left||e.keyCode===s.Keys.right;!e.altKey&&i&&e.preventDefault()}o&&n.setState(o)}},n.onFocus=function(e){Object(s.dispatchEvent)(n.props.onFocus,e,n,void 0),n.setState({focused:!0,focusedIndex:-1})},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.setState({focused:!1,focusedIndex:-1,opened:!1}),Object(s.dispatchEvent)(n.props.onBlur,e,n,void 0),n.opened&&n.dispatchPopupEvent(e,!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&&n.element.focus()},n.onItemDown=function(e){document.activeElement===n.element&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){Object(s.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.validatePackage)(a),n}return Ne(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,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===_})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,a=o.disabled,c=this.state.focusedIndex;return r.createElement("div",{className:Object(s.classNames)("k-widget","k-split-button","k-button-group",[Me[""+this.props.look]],{"k-state-focused":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(m,{onClick:function(t){return e.onItemClick(t,-1)},disabled:a||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,look:this.props.look,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":a,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":c>=0?this.guid+"-"+c:void 0},this.props.text),r.createElement(m,{icon:"arrow-s",disabled:a||void 0,tabIndex:-1,look:this.props.look,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:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?Object(s.dispatchEvent)(this.props.onButtonClick,e,this,void 0):Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(s.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Ie(e),popupAlign:n.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},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,s){return r.createElement(w,{dataItem:t,textField:i,focused:e.state.focusedIndex===s,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:s,index:s,id:e.guid+"-"+s})})):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,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,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(r.Component),Te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Te(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(){return(Ke=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Be=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.guid=Object(s.guid)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==s.Keys.down?n.opened&&e.keyCode===s.Keys.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=Ke({},n.state);if(e.keyCode===s.Keys.enter||e.keyCode===s.Keys.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===s.Keys.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=x(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===s.Keys.up||e.keyCode===s.Keys.down||e.keyCode===s.Keys.left||e.keyCode===s.Keys.right;!e.altKey&&i&&e.preventDefault()}n.setState(o)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(s.dispatchEvent)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(s.dispatchEvent)(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.element&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault()},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){Object(s.dispatchEvent)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.validatePackage)(a),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:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,a=o.disabled,c=this.state.focusedIndex;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===Ae})).map((function(e){return e.props})),r.createElement("div",{className:Object(s.classNames)("k-widget","k-dropdown-button",this.props.className,{"k-state-focused":this.state.focused}),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(m,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:a||void 0,tabIndex:i,accessKey:this.props.accessKey,icon:this.props.icon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,look:this.props.look,primary:this.props.primary,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":a,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":c>=0?this.guid+"-"+c:void 0},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.state.focused&&this.element&&this.element.focus()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!0,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||Object(s.dispatchEvent)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t=this.props.popupSettings,n=void 0===t?{}:t;return r.createElement(Ee,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(s.classNames)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Ie(e),popupAlign:n.popupAlign||Pe(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{className:"k-list k-reset",role:"menu",id:this.guid},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,s){return r.createElement(w,{dataItem:t,textField:i,focused:e.state.focusedIndex===s,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:s,key:s,id:e.guid+"-"+s})})):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,primary:i.bool,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,look:i.string,className:i.string,buttonClass:i.string,dir:i.string},t}(r.Component),Fe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){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}).apply(this,arguments)},ze=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===s.Keys.left||e.keyCode===s.Keys.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===s.Keys.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({target:o},i,{nativeEvent:e}))}}},Object(s.validatePackage)(a),o}return Fe(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||u},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,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",{className:Object(s.classNames)("k-widget k-toolbar",this.props.className),style:this.props.style,role:"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 s=this.buttons[e];s&&(s.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(r.Component),Ue=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),He=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return Ue(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;return r.createElement("span",{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),Ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ve(t,e),t.prototype.render=function(){return r.createElement(He,{className:"k-separator"})},t}(r.PureComponent),qe=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 Object(s.classNames)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));qe.propTypes={className:i.string},function(e){e.single="single",e.multiple="multiple",e.none="none"}(je||(je={})),function(e){e.toggle="toggle",e.remove="remove"}(De||(De={}));var Ge;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Ge||(Ge={}));var Ye;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ye||(Ye={}));var 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}).apply(this,arguments)},$e=r.createContext([null,function(e){}]),Ze=r.createContext([null,function(e){}]),Je=r.createContext([null,function(e){}]),Qe=function(e,t,n){var o=r.useState(e),i=o[0],s=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case je.single:switch(t.type){case De.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 De.remove:return t.payload===e?null:e;default:return e}case je.multiple:switch(t.type){case De.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case De.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):e.concat([t.payload]):e;default:return e}case je.none:return null;default:return e}}(t.state||i,Xe({},e,t));n&&n(o,e.event),s(o)}]},et=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,Xe({},t,e));o(n)}]},tt=function(e,t,n){var o=r.useState(e),i=o[0],s=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,Xe({},e,t));n&&n(o,e.event),s(o)}]},nt=r.forwardRef((function(e,t){Object(s.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),i=Object(s.useDir)(o,e.dir),c=r.useMemo((function(){return e.chip||st}),[e.chip,st]),u=r.useMemo((function(){return e.selection||rt.selection}),[e.selection,rt.selection]);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var l=r.useCallback((function(t,o){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onChange]),p=Qe(e.value||e.defaultValue,{selection:u,state:e.value},l),d=p[0],f=p[1],h=r.useCallback((function(t,o){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onDataChange]),m=tt(e.data||e.defaultData||rt.defaultData,{state:e.data,valueField:e.valueField||rt.valueField},h),y=m[0],v=m[1],g=r.useCallback((function(t,n){return t.push(n[e.valueField||rt.valueField]),t}),[e.valueField,rt.valueField]),b=r.useMemo((function(){return e.data||y}),[e.data,y]),k=r.useMemo((function(){return e.value||d}),[e.value,d]),w=r.useMemo((function(){return b.reduce(g,[])}),[b,g]),O=et({items:w}),_=O[0],x=O[1],C=Object(s.useMouse)(e,n);return r.createElement($e.Provider,{value:[k,f]},r.createElement(Ze.Provider,{value:[_,x]},r.createElement(Je.Provider,{value:[b,v]},r.createElement("div",Xe({ref:o},C,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(s.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(s.classNames)("k-chip-list",{"k-rtl":"rtl"===i,"k-selection-single":"single"===u,"k-selection-multiple":"multiple"===u,"k-state-disabled":e.disabled},e.className),"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}),b.map((function(t){return r.createElement(c,{role:"option",dataItem:t,key:t[e.valueField||rt.valueField],text:t[e.textField||rt.textField],value:t[e.valueField||rt.valueField]})}))))))})),ot={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string},rt={chip:st,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};nt.displayName="KendoReactChipList",nt.propTypes=ot,nt.defaultProps=rt;var it=function(){return(it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},st=r.forwardRef((function(e,t){Object(s.validatePackage)(a);var n=r.useRef(null),o=r.useRef(null),i=Object(s.useDir)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var c=r.useContext($e),u=c[0],l=c[1],p=r.useContext(Ze),d=p[0],f=p[1],h=r.useContext(Je)[1],m=r.useMemo((function(){return e.selected||(Array.isArray(u)?u.some((function(t){return t===e.value})):u===e.value)}),[e.selected,e.value,u]),y=r.useMemo((function(){return d===e.value}),[e.value,d]),v=r.useMemo((function(){return e.look||ct.look}),[e.look]);r.useEffect((function(){y&&o.current&&o.current.focus()}),[y]);var g=r.useCallback((function(t){l({type:De.toggle,payload:e.value,event:t}),e.onClick&&e.onClick.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onClick,l,e.value]),b=r.useCallback((function(t){e.removable&&(h({type:Ye.remove,payload:e.value,event:t}),f({type:Ge.reset,payload:e.value,event:t}),l({type:De.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,l]),k=r.useCallback((function(t){switch(t.keyCode){case s.Keys.left:f({type:Ge.prev,payload:e.value,event:t});break;case s.Keys.right:f({type:Ge.next,payload:e.value,event:t});break;case s.Keys.enter:l({type:De.toggle,payload:e.value,event:t});break;case s.Keys.delete:b(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,f,l,b]),w=r.useCallback((function(t){f({payload:e.value,type:Ge.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,f]),O=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),_=Object(s.useMouse)(e,n,{onClick:g});return r.createElement("div",it({},_,{role:e.role,id:e.value,style:e.style,ref:o,dir:i,tabIndex:Object(s.getTabIndex)(e.tabIndex,e.disabled,void 0),className:Object(s.classNames)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":m,"k-state-focus":y,"k-chip-success":"success"===e.type,"k-chip-warning":"warning"===e.type,"k-chip-error":"error"===e.type,"k-chip-info":"info"===e.type,"k-chip-has-icon":e.icon,"k-chip-outline":"outline"===v||"outlined"===v,"k-chip-solid":"solid"===v||"filled"===v},e.className),"aria-checked":m,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:w,onBlur:O,onKeyDown:k}),m&&r.createElement("span",{className:"k-selected-icon-wrapper"},r.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||ct.selectedIcon)})),e.icon&&r.createElement("span",{className:"k-icon k-chip-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-remove-icon",onClick:b},r.createElement("span",{className:"k-icon "+e.removeIcon})))})),at={id:i.string,text:i.string,value:i.any,type:i.oneOf(["none","success","warning","error","info"]),dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,look:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string},ct={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};st.displayName="KendoReactChip",st.propTypes=at,st.defaultProps=ct;var ut=function(){return(ut=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}).apply(this,arguments)},lt=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&&(n[o[r]]=e[o[r]])}return n},pt=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,a=e.icon,c=e.style,u=e.id,l=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,y=e.onClick,v=lt(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),g=r.useRef(null),b=r.useCallback((function(){g.current&&g.current.focus()}),[]),k=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){y&&void 0!==d&&!o&&y(e,d)}),[y,d]),O=r.useMemo((function(){return Object(s.classNames)("k-fab-item",{"k-state-focus":l,"k-state-disabled":o},n)}),[n,o,l]),_=h;return r.createElement("li",ut({ref:g,id:u,className:O,style:c,role:"menuitem",tabIndex:Object(s.getTabIndex)(p,o),"aria-disabled":o,"aria-label":(i||"")+" floatingactionbutton item",onClick:w,onMouseDown:m,onPointerDown:m},v),_?r.createElement(_,{itemIndex:d,item:f}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),a&&r.createElement("span",{className:Object(s.classNames)("k-fab-item-icon k-icon k-i-"+a)})))}));pt.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},pt.displayName="KendoFloatingActionButtonItem";var 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(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},yt=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},vt=function(){return(vt=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}).apply(this,arguments)},gt=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&&(n[o[r]]=e[o[r]])}return n},bt=r.forwardRef((function(e,t){Object(s.validatePackage)(a);var n=e.align,o=void 0===n?kt.align:n,i=e.alignOffset,c=e.className,u=e.disabled,l=e.icon,p=e.iconClass,d=e.id,f=e.items,h=e.item,m=e.text,y=e.positionMode,v=void 0===y?kt.positionMode:y,g=e.shape,b=void 0===g?kt.shape:g,k=e.size,w=void 0===k?kt.size:k,O=e.style,_=e.themeColor,x=void 0===_?kt.themeColor:_,C=e.tabIndex,E=e.accessKey,I=e.popupSettings,P=void 0===I?{}:I,j=e.onClick,D=e.onItemClick,N=e.onFocus,M=e.onBlur,S=e.onKeyDown,T=e.onOpen,A=e.onClose,R=gt(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),K=r.useRef(null),B=r.useRef(null),F=r.useRef(null),L=r.useRef(null),z=r.useCallback((function(){B.current&&B.current.focus()}),[]),U=r.useCallback((function(){return{element:B.current,focus:z}}),[z]);r.useImperativeHandle(K,U),r.useImperativeHandle(t,(function(){return K.current}));var H=r.useState(!1),V=H[0],W=H[1],q=r.useState(!1),G=q[0],Y=q[1],X=r.useState(-1),$=X[0],Z=X[1],J=r.useMemo((function(){return Object(s.guid)()}),[]),Q=Object(s.useDir)(B,e.dir),ee="rtl"===Q,te=r.useMemo((function(){return Object(s.guid)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var s=n&&void 0!==n.x?dt(n.x):"16px",a=n&&void 0!==n.x?"calc(50% + "+dt(n.x)+")":"50%",c=n&&void 0!==n.y?dt(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+dt(n.y)+")":"50%";e.current.style.setProperty(mt(t,o),"center"===r?a:s),e.current.style.setProperty(yt(t),"middle"===i?u:c),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"))}}(B,o,i,ee)}),[B,o,i,ee]),r.useEffect((function(){G&&B&&B.current&&B.current.focus()}),[G,B]);var ne=r.useCallback((function(e,t){f&&Object(s.dispatchEvent)(t?T:A,e,U(),void 0)}),[T,A,f]),oe=r.useCallback((function(e){e.target&&!u&&(!f&&j?Object(s.dispatchEvent)(j,e,U(),void 0):(W(!V),Y(!0),Z(V?-1:0),ne(e,!V)))}),[W,Y,Z,j,ne,V,f,u]),re=r.useCallback((function(e){Y(!0),Z(V?0:-1),N&&Object(s.dispatchEvent)(N,e,U(),void 0)}),[N,Y,Z]),ie=r.useCallback((function(e){Y(!1),W(!1),Z(-1),Object(s.dispatchEvent)(M,e,U(),void 0),V&&ne(e,!1)}),[M,Y,W,Z,ne]),se=r.useCallback((function(e){e.preventDefault()}),[]),ae=r.useCallback((function(e,t){f&&(f[t].disabled||Object(s.dispatchEvent)(D,e,U(),{itemProps:f[t],itemIndex:t}))}),[D]),ce=r.useCallback((function(e,t){e.target&&f&&(Z(t),W(!1),ae(e,t),ne(e,!1))}),[Z,W,ae,ne]),ue=r.useCallback((function(e){document.activeElement===B.current&&e.preventDefault()}),[B,document.activeElement]),le=r.useCallback((function(e){var t=$,n=f?f.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case s.Keys.enter:case s.Keys.space:t>=0&&ae(e,t),e.preventDefault(),W(!V),Z(V?-1:0);break;case s.Keys.esc:e.preventDefault(),W(!1),Z(-1);break;case s.Keys.home:e.preventDefault(),Z(0);break;case s.Keys.end:e.preventDefault(),Z(n);break;case s.Keys.down:case s.Keys.right:e.preventDefault(),t<n&&!r&&Z(t+1),t>0&&r&&Z(t-1);break;case s.Keys.up:case s.Keys.left:e.preventDefault(),t>0&&!r&&Z(t-1),t<n&&r&&Z(t+1)}Object(s.dispatchEvent)(S,e,U(),void 0)}),[S,$,Z,ee,W]),pe=r.useMemo((function(){return Object(s.classNames)("k-fab","k-fab-"+x,"k-fab-"+b,{"k-fab-sm":"small"===w,"k-fab-md":"medium"===w,"k-fab-lg":"large"===w,"k-state-disabled":u,"k-pos-absolute":"absolute"===v,"k-pos-fixed":"fixed"===v,"k-state-focus":G},"k-"+o.vertical+"-"+o.horizontal,c)}),[x,w,b,u,v,o,G,c]),de=f&&f.map((function(e,t){return r.createElement(pt,vt({},e,{key:t,index:t,id:te+"-"+t,disabled:u||e.disabled,focused:$===t,dataItem:e,item:h,className:Object(s.classNames)(e.className,(n=Q||"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:ce,onDown:ue}));var n,i})),fe=l&&!m,he=(B.current?B.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",vt({ref:B,id:d||J,role:f?"menubutton":"button",type:"button","aria-disabled":u,"aria-expanded":f?V:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?te:void 0,"aria-activedescendant":$>=0&&f?te+"-"+$:void 0,tabIndex:Object(s.getTabIndex)(C,u),accessKey:E,dir:Q,disabled:u,className:pe,style:O,onClick:oe,onMouseDown:se,onFocus:re,onBlur:ie,onKeyDown:le},R),l?r.createElement("span",{role:"presentation",className:Object(s.classNames)("k-fab-icon k-icon k-i-"+l)}):p?r.createElement("span",{role:"presentation",className:p}):null,m&&r.createElement("span",{className:"k-fab-text"},m)),r.createElement(Ee,{ref:L,anchor:B.current,show:V,animate:P.animate,popupClass:Object(s.classNames)("k-popup-transparent k-fab-popup",P.popupClass),anchorAlign:P.anchorAlign||ft(o,ee),popupAlign:P.popupAlign||ht(o,ee),style:{boxShadow:"none"}},r.createElement("ul",{ref:F,role:"menu","aria-labelledby":d,id:te,className:Object(s.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:fe?he:void 0,paddingRight:fe?he:void 0}},de)))}));bt.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(["rectangle","rounded","pill"]),size:i.oneOf(["small","medium","large"]),themeColor:i.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var kt={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};bt.displayName="KendoFloatingActionButton"}])}));
|
|
@@ -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:
|
|
8
|
+
publishDate: 1636637749,
|
|
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
|
};
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-conversational-ui',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1636637749,
|
|
11
11
|
version: '',
|
|
12
12
|
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'
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-conversational-ui",["react","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-react-buttons"],function(s){var i,a,c,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){i=e(t)},function(t){a=e(t)},function(t){c=e(t)},function(t){p=e(t)}],execute:function(){function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o;n=[function(t,e){t.exports=i},function(t,e){t.exports=a},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,r=(s=n(0).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=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(4),r=(s=n(2).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},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 a.classNames({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected},"k-message")},p.defaultProps={dateFormat:"g",tabIndex:-1},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.ChatMessage=r,c.registerForIntl(r)},function(t,e){t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAuthor=function(t,e){return t&&e.author&&t.id===e.author.id}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),r=(s=i.Component,r(c,s),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 n=null,o=this.state.selectedItemIndex;return t?null===o?n=e: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:!0,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 r=null!==s&&s.apply(this,arguments)||this;return r.state={selectedItemIndex:null},r.onRequestContainerSelection=function(){return r.props.onRequestSelection(r.props.group.selectionIndex)},r.onKeyDown=function(t){var e,n=null,o=r.isKeyboardNavigationLeftRight?(e=a.Keys.left,a.Keys.right):(e=a.Keys.up,a.Keys.down);t.keyCode===e?n=r.navigate(!1):t.keyCode===o&&(n=r.navigate(!0)),null!==n&&(t.preventDefault(),t.stopPropagation())},r}e.SelectableItemsContainer=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),r=(s=n(2).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 a.classNames({"k-state-selected":this.props.selected},{"k-state-focused":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=r},function(t,n,e){"use strict";function o(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0});var r=e(3);n.ChatMessage=r.ChatMessage,o(e(9)),o(e(22)),function(t){for(var e in t)s(e,t[e])}(n)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(1),a=n(10),c=n(0),p=n(13),u=n(14),l=n(16),m=n(17),h=n(18),f=n(19),d=n(3),y=n(1),g=n(21),d=(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(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}))},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 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 n=this,o=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:n.props.messageTemplate,attachmentTemplate:n.props.attachmentTemplate,user:n.props.user,selectedItemIndex:n.state.selectedItemIndex,onRequestSelection:n.onSelectionRequested,isLastGroup:e===o,key:e,message:n.props.message||v.defaultProps.message}):"attachment-group"===t.type?c.createElement(l.default,{group:t,itemTemplate:n.props.attachmentTemplate,onRequestSelection:n.onSelectionRequested,selected:t.selectionIndex===n.state.selectedItemIndex,isLastGroup:e===o,key:e}):"action-group"===t.type?c.createElement(u.default,{group:t,onActionExecute:n.onActionExecute,onRequestSelection:n.onSelectionRequested,selected:t.selectionIndex===n.state.selectedItemIndex,isLastGroup:e===o,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?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:d.ChatMessage},v);function v(t){var o=s.call(this,t)||this;return 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(t){o.setState({selectedItemIndex:t})},o.onKeyDown=function(t){var e=null,n=null!==o.state.selectedItemIndex?o.state.selectedItemIndex:o.viewItems.lastSelectionIndex;t.keyCode===i.Keys.up?null===n?e=0:0<n&&(e=n-1):t.keyCode===i.Keys.down&&(null===n?e=0:n<o.viewItems.lastSelectionIndex&&(e=n+1)),null!==e&&(o.setState({selectedItemIndex:e}),t.preventDefault())},o.onMessageSend=function(t,e){i.dispatchEvent(o.props.onMessageSend,e,o,{message:t})},o.onActionExecute=function(t,e){if(i.dispatchEvent(o.props.onActionExecute,e,o,{action:t}),!e.isDefaultPrevented()){switch(t.type){case"reply":o.onMessageSend({author:o.props.user,text:t.value,timestamp:new Date},e);break;case"call":window.open("tel:"+t.value);break;case"openUrl":window.open(t.value)}o.newMsgComp.focusInput()}},y.validatePackage(g.packageMetadata),o.state={selectedItemIndex:null,isFirstRender:!0},o}e.Chat=d},function(t,e,n){t.exports=n(11)()},function(t,e,n){"use strict";var i=n(12);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,r,s){if(s!==i){s=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");throw s.name="Invariant Violation",s}}function e(){return t}var n={array:t.isRequired=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:r,resetWarningCache:o};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function c(t){return t[t.length-1]}function o(a){return function(t,e,n){var o,r,s,i=n===a-1;return o=t,s=e.timestamp,n=c(o),!s||n&&(r=n.timestamp,!(n=s)||!r||r.getDate()===n.getDate()&&r.getMonth()===n.getMonth()&&r.getFullYear()===n.getFullYear())||(s={type:"date-marker",timestamp:s,trackBy:s.getTime()},o.push(s)),r=e,o=c(n=t),s=void 0,r.typing&&!i||((s=o&&"message-group"===o.type?o.messages:s)&&p.isAuthor(r.author,c(s))?s.push(r):n.push({type:"message-group",messages:[r],author:r.author,timestamp:r.timestamp,trackBy:r})),e.attachments&&1<e.attachments.length&&t.push({type:"attachment-group",attachments:e.attachments,attachmentLayout:e.attachmentLayout,timestamp:e.timestamp,trackBy:e}),e.suggestedActions&&i&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}}var p=n(5);e.convertMsgsToViewItems=function(t){var e=t.slice().reduce(o(t.length),[]),n=0;return(t=e).forEach(function(t){"message-group"===t.type?t.messages.forEach(function(t){t.selectionIndex=n++}):"attachment-group"!==t.type&&"action-group"!==t.type||(t.selectionIndex=n++)}),t.lastSelectionIndex=n-1,e}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(15),r=(s=n(6).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(t,e){return i.createElement(c.default,{item:t,onActionExecute:n.props.onActionExecute,selected:e===n.state.selectedItemIndex,tabbable:n.props.isLastGroup&&e===n.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===o,key:e})}))},p.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},p);function p(t){return s.call(this,t)||this}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(1),r=(s=n(2).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 c.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":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=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(7),r=(s=n(6).SelectableItemsContainer,r(p,s),p.prototype.render=function(){var n=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:n.props.itemTemplate,selected:e===n.state.selectedItemIndex,tabbable:n.props.isLastGroup&&e===n.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===n.getLastItemIndex(),onClick:function(){return n.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(p.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!0,configurable:!0}),p.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},p.prototype.getLeftScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement("button",{className:"k-button k-button-icon",onClick:function(){return t.onNavigateBtnClick(!1)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-left"})):e},p.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement("button",{className:"k-button k-button-icon",onClick:function(){return t.onNavigateBtnClick(!0)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-right"})):e},p.prototype.onAttachmentClick=function(t){this.onRequestContainerSelection(),this.setState({selectedItemIndex:t})},p.prototype.onNavigateBtnClick=function(t){this.onRequestContainerSelection(),this.navigate(t,1)},p.prototype.isCardDeckLayout=function(t){return"list"!==t.group.attachmentLayout},p.prototype.getClassNames=function(){return a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(4),r=(s=i.Component,r(c,s),c.prototype.render=function(){var t=this.props.item;return i.createElement("div",{className:"k-timestamp"},a.provideIntlService(this).formatDate(t.timestamp,"D"))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=r,a.registerForIntl(r)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(7),p=n(5),r=(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 a.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":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 o=this,r=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var n=[i.createElement(o.props.message,{item:t,template:o.props.itemTemplate,selected:t.selectionIndex===o.props.selectedItemIndex,onRequestSelection:o.props.onRequestSelection,tabIndex:e===r&&o.props.isLastGroup?0:-1,isFirstItemInGroup:0===e,isLastItemInGroup:e===r,isOnlyItemInGroup:0==r,key:e})];return t.attachments&&1===t.attachments.length&&n.push(i.createElement(c.default,{item:t.attachments[0],template:o.props.attachmentTemplate,selected:!1,key:"att-"+e})),n})},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(1),a=n(0),c=n(20),r=(s=a.Component,r(p,s),p.prototype.render=function(){var e=this,t=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("button",{className:"k-button k-flat k-button-icon k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},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:p.buttonIconPath}))),o=a.createElement("button",{className:"k-button k-flat k-button-icon k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},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"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:t,sendButton:n,toolbarButton:o}):a.createElement(a.Fragment,null,t,this.props.toolbar&&o,n)),this.props.showToolbar&&a.createElement(c.default,null,this.props.toolbar))},p.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},p.prototype.getClassNames=function(){return i.classNames({"k-state-focused":this.state.focused},"k-input")},p.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",p);function p(){var n=null!==s&&s.apply(this,arguments)||this;return n.state={focused:!1},n.inputEl=null,n.onInputKeyDown=function(t){t.keyCode===i.Keys.enter&&n.sendMessage(t)},n.sendMessage=function(t){var e;!n.props.onMessageSend||null===n.inputEl||(e=n.inputEl.value)&&(e={author:n.props.user,text:e,timestamp:new Date},n.props.onMessageSend(e,t)),null!==n.inputEl&&(n.inputEl.value=null)},n}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),r=(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=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636546643,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"}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(23),c=n(1),r=(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(e,t){return i.createElement("span",{className:"k-card-action",key:t},i.createElement(a.Button,{look:"flat",onClick:function(t){return n.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 n=null!==s&&s.apply(this,arguments)||this;return n.onBtnClick=function(t,e){c.dispatchEvent(n.props.onActionExecute,e,n,{action:t})},n}e.HeroCard=r},function(t,e){t.exports=p}],o={},r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}}});
|
|
1
|
+
System.register("@progress/kendo-react-conversational-ui",["react","@progress/kendo-react-intl","@progress/kendo-react-common","@progress/kendo-react-buttons"],function(s){var i,a,c,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){i=e(t)},function(t){a=e(t)},function(t){c=e(t)},function(t){p=e(t)}],execute:function(){function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o;n=[function(t,e){t.exports=i},function(t,e){t.exports=c},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,r=(s=n(0).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=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(4),r=(s=n(2).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},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 a.classNames({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected},"k-message")},p.defaultProps={dateFormat:"g",tabIndex:-1},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.ChatMessage=r,c.registerForIntl(r)},function(t,e){t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAuthor=function(t,e){return t&&e.author&&t.id===e.author.id}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),r=(s=i.Component,r(c,s),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 n=null,o=this.state.selectedItemIndex;return t?null===o?n=e: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:!0,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 r=null!==s&&s.apply(this,arguments)||this;return r.state={selectedItemIndex:null},r.onRequestContainerSelection=function(){return r.props.onRequestSelection(r.props.group.selectionIndex)},r.onKeyDown=function(t){var e,n=null,o=r.isKeyboardNavigationLeftRight?(e=a.Keys.left,a.Keys.right):(e=a.Keys.up,a.Keys.down);t.keyCode===e?n=r.navigate(!1):t.keyCode===o&&(n=r.navigate(!0)),null!==n&&(t.preventDefault(),t.stopPropagation())},r}e.SelectableItemsContainer=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),r=(s=n(2).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 a.classNames({"k-state-selected":this.props.selected},{"k-state-focused":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=r},function(t,n,e){"use strict";function o(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0});var r=e(3);n.ChatMessage=r.ChatMessage,o(e(9)),o(e(22)),function(t){for(var e in t)s(e,t[e])}(n)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(1),a=n(10),c=n(0),p=n(13),u=n(14),l=n(16),m=n(17),h=n(18),f=n(19),d=n(3),y=n(1),g=n(21),d=(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(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}))},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 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 n=this,o=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:n.props.messageTemplate,attachmentTemplate:n.props.attachmentTemplate,user:n.props.user,selectedItemIndex:n.state.selectedItemIndex,onRequestSelection:n.onSelectionRequested,isLastGroup:e===o,key:e,message:n.props.message||v.defaultProps.message}):"attachment-group"===t.type?c.createElement(l.default,{group:t,itemTemplate:n.props.attachmentTemplate,onRequestSelection:n.onSelectionRequested,selected:t.selectionIndex===n.state.selectedItemIndex,isLastGroup:e===o,key:e}):"action-group"===t.type?c.createElement(u.default,{group:t,onActionExecute:n.onActionExecute,onRequestSelection:n.onSelectionRequested,selected:t.selectionIndex===n.state.selectedItemIndex,isLastGroup:e===o,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?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:d.ChatMessage},v);function v(t){var o=s.call(this,t)||this;return 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(t){o.setState({selectedItemIndex:t})},o.onKeyDown=function(t){var e=null,n=null!==o.state.selectedItemIndex?o.state.selectedItemIndex:o.viewItems.lastSelectionIndex;t.keyCode===i.Keys.up?null===n?e=0:0<n&&(e=n-1):t.keyCode===i.Keys.down&&(null===n?e=0:n<o.viewItems.lastSelectionIndex&&(e=n+1)),null!==e&&(o.setState({selectedItemIndex:e}),t.preventDefault())},o.onMessageSend=function(t,e){i.dispatchEvent(o.props.onMessageSend,e,o,{message:t})},o.onActionExecute=function(t,e){if(i.dispatchEvent(o.props.onActionExecute,e,o,{action:t}),!e.isDefaultPrevented()){switch(t.type){case"reply":o.onMessageSend({author:o.props.user,text:t.value,timestamp:new Date},e);break;case"call":window.open("tel:"+t.value);break;case"openUrl":window.open(t.value)}o.newMsgComp.focusInput()}},y.validatePackage(g.packageMetadata),o.state={selectedItemIndex:null,isFirstRender:!0},o}e.Chat=d},function(t,e,n){t.exports=n(11)()},function(t,e,n){"use strict";var i=n(12);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,r,s){if(s!==i){s=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");throw s.name="Invariant Violation",s}}function e(){return t}var n={array:t.isRequired=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:r,resetWarningCache:o};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function c(t){return t[t.length-1]}function o(a){return function(t,e,n){var o,r,s,i=n===a-1;return o=t,s=e.timestamp,n=c(o),!s||n&&(r=n.timestamp,!(n=s)||!r||r.getDate()===n.getDate()&&r.getMonth()===n.getMonth()&&r.getFullYear()===n.getFullYear())||(s={type:"date-marker",timestamp:s,trackBy:s.getTime()},o.push(s)),r=e,o=c(n=t),s=void 0,r.typing&&!i||((s=o&&"message-group"===o.type?o.messages:s)&&p.isAuthor(r.author,c(s))?s.push(r):n.push({type:"message-group",messages:[r],author:r.author,timestamp:r.timestamp,trackBy:r})),e.attachments&&1<e.attachments.length&&t.push({type:"attachment-group",attachments:e.attachments,attachmentLayout:e.attachmentLayout,timestamp:e.timestamp,trackBy:e}),e.suggestedActions&&i&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}}var p=n(5);e.convertMsgsToViewItems=function(t){var e=t.slice().reduce(o(t.length),[]),n=0;return(t=e).forEach(function(t){"message-group"===t.type?t.messages.forEach(function(t){t.selectionIndex=n++}):"attachment-group"!==t.type&&"action-group"!==t.type||(t.selectionIndex=n++)}),t.lastSelectionIndex=n-1,e}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(15),r=(s=n(6).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(t,e){return i.createElement(c.default,{item:t,onActionExecute:n.props.onActionExecute,selected:e===n.state.selectedItemIndex,tabbable:n.props.isLastGroup&&e===n.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===o,key:e})}))},p.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},p);function p(t){return s.call(this,t)||this}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(1),r=(s=n(2).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 c.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":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=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(7),r=(s=n(6).SelectableItemsContainer,r(p,s),p.prototype.render=function(){var n=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:n.props.itemTemplate,selected:e===n.state.selectedItemIndex,tabbable:n.props.isLastGroup&&e===n.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===n.getLastItemIndex(),onClick:function(){return n.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(p.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!0,configurable:!0}),p.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},p.prototype.getLeftScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement("button",{className:"k-button k-button-icon",onClick:function(){return t.onNavigateBtnClick(!1)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-left"})):e},p.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement("button",{className:"k-button k-button-icon",onClick:function(){return t.onNavigateBtnClick(!0)}},i.createElement("span",{className:"k-icon k-i-arrow-chevron-right"})):e},p.prototype.onAttachmentClick=function(t){this.onRequestContainerSelection(),this.setState({selectedItemIndex:t})},p.prototype.onNavigateBtnClick=function(t){this.onRequestContainerSelection(),this.navigate(t,1)},p.prototype.isCardDeckLayout=function(t){return"list"!==t.group.attachmentLayout},p.prototype.getClassNames=function(){return a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},p);function p(){return null!==s&&s.apply(this,arguments)||this}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(4),r=(s=i.Component,r(c,s),c.prototype.render=function(){var t=this.props.item;return i.createElement("div",{className:"k-timestamp"},a.provideIntlService(this).formatDate(t.timestamp,"D"))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=r,a.registerForIntl(r)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(1),c=n(7),p=n(5),r=(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 a.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":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 o=this,r=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var n=[i.createElement(o.props.message,{item:t,template:o.props.itemTemplate,selected:t.selectionIndex===o.props.selectedItemIndex,onRequestSelection:o.props.onRequestSelection,tabIndex:e===r&&o.props.isLastGroup?0:-1,isFirstItemInGroup:0===e,isLastItemInGroup:e===r,isOnlyItemInGroup:0==r,key:e})];return t.attachments&&1===t.attachments.length&&n.push(i.createElement(c.default,{item:t.attachments[0],template:o.props.attachmentTemplate,selected:!1,key:"att-"+e})),n})},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(1),a=n(0),c=n(20),r=(s=a.Component,r(p,s),p.prototype.render=function(){var e=this,t=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("button",{className:"k-button k-flat k-button-icon k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},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:p.buttonIconPath}))),o=a.createElement("button",{className:"k-button k-flat k-button-icon k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},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"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:t,sendButton:n,toolbarButton:o}):a.createElement(a.Fragment,null,t,this.props.toolbar&&o,n)),this.props.showToolbar&&a.createElement(c.default,null,this.props.toolbar))},p.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},p.prototype.getClassNames=function(){return i.classNames({"k-state-focused":this.state.focused},"k-input")},p.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",p);function p(){var n=null!==s&&s.apply(this,arguments)||this;return n.state={focused:!1},n.inputEl=null,n.onInputKeyDown=function(t){t.keyCode===i.Keys.enter&&n.sendMessage(t)},n.sendMessage=function(t){var e;!n.props.onMessageSend||null===n.inputEl||(e=n.inputEl.value)&&(e={author:n.props.user,text:e,timestamp:new Date},n.props.onMessageSend(e,t)),null!==n.inputEl&&(n.inputEl.value=null)},n}e.default=r},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),r=(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=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1636637749,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"}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(0),a=n(23),c=n(1),r=(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(e,t){return i.createElement("span",{className:"k-card-action",key:t},i.createElement(a.Button,{look:"flat",onClick:function(t){return n.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 n=null!==s&&s.apply(this,arguments)||this;return n.onBtnClick=function(t,e){c.dispatchEvent(n.props.onActionExecute,e,n,{action:t})},n}e.HeroCard=r},function(t,e){t.exports=p}],o={},r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}}});
|
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": "4.11.0-dev.
|
|
4
|
+
"version": "4.11.0-dev.202111111356",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-react.git"
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"react-dom": "^16.8.2 || ^17.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@progress/kendo-react-common": "4.11.0-dev.
|
|
43
|
+
"@progress/kendo-react-common": "4.11.0-dev.202111111356"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@progress/kendo-licensing": "^1.0.1",
|
|
47
|
-
"@progress/kendo-react-buttons": "4.11.0-dev.
|
|
48
|
-
"@progress/kendo-react-dateinputs": "4.11.0-dev.
|
|
49
|
-
"@progress/kendo-react-intl": "4.11.0-dev.
|
|
47
|
+
"@progress/kendo-react-buttons": "4.11.0-dev.202111111356",
|
|
48
|
+
"@progress/kendo-react-dateinputs": "4.11.0-dev.202111111356",
|
|
49
|
+
"@progress/kendo-react-intl": "4.11.0-dev.202111111356",
|
|
50
50
|
"adaptivecards": "^1.0.0",
|
|
51
51
|
"botframework-directlinejs": "^0.9.15"
|
|
52
52
|
},
|