@progress/kendo-react-conversational-ui 4.14.0-dev.202112141518 → 4.14.0-dev.202112150919

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,"ZIndexContext",(function(){return r})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return a})),n.d(t,"canUseDOM",(function(){return c})),n.d(t,"canUseRef",(function(){return l})),n.d(t,"classNames",(function(){return u})),n.d(t,"cloneDate",(function(){return p})),n.d(t,"clone",(function(){return d})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return h})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return y})),n.d(t,"getTabIndex",(function(){return g})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return x})),n.d(t,"noop",(function(){return E})),n.d(t,"getScrollbarWidth",(function(){return _})),n.d(t,"setScrollbarWidth",(function(){return I})),n.d(t,"setter",(function(){return N})),n.d(t,"mapTree",(function(){return M})),n.d(t,"mapTreeItem",(function(){return T})),n.d(t,"extendDataItem",(function(){return R})),n.d(t,"getItemPath",(function(){return A})),n.d(t,"validatePackage",(function(){return K})),n.d(t,"hasRelativeStackingContext",(function(){return B})),n.d(t,"dispatchEvent",(function(){return F})),n.d(t,"AsyncFocusBlur",(function(){return H})),n.d(t,"createPropsContext",(function(){return q})),n.d(t,"withPropsContext",(function(){return X})),n.d(t,"useDir",(function(){return Y})),n.d(t,"useAsyncFocusBlur",(function(){return z})),n.d(t,"useRtl",(function(){return G})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return V})),n.d(t,"COLLECTION_ACTION",(function(){return Z})),n.d(t,"useCollection",(function(){return Q})),n.d(t,"Icon",(function(){return re})),n.d(t,"SvgIcon",(function(){return ce})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return ze})),n.d(t,"Draggable",(function(){return Ue})),n.d(t,"Droppable",(function(){return He})),n.d(t,"useDraggable",(function(){return Le})),n.d(t,"useDroppable",(function(){return Ke}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext";var s=function(){return"undefined"!=typeof document?document:{}},a=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=s();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},u=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)?u.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(" ")},p=function(e){return e?new Date(e.getTime()):null};function d(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=h(o,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return p(e);if(o.isValidElement(e))return o.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},y=function(){},g=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},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function k(e){var t=[];return e.replace(b,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var w={};function O(e){if(w[e])return w[e];var t=k(e);return w[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},w[e]}w.undefined=function(){};var C=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},x={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},E=function(){},_=function(){return!(!c||!document.body)&&(new a).scrollbarWidth},I=function(){if(!c||!document.body)return!1;var e=(new a).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},D={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function N(e){if(D[e])return D[e];var t=k(e);return D[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]]||P(t[s+1],o);r[t[i]]=n},D[e]}var j=function(){return(j=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 S(e,t,n){var o;return n?j({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var M=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=S(t,n).map((function(t){return e(t,n,o)}));return o(S(t,n,r))}return o(t)}(e,t,n)})).slice()},T=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],l=o(a[c]);a.splice(c,1,l)},R=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},A=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},L=n(4);function K(e){if(void 0!==L)L.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 B=function(e){if(!c)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function F(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function z(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,i=e.onSyncBlur,s=o.useRef(!1),a=o.useRef(0),c=o.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=o.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),r&&r.call.apply(r,[void 0].concat(e)),s.current||(s.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[s,t,r]),u=o.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),c((function(){s.current&&n&&(s.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[s,c,n,i]);return o.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var U=function(){return(U=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)},H=function(e){var t=e.children,n=z({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,U({},n))},V=function(e,t){return o.useContext(e)(t)},W=function(){return(W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},q=function(){return o.createContext((function(e){return e}))},X=function(e,t){return o.forwardRef((function(n,r){var i=V(e,n);return o.createElement(t,W({},i,{ref:r}))}))};function Y(e,t,n){var r=o.useState(t),i=r[0],s=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&s(t)}}),n),i}function G(e,t,n){var r=o.useState(t),i=r[0],s=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&s(t)}}),n),i}var Z,$=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}},J=function(e){return o.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Z||(Z={}));var Q=function(e){void 0===e&&(e=[]);var t=o.useRef(e),n=o.useCallback((function(e){switch(e.type){case Z.add:t.current.push(e.item);break;case Z.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=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)},oe=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},re=o.forwardRef((function(e,t){var n=e.className,r=e.name,i=e.themeColor,s=e.size,a=e.flip,c=e.style,l=oe(e,["className","name","themeColor","size","flip","style"]),p=o.useRef(null),d=o.useRef(null);o.useImperativeHandle(p,(function(){return{element:d.current}})),o.useImperativeHandle(t,(function(){return p.current}));var f=o.useMemo((function(){return i||ie.themeColor}),[i]),h=o.useMemo((function(){return s||ie.size}),[s]),m=o.useMemo((function(){return a||ie.flip}),[a]),v=o.useMemo((function(){return u("k-icon","k-i-"+r,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[h],n)}),[r,f,h,m,n]),y=$(e,p);return o.createElement("span",ne({ref:d},l,y,{className:v,style:c,role:"presentation"}))}));re.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var se=function(){return(se=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)},ae=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},ce=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.svgClassName,s=e.icon,a=e.flip,c=e.size,l=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=ae(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:m.current}}));var v=o.useMemo((function(){return s?s.name:le.icon}),[s]),y=o.useMemo((function(){return d||le.themeColor}),[d]),g=o.useMemo((function(){return c||le.size}),[c]),b=o.useMemo((function(){return a||le.flip}),[a]),k=o.useMemo((function(){return f||le.viewBox}),[f]),w=o.useMemo((function(){return u("k-svg-icon","k-color-"+y,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[g],r)}),[v,y,g,b,r]),O=o.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},l):e.width?se({width:e.width,height:e.width},l):e.height?se({width:e.height,height:e.height},l):se({},l)}),[e.width,e.height,l]);return o.createElement("span",{className:w,style:O,ref:m},o.createElement("svg",se({className:i,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:s?s.viewBox:k,dangerouslySetInnerHTML:s?{__html:s.content}:void 0},h),s?void 0:n))}));ce.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ce.displayName="KendoSvgIcon";var ue,pe={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},de={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},fe={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"},he={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},me={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ye={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={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"},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)},ke=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},we=function(e){var t=o.forwardRef((function(t,n){var r=t.className,i=t.fontSize,s=t.fontWeight,a=t.textAlign,c=t.textTransform,l=t.themeColor,u=t.margin,p=ke(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=o.useRef(null),f=o.useRef(null);o.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),o.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==u){if("string"==typeof u)return[fe[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],""+me[n]+("string"==typeof o?he[o]:o)))})),e.join(" ")}}};return o.createElement(h,be({ref:f,className:["k-"+("p"===e?"paragraph":e),pe[i],de[s],ve[a],ye[c],ge[l],m(),r].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:we("h1"),h2:we("h2"),h3:we("h3"),h4:we("h4"),h5:we("h5"),h6:we("h6"),p:we("p"),code:we("code"),pre:we("pre")},Ce=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),s=Math.min(o.left+o.width,n.left+n.width),a=Math.min(o.top+o.height,n.top+n.height),c=s-i,l=a-r;if(i<s&&r<a){var u=o.width*o.height,p=n.width*n.height,d=c*l;return Number((d/(u+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},xe=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Ee=function(e){return e&&e.ownerDocument||window.document},_e=function(e){var t=xe(),n=Ee(e);return t.edge||t.safari?n.body:n.documentElement},Ie=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},De=function(e){var t=_e(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Ie(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(ue||(ue={}));var Pe=function(){},Ne=function(e,t,n){void 0===n&&(n={});var o,r,i,s,a=n.onIsPressedChange,c=void 0===a?Pe:a,l=n.onIsScrollingChange,u=void 0===l?Pe:l,p=n.onVelocityChange,d=void 0===p?Pe:p,f=n.onOffsetChange,h=void 0===f?Pe:f,m=n.onPageOffsetChange,v=void 0===m?Pe:m,y=n.onClientOffsetChange,g=void 0===y?Pe:y,b=n.onScrollOffsetChange,k=void 0===b?Pe:b,w=n.onInitialScrollOffsetChange,O=void 0===w?Pe:w,C=t.payload,x=C.element,E=C.hint,_=e.autoScrollDirection,I=e.scrollableParent,D=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(D.type){case ue.POINTER_DOWN:if(D.type===ue.POINTER_DOWN&&(!D.originalEvent.isPrimary||0!==D.originalEvent.button))break;case ue.MOUSE_DOWN:if(D.type===ue.MOUSE_DOWN&&D.originalEvent.which&&D.originalEvent.which>1||e.ignoreMouse)break;case ue.TOUCH_START:if(D.type===ue.TOUCH_START&&1!==D.originalEvent.touches.length)break;case ue.START:var P=I||De(t.payload.element);O(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),g({x:D.clientX,y:D.clientY}),v({x:D.pageX,y:D.pageY}),h({x:D.offsetX,y:D.offsetY}),c(!0),C.onPress&&C.onPress(D);break;case ue.SCROLL:if(D.type===ue.SCROLL&&!e.pressed)break;var N=I||De(x),j=N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop};D.scrollX=j.x-e.initialScrollOffset.x,D.scrollY=j.y-e.initialScrollOffset.y,k({x:D.scrollX,y:D.scrollY});case ue.POINTER_MOVE:if(D.type===ue.POINTER_MOVE&&!D.originalEvent.isPrimary)break;case ue.MOUSE_MOVE:case ue.TOUCH_MOVE:if(D.type===ue.TOUCH_MOVE&&1!==D.originalEvent.touches.length)break;case ue.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==D.originalEvent.type&&x){var S=Ee(x),M=I||De(S.elementFromPoint(D.clientX,D.clientY)),T=function(e,t,n){var o={x:0,y:0};return e-n.left<50?o.x=-(50-(e-n.left)):n.right-e<50&&(o.x=50-(n.right-e)),t-n.top<50?o.y=-(50-(t-n.top)):n.bottom-t<50&&(o.y=50-(n.bottom-t)),o}(D.pageX,D.pageY,function(e,t){var n=_e(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(M,function(e){var t=Ee(e);return t&&t.defaultView||window}(x)));d({x:_&&!1===_.horizontal?0:T.x,y:_&&!1===_.vertical?0:T.y}),u(0!==T.y||0!==T.x)}!e.drag&&C.onDragStart&&C.onDragStart(D),C.onDrag&&C.onDrag(D);var R=Ce(E||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(E||x)}))),A=e.drops.find((function(e){return e.element===R}));A&&R&&(o=D.clientX,r=D.clientY,i=I||De(R),(s=i.getBoundingClientRect()).top<=r&&s.left<=o&&r<=s.bottom&&o<=s.right)&&R!==x?(e.drop&&e.drop.element)!==R?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D),A.onDragEnter&&A.onDragEnter(D)):A.onDragOver&&A.onDragOver(D):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D)}g({x:D.clientX,y:D.clientY}),v({x:D.pageX,y:D.pageY});break;case ue.POINTER_UP:if(D.type===ue.POINTER_UP&&!D.originalEvent.isPrimary)break;case ue.MOUSE_UP:case ue.TOUCH_END:if(D.type===ue.TOUCH_END&&1!==D.originalEvent.touches.length)break;case ue.END:c(!1),u(!1),C.onRelease&&C.onRelease(D),e.drop&&e.drop.onDrop&&e.drop.onDrop(D),C.onDragEnd&&C.onDragEnd(D);break;case ue.POINTER_CANCEL:case ue.CONTEXT_MENU:case ue.TOUCH_CANCEL:case ue.CANCEL:c(!1),u(!1),C.onDragEnd&&C.onDragEnd(D),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D)}},je=function(e,t){if(e){var n,o;e===_e(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,s=e.scrollLeft+t.x,a=o&&s>0&&s<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:o&&s<0&&(e.scrollLeft=0)}},Se=function(e,t){var n=o.useContext(e),r=n[0],i=n[1],s=o.useState(t),a=s[0],c=s[1];return[void 0!==r?r:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==r?i.apply(void 0,e):c(e[0])}]},Me=o.createContext([void 0,E]),Te=o.createContext([void 0,E]),Re=o.createContext([[],E,E]),Ae=o.createContext([[],E,E]);function Le(e,t,n){void 0===n&&(n={});var r=t.onPress,i=void 0===r?E:r,s=t.onRelease,a=void 0===s?E:s,c=t.onDragStart,l=void 0===c?E:c,u=t.onDrag,p=void 0===u?E:u,d=t.onDragEnd,f=void 0===d?E:d,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,y=void 0!==v&&v,g=n.autoScroll,b=void 0===g||g,k=n.scrollContainer,w=void 0===k?null:k,O=o.useState(!1),C=O[0],x=O[1],_=o.useState(!1),I=_[0],D=_[1],P=Se(Te)[0],N=Se(Me),j=N[0],S=N[1],M=o.useContext(Ae)[0],T=o.useContext(Re),R=T[0],A=T[1],L=T[2],K=o.useRef({x:0,y:0}),B=o.useRef(),F=o.useRef(!1),z=o.useRef(),U=o.useRef(!1),H=o.useRef({x:0,y:0}),V=o.useRef({x:0,y:0}),W=o.useRef({x:0,y:0}),q=o.useRef({x:0,y:0}),X=o.useRef({x:0,y:0}),Y=o.useRef({x:0,y:0}),G=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!y&&G,$=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=o.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=o.useCallback((function(){return w&&w.current&&w.current.element?w.current.element:w?w.current:null}),[w]),ee=o.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=o.useRef(null);o.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:ve,onDrag:ye,onDragEnd:ge,onRelease:me,data:e.current}}));var ne=o.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),oe=o.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),re=o.useCallback((function(){return{drag:j?j.current:null,drop:P?P.current:null,drags:R.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:C,ignoreMouse:F.current,scrollOffset:X.current,offset:H.current,pageOffset:V.current,initialScrollOffset:Y.current,clientOffset:W.current,initialClientOffset:q.current,velocity:K.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[j,P,R,M,C,b,ee,I]),ie=o.useCallback((function(e){x(e)}),[]),se=o.useCallback((function(e){D(e)}),[]),ae=o.useCallback((function(e){K.current=e}),[]),ce=o.useCallback((function(e){H.current=e}),[]),le=o.useCallback((function(e){W.current=e}),[]),ue=o.useCallback((function(e){V.current=e}),[]),pe=o.useCallback((function(e){q.current=e}),[]),de=o.useCallback((function(e){X.current=e}),[]),fe=o.useCallback((function(e){Y.current=e}),[]),he=o.useCallback((function(e){i(e)}),[i]),me=o.useCallback((function(e){a(e)}),[a]),ve=o.useCallback((function(t){S(te,{target:e.current,event:t}),l(t)}),[S,e,l]),ye=o.useCallback((function(e){p(e)}),[p]),ge=o.useCallback((function(t){U.current||(S(null,{target:e.current,event:t}),f(t))}),[f,S,e]),be=o.useCallback((function(e){Ne(re(),{event:e,payload:te.current},{onVelocityChange:ae,onOffsetChange:ce,onClientOffsetChange:le,onPageOffsetChange:ue,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:fe,onIsPressedChange:ie,onIsScrollingChange:se})}),[re,ae,ce,ue,le,pe,fe,ie,de,se]),ke=o.useCallback((function(e){be(e)}),[be]),we=o.useCallback((function(e){be(e)}),[be]),Oe=o.useCallback((function(e){be(e)}),[be]),Ce=o.useCallback((function(e){be(e)}),[be]),xe=o.useCallback((function(e){be(e)}),[be]),Ee=o.useCallback((function(e){be(e)}),[be]),_e=o.useCallback((function(e){be(e)}),[be]),Ie=o.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Pe=o.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=o.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ke=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=oe();F.current=!0,z.current=t.setTimeout((function(){F.current=!1}),2e3)}be(e)}),[be,oe]),Be=o.useCallback((function(e){be(e)}),[be]),Fe=o.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),ze=o.useCallback((function(){return A(te),function(){L(te)}}),[L,A]);o.useEffect((function(){var e=oe();if(I){var t=Q()||De(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){je(t,{x:K.current.x,y:K.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[$,Q,oe,I]),o.useEffect(Fe,[Fe]),o.useEffect((function(){var e=oe(),t=$(),n=ne();if(Z){if(t)De(t).addEventListener("scroll",Be,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0});C&&(n.addEventListener("pointermove",we),n.addEventListener("pointerup",Ce,!0),n.addEventListener("contextmenu",Ie),n.addEventListener("pointercancel",Oe,{passive:!0}))}else e.addEventListener("touchmove",E,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",xe,{passive:!0}),y||(t.addEventListener("touchstart",Pe,{passive:!0}),C&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ke,{passive:!0})))),C&&(n.addEventListener("mousemove",Ee,{passive:!0}),n.addEventListener("mouseup",_e,{passive:!0}));return function(){if(t){var o=De(t);o&&o.removeEventListener("scroll",Be),t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",xe),t.removeEventListener("touchstart",Pe),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ke)}n.removeEventListener("pointermove",we),n.removeEventListener("pointerup",Ce,!0),n.removeEventListener("contextmenu",Ie),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",Ee),n.removeEventListener("mouseup",_e),e.removeEventListener("touchmove",E),e.clearTimeout(z.current)}}),[C,oe,$,ne,y,Z,Ie,xe,Ee,_e,Oe,ke,we,Ce,Ke,Le,Pe,Be]),o.useEffect((function(){return function(){U.current=!0}}),[]),o.useLayoutEffect(ze,[ze])}function Ke(e,t){void 0===t&&(t={onDragEnter:E,onDragOver:E,onDragLeave:E,onDrop:E});var n=t.onDragEnter,r=void 0===n?E:n,i=t.onDragOver,s=void 0===i?E:i,a=t.onDragLeave,c=void 0===a?E:a,l=t.onDrop,u=void 0===l?E:l,p=Se(Te)[1],d=o.useContext(Ae),f=d[1],h=d[2],m=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=o.useRef(null);o.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:y,onDragOver:g,onDragLeave:b,onDrop:k,data:e.current}}));var y=o.useCallback((function(t){p(v,{target:e.current,event:t}),r(t)}),[p,e,r]),g=o.useCallback((function(e){s(e)}),[s]),b=o.useCallback((function(t){p(null,{target:e.current,event:t}),c(t)}),[p,e,c]),k=o.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),w=o.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);o.useLayoutEffect(w,[w])}var 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)},Fe=function(e,t,n){var r=o.useState(t||e),i=r[0],s=r[1];return[void 0!==t?t:i,o.useCallback((function(e,t){s(e),n&&n.call(void 0,Be({},t,{value:e}))}),[n,s])]},ze=function(e){var t=Fe(null,void 0),n=t[0],r=t[1],i=Fe(null,void 0),s=i[0],a=i[1],c=Q([]),l=c[0],u=c[1],p=Q([]),d=p[0],f=p[1];return o.createElement(Me.Provider,{value:[n,r]},o.createElement(Te.Provider,{value:[s,a]},o.createElement(Re.Provider,{value:[l,function(e){u({type:Z.add,item:e})},function(e){u({type:Z.remove,item:e})}]},o.createElement(Ae.Provider,{value:[d,function(e){f({type:Z.add,item:e})},function(e){f({type:Z.remove,item:e})}]},e.children))))};ze.displayName="KendoReactDragAndDrop";var Ue=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(r,(function(){return{element:i()||null}})),o.useImperativeHandle(t,(function(){return r.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var s=o.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:r.current,event:t})}),[i,e.onPress]),a=o.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:r.current,event:t})}),[i,e.onRelease]),c=o.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:r.current,event:t})}),[e,i]),l=o.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:r.current,event:t})}),[i,e.onDrag]),u=o.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:r.current,event:t})}),[i,e.onDragEnd]);return Le(n,{onPress:s,onRelease:a,onDragStart:c,onDrag:l,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));Ue.displayName="KendoReactDraggable";var He=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(r,(function(){return{element:i()||void 0}})),o.useImperativeHandle(t,(function(){return r.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var s=o.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:r.current,event:t})}),[e.onDragEnter,i]),a=o.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:r.current,event:t})}),[i,e.onDragOver]),c=o.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:r.current,event:t})}),[e.onDragLeave,i]),l=o.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:r.current,event:t})}),[e.onDrop,i]);return Ke(n,{onDragEnter:s,onDragOver:a,onDragLeave:c,onDrop:l}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));He.displayName="KendoReactDroppable"},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),l=n(14),u=n(16),p=n(17),d=n(18),f=n(19),h=n(5),m=n(2),v=n(21),y=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(v.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}return r(t,e),t.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),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(u.default,{group:o,itemTemplate:e.props.attachmentTemplate,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):"action-group"===o.type?a.createElement(l.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=y},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),l=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=l},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:1639493504,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 Me})),n.d(t,"SplitButtonItem",(function(){return C})),n.d(t,"DropDownButton",(function(){return Ke})),n.d(t,"DropDownButtonItem",(function(){return Re})),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:1639493378,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"])',l=["button"+c,".k-button-group > button"+c,".k-dropdown > .k-dropdown-wrap"+c,".k-colorpicker > .k-picker-wrap"+c],u={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=u;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,l=n.icon,u=n.iconClass,p=n.imageUrl,m=n.imageAlt,v=n.className,y=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),g=void 0!==l||void 0!==u||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]],v),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:l,iconClass:u,imageUrl:p,imageAlt:m});return r.createElement("button",d({},k,y,{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),v=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)}}(),y=function(){return(y=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=u,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.validatePackage)(a),n}return v(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",y({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,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=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),l=this.props.disabled||e.props.disabled,u=y({},e.props,a?{className:a}:{},Object.keys(c).length?{style:c}:{},void 0!==l?{disabled:l}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),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)}}(),C=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}},E=n(10),_=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),D="bottom",P="center",N="middle",j="left",S="right",M="top";function T(e){return e.ownerDocument||e.document||e}var R=function(e){return T(e).defaultView},A=function(e){return T(e).documentElement},L=0;function K(){if(!L&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),L=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return L}function B(e){var t=R(e),n=A(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=K()),o}var F=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||A(e)},z=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}},U=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function H(e){var t=A(e),n=R(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var V=function(e){return e===(e.ownerDocument||{}).body?H(e):{x:e.scrollLeft,y:e.scrollTop}};var W=function(e,t){var n=R(e),o=n.getComputedStyle(e),r=z(e),i=t||F(e),s=e.ownerDocument,a=i!==s.body&&i!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var l=n.getComputedStyle(i);(c=z(i)).top+=parseInt(l.borderTopWidth,10),c.left+=parseInt(l.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},q=function(e,t){return e?V(e):function(e){var t=F(e);return t?V(t):{x:0,y:0}}(t)};var X="fit",Y="flip",G=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},Z=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===P||s===N)&&!(i===P||i===N)){var l=i===M||i===j;t<0&&l?t+(a=n+o+c)+n>r&&(a=0):t>=0&&!l&&(t+n>r&&(a+=-(o+n+c)),t+a<0&&(a=0))}return a},$=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},J=function(e,t){for(var n,o,r=U(e),i=t;i&&(n=$(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var Q,ee,te,ne=(Q=function(e){if(!oe())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},te=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return te||(ee=Q.apply(void 0,e),te=!0),ee}),oe=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},re={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:ne,canUseDOM:oe},ie=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],se=function(){return re.canUseDOM()?window:null},ae=/auto|scroll/,ce=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},le=function(e){if(!e||!re.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},ue=function(){return re.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},pe={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var s=n.horizontal,a=n.vertical,c=r.horizontal,l=r.vertical,u=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return a===D&&(d+=t.height),a!==P&&a!==N||(d+=Math.round(t.height/2)),l===D&&(d-=o.height,p*=-1),l!==P&&l!==N||(d-=Math.round(o.height/2),p*=-1),s===S&&(f+=t.width),s!==P&&s!==N||(f+=Math.round(t.width/2)),c===S&&(f-=o.width,u*=-1),c!==P&&c!==N||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=B(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=se();if(!t||!e)return[];var n=t.getComputedStyle(e);return ie.map((function(e){return{key:e,value:n[e]}}))},getWindow:se,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?z(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var s=z(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,s},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?F(t):null,r=W(e,o),i=r.top,s=r.left,a=r.height,c=r.width,l=q(o,e),u=l.x,p=l.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:s+u*f,height:a,width:c}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,l=o.left,u=o.height,p=o.width,d=s.height,f=s.width,h=a.horizontal||0,m=a.vertical||0,v=0,y=0,g=i.horizontal===Y,b=i.vertical===Y;i.vertical===X&&(y+=G(c,u,d)),i.horizontal===X&&(v+=G(l,p,f)),b&&(y+=Z({margin:m,offset:c,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),g&&(v+=Z({margin:h,offset:l,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var k=g&&0!==v,w=b&&0!==y;return{flipped:k||w,flip:{horizontal:k,vertical:w},offset:{left:v,top:y}}},scrollPosition:H,scrollableParents:function(e){var t=[];if(!re.canUseDOM())return t;for(var n=e.parentElement;n;)(ae.test(ce(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:le,stackingElementOffset:function(e){var t=le(e);return t?z(t):null},stackingElementScroll:function(e){var t=le(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=le(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(le(e))},windowViewPort:B,zoomLevel:ue,isZoomed:function(){return ue()>1},zIndex:function(e,t){if(!e||!re.canUseDOM())return null;var n=J(e,t);if(!n)return null;var o=[e].concat(U(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}},de=function(e,t){return e?{x:0,y:0}:pe.scrollPosition(t)},fe=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,s=e.offset,a=e.positionMode,c=e.scale||1,l="fixed"===a||!pe.hasOffsetParent(n)?function(e,t,n,o){var r=de(e,t),i=re.eitherRect(pe.offset(e),n),s=2*o,a=pe.stackingElementScroll(t);1!==o&&a&&(a.x/=s,a.y/=s);var c=pe.stackingElementOffset(t);return 1!==o&&c&&(c.left/=s,c.top/=s),pe.removeScroll(pe.addScroll(re.removeStackingOffset(re.scaleRect(i,o),c),a),r)}(t,n,s,c):function(e,t,n,o){var r=re.eitherRect(pe.position(e,t,o),n);return re.scaleRect(r,o)}(t,n,s,c),u=re.scaleRect(pe.offset(n),c);return pe.align({anchorAlign:o,anchorRect:l,elementAlign:r,elementRect:u,margin:i})},he=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,s=e.collisions,a=e.margin,c=e.scale||1,l=pe.offsetAtPoint(o,n),u=re.scaleRect(l,c),p=re.scaleRect(pe.offset(t),c),d=re.eitherRect(p,n),f=e.viewPort||pe.windowViewPort(o);f.width=f.width/c,f.height=f.height/c;var h=pe.restrictToView({anchorAlign:r,anchorRect:d,collisions:s,elementAlign:i,elementRect:u,margin:a,viewPort:f}),m=pe.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},me="fit",ve="flip",ye={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639493347,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 Ce=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=t.margin,l=t.scale,u=t.positionMode;e.style.top="0px",e.style.left="-10000px";var p=fe({anchor:a,element:e,elementAlign:r,anchorAlign:o,offset:s,margin:c,positionMode:u,scale:l}),d=he({anchor:a,anchorAlign:o,collisions:i,element:e,currentLocation:p,elementAlign:r,margin:n.props.margin});e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._flipped=d.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),r()};e.addEventListener("transitionend",a);var c=e.ownerDocument;if(c){var l=c.defaultView;if(l){var u=function(){_(e),e.classList.add(i),l.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(s)}))};I?l.requestAnimationFrame(u):u()}}}(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})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(s.validatePackage)(ye),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 l=(new Date).getTime();a||!1!==n.leading||(a=l);var u=t-(l-a);return r=this,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),a=l,s=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,u)),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,l=e.popupClass,u=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:l,style:u,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(u,t.props.style)&&o===t.props.anchor&&l===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,l=t.positionMode,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 p=Object.assign({},{position:l},this.props.style||{}),d=this.state.current===we.hiding;if((a||d)&&u){var f=this.getCurrentZIndex(),h=r.createElement(s.ZIndexContext.Provider,{value:f},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:be({zIndex:f},p)},r.createElement("div",{className:Object(s.classNames)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return E.createPortal(h,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=pe.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([me,ve]),vertical:i.oneOf([me,ve])}),anchorAlign:i.shape({horizontal:i.oneOf([j,P,S]),vertical:i.oneOf([M,P,D])}),popupAlign:i.shape({horizontal:i.oneOf([j,P,S]),vertical:i.oneOf([M,P,D])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number},t.defaultProps={collision:{horizontal:me,vertical:ve},anchorAlign:{horizontal:j,vertical:D},popupAlign:{horizontal:j,vertical:M},offset:Oe,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.ZIndexContext,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)},Ee=r.createContext((function(e){return e})),_e=r.forwardRef((function(e,t){var n=r.useContext(Ee).call(void 0,e);return r.createElement(Ce,xe({ref:t},n))}));function Ie(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function De(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var Pe,Ne,je=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)}}(),Se=u,Me=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 je(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===C})).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",[Se[""+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(_e,{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||De(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)}}(),Re=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),Ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)},Ke=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=Le({},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 Ae(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===Re})).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(_e,{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||De(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),Be=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)}}(),Fe=function(){return(Fe=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,Fe({target:o},i,{nativeEvent:e}))}}},Object(s.validatePackage)(a),o}return Be(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||l},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"}(Pe||(Pe={})),function(e){e.toggle="toggle",e.remove="remove"}(Ne||(Ne={}));var Xe;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Xe||(Xe={}));var Ye;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ye||(Ye={}));var Ge=function(){return(Ge=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ze=r.createContext([null,function(e){}]),$e=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 Pe.single:switch(t.type){case Ne.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 Ne.remove:return t.payload===e?null:e;default:return e}case Pe.multiple:switch(t.type){case Ne.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 Ne.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 Pe.none:return null;default:return e}}(t.state||i,Ge({},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 Xe.next:return n===t.items.length-1?e:t.items[n+1];case Xe.prev:return 0===n?e:t.items[n-1];case Xe.current:return t.payload;case Xe.reset:return null;default:return e}}(t.payload,Ge({},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,Ge({},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]),l=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 u=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:l,state:e.value},u),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),v=m[0],y=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||v}),[e.data,v]),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}),C=O[0],x=O[1],E=Object(s.useMouse)(e,n);return r.createElement(Ze.Provider,{value:[k,f]},r.createElement($e.Provider,{value:[C,x]},r.createElement(Je.Provider,{value:[b,y]},r.createElement("div",Ge({ref:o},E,{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"===l,"k-selection-multiple":"multiple"===l,"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:Object(s.getter)(e.valueField||rt.valueField)(t),text:Object(s.getter)(e.textField||rt.textField)(t),value:Object(s.getter)(e.valueField||rt.valueField)(t)})}))))))})),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(Ze),l=c[0],u=c[1],p=r.useContext($e),d=p[0],f=p[1],h=r.useContext(Je)[1],m=r.useMemo((function(){return e.selected||(Array.isArray(l)?l.some((function(t){return t===e.value})):l===e.value)}),[e.selected,e.value,l]),v=r.useMemo((function(){return d===e.value}),[e.value,d]),y=r.useMemo((function(){return e.look||ct.look}),[e.look]);r.useEffect((function(){v&&o.current&&o.current.focus()}),[v]);var g=r.useCallback((function(t){u({type:Ne.toggle,payload:e.value,event:t})}),[e.onClick,u,e.value]),b=r.useCallback((function(t){e.removable&&(h({type:Ye.remove,payload:e.value,event:t}),f({type:Xe.reset,payload:e.value,event:t}),u({type:Ne.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,u]),k=r.useCallback((function(t){switch(t.keyCode){case s.Keys.left:f({type:Xe.prev,payload:e.value,event:t});break;case s.Keys.right:f({type:Xe.next,payload:e.value,event:t});break;case s.Keys.enter:u({type:Ne.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,u,b]),w=r.useCallback((function(t){f({payload:e.value,type:Xe.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]),C=Object(s.useMouse)(e,n,{onClick:g});return r.createElement("div",it({},C,{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":v,"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"===y||"outlined"===y,"k-chip-solid":"solid"===y||"filled"===y},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 lt=function(){return(lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ut=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,l=e.id,u=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,y=ut(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),g=r.useRef(null),b=r.useCallback((function(){g.current&&g.current.focus()}),[]),k=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){v&&void 0!==d&&!o&&v(e,d)}),[v,d]),O=r.useMemo((function(){return Object(s.classNames)("k-fab-item",{"k-state-focus":u,"k-state-disabled":o},n)}),[n,o,u]),C=h;return r.createElement("li",lt({ref:g,id:l,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},y),C?r.createElement(C,{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"]},vt=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},yt=function(){return(yt=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,l=e.disabled,u=e.icon,p=e.iconClass,d=e.id,f=e.items,h=e.item,m=e.text,v=e.positionMode,y=void 0===v?kt.positionMode:v,g=e.shape,b=void 0===g?kt.shape:g,k=e.size,w=void 0===k?kt.size:k,O=e.style,C=e.themeColor,x=void 0===C?kt.themeColor:C,E=e.tabIndex,_=e.accessKey,I=e.popupSettings,D=void 0===I?{}:I,P=e.onClick,N=e.onItemClick,j=e.onFocus,S=e.onBlur,M=e.onKeyDown,T=e.onOpen,R=e.onClose,A=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"]),L=r.useRef(null),K=r.useRef(null),B=r.useRef(null),F=r.useRef(null),z=r.useCallback((function(){K.current&&K.current.focus()}),[]),U=r.useCallback((function(){return{element:K.current,focus:z}}),[z]);r.useImperativeHandle(L,U),r.useImperativeHandle(t,(function(){return L.current}));var H=r.useState(!1),V=H[0],W=H[1],q=r.useState(!1),X=q[0],Y=q[1],G=r.useState(-1),Z=G[0],$=G[1],J=r.useMemo((function(){return Object(s.guid)()}),[]),Q=Object(s.useDir)(K,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",l=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(vt(t),"middle"===i?l: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"))}}(K,o,i,ee)}),[K,o,i,ee]),r.useEffect((function(){X&&K&&K.current&&K.current.focus()}),[X,K]);var ne=r.useCallback((function(e,t){f&&Object(s.dispatchEvent)(t?T:R,e,U(),void 0)}),[T,R,f]),oe=r.useCallback((function(e){e.target&&!l&&(!f&&P?Object(s.dispatchEvent)(P,e,U(),void 0):(W(!V),Y(!0),$(V?-1:0),ne(e,!V)))}),[W,Y,$,P,ne,V,f,l]),re=r.useCallback((function(e){Y(!0),$(V?0:-1),j&&Object(s.dispatchEvent)(j,e,U(),void 0)}),[j,Y,$]),ie=r.useCallback((function(e){Y(!1),W(!1),$(-1),Object(s.dispatchEvent)(S,e,U(),void 0),V&&ne(e,!1)}),[S,Y,W,$,ne]),se=r.useCallback((function(e){e.preventDefault()}),[]),ae=r.useCallback((function(e,t){f&&(f[t].disabled||Object(s.dispatchEvent)(N,e,U(),{itemProps:f[t],itemIndex:t}))}),[N]),ce=r.useCallback((function(e,t){e.target&&f&&($(t),W(!1),ae(e,t),ne(e,!1))}),[$,W,ae,ne]),le=r.useCallback((function(e){document.activeElement===K.current&&e.preventDefault()}),[K,document.activeElement]),ue=r.useCallback((function(e){var t=Z,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),$(V?-1:0);break;case s.Keys.esc:e.preventDefault(),W(!1),$(-1);break;case s.Keys.home:e.preventDefault(),$(0);break;case s.Keys.end:e.preventDefault(),$(n);break;case s.Keys.down:case s.Keys.right:e.preventDefault(),t<n&&!r&&$(t+1),t>0&&r&&$(t-1);break;case s.Keys.up:case s.Keys.left:e.preventDefault(),t>0&&!r&&$(t-1),t<n&&r&&$(t+1)}Object(s.dispatchEvent)(M,e,U(),void 0)}),[M,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":l,"k-pos-absolute":"absolute"===y,"k-pos-fixed":"fixed"===y,"k-state-focus":X},"k-"+o.vertical+"-"+o.horizontal,c)}),[x,w,b,l,y,o,X,c]),de=f&&f.map((function(e,t){return r.createElement(pt,yt({},e,{key:t,index:t,id:te+"-"+t,disabled:l||e.disabled,focused:Z===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:le}));var n,i})),fe=u&&!m,he=(K.current?K.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",yt({ref:K,id:d||J,role:f?"menubutton":"button",type:"button","aria-disabled":l,"aria-expanded":f?V:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?te:void 0,"aria-activedescendant":Z>=0&&f?te+"-"+Z:void 0,tabIndex:Object(s.getTabIndex)(E,l),accessKey:_,dir:Q,disabled:l,className:pe,style:O,onClick:oe,onMouseDown:se,onFocus:re,onBlur:ie,onKeyDown:ue},A),u?r.createElement("span",{role:"presentation",className:Object(s.classNames)("k-fab-icon k-icon k-i-"+u)}):p?r.createElement("span",{role:"presentation",className:p}):null,m&&r.createElement("span",{className:"k-fab-text"},m)),r.createElement(_e,{ref:F,anchor:K.current,show:V,animate:D.animate,popupClass:Object(s.classNames)("k-popup-transparent k-fab-popup",D.popupClass),anchorAlign:D.anchorAlign||ft(o,ee),popupAlign:D.popupAlign||ht(o,ee),style:{boxShadow:"none"}},r.createElement("ul",{ref:B,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,"ZIndexContext",(function(){return r})),n.d(t,"useZIndexContext",(function(){return i})),n.d(t,"BrowserSupportService",(function(){return a})),n.d(t,"canUseDOM",(function(){return c})),n.d(t,"canUseRef",(function(){return l})),n.d(t,"classNames",(function(){return u})),n.d(t,"cloneDate",(function(){return p})),n.d(t,"clone",(function(){return d})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return h})),n.d(t,"cloneArray",(function(){return m})),n.d(t,"focusFirstFocusableChild",(function(){return v})),n.d(t,"FormComponent",(function(){return y})),n.d(t,"getTabIndex",(function(){return g})),n.d(t,"getter",(function(){return O})),n.d(t,"guid",(function(){return C})),n.d(t,"Keys",(function(){return x})),n.d(t,"noop",(function(){return E})),n.d(t,"getScrollbarWidth",(function(){return _})),n.d(t,"setScrollbarWidth",(function(){return I})),n.d(t,"setter",(function(){return N})),n.d(t,"mapTree",(function(){return M})),n.d(t,"mapTreeItem",(function(){return T})),n.d(t,"extendDataItem",(function(){return R})),n.d(t,"getItemPath",(function(){return A})),n.d(t,"validatePackage",(function(){return K})),n.d(t,"hasRelativeStackingContext",(function(){return B})),n.d(t,"dispatchEvent",(function(){return F})),n.d(t,"AsyncFocusBlur",(function(){return H})),n.d(t,"createPropsContext",(function(){return q})),n.d(t,"withPropsContext",(function(){return X})),n.d(t,"useDir",(function(){return Y})),n.d(t,"useAsyncFocusBlur",(function(){return z})),n.d(t,"useRtl",(function(){return G})),n.d(t,"useMouse",(function(){return $})),n.d(t,"useCustomComponent",(function(){return J})),n.d(t,"usePropsContext",(function(){return V})),n.d(t,"COLLECTION_ACTION",(function(){return Z})),n.d(t,"useCollection",(function(){return Q})),n.d(t,"Icon",(function(){return re})),n.d(t,"SvgIcon",(function(){return ce})),n.d(t,"Typography",(function(){return Oe})),n.d(t,"DragAndDrop",(function(){return ze})),n.d(t,"Draggable",(function(){return Ue})),n.d(t,"Droppable",(function(){return He})),n.d(t,"useDraggable",(function(){return Le})),n.d(t,"useDroppable",(function(){return Ke}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext";var s=function(){return"undefined"!=typeof document?document:{}},a=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=s();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},u=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)?u.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(" ")},p=function(e){return e?new Date(e.getTime()):null};function d(e){var t={};return f(e,t),t}function f(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=h(o,t[n])}}function h(e,t){if(Array.isArray(e))return m(e);if(e instanceof Date)return p(e);if(o.isValidElement(e))return o.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function m(e){return e.map((function(e){return h(e,void 0)}))}var v=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},y=function(){},g=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},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function k(e){var t=[];return e.replace(b,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}var w={};function O(e){if(w[e])return w[e];var t=k(e);return w[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},w[e]}w.undefined=function(){};var C=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},x={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},E=function(){},_=function(){return!(!c||!document.body)&&(new a).scrollbarWidth},I=function(){if(!c||!document.body)return!1;var e=(new a).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},D={undefined:function(e){return e}},P=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function N(e){if(D[e])return D[e];var t=k(e);return D[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]]||P(t[s+1],o);r[t[i]]=n},D[e]}var j=function(){return(j=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 S(e,t,n){var o;return n?j({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var M=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=S(t,n).map((function(t){return e(t,n,o)}));return o(S(t,n,r))}return o(t)}(e,t,n)})).slice()},T=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],l=o(a[c]);a.splice(c,1,l)},R=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},A=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},L=n(4);function K(e){if(void 0!==L)L.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 B=function(e){if(!c)return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o};function F(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}function z(e){var t=e.onFocus,n=e.onBlur,r=e.onSyncFocus,i=e.onSyncBlur,s=o.useRef(!1),a=o.useRef(0),c=o.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),l=o.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),r&&r.call.apply(r,[void 0].concat(e)),s.current||(s.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[s,t,r]),u=o.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i&&i.call.apply(i,[void 0].concat(e)),c((function(){s.current&&n&&(s.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[s,c,n,i]);return o.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:u}}var U=function(){return(U=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)},H=function(e){var t=e.children,n=z({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,U({},n))},V=function(e,t){return o.useContext(e)(t)},W=function(){return(W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},q=function(){return o.createContext((function(e){return e}))},X=function(e,t){return o.forwardRef((function(n,r){var i=V(e,n);return o.createElement(t,W({},i,{ref:r}))}))};function Y(e,t,n){var r=o.useState(t),i=r[0],s=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&s(t)}}),n),i}function G(e,t,n){var r=o.useState(t),i=r[0],s=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&s(t)}}),n),i}var Z,$=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}},J=function(e){return o.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(Z||(Z={}));var Q=function(e){void 0===e&&(e=[]);var t=o.useRef(e),n=o.useCallback((function(e){switch(e.type){case Z.add:t.current.push(e.item);break;case Z.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},ee=n(1),te={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ne=function(){return(ne=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)},oe=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},re=o.forwardRef((function(e,t){var n=e.className,r=e.name,i=e.themeColor,s=e.size,a=e.flip,c=e.style,l=oe(e,["className","name","themeColor","size","flip","style"]),p=o.useRef(null),d=o.useRef(null);o.useImperativeHandle(p,(function(){return{element:d.current}})),o.useImperativeHandle(t,(function(){return p.current}));var f=o.useMemo((function(){return i||ie.themeColor}),[i]),h=o.useMemo((function(){return s||ie.size}),[s]),m=o.useMemo((function(){return a||ie.flip}),[a]),v=o.useMemo((function(){return u("k-icon","k-i-"+r,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},te[h],n)}),[r,f,h,m,n]),y=$(e,p);return o.createElement("span",ne({ref:d},l,y,{className:v,style:c,role:"presentation"}))}));re.propTypes={style:ee.object,classNames:ee.string,name:ee.string,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default"};re.displayName="KendoIcon";var se=function(){return(se=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)},ae=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},ce=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.svgClassName,s=e.icon,a=e.flip,c=e.size,l=e.style,p=e.svgStyle,d=e.themeColor,f=e.viewBox,h=ae(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:m.current}}));var v=o.useMemo((function(){return s?s.name:le.icon}),[s]),y=o.useMemo((function(){return d||le.themeColor}),[d]),g=o.useMemo((function(){return c||le.size}),[c]),b=o.useMemo((function(){return a||le.flip}),[a]),k=o.useMemo((function(){return f||le.viewBox}),[f]),w=o.useMemo((function(){return u("k-svg-icon","k-color-"+y,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},te[g],r)}),[v,y,g,b,r]),O=o.useMemo((function(){return e.width&&e.height?se({width:e.width,height:e.height},l):e.width?se({width:e.width,height:e.width},l):e.height?se({width:e.height,height:e.height},l):se({},l)}),[e.width,e.height,l]);return o.createElement("span",{className:w,style:O,ref:m},o.createElement("svg",se({className:i,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:s?s.viewBox:k,dangerouslySetInnerHTML:s?{__html:s.content}:void 0},h),s?void 0:n))}));ce.propTypes={style:ee.object,classNames:ee.string,children:ee.any,icon:ee.object,themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ee.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:ee.oneOf(["default","horizontal","vertical","both"])};var le={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};ce.displayName="KendoSvgIcon";var ue,pe={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},de={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},fe={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"},he={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},me={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ve={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},ye={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},ge={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"},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)},ke=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},we=function(e){var t=o.forwardRef((function(t,n){var r=t.className,i=t.fontSize,s=t.fontWeight,a=t.textAlign,c=t.textTransform,l=t.themeColor,u=t.margin,p=ke(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=o.useRef(null),f=o.useRef(null);o.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),o.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==u){if("string"==typeof u)return[fe[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],""+me[n]+("string"==typeof o?he[o]:o)))})),e.join(" ")}}};return o.createElement(h,be({ref:f,className:["k-"+("p"===e?"paragraph":e),pe[i],de[s],ve[a],ye[c],ge[l],m(),r].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:ee.object,className:ee.string,fontSize:ee.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ee.oneOf(["light","normal","bold"]),margin:ee.oneOfType([ee.number,ee.object,ee.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ee.oneOf(["left","right","center","justify"]),textTransform:ee.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ee.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},Oe={h1:we("h1"),h2:we("h2"),h3:we("h3"),h4:we("h4"),h5:we("h5"),h6:we("h6"),p:we("p"),code:we("code"),pre:we("pre")},Ce=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),s=Math.min(o.left+o.width,n.left+n.width),a=Math.min(o.top+o.height,n.top+n.height),c=s-i,l=a-r;if(i<s&&r<a){var u=o.width*o.height,p=n.width*n.height,d=c*l;return Number((d/(u+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},xe=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},Ee=function(e){return e&&e.ownerDocument||window.document},_e=function(e){var t=xe(),n=Ee(e);return t.edge||t.safari?n.body:n.documentElement},Ie=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},De=function(e){var t=_e(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!Ie(n)&&n!==document.body;)n=n.parentNode;return n===document.body?t:n};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(ue||(ue={}));var Pe=function(){},Ne=function(e,t,n){void 0===n&&(n={});var o,r,i,s,a=n.onIsPressedChange,c=void 0===a?Pe:a,l=n.onIsScrollingChange,u=void 0===l?Pe:l,p=n.onVelocityChange,d=void 0===p?Pe:p,f=n.onOffsetChange,h=void 0===f?Pe:f,m=n.onPageOffsetChange,v=void 0===m?Pe:m,y=n.onClientOffsetChange,g=void 0===y?Pe:y,b=n.onScrollOffsetChange,k=void 0===b?Pe:b,w=n.onInitialScrollOffsetChange,O=void 0===w?Pe:w,C=t.payload,x=C.element,E=C.hint,_=e.autoScrollDirection,I=e.scrollableParent,D=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(D.type){case ue.POINTER_DOWN:if(D.type===ue.POINTER_DOWN&&(!D.originalEvent.isPrimary||0!==D.originalEvent.button))break;case ue.MOUSE_DOWN:if(D.type===ue.MOUSE_DOWN&&D.originalEvent.which&&D.originalEvent.which>1||e.ignoreMouse)break;case ue.TOUCH_START:if(D.type===ue.TOUCH_START&&1!==D.originalEvent.touches.length)break;case ue.START:var P=I||De(t.payload.element);O(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),g({x:D.clientX,y:D.clientY}),v({x:D.pageX,y:D.pageY}),h({x:D.offsetX,y:D.offsetY}),c(!0),C.onPress&&C.onPress(D);break;case ue.SCROLL:if(D.type===ue.SCROLL&&!e.pressed)break;var N=I||De(x),j=N instanceof Window?{x:N.scrollX,y:N.scrollY}:{x:N.scrollLeft,y:N.scrollTop};D.scrollX=j.x-e.initialScrollOffset.x,D.scrollY=j.y-e.initialScrollOffset.y,k({x:D.scrollX,y:D.scrollY});case ue.POINTER_MOVE:if(D.type===ue.POINTER_MOVE&&!D.originalEvent.isPrimary)break;case ue.MOUSE_MOVE:case ue.TOUCH_MOVE:if(D.type===ue.TOUCH_MOVE&&1!==D.originalEvent.touches.length)break;case ue.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==D.originalEvent.type&&x){var S=Ee(x),M=I||De(S.elementFromPoint(D.clientX,D.clientY)),T=function(e,t,n){var o={x:0,y:0};return e-n.left<50?o.x=-(50-(e-n.left)):n.right-e<50&&(o.x=50-(n.right-e)),t-n.top<50?o.y=-(50-(t-n.top)):n.bottom-t<50&&(o.y=50-(n.bottom-t)),o}(D.pageX,D.pageY,function(e,t){var n=_e(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(M,function(e){var t=Ee(e);return t&&t.defaultView||window}(x)));d({x:_&&!1===_.horizontal?0:T.x,y:_&&!1===_.vertical?0:T.y}),u(0!==T.y||0!==T.x)}!e.drag&&C.onDragStart&&C.onDragStart(D),C.onDrag&&C.onDrag(D);var R=Ce(E||x,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(E||x)}))),A=e.drops.find((function(e){return e.element===R}));A&&R&&(o=D.clientX,r=D.clientY,i=I||De(R),(s=i.getBoundingClientRect()).top<=r&&s.left<=o&&r<=s.bottom&&o<=s.right)&&R!==x?(e.drop&&e.drop.element)!==R?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D),A.onDragEnter&&A.onDragEnter(D)):A.onDragOver&&A.onDragOver(D):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D)}g({x:D.clientX,y:D.clientY}),v({x:D.pageX,y:D.pageY});break;case ue.POINTER_UP:if(D.type===ue.POINTER_UP&&!D.originalEvent.isPrimary)break;case ue.MOUSE_UP:case ue.TOUCH_END:if(D.type===ue.TOUCH_END&&1!==D.originalEvent.touches.length)break;case ue.END:c(!1),u(!1),C.onRelease&&C.onRelease(D),e.drop&&e.drop.onDrop&&e.drop.onDrop(D),C.onDragEnd&&C.onDragEnd(D);break;case ue.POINTER_CANCEL:case ue.CONTEXT_MENU:case ue.TOUCH_CANCEL:case ue.CANCEL:c(!1),u(!1),C.onDragEnd&&C.onDragEnd(D),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D)}},je=function(e,t){if(e){var n,o;e===_e(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,s=e.scrollLeft+t.x,a=o&&s>0&&s<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:o&&s<0&&(e.scrollLeft=0)}},Se=function(e,t){var n=o.useContext(e),r=n[0],i=n[1],s=o.useState(t),a=s[0],c=s[1];return[void 0!==r?r:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==r?i.apply(void 0,e):c(e[0])}]},Me=o.createContext([void 0,E]),Te=o.createContext([void 0,E]),Re=o.createContext([[],E,E]),Ae=o.createContext([[],E,E]);function Le(e,t,n){void 0===n&&(n={});var r=t.onPress,i=void 0===r?E:r,s=t.onRelease,a=void 0===s?E:s,c=t.onDragStart,l=void 0===c?E:c,u=t.onDrag,p=void 0===u?E:u,d=t.onDragEnd,f=void 0===d?E:d,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,y=void 0!==v&&v,g=n.autoScroll,b=void 0===g||g,k=n.scrollContainer,w=void 0===k?null:k,O=o.useState(!1),C=O[0],x=O[1],_=o.useState(!1),I=_[0],D=_[1],P=Se(Te)[0],N=Se(Me),j=N[0],S=N[1],M=o.useContext(Ae)[0],T=o.useContext(Re),R=T[0],A=T[1],L=T[2],K=o.useRef({x:0,y:0}),B=o.useRef(),F=o.useRef(!1),z=o.useRef(),U=o.useRef(!1),H=o.useRef({x:0,y:0}),V=o.useRef({x:0,y:0}),W=o.useRef({x:0,y:0}),q=o.useRef({x:0,y:0}),X=o.useRef({x:0,y:0}),Y=o.useRef({x:0,y:0}),G=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!y&&G,$=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=o.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=o.useCallback((function(){return w&&w.current&&w.current.element?w.current.element:w?w.current:null}),[w]),ee=o.useCallback((function(){return"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),te=o.useRef(null);o.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:ve,onDrag:ye,onDragEnd:ge,onRelease:me,data:e.current}}));var ne=o.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),oe=o.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),re=o.useCallback((function(){return{drag:j?j.current:null,drop:P?P.current:null,drags:R.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:C,ignoreMouse:F.current,scrollOffset:X.current,offset:H.current,pageOffset:V.current,initialScrollOffset:Y.current,clientOffset:W.current,initialClientOffset:q.current,velocity:K.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[j,P,R,M,C,b,ee,I]),ie=o.useCallback((function(e){x(e)}),[]),se=o.useCallback((function(e){D(e)}),[]),ae=o.useCallback((function(e){K.current=e}),[]),ce=o.useCallback((function(e){H.current=e}),[]),le=o.useCallback((function(e){W.current=e}),[]),ue=o.useCallback((function(e){V.current=e}),[]),pe=o.useCallback((function(e){q.current=e}),[]),de=o.useCallback((function(e){X.current=e}),[]),fe=o.useCallback((function(e){Y.current=e}),[]),he=o.useCallback((function(e){i(e)}),[i]),me=o.useCallback((function(e){a(e)}),[a]),ve=o.useCallback((function(t){S(te,{target:e.current,event:t}),l(t)}),[S,e,l]),ye=o.useCallback((function(e){p(e)}),[p]),ge=o.useCallback((function(t){U.current||(S(null,{target:e.current,event:t}),f(t))}),[f,S,e]),be=o.useCallback((function(e){Ne(re(),{event:e,payload:te.current},{onVelocityChange:ae,onOffsetChange:ce,onClientOffsetChange:le,onPageOffsetChange:ue,onInitialClientOffsetChange:pe,onScrollOffsetChange:de,onInitialScrollOffsetChange:fe,onIsPressedChange:ie,onIsScrollingChange:se})}),[re,ae,ce,ue,le,pe,fe,ie,de,se]),ke=o.useCallback((function(e){be(e)}),[be]),we=o.useCallback((function(e){be(e)}),[be]),Oe=o.useCallback((function(e){be(e)}),[be]),Ce=o.useCallback((function(e){be(e)}),[be]),xe=o.useCallback((function(e){be(e)}),[be]),Ee=o.useCallback((function(e){be(e)}),[be]),_e=o.useCallback((function(e){be(e)}),[be]),Ie=o.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Pe=o.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=o.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ke=o.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=oe();F.current=!0,z.current=t.setTimeout((function(){F.current=!1}),2e3)}be(e)}),[be,oe]),Be=o.useCallback((function(e){be(e)}),[be]),Fe=o.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),ze=o.useCallback((function(){return A(te),function(){L(te)}}),[L,A]);o.useEffect((function(){var e=oe();if(I){var t=Q()||De(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){je(t,{x:K.current.x,y:K.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[$,Q,oe,I]),o.useEffect(Fe,[Fe]),o.useEffect((function(){var e=oe(),t=$(),n=ne();if(Z){if(t)De(t).addEventListener("scroll",Be,{passive:!0}),t.addEventListener("pointerdown",ke,{passive:!0});C&&(n.addEventListener("pointermove",we),n.addEventListener("pointerup",Ce,!0),n.addEventListener("contextmenu",Ie),n.addEventListener("pointercancel",Oe,{passive:!0}))}else e.addEventListener("touchmove",E,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",xe,{passive:!0}),y||(t.addEventListener("touchstart",Pe,{passive:!0}),C&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Ke,{passive:!0})))),C&&(n.addEventListener("mousemove",Ee,{passive:!0}),n.addEventListener("mouseup",_e,{passive:!0}));return function(){if(t){var o=De(t);o&&o.removeEventListener("scroll",Be),t.removeEventListener("pointerdown",ke),t.removeEventListener("mousedown",xe),t.removeEventListener("touchstart",Pe),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Ke)}n.removeEventListener("pointermove",we),n.removeEventListener("pointerup",Ce,!0),n.removeEventListener("contextmenu",Ie),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",Ee),n.removeEventListener("mouseup",_e),e.removeEventListener("touchmove",E),e.clearTimeout(z.current)}}),[C,oe,$,ne,y,Z,Ie,xe,Ee,_e,Oe,ke,we,Ce,Ke,Le,Pe,Be]),o.useEffect((function(){return function(){U.current=!0}}),[]),o.useLayoutEffect(ze,[ze])}function Ke(e,t){void 0===t&&(t={onDragEnter:E,onDragOver:E,onDragLeave:E,onDrop:E});var n=t.onDragEnter,r=void 0===n?E:n,i=t.onDragOver,s=void 0===i?E:i,a=t.onDragLeave,c=void 0===a?E:a,l=t.onDrop,u=void 0===l?E:l,p=Se(Te)[1],d=o.useContext(Ae),f=d[1],h=d[2],m=o.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=o.useRef(null);o.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:y,onDragOver:g,onDragLeave:b,onDrop:k,data:e.current}}));var y=o.useCallback((function(t){p(v,{target:e.current,event:t}),r(t)}),[p,e,r]),g=o.useCallback((function(e){s(e)}),[s]),b=o.useCallback((function(t){p(null,{target:e.current,event:t}),c(t)}),[p,e,c]),k=o.useCallback((function(t){p(null,{target:e.current,event:t}),u(t)}),[p,e,u]),w=o.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);o.useLayoutEffect(w,[w])}var 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)},Fe=function(e,t,n){var r=o.useState(t||e),i=r[0],s=r[1];return[void 0!==t?t:i,o.useCallback((function(e,t){s(e),n&&n.call(void 0,Be({},t,{value:e}))}),[n,s])]},ze=function(e){var t=Fe(null,void 0),n=t[0],r=t[1],i=Fe(null,void 0),s=i[0],a=i[1],c=Q([]),l=c[0],u=c[1],p=Q([]),d=p[0],f=p[1];return o.createElement(Me.Provider,{value:[n,r]},o.createElement(Te.Provider,{value:[s,a]},o.createElement(Re.Provider,{value:[l,function(e){u({type:Z.add,item:e})},function(e){u({type:Z.remove,item:e})}]},o.createElement(Ae.Provider,{value:[d,function(e){f({type:Z.add,item:e})},function(e){f({type:Z.remove,item:e})}]},e.children))))};ze.displayName="KendoReactDragAndDrop";var Ue=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(r,(function(){return{element:i()||null}})),o.useImperativeHandle(t,(function(){return r.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var s=o.useCallback((function(t){e.onPress&&e.onPress({element:i(),target:r.current,event:t})}),[i,e.onPress]),a=o.useCallback((function(t){e.onRelease&&e.onRelease({element:i(),target:r.current,event:t})}),[i,e.onRelease]),c=o.useCallback((function(t){e.onDragStart&&e.onDragStart({element:i(),target:r.current,event:t})}),[e,i]),l=o.useCallback((function(t){e.onDrag&&e.onDrag({element:i(),target:r.current,event:t})}),[i,e.onDrag]),u=o.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:i(),target:r.current,event:t})}),[i,e.onDragEnd]);return Le(n,{onPress:s,onRelease:a,onDragStart:c,onDrag:l,onDragEnd:u},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));Ue.displayName="KendoReactDraggable";var He=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(r,(function(){return{element:i()||void 0}})),o.useImperativeHandle(t,(function(){return r.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var s=o.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:i(),target:r.current,event:t})}),[e.onDragEnter,i]),a=o.useCallback((function(t){e.onDragOver&&e.onDragOver({element:i(),target:r.current,event:t})}),[i,e.onDragOver]),c=o.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:i(),target:r.current,event:t})}),[e.onDragLeave,i]),l=o.useCallback((function(t){e.onDrop&&e.onDrop({element:i(),target:r.current,event:t})}),[e.onDrop,i]);return Ke(n,{onDragEnter:s,onDragOver:a,onDragLeave:c,onDrop:l}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));He.displayName="KendoReactDroppable"},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),l=n(14),u=n(16),p=n(17),d=n(18),f=n(19),h=n(5),m=n(2),v=n(21),y=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(v.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}return r(t,e),t.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),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(u.default,{group:o,itemTemplate:e.props.attachmentTemplate,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):"action-group"===o.type?a.createElement(l.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=y},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),l=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=l},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:1639558213,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 Me})),n.d(t,"SplitButtonItem",(function(){return C})),n.d(t,"DropDownButton",(function(){return Ke})),n.d(t,"DropDownButtonItem",(function(){return Re})),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:1639558078,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"])',l=["button"+c,".k-button-group > button"+c,".k-dropdown > .k-dropdown-wrap"+c,".k-colorpicker > .k-picker-wrap"+c],u={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=u;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,l=n.icon,u=n.iconClass,p=n.imageUrl,m=n.imageAlt,v=n.className,y=(n.onClick,f(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),g=void 0!==l||void 0!==u||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]],v),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:l,iconClass:u,imageUrl:p,imageAlt:m});return r.createElement("button",d({},k,y,{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),v=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)}}(),y=function(){return(y=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=u,b=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.validatePackage)(a),n}return v(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",y({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,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=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),l=this.props.disabled||e.props.disabled,u=y({},e.props,a?{className:a}:{},Object.keys(c).length?{style:c}:{},void 0!==l?{disabled:l}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),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)}}(),C=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}},E=n(10),_=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),D="bottom",P="center",N="middle",j="left",S="right",M="top";function T(e){return e.ownerDocument||e.document||e}var R=function(e){return T(e).defaultView},A=function(e){return T(e).documentElement},L=0;function K(){if(!L&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),L=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return L}function B(e){var t=R(e),n=A(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=K()),o}var F=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||A(e)},z=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}},U=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function H(e){var t=A(e),n=R(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var V=function(e){return e===(e.ownerDocument||{}).body?H(e):{x:e.scrollLeft,y:e.scrollTop}};var W=function(e,t){var n=R(e),o=n.getComputedStyle(e),r=z(e),i=t||F(e),s=e.ownerDocument,a=i!==s.body&&i!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var l=n.getComputedStyle(i);(c=z(i)).top+=parseInt(l.borderTopWidth,10),c.left+=parseInt(l.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},q=function(e,t){return e?V(e):function(e){var t=F(e);return t?V(t):{x:0,y:0}}(t)};var X="fit",Y="flip",G=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},Z=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===P||s===N)&&!(i===P||i===N)){var l=i===M||i===j;t<0&&l?t+(a=n+o+c)+n>r&&(a=0):t>=0&&!l&&(t+n>r&&(a+=-(o+n+c)),t+a<0&&(a=0))}return a},$=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},J=function(e,t){for(var n,o,r=U(e),i=t;i&&(n=$(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var Q,ee,te,ne=(Q=function(e){if(!oe())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},te=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return te||(ee=Q.apply(void 0,e),te=!0),ee}),oe=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},re={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:ne,canUseDOM:oe},ie=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],se=function(){return re.canUseDOM()?window:null},ae=/auto|scroll/,ce=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},le=function(e){if(!e||!re.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},ue=function(){return re.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},pe={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var s=n.horizontal,a=n.vertical,c=r.horizontal,l=r.vertical,u=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return a===D&&(d+=t.height),a!==P&&a!==N||(d+=Math.round(t.height/2)),l===D&&(d-=o.height,p*=-1),l!==P&&l!==N||(d-=Math.round(o.height/2),p*=-1),s===S&&(f+=t.width),s!==P&&s!==N||(f+=Math.round(t.width/2)),c===S&&(f-=o.width,u*=-1),c!==P&&c!==N||(f-=Math.round(o.width/2),u*=-1),{top:d+p,left:f+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=B(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},getFontStyles:function(e){var t=se();if(!t||!e)return[];var n=t.getComputedStyle(e);return ie.map((function(e){return{key:e,value:n[e]}}))},getWindow:se,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?z(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var s=z(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,s},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?F(t):null,r=W(e,o),i=r.top,s=r.left,a=r.height,c=r.width,l=q(o,e),u=l.x,p=l.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:s+u*f,height:a,width:c}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,l=o.left,u=o.height,p=o.width,d=s.height,f=s.width,h=a.horizontal||0,m=a.vertical||0,v=0,y=0,g=i.horizontal===Y,b=i.vertical===Y;i.vertical===X&&(y+=G(c,u,d)),i.horizontal===X&&(v+=G(l,p,f)),b&&(y+=Z({margin:m,offset:c,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),g&&(v+=Z({margin:h,offset:l,size:p,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var k=g&&0!==v,w=b&&0!==y;return{flipped:k||w,flip:{horizontal:k,vertical:w},offset:{left:v,top:y}}},scrollPosition:H,scrollableParents:function(e){var t=[];if(!re.canUseDOM())return t;for(var n=e.parentElement;n;)(ae.test(ce(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:le,stackingElementOffset:function(e){var t=le(e);return t?z(t):null},stackingElementScroll:function(e){var t=le(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=le(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(le(e))},windowViewPort:B,zoomLevel:ue,isZoomed:function(){return ue()>1},zIndex:function(e,t){if(!e||!re.canUseDOM())return null;var n=J(e,t);if(!n)return null;var o=[e].concat(U(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}},de=function(e,t){return e?{x:0,y:0}:pe.scrollPosition(t)},fe=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,s=e.offset,a=e.positionMode,c=e.scale||1,l="fixed"===a||!pe.hasOffsetParent(n)?function(e,t,n,o){var r=de(e,t),i=re.eitherRect(pe.offset(e),n),s=2*o,a=pe.stackingElementScroll(t);1!==o&&a&&(a.x/=s,a.y/=s);var c=pe.stackingElementOffset(t);return 1!==o&&c&&(c.left/=s,c.top/=s),pe.removeScroll(pe.addScroll(re.removeStackingOffset(re.scaleRect(i,o),c),a),r)}(t,n,s,c):function(e,t,n,o){var r=re.eitherRect(pe.position(e,t,o),n);return re.scaleRect(r,o)}(t,n,s,c),u=re.scaleRect(pe.offset(n),c);return pe.align({anchorAlign:o,anchorRect:l,elementAlign:r,elementRect:u,margin:i})},he=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,s=e.collisions,a=e.margin,c=e.scale||1,l=pe.offsetAtPoint(o,n),u=re.scaleRect(l,c),p=re.scaleRect(pe.offset(t),c),d=re.eitherRect(p,n),f=e.viewPort||pe.windowViewPort(o);f.width=f.width/c,f.height=f.height/c;var h=pe.restrictToView({anchorAlign:r,anchorRect:d,collisions:s,elementAlign:i,elementRect:u,margin:a,viewPort:f}),m=pe.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},me="fit",ve="flip",ye={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1639558045,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 Ce=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=t.margin,l=t.scale,u=t.positionMode;e.style.top="0px",e.style.left="-10000px";var p=fe({anchor:a,element:e,elementAlign:r,anchorAlign:o,offset:s,margin:c,positionMode:u,scale:l}),d=he({anchor:a,anchorAlign:o,collisions:i,element:e,currentLocation:p,elementAlign:r,margin:n.props.margin});e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._flipped=d.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),r()};e.addEventListener("transitionend",a);var c=e.ownerDocument;if(c){var l=c.defaultView;if(l){var u=function(){_(e),e.classList.add(i),l.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(s)}))};I?l.requestAnimationFrame(u):u()}}}(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})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},Object(s.validatePackage)(ye),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 l=(new Date).getTime();a||!1!==n.leading||(a=l);var u=t-(l-a);return r=this,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),a=l,s=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,u)),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,l=e.popupClass,u=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:l,style:u,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(u,t.props.style)&&o===t.props.anchor&&l===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,l=t.positionMode,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 p=Object.assign({},{position:l},this.props.style||{}),d=this.state.current===we.hiding;if((a||d)&&u){var f=this.getCurrentZIndex(),h=r.createElement(s.ZIndexContext.Provider,{value:f},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:be({zIndex:f},p)},r.createElement("div",{className:Object(s.classNames)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return E.createPortal(h,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=pe.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([me,ve]),vertical:i.oneOf([me,ve])}),anchorAlign:i.shape({horizontal:i.oneOf([j,P,S]),vertical:i.oneOf([M,P,D])}),popupAlign:i.shape({horizontal:i.oneOf([j,P,S]),vertical:i.oneOf([M,P,D])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number},t.defaultProps={collision:{horizontal:me,vertical:ve},anchorAlign:{horizontal:j,vertical:D},popupAlign:{horizontal:j,vertical:M},offset:Oe,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=s.ZIndexContext,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)},Ee=r.createContext((function(e){return e})),_e=r.forwardRef((function(e,t){var n=r.useContext(Ee).call(void 0,e);return r.createElement(Ce,xe({ref:t},n))}));function Ie(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function De(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var Pe,Ne,je=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)}}(),Se=u,Me=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 je(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===C})).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",[Se[""+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(_e,{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||De(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)}}(),Re=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),Ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)},Ke=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=Le({},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 Ae(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===Re})).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(_e,{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||De(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),Be=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)}}(),Fe=function(){return(Fe=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,Fe({target:o},i,{nativeEvent:e}))}}},Object(s.validatePackage)(a),o}return Be(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||l},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"}(Pe||(Pe={})),function(e){e.toggle="toggle",e.remove="remove"}(Ne||(Ne={}));var Xe;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(Xe||(Xe={}));var Ye;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(Ye||(Ye={}));var Ge=function(){return(Ge=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ze=r.createContext([null,function(e){}]),$e=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 Pe.single:switch(t.type){case Ne.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 Ne.remove:return t.payload===e?null:e;default:return e}case Pe.multiple:switch(t.type){case Ne.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 Ne.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 Pe.none:return null;default:return e}}(t.state||i,Ge({},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 Xe.next:return n===t.items.length-1?e:t.items[n+1];case Xe.prev:return 0===n?e:t.items[n-1];case Xe.current:return t.payload;case Xe.reset:return null;default:return e}}(t.payload,Ge({},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,Ge({},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]),l=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 u=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:l,state:e.value},u),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),v=m[0],y=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||v}),[e.data,v]),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}),C=O[0],x=O[1],E=Object(s.useMouse)(e,n);return r.createElement(Ze.Provider,{value:[k,f]},r.createElement($e.Provider,{value:[C,x]},r.createElement(Je.Provider,{value:[b,y]},r.createElement("div",Ge({ref:o},E,{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"===l,"k-selection-multiple":"multiple"===l,"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:Object(s.getter)(e.valueField||rt.valueField)(t),text:Object(s.getter)(e.textField||rt.textField)(t),value:Object(s.getter)(e.valueField||rt.valueField)(t)})}))))))})),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(Ze),l=c[0],u=c[1],p=r.useContext($e),d=p[0],f=p[1],h=r.useContext(Je)[1],m=r.useMemo((function(){return e.selected||(Array.isArray(l)?l.some((function(t){return t===e.value})):l===e.value)}),[e.selected,e.value,l]),v=r.useMemo((function(){return d===e.value}),[e.value,d]),y=r.useMemo((function(){return e.look||ct.look}),[e.look]);r.useEffect((function(){v&&o.current&&o.current.focus()}),[v]);var g=r.useCallback((function(t){u({type:Ne.toggle,payload:e.value,event:t})}),[e.onClick,u,e.value]),b=r.useCallback((function(t){e.removable&&(h({type:Ye.remove,payload:e.value,event:t}),f({type:Xe.reset,payload:e.value,event:t}),u({type:Ne.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,h,f,u]),k=r.useCallback((function(t){switch(t.keyCode){case s.Keys.left:f({type:Xe.prev,payload:e.value,event:t});break;case s.Keys.right:f({type:Xe.next,payload:e.value,event:t});break;case s.Keys.enter:u({type:Ne.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,u,b]),w=r.useCallback((function(t){f({payload:e.value,type:Xe.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]),C=Object(s.useMouse)(e,n,{onClick:g});return r.createElement("div",it({},C,{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":v,"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"===y||"outlined"===y,"k-chip-solid":"solid"===y||"filled"===y},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 lt=function(){return(lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ut=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,l=e.id,u=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,y=ut(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),g=r.useRef(null),b=r.useCallback((function(){g.current&&g.current.focus()}),[]),k=r.useCallback((function(){return{element:g.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){v&&void 0!==d&&!o&&v(e,d)}),[v,d]),O=r.useMemo((function(){return Object(s.classNames)("k-fab-item",{"k-state-focus":u,"k-state-disabled":o},n)}),[n,o,u]),C=h;return r.createElement("li",lt({ref:g,id:l,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},y),C?r.createElement(C,{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"]},vt=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},yt=function(){return(yt=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,l=e.disabled,u=e.icon,p=e.iconClass,d=e.id,f=e.items,h=e.item,m=e.text,v=e.positionMode,y=void 0===v?kt.positionMode:v,g=e.shape,b=void 0===g?kt.shape:g,k=e.size,w=void 0===k?kt.size:k,O=e.style,C=e.themeColor,x=void 0===C?kt.themeColor:C,E=e.tabIndex,_=e.accessKey,I=e.popupSettings,D=void 0===I?{}:I,P=e.onClick,N=e.onItemClick,j=e.onFocus,S=e.onBlur,M=e.onKeyDown,T=e.onOpen,R=e.onClose,A=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"]),L=r.useRef(null),K=r.useRef(null),B=r.useRef(null),F=r.useRef(null),z=r.useCallback((function(){K.current&&K.current.focus()}),[]),U=r.useCallback((function(){return{element:K.current,focus:z}}),[z]);r.useImperativeHandle(L,U),r.useImperativeHandle(t,(function(){return L.current}));var H=r.useState(!1),V=H[0],W=H[1],q=r.useState(!1),X=q[0],Y=q[1],G=r.useState(-1),Z=G[0],$=G[1],J=r.useMemo((function(){return Object(s.guid)()}),[]),Q=Object(s.useDir)(K,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",l=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(vt(t),"middle"===i?l: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"))}}(K,o,i,ee)}),[K,o,i,ee]),r.useEffect((function(){X&&K&&K.current&&K.current.focus()}),[X,K]);var ne=r.useCallback((function(e,t){f&&Object(s.dispatchEvent)(t?T:R,e,U(),void 0)}),[T,R,f]),oe=r.useCallback((function(e){e.target&&!l&&(!f&&P?Object(s.dispatchEvent)(P,e,U(),void 0):(W(!V),Y(!0),$(V?-1:0),ne(e,!V)))}),[W,Y,$,P,ne,V,f,l]),re=r.useCallback((function(e){Y(!0),$(V?0:-1),j&&Object(s.dispatchEvent)(j,e,U(),void 0)}),[j,Y,$]),ie=r.useCallback((function(e){Y(!1),W(!1),$(-1),Object(s.dispatchEvent)(S,e,U(),void 0),V&&ne(e,!1)}),[S,Y,W,$,ne]),se=r.useCallback((function(e){e.preventDefault()}),[]),ae=r.useCallback((function(e,t){f&&(f[t].disabled||Object(s.dispatchEvent)(N,e,U(),{itemProps:f[t],itemIndex:t}))}),[N]),ce=r.useCallback((function(e,t){e.target&&f&&($(t),W(!1),ae(e,t),ne(e,!1))}),[$,W,ae,ne]),le=r.useCallback((function(e){document.activeElement===K.current&&e.preventDefault()}),[K,document.activeElement]),ue=r.useCallback((function(e){var t=Z,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),$(V?-1:0);break;case s.Keys.esc:e.preventDefault(),W(!1),$(-1);break;case s.Keys.home:e.preventDefault(),$(0);break;case s.Keys.end:e.preventDefault(),$(n);break;case s.Keys.down:case s.Keys.right:e.preventDefault(),t<n&&!r&&$(t+1),t>0&&r&&$(t-1);break;case s.Keys.up:case s.Keys.left:e.preventDefault(),t>0&&!r&&$(t-1),t<n&&r&&$(t+1)}Object(s.dispatchEvent)(M,e,U(),void 0)}),[M,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":l,"k-pos-absolute":"absolute"===y,"k-pos-fixed":"fixed"===y,"k-state-focus":X},"k-"+o.vertical+"-"+o.horizontal,c)}),[x,w,b,l,y,o,X,c]),de=f&&f.map((function(e,t){return r.createElement(pt,yt({},e,{key:t,index:t,id:te+"-"+t,disabled:l||e.disabled,focused:Z===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:le}));var n,i})),fe=u&&!m,he=(K.current?K.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",yt({ref:K,id:d||J,role:f?"menubutton":"button",type:"button","aria-disabled":l,"aria-expanded":f?V:void 0,"aria-haspopup":!!f,"aria-label":(m||"")+" floatingactionbutton","aria-owns":f?te:void 0,"aria-activedescendant":Z>=0&&f?te+"-"+Z:void 0,tabIndex:Object(s.getTabIndex)(E,l),accessKey:_,dir:Q,disabled:l,className:pe,style:O,onClick:oe,onMouseDown:se,onFocus:re,onBlur:ie,onKeyDown:ue},A),u?r.createElement("span",{role:"presentation",className:Object(s.classNames)("k-fab-icon k-icon k-i-"+u)}):p?r.createElement("span",{role:"presentation",className:p}):null,m&&r.createElement("span",{className:"k-fab-text"},m)),r.createElement(_e,{ref:F,anchor:K.current,show:V,animate:D.animate,popupClass:Object(s.classNames)("k-popup-transparent k-fab-popup",D.popupClass),anchorAlign:D.anchorAlign||ft(o,ee),popupAlign:D.popupAlign||ht(o,ee),style:{boxShadow:"none"}},r.createElement("ul",{ref:B,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: 1639493504,
8
+ publishDate: 1639558213,
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: 1639493504,
10
+ publishDate: 1639558213,
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-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;o={},r.m=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:1639493504,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}],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-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;o={},r.m=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:1639558213,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}],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.14.0-dev.202112141518",
4
+ "version": "4.14.0-dev.202112150919",
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.14.0-dev.202112141518"
43
+ "@progress/kendo-react-common": "4.14.0-dev.202112150919"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@progress/kendo-licensing": "^1.0.1",
47
- "@progress/kendo-react-buttons": "4.14.0-dev.202112141518",
48
- "@progress/kendo-react-dateinputs": "4.14.0-dev.202112141518",
49
- "@progress/kendo-react-intl": "4.14.0-dev.202112141518",
47
+ "@progress/kendo-react-buttons": "4.14.0-dev.202112150919",
48
+ "@progress/kendo-react-dateinputs": "4.14.0-dev.202112150919",
49
+ "@progress/kendo-react-intl": "4.14.0-dev.202112150919",
50
50
  "adaptivecards": "^1.0.0",
51
51
  "botframework-directlinejs": "^0.9.15"
52
52
  },