@progress/kendo-react-conversational-ui 4.14.0-dev.202201131238 → 4.14.0-dev.202201131239
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=25)}([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 o.a})),n.d(t,"useZIndexContext",(function(){return o.b})),n.d(t,"BrowserSupportService",(function(){return i})),n.d(t,"canUseDOM",(function(){return a.a})),n.d(t,"canUseRef",(function(){return s})),n.d(t,"classNames",(function(){return c.a})),n.d(t,"cloneDate",(function(){return l})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),n.d(t,"focusFirstFocusableChild",(function(){return m})),n.d(t,"FormComponent",(function(){return v})),n.d(t,"getTabIndex",(function(){return g.a})),n.d(t,"getter",(function(){return y.a})),n.d(t,"guid",(function(){return b.a})),n.d(t,"Keys",(function(){return k.a})),n.d(t,"noop",(function(){return w})),n.d(t,"getScrollbarWidth",(function(){return O})),n.d(t,"setScrollbarWidth",(function(){return C})),n.d(t,"setter",(function(){return I})),n.d(t,"mapTree",(function(){return j})),n.d(t,"mapTreeItem",(function(){return N})),n.d(t,"extendDataItem",(function(){return S})),n.d(t,"getItemPath",(function(){return M})),n.d(t,"validatePackage",(function(){return R.a})),n.d(t,"hasRelativeStackingContext",(function(){return T})),n.d(t,"dispatchEvent",(function(){return A.a})),n.d(t,"AsyncFocusBlur",(function(){return K})),n.d(t,"createPropsContext",(function(){return U})),n.d(t,"withPropsContext",(function(){return H})),n.d(t,"useDir",(function(){return V.a})),n.d(t,"useAsyncFocusBlur",(function(){return L})),n.d(t,"useRtl",(function(){return W})),n.d(t,"useMouse",(function(){return X.a})),n.d(t,"useCustomComponent",(function(){return Y})),n.d(t,"usePropsContext",(function(){return F})),n.d(t,"COLLECTION_ACTION",(function(){return q})),n.d(t,"useCollection",(function(){return G})),n.d(t,"Icon",(function(){return ee})),n.d(t,"SvgIcon",(function(){return re})),n.d(t,"Typography",(function(){return ge})),n.d(t,"DragAndDrop",(function(){return xe})),n.d(t,"Draggable",(function(){return Le})),n.d(t,"Droppable",(function(){return Ke})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return Be}));var o=n(11),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=n(3),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},c=n(4),u=n(0),l=function(e){return e?new Date(e.getTime()):null};function p(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]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return l(e);if(u.isValidElement(e))return u.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var m=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},v=function(){},g=n(12),y=n(13),b=n(14),k=n(15),w=function(){},O=function(){return!(!a.a||!document.body)&&(new i).scrollbarWidth},C=function(){if(!a.a||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},x=n(5),E={undefined:function(e){return e}},_=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(e){if(E[e])return E[e];var t=Object(x.a)(e);return E[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||_(t[a+1],o);r[t[i]]=n},E[e]}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function P(e,t,n){var o;return n?D({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var j=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=P(t,n).map((function(t){return e(t,n,o)}));return o(P(t,n,r))}return o(t)}(e,t,n)})).slice()},N=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,c=t[t.length-1],u=o(s[c]);s.splice(c,1,u)},S=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},M=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},R=n(16),T=function(e){if(!a.a)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},A=n(17);function L(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=u.useRef(!1),a=u.useRef(0),s=u.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),c=u.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),l=u.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,s,n,r]);return u.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:c,onBlur:l}}var B=function(){return(B=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)},K=function(e){var t=e.children,n=L({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,B({},n))},F=function(e,t){return u.useContext(e)(t)},z=function(){return(z=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)},U=function(){return u.createContext((function(e){return e}))},H=function(e,t){return u.forwardRef((function(n,o){var r=F(e,n);return u.createElement(t,z({},r,{ref:o}))}))},V=n(18);function W(e,t,n){var o=u.useState(t),r=o[0],i=o[1];return u.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,X=n(19),Y=function(e){return u.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var G=function(e){void 0===e&&(e=[]);var t=u.useRef(e),n=u.useCallback((function(e){switch(e.type){case q.add:t.current.push(e.item);break;case q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Z=n(1),$={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},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)},Q=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},ee=u.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,s=e.style,l=Q(e,["className","name","themeColor","size","flip","style"]),p=u.useRef(null),f=u.useRef(null);u.useImperativeHandle(p,(function(){return{element:f.current}})),u.useImperativeHandle(t,(function(){return p.current}));var d=u.useMemo((function(){return r||te.themeColor}),[r]),h=u.useMemo((function(){return i||te.size}),[i]),m=u.useMemo((function(){return a||te.flip}),[a]),v=u.useMemo((function(){return Object(c.a)("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},$[h],n)}),[o,d,h,m,n]),g=Object(X.a)(e,p);return u.createElement("span",J({ref:f},l,g,{className:v,style:s,role:"presentation"}))}));ee.propTypes={style:Z.object,classNames:Z.string,name:Z.string,themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:Z.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:Z.oneOf(["default","horizontal","vertical","both"])};var te={size:"default",themeColor:"inherit",flip:"default"};ee.displayName="KendoIcon";var 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=u.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,s=e.size,l=e.style,p=e.svgStyle,f=e.themeColor,d=e.viewBox,h=oe(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=u.useRef(null);u.useImperativeHandle(t,(function(){return{element:m.current}}));var v=u.useMemo((function(){return i?i.name:ie.icon}),[i]),g=u.useMemo((function(){return f||ie.themeColor}),[f]),y=u.useMemo((function(){return s||ie.size}),[s]),b=u.useMemo((function(){return a||ie.flip}),[a]),k=u.useMemo((function(){return d||ie.viewBox}),[d]),w=u.useMemo((function(){return Object(c.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},$[y],o)}),[v,g,y,b,o]),O=u.useMemo((function(){return e.width&&e.height?ne({width:e.width,height:e.height},l):e.width?ne({width:e.width,height:e.width},l):e.height?ne({width:e.height,height:e.height},l):ne({},l)}),[e.width,e.height,l]);return u.createElement("span",{className:w,style:O,ref:m},u.createElement("svg",ne({className:r,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:k,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));re.propTypes={style:Z.object,classNames:Z.string,children:Z.any,icon:Z.object,themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:Z.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:Z.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};re.displayName="KendoSvgIcon";var ae={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},se={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ce={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"},ue={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},le={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},pe={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},fe={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},de={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"},he=function(){return(he=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)},me=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},ve=function(e){var t=u.forwardRef((function(t,n){var o=t.className,r=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,c=t.themeColor,l=t.margin,p=me(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),f=u.useRef(null),d=u.useRef(null);u.useImperativeHandle(f,(function(){return{element:d.current,props:t}})),u.useImperativeHandle(n,(function(){return f.current}));var h=e,m=function(){if(void 0!==l){if("string"==typeof l)return[ce[l]];if("number"==typeof l&&l>=0&&l<=24)return["k-m-"+l];if("object"==typeof l){var e=[];return Object.keys(l).forEach((function(t){var n,o;null!==l[t]&&void 0!==l[t]&&e.push((n=t,o=l[t],""+le[n]+("string"==typeof o?ue[o]:o)))})),e.join(" ")}}};return u.createElement(h,he({ref:d,className:["k-"+("p"===e?"paragraph":e),ae[r],se[i],pe[a],fe[s],de[c],m(),o].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:Z.object,className:Z.string,fontSize:Z.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:Z.oneOf(["light","normal","bold"]),margin:Z.oneOfType([Z.number,Z.object,Z.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:Z.oneOf(["left","right","center","justify"]),textTransform:Z.oneOf(["lowercase","uppercase","capitalize"]),themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},ge={h1:ve("h1"),h2:ve("h2"),h3:ve("h3"),h4:ve("h4"),h5:ve("h5"),h6:ve("h6"),p:ve("p"),code:ve("code"),pre:ve("pre")},ye=function(){return(ye=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},be=function(e,t,n){var o=u.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,u.useCallback((function(e,t){i(e),n&&n.call(void 0,ye({},t,{value:e}))}),[n,i])]},ke=u.createContext([void 0,w]),we=u.createContext([void 0,w]),Oe=u.createContext([[],w,w]),Ce=u.createContext([[],w,w]),xe=function(e){var t=be(null,void 0),n=t[0],o=t[1],r=be(null,void 0),i=r[0],a=r[1],s=G([]),c=s[0],l=s[1],p=G([]),f=p[0],d=p[1];return u.createElement(ke.Provider,{value:[n,o]},u.createElement(we.Provider,{value:[i,a]},u.createElement(Oe.Provider,{value:[c,function(e){l({type:q.add,item:e})},function(e){l({type:q.remove,item:e})}]},u.createElement(Ce.Provider,{value:[f,function(e){d({type:q.add,item:e})},function(e){d({type:q.remove,item:e})}]},e.children))))};xe.displayName="KendoReactDragAndDrop";var Ee,_e=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),c=a-i,u=s-r;if(i<a&&r<s){var l=o.width*o.height,p=n.width*n.height,f=c*u;return Number((f/(l+p-f)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},Ie=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},De=function(e){return e&&e.ownerDocument||window.document},Pe=function(e){var t=Ie(),n=De(e);return t.edge||t.safari?n.body:n.documentElement},je=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},Ne=function(e){var t=Pe(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!je(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"}(Ee||(Ee={}));var Se=function(){},Me=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s=n.onIsPressedChange,c=void 0===s?Se:s,u=n.onIsScrollingChange,l=void 0===u?Se:u,p=n.onVelocityChange,f=void 0===p?Se:p,d=n.onOffsetChange,h=void 0===d?Se:d,m=n.onPageOffsetChange,v=void 0===m?Se:m,g=n.onClientOffsetChange,y=void 0===g?Se:g,b=n.onScrollOffsetChange,k=void 0===b?Se:b,w=n.onInitialScrollOffsetChange,O=void 0===w?Se: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 Ee.POINTER_DOWN:if(D.type===Ee.POINTER_DOWN&&(!D.originalEvent.isPrimary||0!==D.originalEvent.button))break;case Ee.MOUSE_DOWN:if(D.type===Ee.MOUSE_DOWN&&D.originalEvent.which&&D.originalEvent.which>1||e.ignoreMouse)break;case Ee.TOUCH_START:if(D.type===Ee.TOUCH_START&&1!==D.originalEvent.touches.length)break;case Ee.START:var P=I||Ne(t.payload.element);O(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),y({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 Ee.SCROLL:if(D.type===Ee.SCROLL&&!e.pressed)break;var j=I||Ne(x),N=j instanceof Window?{x:j.scrollX,y:j.scrollY}:{x:j.scrollLeft,y:j.scrollTop};D.scrollX=N.x-e.initialScrollOffset.x,D.scrollY=N.y-e.initialScrollOffset.y,k({x:D.scrollX,y:D.scrollY});case Ee.POINTER_MOVE:if(D.type===Ee.POINTER_MOVE&&!D.originalEvent.isPrimary)break;case Ee.MOUSE_MOVE:case Ee.TOUCH_MOVE:if(D.type===Ee.TOUCH_MOVE&&1!==D.originalEvent.touches.length)break;case Ee.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==D.originalEvent.type&&x){var S=De(x),M=I||Ne(S.elementFromPoint(D.clientX,D.clientY)),R=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=Pe(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=De(e);return t&&t.defaultView||window}(x)));f({x:_&&!1===_.horizontal?0:R.x,y:_&&!1===_.vertical?0:R.y}),l(0!==R.y||0!==R.x)}!e.drag&&C.onDragStart&&C.onDragStart(D),C.onDrag&&C.onDrag(D);var T=_e(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===T}));A&&T&&(o=D.clientX,r=D.clientY,i=I||Ne(T),(a=i.getBoundingClientRect()).top<=r&&a.left<=o&&r<=a.bottom&&o<=a.right)&&T!==x?(e.drop&&e.drop.element)!==T?(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)}y({x:D.clientX,y:D.clientY}),v({x:D.pageX,y:D.pageY});break;case Ee.POINTER_UP:if(D.type===Ee.POINTER_UP&&!D.originalEvent.isPrimary)break;case Ee.MOUSE_UP:case Ee.TOUCH_END:if(D.type===Ee.TOUCH_END&&1!==D.originalEvent.touches.length)break;case Ee.END:c(!1),l(!1),C.onRelease&&C.onRelease(D),e.drop&&e.drop.onDrop&&e.drop.onDrop(D),C.onDragEnd&&C.onDragEnd(D);break;case Ee.POINTER_CANCEL:case Ee.CONTEXT_MENU:case Ee.TOUCH_CANCEL:case Ee.CANCEL:c(!1),l(!1),C.onDragEnd&&C.onDragEnd(D),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D)}},Re=function(e,t){if(e){var n,o;e===Pe(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,s=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Te=function(e,t){var n=u.useContext(e),o=n[0],r=n[1],i=u.useState(t),a=i[0],s=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):s(e[0])}]};function Ae(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?w:o,i=t.onRelease,a=void 0===i?w:i,s=t.onDragStart,c=void 0===s?w:s,l=t.onDrag,p=void 0===l?w:l,f=t.onDragEnd,d=void 0===f?w:f,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,k=n.scrollContainer,O=void 0===k?null:k,C=u.useState(!1),x=C[0],E=C[1],_=u.useState(!1),I=_[0],D=_[1],P=Te(we)[0],j=Te(ke),N=j[0],S=j[1],M=u.useContext(Ce)[0],R=u.useContext(Oe),T=R[0],A=R[1],L=R[2],B=u.useRef({x:0,y:0}),K=u.useRef(),F=u.useRef(!1),z=u.useRef(),U=u.useRef(!1),H=u.useRef({x:0,y:0}),V=u.useRef({x:0,y:0}),W=u.useRef({x:0,y:0}),q=u.useRef({x:0,y:0}),X=u.useRef({x:0,y:0}),Y=u.useRef({x:0,y:0}),G=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&G,$=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=u.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=u.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),ee=u.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=u.useRef(null);u.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:ve,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=u.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),oe=u.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),re=u.useCallback((function(){return{drag:N?N.current:null,drop:P?P.current:null,drags:T.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:X.current,offset:H.current,pageOffset:V.current,initialScrollOffset:Y.current,clientOffset:W.current,initialClientOffset:q.current,velocity:B.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[N,P,T,M,x,b,ee,I]),ie=u.useCallback((function(e){E(e)}),[]),ae=u.useCallback((function(e){D(e)}),[]),se=u.useCallback((function(e){B.current=e}),[]),ce=u.useCallback((function(e){H.current=e}),[]),ue=u.useCallback((function(e){W.current=e}),[]),le=u.useCallback((function(e){V.current=e}),[]),pe=u.useCallback((function(e){q.current=e}),[]),fe=u.useCallback((function(e){X.current=e}),[]),de=u.useCallback((function(e){Y.current=e}),[]),he=u.useCallback((function(e){r(e)}),[r]),me=u.useCallback((function(e){a(e)}),[a]),ve=u.useCallback((function(t){S(te,{target:e.current,event:t}),c(t)}),[S,e,c]),ge=u.useCallback((function(e){p(e)}),[p]),ye=u.useCallback((function(t){U.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),be=u.useCallback((function(e){Me(re(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:le,onInitialClientOffsetChange:pe,onScrollOffsetChange:fe,onInitialScrollOffsetChange:de,onIsPressedChange:ie,onIsScrollingChange:ae})}),[re,se,ce,le,ue,pe,de,ie,fe,ae]),xe=u.useCallback((function(e){be(e)}),[be]),Ee=u.useCallback((function(e){be(e)}),[be]),_e=u.useCallback((function(e){be(e)}),[be]),Ie=u.useCallback((function(e){be(e)}),[be]),De=u.useCallback((function(e){be(e)}),[be]),Pe=u.useCallback((function(e){be(e)}),[be]),je=u.useCallback((function(e){be(e)}),[be]),Se=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ae=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Be=u.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]),Ke=u.useCallback((function(e){be(e)}),[be]),Fe=u.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),ze=u.useCallback((function(){return A(te),function(){L(te)}}),[L,A]);u.useEffect((function(){var e=oe();if(I){var t=Q()||Ne(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(K.current),K.current=e.setInterval((function(){Re(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(K.current)}}),[$,Q,oe,I]),u.useEffect(Fe,[Fe]),u.useEffect((function(){var e=oe(),t=$(),n=ne();if(Z){if(t)Ne(t).addEventListener("scroll",Ke,{passive:!0}),t.addEventListener("pointerdown",xe,{passive:!0});x&&(n.addEventListener("pointermove",Ee),n.addEventListener("pointerup",Ie,!0),n.addEventListener("contextmenu",Se),n.addEventListener("pointercancel",_e,{passive:!0}))}else e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",De,{passive:!0}),g||(t.addEventListener("touchstart",Ae,{passive:!0}),x&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",je,{passive:!0}));return function(){if(t){var o=Ne(t);o&&o.removeEventListener("scroll",Ke),t.removeEventListener("pointerdown",xe),t.removeEventListener("mousedown",De),t.removeEventListener("touchstart",Ae),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Be)}n.removeEventListener("pointermove",Ee),n.removeEventListener("pointerup",Ie,!0),n.removeEventListener("contextmenu",Se),n.removeEventListener("pointercancel",_e),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",je),e.removeEventListener("touchmove",w),e.clearTimeout(z.current)}}),[x,oe,$,ne,g,Z,Se,De,Pe,je,_e,xe,Ee,Ie,Be,Le,Ae,Ke]),u.useEffect((function(){return function(){U.current=!0}}),[]),u.useLayoutEffect(ze,[ze])}var Le=u.forwardRef((function(e,t){var n=u.useRef(null),o=u.useRef(null),r=u.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);u.useImperativeHandle(o,(function(){return{element:r()||null}})),u.useImperativeHandle(t,(function(){return o.current})),u.useImperativeHandle(e.childRef,(function(){return n.current}));var i=u.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=u.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),s=u.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),c=u.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),l=u.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return Ae(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:c,onDragEnd:l},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:w,onDragOver:w,onDragLeave:w,onDrop:w});var n=t.onDragEnter,o=void 0===n?w:n,r=t.onDragOver,i=void 0===r?w:r,a=t.onDragLeave,s=void 0===a?w:a,c=t.onDrop,l=void 0===c?w:c,p=Te(we)[1],f=u.useContext(Ce),d=f[1],h=f[2],m=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=u.useRef(null);u.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:k,data:e.current}}));var g=u.useCallback((function(t){p(v,{target:e.current,event:t}),o(t)}),[p,e,o]),y=u.useCallback((function(e){i(e)}),[i]),b=u.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),k=u.useCallback((function(t){p(null,{target:e.current,event:t}),l(t)}),[p,e,l]),O=u.useCallback((function(){return d(v),function(){h(v)}}),[h,d]);u.useLayoutEffect(O,[O])}Le.displayName="KendoReactDraggable";var Ke=u.forwardRef((function(e,t){var n=u.useRef(null),o=u.useRef(null),r=u.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);u.useImperativeHandle(o,(function(){return{element:r()||void 0}})),u.useImperativeHandle(t,(function(){return o.current})),u.useImperativeHandle(e.childRef,(function(){return n.current}));var i=u.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=u.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=u.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),c=u.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Be(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:c}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));Ke.displayName="KendoReactDroppable"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=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)?o.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(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},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),a=n(2),s=n(20),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},s.provideIntlService(this).formatDate(this.props.item.timestamp,this.props.dateFormat))),e},t.prototype.getStatusView=function(){var e=null;return this.props.item.status&&(e=i.createElement("span",{className:"k-message-status"},this.props.item.status)),e},t.prototype.getClassNames=function(){return 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")},t.defaultProps={dateFormat:"g",tabIndex:-1},t}(n(6).FocusableUponSelection);t.ChatMessage=c,s.registerForIntl(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(5),r={};function i(e){if(r[e])return r[e];var t=Object(o.a)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(7);function r(e){if(void 0!==o)o.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)}}},function(e,t,n){"use strict";function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},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),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selectedItemIndex:null},t.onRequestContainerSelection=function(){return t.props.onRequestSelection(t.props.group.selectionIndex)},t.onKeyDown=function(e){var n,o,r=null;t.isKeyboardNavigationLeftRight?(n=a.Keys.left,o=a.Keys.right):(n=a.Keys.up,o=a.Keys.down),e.keyCode===n?r=t.navigate(!1):e.keyCode===o&&(r=t.navigate(!0)),null!==r&&(e.preventDefault(),e.stopPropagation())},t}return r(t,e),t.getDerivedStateFromProps=function(e,t){return e.selected||null===t.selectedItemIndex?e.selected&&null===t.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},t.prototype.navigate=function(e,t){void 0===t&&(t=0);var n=null,o=this.state.selectedItemIndex;return e?null===o?n=t:o<this.getLastSelectionIndex()&&(n=o+1):null===o?n=0:o>0&&(n=o-1),null!==n&&this.setState({selectedItemIndex:n}),n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!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=s},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),a=n(2),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},t.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},t.prototype.getClassNames=function(){return 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})},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(6).FocusableUponSelection);t.default=s},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(10);t.ChatMessage=r.ChatMessage,o(n(26)),o(n(36))},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),a=n(1),s=n(0),c=n(27),u=n(28),l=n(30),p=n(31),f=n(32),d=n(33),h=n(10),m=n(2),v=n(35),g=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),s.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},s.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},s.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),s.createElement(d.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},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?s.createElement(p.default,{item:o,key:r}):"message-group"===o.type?s.createElement(f.default,{group:o,itemTemplate:e.props.messageTemplate,attachmentTemplate:e.props.attachmentTemplate,user:e.props.user,selectedItemIndex:e.state.selectedItemIndex,onRequestSelection:e.onSelectionRequested,isLastGroup:r===n,key:r,message:e.props.message||t.defaultProps.message}):"attachment-group"===o.type?s.createElement(l.default,{group:o,itemTemplate:e.props.attachmentTemplate,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):"action-group"===o.type?s.createElement(u.default,{group:o,onActionExecute:e.onActionExecute,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):void 0}))},t.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},t.prototype.getViewItemsFromMsgs=function(e){return e.length>0?c.convertMsgsToViewItems(e):[]},t.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(s.Component);t.Chat=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),r=function(e){return e[e.length-1]},i=function(e){return function(t,n,i){var a=i===e-1;return function(e,t){var n,o,i=t.timestamp,a=r(e);if(i&&(!a||(n=i,o=a.timestamp,n&&o&&(o.getDate()!==n.getDate()||o.getMonth()!==n.getMonth()||o.getFullYear()!==n.getFullYear())))){var s={type:"date-marker",timestamp:i,trackBy:i.getTime()};e.push(s)}}(t,n),function(e,t,n){var i=r(e),a=void 0;t.typing&&!n||(i&&"message-group"===i.type&&(a=i.messages),a&&o.isAuthor(t.author,r(a))?a.push(t):e.push({type:"message-group",messages:[t],author:t.author,timestamp:t.timestamp,trackBy:t}))}(t,n,a),n.attachments&&n.attachments.length>1&&t.push({type:"attachment-group",attachments:n.attachments,attachmentLayout:n.attachmentLayout,timestamp:n.timestamp,trackBy:n}),n.suggestedActions&&a&&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),a=n(2),s=n(29),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(s.default,{item:n,onActionExecute:e.props.onActionExecute,selected:o===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&o===e.state.selectedItemIndex,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,key:o})})))},t.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},t}(n(22).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),a=n(2),s=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},t.prototype.getClassNames=function(){return s.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(6).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),a=n(2),s=n(23),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(s.default,{item:t,template:e.props.itemTemplate,selected:n===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&n===e.state.selectedItemIndex,isFirstItemInGroup:0===n,isLastItemInGroup:n===e.getLastItemIndex(),onClick:function(){return e.onAttachmentClick(n)},key:n})})));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),n,this.getRightScrollBtn()):n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!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 a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(n(22).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),a=n(20),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props.item;return i.createElement("div",{className:"k-timestamp"},a.provideIntlService(this).formatDate(e.timestamp,"D"))},t}(i.Component);t.default=s,a.registerForIntl(s)},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),a=n(2),s=n(23),c=n(21),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},t.prototype.getMsgGroupClassNames=function(){return a.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(s.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-"+o})),r}))},t}(i.Component);t.default=u},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(0),s=n(34),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=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}}),o=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:t.buttonIconPath}))),r=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:n,sendButton:o,toolbarButton:r}):a.createElement(a.Fragment,null,n,this.props.toolbar&&r,o)),this.props.showToolbar&&a.createElement(s.default,null,this.props.toolbar))},t.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},t.prototype.getClassNames=function(){return 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}(a.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),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},t}(i.Component);t.default=a},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:1642076102,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),a=n(37),s=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onBtnClick=function(e,n){s.dispatchEvent(t.props.onActionExecute,n,t,{action:e})},t}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},t.prototype.getActionsView=function(){var e=this;return this.props.actions.map((function(t,n){return i.createElement("span",{className:"k-card-action",key:n},i.createElement(a.Button,{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 We})),n.d(t,"ToolbarItem",(function(){return Xe})),n.d(t,"ToolbarSeparator",(function(){return Ge})),n.d(t,"ToolbarSpacer",(function(){return Ze})),n.d(t,"Button",(function(){return v})),n.d(t,"ButtonGroup",(function(){return k})),n.d(t,"SplitButton",(function(){return Le})),n.d(t,"SplitButtonItem",(function(){return I})),n.d(t,"DropDownButton",(function(){return Ue})),n.d(t,"DropDownButtonItem",(function(){return Ke})),n.d(t,"Chip",(function(){return vt})),n.d(t,"ChipList",(function(){return ft})),n.d(t,"FloatingActionButton",(function(){return Pt})),n.d(t,"FloatingActionButtonItem",(function(){return wt}));var o,r=n(0),i=n(1),a=n(4),s=n(16),c={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642075982,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',l=["button"+u,".k-button-group > button"+u,".k-dropdown > .k-dropdown-wrap"+u,".k-colorpicker > .k-picker-wrap"+u],p={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"},f=(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)},h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},m=p;var v=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.a)(c),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return f(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,s=n.primary,c=n.togglable,u=n.icon,l=n.iconClass,p=n.imageUrl,f=n.imageAlt,v=n.className,g=(n.onClick,h(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),y=void 0!==u||void 0!==l||void 0!==p,b=void 0!==o,k={className:Object(a.a)([m.button],((e={})[m[""+i]]="default"!==i,e[m.primary]=s,e[m["state-disabled"]]=this.props.disabled,e[m["state-selected"]]=this.state.selected,e[m["button-icon"]]=!b&&y,e[m["button-icontext"]]=b&&y,e),[m[""+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 s=Object(a.a)("k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:o}):null}({icon:u,iconClass:l,imageUrl:p,imageAlt:f});return r.createElement("button",d({},k,g,{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),g=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)},b=p,k=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.a)(c),n}return g(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=Object(a.a)([b["button-group"]],((e={})[b["state-disabled"]]=this.props.disabled,e[b["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,s=Object(a.a)(e.props.className,((i={})[b["group-start"]]=o?n:0===t,i[b["group-end"]]=o?0===t:n,i)),c=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,l=y({},e.props,s?{className:s}:{},Object.keys(c).length?{style:c}:{},void 0!==u?{disabled:u}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,l,e.props.children):r.cloneElement(e,l)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),w=n(14),O=n(15),C=n(17),x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)}}(),E=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 x(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,o=e.id,i=e.onDown,s=e.render,c=r.createElement("li",{id:o,className:Object(a.a)("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!==s?s.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),a=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&r.createElement(i,{item:t,itemIndex:o})||[s&&r.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&r.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),a]},t}(r.Component),_=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)}}(),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(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),D=function(e,t,n,o){if(n)return e;switch(t){case O.a.enter:case O.a.space:case O.a.esc:return-1;case O.a.up:case O.a.left:return Math.max(0,e-1);case O.a.down:case O.a.right:return Math.min(o-1,e+1);default:return e}},P=n(24),j=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")},N="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),S=n(3),M=n(11),R="bottom",T="center",A="middle",L="left",B="right",K="top";function F(e){return e.ownerDocument||e.document||e}var z=function(e){return F(e).defaultView},U=function(e){return F(e).documentElement},H=0;function V(){if(!H&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),H=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return H}function W(e){var t=z(e),n=U(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=V()),o}var q=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||U(e)},X=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}},Y=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function G(e){var t=U(e),n=z(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var Z=function(e){return e===(e.ownerDocument||{}).body?G(e):{x:e.scrollLeft,y:e.scrollTop}};var $=function(e,t){var n=z(e),o=n.getComputedStyle(e),r=X(e),i=t||q(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,c={top:0,left:0};if("fixed"!==o.position&&s){var u=n.getComputedStyle(i);(c=X(i)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},J=function(e,t){return e?Z(e):function(e){var t=q(e);return t?Z(t):{x:0,y:0}}(t)};var Q="fit",ee="flip",te=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},ne=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,c=2*e.margin;if(a!==i&&!(a===T||a===A)&&!(i===T||i===A)){var u=i===K||i===L;t<0&&u?t+(s=n+o+c)+n>r&&(s=0):t>=0&&!u&&(t+n>r&&(s+=-(o+n+c)),t+s<0&&(s=0))}return s},oe=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},re=function(e,t){for(var n,o,r=Y(e),i=t;i&&(n=oe(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var ie,ae,se,ce=(ie=function(e){if(!ue())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},se=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return se||(ae=ie.apply(void 0,e),se=!0),ae}),ue=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},le={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:ce,canUseDOM:ue},pe=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],fe=function(){return le.canUseDOM()?window:null},de=/auto|scroll/,he=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)},me=function(e){if(!e||!le.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},ve=function(){return le.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},ge={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,c=r.horizontal,u=r.vertical,l=i.horizontal||0,p=i.vertical||0,f=t.top,d=t.left;return s===R&&(f+=t.height),s!==T&&s!==A||(f+=Math.round(t.height/2)),u===R&&(f-=o.height,p*=-1),u!==T&&u!==A||(f-=Math.round(o.height/2),p*=-1),a===B&&(d+=t.width),a!==T&&a!==A||(d+=Math.round(t.width/2)),c===B&&(d-=o.width,l*=-1),c!==T&&c!==A||(d-=Math.round(o.width/2),l*=-1),{top:f+p,left:d+l}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=W(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=fe();if(!t||!e)return[];var n=t.getComputedStyle(e);return pe.map((function(e){return{key:e,value:n[e]}}))},getWindow:fe,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?X(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=X(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?q(t):null,r=$(e,o),i=r.top,a=r.left,s=r.height,c=r.width,u=J(o,e),l=u.x,p=u.y,f=e.ownerDocument,d=o===f.body||o===f.documentElement?1:n;return{top:i+p*d,left:a+l*d,height:s,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,a=e.viewPort,s=e.margin;void 0===s&&(s={});var c=o.top,u=o.left,l=o.height,p=o.width,f=a.height,d=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.vertical===Q,b=i.horizontal===Q,k=i.vertical===ee,w=i.horizontal===ee;y&&(g+=te(c,l,f)),b&&(v+=te(u,p,d)),k&&(g+=ne({margin:m,offset:c,size:l,anchorSize:t.height,viewPortSize:f,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=ne({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var O=k&&0!==g,C=w&&0!==v,x=y&&0!==g,E=b&&0!==v;return{flipped:C||O,fitted:x||E,flip:{horizontal:C,vertical:O},fit:{horizontal:E,vertical:x},offset:{left:v,top:g}}},scrollPosition:G,scrollableParents:function(e){var t=[];if(!le.canUseDOM())return t;for(var n=e.parentElement;n;)(de.test(he(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:me,stackingElementOffset:function(e){var t=me(e);return t?X(t):null},stackingElementScroll:function(e){var t=me(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=me(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(me(e))},windowViewPort:W,zoomLevel:ve,isZoomed:function(){return ve()>1},zIndex:function(e,t){if(!e||!le.canUseDOM())return null;var n=re(e,t);if(!n)return null;var o=[e].concat(Y(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}},ye=function(e,t){return e?{x:0,y:0}:ge.scrollPosition(t)},be=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,c=e.scale||1,u="fixed"===s||!ge.hasOffsetParent(n)?function(e,t,n,o){var r=ye(e,t),i=le.eitherRect(ge.offset(e),n),a=2*o,s=ge.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var c=ge.stackingElementOffset(t);return 1!==o&&c&&(c.left/=a,c.top/=a),ge.removeScroll(ge.addScroll(le.removeStackingOffset(le.scaleRect(i,o),c),s),r)}(t,n,a,c):function(e,t,n,o){var r=le.eitherRect(ge.position(e,t,o),n);return le.scaleRect(r,o)}(t,n,a,c),l=le.scaleRect(ge.offset(n),c);return ge.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:l,margin:i})},ke=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,c=e.scale||1,u=ge.offsetAtPoint(o,n),l=le.scaleRect(u,c),p=le.scaleRect(ge.offset(t),c),f=le.eitherRect(p,n),d=e.viewPort||ge.windowViewPort(o);d.width=d.width/c,d.height=d.height/c;var h=ge.restrictToView({anchorAlign:r,anchorRect:f,collisions:a,elementAlign:i,elementRect:l,margin:s,viewPort:d}),m=ge.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},we="fit",Oe="flip",Ce={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642075951,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"},xe=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)}}(),Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function _e(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 Ie,De={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(Ie||(Ie={}));var Pe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:Ie.hidden,previous:Ie.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:Ie.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,c=t.margin,u=t.scale,l=t.positionMode;e.style.top="0px",e.style.left="-10000px";var p=be({anchor:s,element:e,elementAlign:r,anchorAlign:o,offset:a,margin:c,positionMode:l,scale:u}),f=ke({anchor:s,anchorAlign:o,collisions:i,element:e,currentLocation:p,elementAlign:r,margin:n.props.margin});e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",n._flipped=f.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){!function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(){e.removeEventListener("transitionend",s),j(e),r()};e.addEventListener("transitionend",s);var c=e.ownerDocument;if(c){var u=c.defaultView;if(u){var l=function(){j(e),e.classList.add(i),u.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};N?u.requestAnimationFrame(l):l()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,o)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===Ie.hiding&&n.state.previous===Ie.shown&&n.setState({current:Ie.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.a)(Ce),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var c=function(){s=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,l)),a}}(n.reposition.bind(n),1e3/60),n}return xe(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,c=e.className,u=e.popupClass,l=e.style,p=e.offset,f=e.contentKey,d=Ee({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:c,popupClass:u,style:l,offset:p,contentKey:f}});return e.show?t.current===Ie.hidden||t.current===Ie.hiding?Ee({},d,{current:Ie.showing,previous:t.current}):t.current===Ie.showing?Ee({},d,{current:Ie.shown,previous:t.current}):t.current!==Ie.shown||_e(p,t.props.offset)&&_e(r,t.props.anchorAlign)&&_e(i,t.props.appendTo)&&_e(a,t.props.collision)&&_e(s,t.props.popupAlign)&&_e(l,t.props.style)&&o===t.props.anchor&&u===t.props.popupClass&&c===t.props.className?d:Ee({},d,{current:Ie.reposition,previous:t.current}):t.current===Ie.hiding||t.current===Ie.hidden?Ee({},d,{current:Ie.hidden,previous:t.current}):Ee({},d,{current:Ie.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===Ie.showing&&this._popup?this.show(this._popup):this.state.current===Ie.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===Ie.reposition&&this.state.previous===Ie.shown?this.setState({current:Ie.shown,previous:this.state.current}):this.state.current===Ie.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===Ie.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,s=t.show,c=t.id,u=t.positionMode,l=this.props.appendTo?this.props.appendTo:S.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===Ie.reposition&&this.state.previous===Ie.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:u},this.props.style||{}),f=this.state.current===Ie.hiding;if((s||f)&&l){var d=this.getCurrentZIndex(),h=r.createElement(M.a.Provider,{value:d},r.createElement("div",{className:Object(a.a)("k-animation-container","k-animation-container-relative",o),id:c,ref:function(t){return e._popup=t},style:Ee({zIndex:d},p)},r.createElement("div",{className:Object(a.a)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return P.createPortal(h,l)}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=ge.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:Ie.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([we,Oe]),vertical:i.oneOf([we,Oe])}),anchorAlign:i.shape({horizontal:i.oneOf([L,T,B]),vertical:i.oneOf([K,T,R])}),popupAlign:i.shape({horizontal:i.oneOf([L,T,B]),vertical:i.oneOf([K,T,R])}),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:we,vertical:Oe},anchorAlign:{horizontal:L,vertical:R},popupAlign:{horizontal:L,vertical:K},offset:De,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=M.a,t}(r.Component),je=function(){return(je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ne=r.createContext((function(e){return e})),Se=r.forwardRef((function(e,t){var n=r.useContext(Ne).call(void 0,e);return r.createElement(Pe,je({ref:t},n))}));function Me(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Re(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var Te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=p,Le=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(w.a)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==O.a.down?n.opened&&e.keyCode===O.a.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===O.a.enter||e.keyCode===O.a.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===O.a.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=D(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===O.a.up||e.keyCode===O.a.down||e.keyCode===O.a.left||e.keyCode===O.a.right;!e.altKey&&i&&e.preventDefault()}o&&n.setState(o)}},n.onFocus=function(e){Object(C.a)(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(C.a)(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(C.a)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.a)(c),n}return Te(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!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===I})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,s=o.disabled,c=this.state.focusedIndex;return r.createElement("div",{className:Object(a.a)("k-widget","k-split-button","k-button-group",[Ae[""+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(v,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||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":s,"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(v,{icon:"arrow-s",disabled:s||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(C.a)(this.props.onButtonClick,e,this,void 0):Object(C.a)(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(Se,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.a)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Me(e),popupAlign:n.popupAlign||Re(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,a){return r.createElement(E,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,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),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)}}(),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(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),Fe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ze=function(){return(ze=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)},Ue=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(w.a)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==O.a.down?n.opened&&e.keyCode===O.a.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=ze({},n.state);if(e.keyCode===O.a.enter||e.keyCode===O.a.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===O.a.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=D(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===O.a.up||e.keyCode===O.a.down||e.keyCode===O.a.left||e.keyCode===O.a.right;!e.altKey&&i&&e.preventDefault()}n.setState(o)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(C.a)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(C.a)(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(C.a)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.a)(c),n}return Fe(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,s=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===Ke})).map((function(e){return e.props})),r.createElement("div",{className:Object(a.a)("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(v,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||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":s,"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(C.a)(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(Se,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.a)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Me(e),popupAlign:n.popupAlign||Re(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,a){return r.createElement(E,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,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),He=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)}}(),Ve=function(){return(Ve=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)},We=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===O.a.left||e.keyCode===O.a.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===O.a.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,Ve({target:o},i,{nativeEvent:e}))}}},Object(s.a)(c),o}return He(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(a.a)("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 a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(r.Component),qe=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)}}(),Xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return qe(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),Ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)}}(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ye(t,e),t.prototype.render=function(){return r.createElement(Xe,{className:"k-separator"})},t}(r.PureComponent),Ze=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(a.a)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));Ze.propTypes={className:i.string};var $e,Je,Qe=n(18),et=n(19),tt=n(12),nt=n(13);!function(e){e.single="single",e.multiple="multiple",e.none="none"}($e||($e={})),function(e){e.toggle="toggle",e.remove="remove"}(Je||(Je={}));var ot;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(ot||(ot={}));var rt;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(rt||(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)},at=r.createContext([null,function(e){}]),st=r.createContext([null,function(e){}]),ct=r.createContext([null,function(e){}]),ut=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case $e.single:switch(t.type){case Je.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 Je.remove:return t.payload===e?null:e;default:return e}case $e.multiple:switch(t.type){case Je.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 Je.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 $e.none:return null;default:return e}}(t.state||i,it({},e,t));n&&n(o,e.event),a(o)}]},lt=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 ot.next:return n===t.items.length-1?e:t.items[n+1];case ot.prev:return 0===n?e:t.items[n-1];case ot.current:return t.payload;case ot.reset:return null;default:return e}}(t.payload,it({},t,e));o(n)}]},pt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.type){case rt.add:break;case rt.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case rt.reorder:break;default:return e}}(t.state||i,it({},e,t));n&&n(o,e.event),a(o)}]},ft=r.forwardRef((function(e,t){Object(s.a)(c);var n=r.useRef(null),o=r.useRef(null),i=Object(Qe.a)(o,e.dir),u=r.useMemo((function(){return e.chip||vt}),[e.chip,vt]),l=r.useMemo((function(){return e.selection||ht.selection}),[e.selection,ht.selection]);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var p=r.useCallback((function(t,o){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onChange]),f=ut(e.value||e.defaultValue,{selection:l,state:e.value},p),d=f[0],h=f[1],m=r.useCallback((function(t,o){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onDataChange]),v=pt(e.data||e.defaultData||ht.defaultData,{state:e.data,valueField:e.valueField||ht.valueField},m),g=v[0],y=v[1],b=r.useCallback((function(t,n){return t.push(n[e.valueField||ht.valueField]),t}),[e.valueField,ht.valueField]),k=r.useMemo((function(){return e.data||g}),[e.data,g]),w=r.useMemo((function(){return e.value||d}),[e.value,d]),O=r.useMemo((function(){return k.reduce(b,[])}),[k,b]),C=lt({items:O}),x=C[0],E=C[1],_=Object(et.a)(e,n);return r.createElement(at.Provider,{value:[w,h]},r.createElement(st.Provider,{value:[x,E]},r.createElement(ct.Provider,{value:[k,y]},r.createElement("div",it({ref:o},_,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(tt.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("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}),k.map((function(t){return r.createElement(u,{role:"option",dataItem:t,key:Object(nt.a)(e.valueField||ht.valueField)(t),text:Object(nt.a)(e.textField||ht.textField)(t),value:Object(nt.a)(e.valueField||ht.valueField)(t)})}))))))})),dt={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},ht={chip:vt,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ft.displayName="KendoReactChipList",ft.propTypes=dt,ft.defaultProps=ht;var mt=function(){return(mt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},vt=r.forwardRef((function(e,t){Object(s.a)(c);var n=r.useRef(null),o=r.useRef(null),i=Object(Qe.a)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var u=r.useContext(at),l=u[0],p=u[1],f=r.useContext(st),d=f[0],h=f[1],m=r.useContext(ct)[1],v=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]),g=r.useMemo((function(){return d===e.value}),[e.value,d]),y=r.useMemo((function(){return e.look||yt.look}),[e.look]);r.useEffect((function(){g&&o.current&&o.current.focus()}),[g]);var b=r.useCallback((function(t){p({type:Je.toggle,payload:e.value,event:t})}),[e.onClick,p,e.value]),k=r.useCallback((function(t){e.removable&&(m({type:rt.remove,payload:e.value,event:t}),h({type:ot.reset,payload:e.value,event:t}),p({type:Je.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,m,h,p]),w=r.useCallback((function(t){switch(t.keyCode){case O.a.left:h({type:ot.prev,payload:e.value,event:t});break;case O.a.right:h({type:ot.next,payload:e.value,event:t});break;case O.a.enter:p({type:Je.toggle,payload:e.value,event:t});break;case O.a.delete:k(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,h,p,k]),C=r.useCallback((function(t){h({payload:e.value,type:ot.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,h]),x=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),E=Object(et.a)(e,n,{onClick:b});return r.createElement("div",mt({},E,{role:e.role,id:e.value,style:e.style,ref:o,dir:i,tabIndex:Object(tt.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":v,"k-state-focus":g,"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":v,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:C,onBlur:x,onKeyDown:w}),v&&r.createElement("span",{className:"k-selected-icon-wrapper"},r.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||yt.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:k},r.createElement("span",{className:"k-icon "+e.removeIcon})))})),gt={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},yt={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};vt.displayName="KendoReactChip",vt.propTypes=gt,vt.defaultProps=yt;var bt=function(){return(bt=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)},kt=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},wt=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,c=e.style,u=e.id,l=e.focused,p=e.tabIndex,f=e.index,d=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=kt(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=r.useRef(null),b=r.useCallback((function(){y.current&&y.current.focus()}),[]),k=r.useCallback((function(){return{element:y.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){v&&void 0!==f&&!o&&v(e,f)}),[v,f]),O=r.useMemo((function(){return Object(a.a)("k-fab-item",{"k-state-focus":l,"k-state-disabled":o},n)}),[n,o,l]),C=h;return r.createElement("li",bt({ref:y,id:u,className:O,style:c,role:"menuitem",tabIndex:Object(tt.a)(p,o),"aria-disabled":o,"aria-label":(i||"")+" floatingactionbutton item",onClick:w,onMouseDown:m,onPointerDown:m},g),C?r.createElement(C,{itemIndex:f,item:d}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),s&&r.createElement("span",{className:Object(a.a)("k-fab-item-icon k-icon k-i-"+s)})))}));wt.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},wt.displayName="KendoFloatingActionButtonItem";var Ot=function(e){return"number"==typeof e?e+"px":e},Ct=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},xt=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Et=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},_t=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},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)},Dt=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){Object(s.a)(c);var n=e.align,o=void 0===n?jt.align:n,i=e.alignOffset,u=e.className,l=e.disabled,p=e.icon,f=e.iconClass,d=e.id,h=e.items,m=e.item,v=e.text,g=e.positionMode,y=void 0===g?jt.positionMode:g,b=e.shape,k=void 0===b?jt.shape:b,x=e.size,E=void 0===x?jt.size:x,_=e.style,I=e.themeColor,D=void 0===I?jt.themeColor:I,P=e.tabIndex,j=e.accessKey,N=e.popupSettings,S=void 0===N?{}:N,M=e.onClick,R=e.onItemClick,T=e.onFocus,A=e.onBlur,L=e.onKeyDown,B=e.onOpen,K=e.onClose,F=Dt(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"]),z=r.useRef(null),U=r.useRef(null),H=r.useRef(null),V=r.useRef(null),W=r.useCallback((function(){U.current&&U.current.focus()}),[]),q=r.useCallback((function(){return{element:U.current,focus:W}}),[W]);r.useImperativeHandle(z,q),r.useImperativeHandle(t,(function(){return z.current}));var X=r.useState(!1),Y=X[0],G=X[1],Z=r.useState(!1),$=Z[0],J=Z[1],Q=r.useState(-1),ee=Q[0],te=Q[1],ne=r.useMemo((function(){return Object(w.a)()}),[]),oe=Object(Qe.a)(U,e.dir),re="rtl"===oe,ie=r.useMemo((function(){return Object(w.a)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?Ot(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+Ot(n.x)+")":"50%",c=n&&void 0!==n.y?Ot(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+Ot(n.y)+")":"50%";e.current.style.setProperty(Et(t,o),"center"===r?s:a),e.current.style.setProperty(_t(t),"middle"===i?u:c),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(U,o,i,re)}),[U,o,i,re]),r.useEffect((function(){$&&U&&U.current&&U.current.focus()}),[$,U]);var ae=r.useCallback((function(e,t){h&&Object(C.a)(t?B:K,e,q(),void 0)}),[B,K,h]),se=r.useCallback((function(e){e.target&&!l&&(!h&&M?Object(C.a)(M,e,q(),void 0):(G(!Y),J(!0),te(Y?-1:0),ae(e,!Y)))}),[G,J,te,M,ae,Y,h,l]),ce=r.useCallback((function(e){J(!0),te(Y?0:-1),T&&Object(C.a)(T,e,q(),void 0)}),[T,J,te]),ue=r.useCallback((function(e){J(!1),G(!1),te(-1),Object(C.a)(A,e,q(),void 0),Y&&ae(e,!1)}),[A,J,G,te,ae]),le=r.useCallback((function(e){e.preventDefault()}),[]),pe=r.useCallback((function(e,t){h&&(h[t].disabled||Object(C.a)(R,e,q(),{itemProps:h[t],itemIndex:t}))}),[R]),fe=r.useCallback((function(e,t){e.target&&h&&(te(t),G(!1),pe(e,t),ae(e,!1))}),[te,G,pe,ae]),de=r.useCallback((function(e){document.activeElement===U.current&&e.preventDefault()}),[U,document.activeElement]),he=r.useCallback((function(e){var t=ee,n=h?h.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case O.a.enter:case O.a.space:t>=0&&pe(e,t),e.preventDefault(),G(!Y),te(Y?-1:0);break;case O.a.esc:e.preventDefault(),G(!1),te(-1);break;case O.a.home:e.preventDefault(),te(0);break;case O.a.end:e.preventDefault(),te(n);break;case O.a.down:case O.a.right:e.preventDefault(),t<n&&!r&&te(t+1),t>0&&r&&te(t-1);break;case O.a.up:case O.a.left:e.preventDefault(),t>0&&!r&&te(t-1),t<n&&r&&te(t+1)}Object(C.a)(L,e,q(),void 0)}),[L,ee,te,re,G]),me=r.useMemo((function(){return Object(a.a)("k-fab","k-fab-"+D,"k-fab-"+k,{"k-fab-sm":"small"===E,"k-fab-md":"medium"===E,"k-fab-lg":"large"===E,"k-state-disabled":l,"k-pos-absolute":"absolute"===y,"k-pos-fixed":"fixed"===y,"k-state-focus":$},"k-"+o.vertical+"-"+o.horizontal,u)}),[D,E,k,l,y,o,$,u]),ve=h&&h.map((function(e,t){return r.createElement(wt,It({},e,{key:t,index:t,id:ie+"-"+t,disabled:l||e.disabled,focused:ee===t,dataItem:e,item:m,className:Object(a.a)(e.className,(n=oe||"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:fe,onDown:de}));var n,i})),ge=p&&!v,ye=(U.current?U.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",It({ref:U,id:d||ne,role:h?"menubutton":"button",type:"button","aria-disabled":l,"aria-expanded":h?Y:void 0,"aria-haspopup":!!h,"aria-label":(v||"")+" floatingactionbutton","aria-owns":h?ie:void 0,"aria-activedescendant":ee>=0&&h?ie+"-"+ee:void 0,tabIndex:Object(tt.a)(P,l),accessKey:j,dir:oe,disabled:l,className:me,style:_,onClick:se,onMouseDown:le,onFocus:ce,onBlur:ue,onKeyDown:he},F),p?r.createElement("span",{role:"presentation",className:Object(a.a)("k-fab-icon k-icon k-i-"+p)}):f?r.createElement("span",{role:"presentation",className:f}):null,v&&r.createElement("span",{className:"k-fab-text"},v)),r.createElement(Se,{ref:V,anchor:U.current,show:Y,animate:S.animate,popupClass:Object(a.a)("k-popup-transparent k-fab-popup",S.popupClass),anchorAlign:S.anchorAlign||Ct(o,re),popupAlign:S.popupAlign||xt(o,re),style:{boxShadow:"none"}},r.createElement("ul",{ref:H,role:"menu","aria-labelledby":d,id:ie,className:Object(a.a)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:ge?ye:void 0,paddingRight:ge?ye:void 0}},ve)))}));Pt.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 jt={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};Pt.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=25)}([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 o.a})),n.d(t,"useZIndexContext",(function(){return o.b})),n.d(t,"BrowserSupportService",(function(){return i})),n.d(t,"canUseDOM",(function(){return a.a})),n.d(t,"canUseRef",(function(){return s})),n.d(t,"classNames",(function(){return c.a})),n.d(t,"cloneDate",(function(){return l})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return f})),n.d(t,"cloneValue",(function(){return d})),n.d(t,"cloneArray",(function(){return h})),n.d(t,"focusFirstFocusableChild",(function(){return m})),n.d(t,"FormComponent",(function(){return v})),n.d(t,"getTabIndex",(function(){return g.a})),n.d(t,"getter",(function(){return y.a})),n.d(t,"guid",(function(){return b.a})),n.d(t,"Keys",(function(){return k.a})),n.d(t,"noop",(function(){return w})),n.d(t,"getScrollbarWidth",(function(){return O})),n.d(t,"setScrollbarWidth",(function(){return C})),n.d(t,"setter",(function(){return I})),n.d(t,"mapTree",(function(){return j})),n.d(t,"mapTreeItem",(function(){return N})),n.d(t,"extendDataItem",(function(){return S})),n.d(t,"getItemPath",(function(){return M})),n.d(t,"validatePackage",(function(){return R.a})),n.d(t,"hasRelativeStackingContext",(function(){return T})),n.d(t,"dispatchEvent",(function(){return A.a})),n.d(t,"AsyncFocusBlur",(function(){return K})),n.d(t,"createPropsContext",(function(){return U})),n.d(t,"withPropsContext",(function(){return H})),n.d(t,"useDir",(function(){return V.a})),n.d(t,"useAsyncFocusBlur",(function(){return L})),n.d(t,"useRtl",(function(){return W})),n.d(t,"useMouse",(function(){return X.a})),n.d(t,"useCustomComponent",(function(){return Y})),n.d(t,"usePropsContext",(function(){return F})),n.d(t,"COLLECTION_ACTION",(function(){return q})),n.d(t,"useCollection",(function(){return G})),n.d(t,"Icon",(function(){return ee})),n.d(t,"SvgIcon",(function(){return re})),n.d(t,"Typography",(function(){return ge})),n.d(t,"DragAndDrop",(function(){return xe})),n.d(t,"Draggable",(function(){return Le})),n.d(t,"Droppable",(function(){return Ke})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return Be}));var o=n(11),r=function(){return"undefined"!=typeof document?document:{}},i=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=r();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),a=n(3),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},c=n(4),u=n(0),l=function(e){return e?new Date(e.getTime()):null};function p(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]=d(o,t[n])}}function d(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return l(e);if(u.isValidElement(e))return u.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return f(e,n),n}return e}function h(e){return e.map((function(e){return d(e,void 0)}))}var m=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},v=function(){},g=n(12),y=n(13),b=n(14),k=n(15),w=function(){},O=function(){return!(!a.a||!document.body)&&(new i).scrollbarWidth},C=function(){if(!a.a||!document.body)return!1;var e=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",e+"px")},x=n(5),E={undefined:function(e){return e}},_=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function I(e){if(E[e])return E[e];var t=Object(x.a)(e);return E[e]=function(e,n,o){for(var r=e,i=t.length-1,a=0;a<i&&r;a++)r=r[t[a]]=r[t[a]]||_(t[a+1],o);r[t[i]]=n},E[e]}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function P(e,t,n){var o;return n?D({},e,((o={})[t]=n.length?n.slice():void 0,o)):e&&e[t]?e[t].slice():[]}var j=function(e,t,n){return e.map((function(e){return function e(t,n,o){if(t[n]){var r=P(t,n).map((function(t){return e(t,n,o)}));return o(P(t,n,r))}return o(t)}(e,t,n)})).slice()},N=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,c=t[t.length-1],u=o(s[c]);s.splice(c,1,u)},S=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},M=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},R=n(16),T=function(e){if(!a.a)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},A=n(17);function L(e){var t=e.onFocus,n=e.onBlur,o=e.onSyncFocus,r=e.onSyncBlur,i=u.useRef(!1),a=u.useRef(0),s=u.useCallback((function(e){clearTimeout(a.current),a.current=window.setTimeout((function(){return e()}))}),[a]),c=u.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(a.current),o&&o.call.apply(o,[void 0].concat(e)),i.current||(i.current=!0,t&&t.call.apply(t,[void 0].concat(e)))}),[i,t,o]),l=u.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r.call.apply(r,[void 0].concat(e)),s((function(){i.current&&n&&(i.current=!1,n.call.apply(n,[void 0].concat(e)))}))}),[i,s,n,r]);return u.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:c,onBlur:l}}var B=function(){return(B=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)},K=function(e){var t=e.children,n=L({onFocus:e.onFocus,onBlur:e.onBlur,onSyncFocus:e.onSyncFocus,onSyncBlur:e.onSyncBlur});return t.call(void 0,B({},n))},F=function(e,t){return u.useContext(e)(t)},z=function(){return(z=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)},U=function(){return u.createContext((function(e){return e}))},H=function(e,t){return u.forwardRef((function(n,o){var r=F(e,n);return u.createElement(t,z({},r,{ref:o}))}))},V=n(18);function W(e,t,n){var o=u.useState(t),r=o[0],i=o[1];return u.useEffect((function(){if(!r&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r}var q,X=n(19),Y=function(e){return u.isValidElement(e)?[e.type,e.props]:[e,{}]};!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(q||(q={}));var G=function(e){void 0===e&&(e=[]);var t=u.useRef(e),n=u.useCallback((function(e){switch(e.type){case q.add:t.current.push(e.item);break;case q.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},Z=n(1),$={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},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)},Q=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},ee=u.forwardRef((function(e,t){var n=e.className,o=e.name,r=e.themeColor,i=e.size,a=e.flip,s=e.style,l=Q(e,["className","name","themeColor","size","flip","style"]),p=u.useRef(null),f=u.useRef(null);u.useImperativeHandle(p,(function(){return{element:f.current}})),u.useImperativeHandle(t,(function(){return p.current}));var d=u.useMemo((function(){return r||te.themeColor}),[r]),h=u.useMemo((function(){return i||te.size}),[i]),m=u.useMemo((function(){return a||te.flip}),[a]),v=u.useMemo((function(){return Object(c.a)("k-icon","k-i-"+o,"k-color-"+d,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},$[h],n)}),[o,d,h,m,n]),g=Object(X.a)(e,p);return u.createElement("span",J({ref:f},l,g,{className:v,style:s,role:"presentation"}))}));ee.propTypes={style:Z.object,classNames:Z.string,name:Z.string,themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:Z.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:Z.oneOf(["default","horizontal","vertical","both"])};var te={size:"default",themeColor:"inherit",flip:"default"};ee.displayName="KendoIcon";var 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=u.forwardRef((function(e,t){var n=e.children,o=e.className,r=e.svgClassName,i=e.icon,a=e.flip,s=e.size,l=e.style,p=e.svgStyle,f=e.themeColor,d=e.viewBox,h=oe(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),m=u.useRef(null);u.useImperativeHandle(t,(function(){return{element:m.current}}));var v=u.useMemo((function(){return i?i.name:ie.icon}),[i]),g=u.useMemo((function(){return f||ie.themeColor}),[f]),y=u.useMemo((function(){return s||ie.size}),[s]),b=u.useMemo((function(){return a||ie.flip}),[a]),k=u.useMemo((function(){return d||ie.viewBox}),[d]),w=u.useMemo((function(){return Object(c.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+v,{"k-flip-h":"horizontal"===b||"both"===b,"k-flip-v":"vertical"===b||"both"===b},$[y],o)}),[v,g,y,b,o]),O=u.useMemo((function(){return e.width&&e.height?ne({width:e.width,height:e.height},l):e.width?ne({width:e.width,height:e.width},l):e.height?ne({width:e.height,height:e.height},l):ne({},l)}),[e.width,e.height,l]);return u.createElement("span",{className:w,style:O,ref:m},u.createElement("svg",ne({className:r,style:p,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:i?i.viewBox:k,dangerouslySetInnerHTML:i?{__html:i.content}:void 0},h),i?void 0:n))}));re.propTypes={style:Z.object,classNames:Z.string,children:Z.any,icon:Z.object,themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:Z.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:Z.oneOf(["default","horizontal","vertical","both"])};var ie={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};re.displayName="KendoSvgIcon";var ae={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},se={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ce={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"},ue={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},le={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},pe={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},fe={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},de={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"},he=function(){return(he=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)},me=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},ve=function(e){var t=u.forwardRef((function(t,n){var o=t.className,r=t.fontSize,i=t.fontWeight,a=t.textAlign,s=t.textTransform,c=t.themeColor,l=t.margin,p=me(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),f=u.useRef(null),d=u.useRef(null);u.useImperativeHandle(f,(function(){return{element:d.current,props:t}})),u.useImperativeHandle(n,(function(){return f.current}));var h=e,m=function(){if(void 0!==l){if("string"==typeof l)return[ce[l]];if("number"==typeof l&&l>=0&&l<=24)return["k-m-"+l];if("object"==typeof l){var e=[];return Object.keys(l).forEach((function(t){var n,o;null!==l[t]&&void 0!==l[t]&&e.push((n=t,o=l[t],""+le[n]+("string"==typeof o?ue[o]:o)))})),e.join(" ")}}};return u.createElement(h,he({ref:d,className:["k-"+("p"===e?"paragraph":e),ae[r],se[i],pe[a],fe[s],de[c],m(),o].filter((function(e){return void 0!==e})).join(" ")},p),t.children)}));return t.propTypes={style:Z.object,className:Z.string,fontSize:Z.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:Z.oneOf(["light","normal","bold"]),margin:Z.oneOfType([Z.number,Z.object,Z.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:Z.oneOf(["left","right","center","justify"]),textTransform:Z.oneOf(["lowercase","uppercase","capitalize"]),themeColor:Z.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography"+e.toUpperCase(),t},ge={h1:ve("h1"),h2:ve("h2"),h3:ve("h3"),h4:ve("h4"),h5:ve("h5"),h6:ve("h6"),p:ve("p"),code:ve("code"),pre:ve("pre")},ye=function(){return(ye=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},be=function(e,t,n){var o=u.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,u.useCallback((function(e,t){i(e),n&&n.call(void 0,ye({},t,{value:e}))}),[n,i])]},ke=u.createContext([void 0,w]),we=u.createContext([void 0,w]),Oe=u.createContext([[],w,w]),Ce=u.createContext([[],w,w]),xe=function(e){var t=be(null,void 0),n=t[0],o=t[1],r=be(null,void 0),i=r[0],a=r[1],s=G([]),c=s[0],l=s[1],p=G([]),f=p[0],d=p[1];return u.createElement(ke.Provider,{value:[n,o]},u.createElement(we.Provider,{value:[i,a]},u.createElement(Oe.Provider,{value:[c,function(e){l({type:q.add,item:e})},function(e){l({type:q.remove,item:e})}]},u.createElement(Ce.Provider,{value:[f,function(e){d({type:q.add,item:e})},function(e){d({type:q.remove,item:e})}]},e.children))))};xe.displayName="KendoReactDragAndDrop";var Ee,_e=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),c=a-i,u=s-r;if(i<a&&r<s){var l=o.width*o.height,p=n.width*n.height,f=c*u;return Number((f/(l+p-f)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},Ie=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},De=function(e){return e&&e.ownerDocument||window.document},Pe=function(e){var t=Ie(),n=De(e);return t.edge||t.safari?n.body:n.documentElement},je=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},Ne=function(e){var t=Pe(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&!je(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"}(Ee||(Ee={}));var Se=function(){},Me=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s=n.onIsPressedChange,c=void 0===s?Se:s,u=n.onIsScrollingChange,l=void 0===u?Se:u,p=n.onVelocityChange,f=void 0===p?Se:p,d=n.onOffsetChange,h=void 0===d?Se:d,m=n.onPageOffsetChange,v=void 0===m?Se:m,g=n.onClientOffsetChange,y=void 0===g?Se:g,b=n.onScrollOffsetChange,k=void 0===b?Se:b,w=n.onInitialScrollOffsetChange,O=void 0===w?Se: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 Ee.POINTER_DOWN:if(D.type===Ee.POINTER_DOWN&&(!D.originalEvent.isPrimary||0!==D.originalEvent.button))break;case Ee.MOUSE_DOWN:if(D.type===Ee.MOUSE_DOWN&&D.originalEvent.which&&D.originalEvent.which>1||e.ignoreMouse)break;case Ee.TOUCH_START:if(D.type===Ee.TOUCH_START&&1!==D.originalEvent.touches.length)break;case Ee.START:var P=I||Ne(t.payload.element);O(P instanceof Window?{x:P.scrollX,y:P.scrollY}:{x:P.scrollLeft,y:P.scrollTop}),y({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 Ee.SCROLL:if(D.type===Ee.SCROLL&&!e.pressed)break;var j=I||Ne(x),N=j instanceof Window?{x:j.scrollX,y:j.scrollY}:{x:j.scrollLeft,y:j.scrollTop};D.scrollX=N.x-e.initialScrollOffset.x,D.scrollY=N.y-e.initialScrollOffset.y,k({x:D.scrollX,y:D.scrollY});case Ee.POINTER_MOVE:if(D.type===Ee.POINTER_MOVE&&!D.originalEvent.isPrimary)break;case Ee.MOUSE_MOVE:case Ee.TOUCH_MOVE:if(D.type===Ee.TOUCH_MOVE&&1!==D.originalEvent.touches.length)break;case Ee.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==D.originalEvent.type&&x){var S=De(x),M=I||Ne(S.elementFromPoint(D.clientX,D.clientY)),R=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=Pe(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=De(e);return t&&t.defaultView||window}(x)));f({x:_&&!1===_.horizontal?0:R.x,y:_&&!1===_.vertical?0:R.y}),l(0!==R.y||0!==R.x)}!e.drag&&C.onDragStart&&C.onDragStart(D),C.onDrag&&C.onDrag(D);var T=_e(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===T}));A&&T&&(o=D.clientX,r=D.clientY,i=I||Ne(T),(a=i.getBoundingClientRect()).top<=r&&a.left<=o&&r<=a.bottom&&o<=a.right)&&T!==x?(e.drop&&e.drop.element)!==T?(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)}y({x:D.clientX,y:D.clientY}),v({x:D.pageX,y:D.pageY});break;case Ee.POINTER_UP:if(D.type===Ee.POINTER_UP&&!D.originalEvent.isPrimary)break;case Ee.MOUSE_UP:case Ee.TOUCH_END:if(D.type===Ee.TOUCH_END&&1!==D.originalEvent.touches.length)break;case Ee.END:c(!1),l(!1),C.onRelease&&C.onRelease(D),e.drop&&e.drop.onDrop&&e.drop.onDrop(D),C.onDragEnd&&C.onDragEnd(D);break;case Ee.POINTER_CANCEL:case Ee.CONTEXT_MENU:case Ee.TOUCH_CANCEL:case Ee.CANCEL:c(!1),l(!1),C.onDragEnd&&C.onDragEnd(D),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(D)}},Re=function(e,t){if(e){var n,o;e===Pe(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,s=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),s?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},Te=function(e,t){var n=u.useContext(e),o=n[0],r=n[1],i=u.useState(t),a=i[0],s=i[1];return[void 0!==o?o:a,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==o?r.apply(void 0,e):s(e[0])}]};function Ae(e,t,n){void 0===n&&(n={});var o=t.onPress,r=void 0===o?w:o,i=t.onRelease,a=void 0===i?w:i,s=t.onDragStart,c=void 0===s?w:s,l=t.onDrag,p=void 0===l?w:l,f=t.onDragEnd,d=void 0===f?w:f,h=n.hint,m=void 0===h?null:h,v=n.mouseOnly,g=void 0!==v&&v,y=n.autoScroll,b=void 0===y||y,k=n.scrollContainer,O=void 0===k?null:k,C=u.useState(!1),x=C[0],E=C[1],_=u.useState(!1),I=_[0],D=_[1],P=Te(we)[0],j=Te(ke),N=j[0],S=j[1],M=u.useContext(Ce)[0],R=u.useContext(Oe),T=R[0],A=R[1],L=R[2],B=u.useRef({x:0,y:0}),K=u.useRef(),F=u.useRef(!1),z=u.useRef(),U=u.useRef(!1),H=u.useRef({x:0,y:0}),V=u.useRef({x:0,y:0}),W=u.useRef({x:0,y:0}),q=u.useRef({x:0,y:0}),X=u.useRef({x:0,y:0}),Y=u.useRef({x:0,y:0}),G=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&G,$=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),J=u.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),Q=u.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),ee=u.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=u.useRef(null);u.useImperativeHandle(te,(function(){return{element:$(),hint:J(),onPress:he,onDragStart:ve,onDrag:ge,onDragEnd:ye,onRelease:me,data:e.current}}));var ne=u.useCallback((function(){var e=$();return e&&e.ownerDocument||document}),[$]),oe=u.useCallback((function(){var e=ne();return e&&e.defaultView||window}),[ne]),re=u.useCallback((function(){return{drag:N?N.current:null,drop:P?P.current:null,drags:T.map((function(e){return e.current})),drops:M.map((function(e){return e.current})),pressed:x,ignoreMouse:F.current,scrollOffset:X.current,offset:H.current,pageOffset:V.current,initialScrollOffset:Y.current,clientOffset:W.current,initialClientOffset:q.current,velocity:B.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:ee(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:I}}),[N,P,T,M,x,b,ee,I]),ie=u.useCallback((function(e){E(e)}),[]),ae=u.useCallback((function(e){D(e)}),[]),se=u.useCallback((function(e){B.current=e}),[]),ce=u.useCallback((function(e){H.current=e}),[]),ue=u.useCallback((function(e){W.current=e}),[]),le=u.useCallback((function(e){V.current=e}),[]),pe=u.useCallback((function(e){q.current=e}),[]),fe=u.useCallback((function(e){X.current=e}),[]),de=u.useCallback((function(e){Y.current=e}),[]),he=u.useCallback((function(e){r(e)}),[r]),me=u.useCallback((function(e){a(e)}),[a]),ve=u.useCallback((function(t){S(te,{target:e.current,event:t}),c(t)}),[S,e,c]),ge=u.useCallback((function(e){p(e)}),[p]),ye=u.useCallback((function(t){U.current||(S(null,{target:e.current,event:t}),d(t))}),[d,S,e]),be=u.useCallback((function(e){Me(re(),{event:e,payload:te.current},{onVelocityChange:se,onOffsetChange:ce,onClientOffsetChange:ue,onPageOffsetChange:le,onInitialClientOffsetChange:pe,onScrollOffsetChange:fe,onInitialScrollOffsetChange:de,onIsPressedChange:ie,onIsScrollingChange:ae})}),[re,se,ce,le,ue,pe,de,ie,fe,ae]),xe=u.useCallback((function(e){be(e)}),[be]),Ee=u.useCallback((function(e){be(e)}),[be]),_e=u.useCallback((function(e){be(e)}),[be]),Ie=u.useCallback((function(e){be(e)}),[be]),De=u.useCallback((function(e){be(e)}),[be]),Pe=u.useCallback((function(e){be(e)}),[be]),je=u.useCallback((function(e){be(e)}),[be]),Se=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Ae=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Le=u.useCallback((function(e){e.preventDefault(),be(e)}),[be]),Be=u.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]),Ke=u.useCallback((function(e){be(e)}),[be]),Fe=u.useCallback((function(){var e=$();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[$]),ze=u.useCallback((function(){return A(te),function(){L(te)}}),[L,A]);u.useEffect((function(){var e=oe();if(I){var t=Q()||Ne(document.elementFromPoint(W.current.x,W.current.y));e.clearInterval(K.current),K.current=e.setInterval((function(){Re(t,{x:B.current.x,y:B.current.y})}),50)}return function(){e.clearInterval(K.current)}}),[$,Q,oe,I]),u.useEffect(Fe,[Fe]),u.useEffect((function(){var e=oe(),t=$(),n=ne();if(Z){if(t)Ne(t).addEventListener("scroll",Ke,{passive:!0}),t.addEventListener("pointerdown",xe,{passive:!0});x&&(n.addEventListener("pointermove",Ee),n.addEventListener("pointerup",Ie,!0),n.addEventListener("contextmenu",Se),n.addEventListener("pointercancel",_e,{passive:!0}))}else e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",De,{passive:!0}),g||(t.addEventListener("touchstart",Ae,{passive:!0}),x&&(t.addEventListener("touchmove",Le,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",je,{passive:!0}));return function(){if(t){var o=Ne(t);o&&o.removeEventListener("scroll",Ke),t.removeEventListener("pointerdown",xe),t.removeEventListener("mousedown",De),t.removeEventListener("touchstart",Ae),t.removeEventListener("touchmove",Le),t.removeEventListener("touchend",Be)}n.removeEventListener("pointermove",Ee),n.removeEventListener("pointerup",Ie,!0),n.removeEventListener("contextmenu",Se),n.removeEventListener("pointercancel",_e),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",je),e.removeEventListener("touchmove",w),e.clearTimeout(z.current)}}),[x,oe,$,ne,g,Z,Se,De,Pe,je,_e,xe,Ee,Ie,Be,Le,Ae,Ke]),u.useEffect((function(){return function(){U.current=!0}}),[]),u.useLayoutEffect(ze,[ze])}var Le=u.forwardRef((function(e,t){var n=u.useRef(null),o=u.useRef(null),r=u.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);u.useImperativeHandle(o,(function(){return{element:r()||null}})),u.useImperativeHandle(t,(function(){return o.current})),u.useImperativeHandle(e.childRef,(function(){return n.current}));var i=u.useCallback((function(t){e.onPress&&e.onPress({element:r(),target:o.current,event:t})}),[r,e.onPress]),a=u.useCallback((function(t){e.onRelease&&e.onRelease({element:r(),target:o.current,event:t})}),[r,e.onRelease]),s=u.useCallback((function(t){e.onDragStart&&e.onDragStart({element:r(),target:o.current,event:t})}),[e,r]),c=u.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),l=u.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:r(),target:o.current,event:t})}),[r,e.onDragEnd]);return Ae(n,{onPress:i,onRelease:a,onDragStart:s,onDrag:c,onDragEnd:l},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));function Be(e,t){void 0===t&&(t={onDragEnter:w,onDragOver:w,onDragLeave:w,onDrop:w});var n=t.onDragEnter,o=void 0===n?w:n,r=t.onDragOver,i=void 0===r?w:r,a=t.onDragLeave,s=void 0===a?w:a,c=t.onDrop,l=void 0===c?w:c,p=Te(we)[1],f=u.useContext(Ce),d=f[1],h=f[2],m=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),v=u.useRef(null);u.useImperativeHandle(v,(function(){return{element:m(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:k,data:e.current}}));var g=u.useCallback((function(t){p(v,{target:e.current,event:t}),o(t)}),[p,e,o]),y=u.useCallback((function(e){i(e)}),[i]),b=u.useCallback((function(t){p(null,{target:e.current,event:t}),s(t)}),[p,e,s]),k=u.useCallback((function(t){p(null,{target:e.current,event:t}),l(t)}),[p,e,l]),O=u.useCallback((function(){return d(v),function(){h(v)}}),[h,d]);u.useLayoutEffect(O,[O])}Le.displayName="KendoReactDraggable";var Ke=u.forwardRef((function(e,t){var n=u.useRef(null),o=u.useRef(null),r=u.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);u.useImperativeHandle(o,(function(){return{element:r()||void 0}})),u.useImperativeHandle(t,(function(){return o.current})),u.useImperativeHandle(e.childRef,(function(){return n.current}));var i=u.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=u.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=u.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),c=u.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return Be(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:c}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));Ke.displayName="KendoReactDroppable"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=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)?o.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(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},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),a=n(2),s=n(20),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},s.provideIntlService(this).formatDate(this.props.item.timestamp,this.props.dateFormat))),e},t.prototype.getStatusView=function(){var e=null;return this.props.item.status&&(e=i.createElement("span",{className:"k-message-status"},this.props.item.status)),e},t.prototype.getClassNames=function(){return 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")},t.defaultProps={dateFormat:"g",tabIndex:-1},t}(n(6).FocusableUponSelection);t.ChatMessage=c,s.registerForIntl(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(0),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(5),r={};function i(e){if(r[e])return r[e];var t=Object(o.a)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(7);function r(e){if(void 0!==o)o.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)}}},function(e,t,n){"use strict";function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},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),a=n(2),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selectedItemIndex:null},t.onRequestContainerSelection=function(){return t.props.onRequestSelection(t.props.group.selectionIndex)},t.onKeyDown=function(e){var n,o,r=null;t.isKeyboardNavigationLeftRight?(n=a.Keys.left,o=a.Keys.right):(n=a.Keys.up,o=a.Keys.down),e.keyCode===n?r=t.navigate(!1):e.keyCode===o&&(r=t.navigate(!0)),null!==r&&(e.preventDefault(),e.stopPropagation())},t}return r(t,e),t.getDerivedStateFromProps=function(e,t){return e.selected||null===t.selectedItemIndex?e.selected&&null===t.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},t.prototype.navigate=function(e,t){void 0===t&&(t=0);var n=null,o=this.state.selectedItemIndex;return e?null===o?n=t:o<this.getLastSelectionIndex()&&(n=o+1):null===o?n=0:o>0&&(n=o-1),null!==n&&this.setState({selectedItemIndex:n}),n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!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=s},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),a=n(2),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},t.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},t.prototype.getClassNames=function(){return 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})},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(6).FocusableUponSelection);t.default=s},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(10);t.ChatMessage=r.ChatMessage,o(n(26)),o(n(36))},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),a=n(1),s=n(0),c=n(27),u=n(28),l=n(30),p=n(31),f=n(32),d=n(33),h=n(10),m=n(2),v=n(35),g=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),s.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},s.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},s.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),s.createElement(d.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},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?s.createElement(p.default,{item:o,key:r}):"message-group"===o.type?s.createElement(f.default,{group:o,itemTemplate:e.props.messageTemplate,attachmentTemplate:e.props.attachmentTemplate,user:e.props.user,selectedItemIndex:e.state.selectedItemIndex,onRequestSelection:e.onSelectionRequested,isLastGroup:r===n,key:r,message:e.props.message||t.defaultProps.message}):"attachment-group"===o.type?s.createElement(l.default,{group:o,itemTemplate:e.props.attachmentTemplate,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):"action-group"===o.type?s.createElement(u.default,{group:o,onActionExecute:e.onActionExecute,onRequestSelection:e.onSelectionRequested,selected:o.selectionIndex===e.state.selectedItemIndex,isLastGroup:r===n,key:r}):void 0}))},t.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},t.prototype.getViewItemsFromMsgs=function(e){return e.length>0?c.convertMsgsToViewItems(e):[]},t.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(s.Component);t.Chat=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),r=function(e){return e[e.length-1]},i=function(e){return function(t,n,i){var a=i===e-1;return function(e,t){var n,o,i=t.timestamp,a=r(e);if(i&&(!a||(n=i,o=a.timestamp,n&&o&&(o.getDate()!==n.getDate()||o.getMonth()!==n.getMonth()||o.getFullYear()!==n.getFullYear())))){var s={type:"date-marker",timestamp:i,trackBy:i.getTime()};e.push(s)}}(t,n),function(e,t,n){var i=r(e),a=void 0;t.typing&&!n||(i&&"message-group"===i.type&&(a=i.messages),a&&o.isAuthor(t.author,r(a))?a.push(t):e.push({type:"message-group",messages:[t],author:t.author,timestamp:t.timestamp,trackBy:t}))}(t,n,a),n.attachments&&n.attachments.length>1&&t.push({type:"attachment-group",attachments:n.attachments,attachmentLayout:n.attachmentLayout,timestamp:n.timestamp,trackBy:n}),n.suggestedActions&&a&&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),a=n(2),s=n(29),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(s.default,{item:n,onActionExecute:e.props.onActionExecute,selected:o===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&o===e.state.selectedItemIndex,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,key:o})})))},t.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},t}(n(22).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),a=n(2),s=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},t.prototype.getClassNames=function(){return s.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(6).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),a=n(2),s=n(23),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(s.default,{item:t,template:e.props.itemTemplate,selected:n===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&n===e.state.selectedItemIndex,isFirstItemInGroup:0===n,isLastItemInGroup:n===e.getLastItemIndex(),onClick:function(){return e.onAttachmentClick(n)},key:n})})));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),n,this.getRightScrollBtn()):n},Object.defineProperty(t.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!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 a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(n(22).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),a=n(20),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props.item;return i.createElement("div",{className:"k-timestamp"},a.provideIntlService(this).formatDate(e.timestamp,"D"))},t}(i.Component);t.default=s,a.registerForIntl(s)},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),a=n(2),s=n(23),c=n(21),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},t.prototype.getMsgGroupClassNames=function(){return a.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(s.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-"+o})),r}))},t}(i.Component);t.default=u},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(0),s=n(34),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=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}}),o=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:t.buttonIconPath}))),r=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:n,sendButton:o,toolbarButton:r}):a.createElement(a.Fragment,null,n,this.props.toolbar&&r,o)),this.props.showToolbar&&a.createElement(s.default,null,this.props.toolbar))},t.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},t.prototype.getClassNames=function(){return 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}(a.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),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},t}(i.Component);t.default=a},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:1642076106,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),a=n(37),s=n(2),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onBtnClick=function(e,n){s.dispatchEvent(t.props.onActionExecute,n,t,{action:e})},t}return r(t,e),t.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},t.prototype.getActionsView=function(){var e=this;return this.props.actions.map((function(t,n){return i.createElement("span",{className:"k-card-action",key:n},i.createElement(a.Button,{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 We})),n.d(t,"ToolbarItem",(function(){return Xe})),n.d(t,"ToolbarSeparator",(function(){return Ge})),n.d(t,"ToolbarSpacer",(function(){return Ze})),n.d(t,"Button",(function(){return v})),n.d(t,"ButtonGroup",(function(){return k})),n.d(t,"SplitButton",(function(){return Le})),n.d(t,"SplitButtonItem",(function(){return I})),n.d(t,"DropDownButton",(function(){return Ue})),n.d(t,"DropDownButtonItem",(function(){return Ke})),n.d(t,"Chip",(function(){return vt})),n.d(t,"ChipList",(function(){return ft})),n.d(t,"FloatingActionButton",(function(){return Pt})),n.d(t,"FloatingActionButtonItem",(function(){return wt}));var o,r=n(0),i=n(1),a=n(4),s=n(16),c={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642075976,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=':not(.k-state-disabled):not([disabled]):not([disabled="true"])',l=["button"+u,".k-button-group > button"+u,".k-dropdown > .k-dropdown-wrap"+u,".k-colorpicker > .k-picker-wrap"+u],p={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"},f=(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)},h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},m=p;var v=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.a)(c),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return f(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,s=n.primary,c=n.togglable,u=n.icon,l=n.iconClass,p=n.imageUrl,f=n.imageAlt,v=n.className,g=(n.onClick,h(n,["children","look","primary","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),y=void 0!==u||void 0!==l||void 0!==p,b=void 0!==o,k={className:Object(a.a)([m.button],((e={})[m[""+i]]="default"!==i,e[m.primary]=s,e[m["state-disabled"]]=this.props.disabled,e[m["state-selected"]]=this.state.selected,e[m["button-icon"]]=!b&&y,e[m["button-icontext"]]=b&&y,e),[m[""+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 s=Object(a.a)("k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:o}):null}({icon:u,iconClass:l,imageUrl:p,imageAlt:f});return r.createElement("button",d({},k,g,{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),g=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)},b=p,k=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(s.a)(c),n}return g(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=Object(a.a)([b["button-group"]],((e={})[b["state-disabled"]]=this.props.disabled,e[b["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,s=Object(a.a)(e.props.className,((i={})[b["group-start"]]=o?n:0===t,i[b["group-end"]]=o?0===t:n,i)),c=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,l=y({},e.props,s?{className:s}:{},Object.keys(c).length?{style:c}:{},void 0!==u?{disabled:u}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,l,e.props.children):r.cloneElement(e,l)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component),w=n(14),O=n(15),C=n(17),x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)}}(),E=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 x(t,e),t.prototype.render=function(){var e=this.props,t=e.dataItem,n=e.focused,o=e.id,i=e.onDown,s=e.render,c=r.createElement("li",{id:o,className:Object(a.a)("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!==s?s.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),a=void 0!==t.text?t.text:n?t[n]:t,s=t.icon?"k-icon k-i-"+t.icon:t.iconClass;return i&&r.createElement(i,{item:t,itemIndex:o})||[s&&r.createElement("span",{className:s,role:"presentation",key:"icon"}),t.imageUrl&&r.createElement("img",{className:"k-image",alt:"",src:t.imageUrl,role:"presentation",key:"image"}),a]},t}(r.Component),_=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)}}(),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(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),D=function(e,t,n,o){if(n)return e;switch(t){case O.a.enter:case O.a.space:case O.a.esc:return-1;case O.a.up:case O.a.left:return Math.max(0,e-1);case O.a.down:case O.a.right:return Math.min(o-1,e+1);default:return e}},P=n(24),j=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")},N="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),S=n(3),M=n(11),R="bottom",T="center",A="middle",L="left",B="right",K="top";function F(e){return e.ownerDocument||e.document||e}var z=function(e){return F(e).defaultView},U=function(e){return F(e).documentElement},H=0;function V(){if(!H&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),H=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return H}function W(e){var t=z(e),n=U(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=V()),o}var q=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||U(e)},X=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}},Y=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function G(e){var t=U(e),n=z(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var Z=function(e){return e===(e.ownerDocument||{}).body?G(e):{x:e.scrollLeft,y:e.scrollTop}};var $=function(e,t){var n=z(e),o=n.getComputedStyle(e),r=X(e),i=t||q(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,c={top:0,left:0};if("fixed"!==o.position&&s){var u=n.getComputedStyle(i);(c=X(i)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},J=function(e,t){return e?Z(e):function(e){var t=q(e);return t?Z(t):{x:0,y:0}}(t)};var Q="fit",ee="flip",te=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},ne=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,c=2*e.margin;if(a!==i&&!(a===T||a===A)&&!(i===T||i===A)){var u=i===K||i===L;t<0&&u?t+(s=n+o+c)+n>r&&(s=0):t>=0&&!u&&(t+n>r&&(s+=-(o+n+c)),t+s<0&&(s=0))}return s},oe=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},re=function(e,t){for(var n,o,r=Y(e),i=t;i&&(n=oe(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var ie,ae,se,ce=(ie=function(e){if(!ue())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},se=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return se||(ae=ie.apply(void 0,e),se=!0),ae}),ue=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},le={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:ce,canUseDOM:ue},pe=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],fe=function(){return le.canUseDOM()?window:null},de=/auto|scroll/,he=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)},me=function(e){if(!e||!le.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},ve=function(){return le.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},ge={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,c=r.horizontal,u=r.vertical,l=i.horizontal||0,p=i.vertical||0,f=t.top,d=t.left;return s===R&&(f+=t.height),s!==T&&s!==A||(f+=Math.round(t.height/2)),u===R&&(f-=o.height,p*=-1),u!==T&&u!==A||(f-=Math.round(o.height/2),p*=-1),a===B&&(d+=t.width),a!==T&&a!==A||(d+=Math.round(t.width/2)),c===B&&(d-=o.width,l*=-1),c!==T&&c!==A||(d-=Math.round(o.width/2),l*=-1),{top:f+p,left:d+l}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=W(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=fe();if(!t||!e)return[];var n=t.getComputedStyle(e);return pe.map((function(e){return{key:e,value:n[e]}}))},getWindow:fe,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?X(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=X(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?q(t):null,r=$(e,o),i=r.top,a=r.left,s=r.height,c=r.width,u=J(o,e),l=u.x,p=u.y,f=e.ownerDocument,d=o===f.body||o===f.documentElement?1:n;return{top:i+p*d,left:a+l*d,height:s,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,a=e.viewPort,s=e.margin;void 0===s&&(s={});var c=o.top,u=o.left,l=o.height,p=o.width,f=a.height,d=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=i.vertical===Q,b=i.horizontal===Q,k=i.vertical===ee,w=i.horizontal===ee;y&&(g+=te(c,l,f)),b&&(v+=te(u,p,d)),k&&(g+=ne({margin:m,offset:c,size:l,anchorSize:t.height,viewPortSize:f,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=ne({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var O=k&&0!==g,C=w&&0!==v,x=y&&0!==g,E=b&&0!==v;return{flipped:C||O,fitted:x||E,flip:{horizontal:C,vertical:O},fit:{horizontal:E,vertical:x},offset:{left:v,top:g}}},scrollPosition:G,scrollableParents:function(e){var t=[];if(!le.canUseDOM())return t;for(var n=e.parentElement;n;)(de.test(he(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:me,stackingElementOffset:function(e){var t=me(e);return t?X(t):null},stackingElementScroll:function(e){var t=me(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=me(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(me(e))},windowViewPort:W,zoomLevel:ve,isZoomed:function(){return ve()>1},zIndex:function(e,t){if(!e||!le.canUseDOM())return null;var n=re(e,t);if(!n)return null;var o=[e].concat(Y(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}},ye=function(e,t){return e?{x:0,y:0}:ge.scrollPosition(t)},be=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,c=e.scale||1,u="fixed"===s||!ge.hasOffsetParent(n)?function(e,t,n,o){var r=ye(e,t),i=le.eitherRect(ge.offset(e),n),a=2*o,s=ge.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var c=ge.stackingElementOffset(t);return 1!==o&&c&&(c.left/=a,c.top/=a),ge.removeScroll(ge.addScroll(le.removeStackingOffset(le.scaleRect(i,o),c),s),r)}(t,n,a,c):function(e,t,n,o){var r=le.eitherRect(ge.position(e,t,o),n);return le.scaleRect(r,o)}(t,n,a,c),l=le.scaleRect(ge.offset(n),c);return ge.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:l,margin:i})},ke=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,c=e.scale||1,u=ge.offsetAtPoint(o,n),l=le.scaleRect(u,c),p=le.scaleRect(ge.offset(t),c),f=le.eitherRect(p,n),d=e.viewPort||ge.windowViewPort(o);d.width=d.width/c,d.height=d.height/c;var h=ge.restrictToView({anchorAlign:r,anchorRect:f,collisions:a,elementAlign:i,elementRect:l,margin:s,viewPort:d}),m=ge.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},we="fit",Oe="flip",Ce={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642075945,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"},xe=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)}}(),Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function _e(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 Ie,De={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(Ie||(Ie={}));var Pe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={current:Ie.hidden,previous:Ie.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:Ie.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,c=t.margin,u=t.scale,l=t.positionMode;e.style.top="0px",e.style.left="-10000px";var p=be({anchor:s,element:e,elementAlign:r,anchorAlign:o,offset:a,margin:c,positionMode:l,scale:u}),f=ke({anchor:s,anchorAlign:o,collisions:i,element:e,currentLocation:p,elementAlign:r,margin:n.props.margin});e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",n._flipped=f.flipped},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add("k-animation-container-shown"),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){!function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(){e.removeEventListener("transitionend",s),j(e),r()};e.addEventListener("transitionend",s);var c=e.ownerDocument;if(c){var u=c.defaultView;if(u){var l=function(){j(e),e.classList.add(i),u.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};N?u.requestAnimationFrame(l):l()}}}(e,n._flipped?"up":"down",n.animationDuration[t],t,o)},n.onClosing=function(e){n.props.show||e.classList.remove("k-animation-container-shown"),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===Ie.hiding&&n.state.previous===Ie.shown&&n.setState({current:Ie.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.a)(Ce),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var c=function(){s=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(c,l)),a}}(n.reposition.bind(n),1e3/60),n}return xe(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,c=e.className,u=e.popupClass,l=e.style,p=e.offset,f=e.contentKey,d=Ee({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:c,popupClass:u,style:l,offset:p,contentKey:f}});return e.show?t.current===Ie.hidden||t.current===Ie.hiding?Ee({},d,{current:Ie.showing,previous:t.current}):t.current===Ie.showing?Ee({},d,{current:Ie.shown,previous:t.current}):t.current!==Ie.shown||_e(p,t.props.offset)&&_e(r,t.props.anchorAlign)&&_e(i,t.props.appendTo)&&_e(a,t.props.collision)&&_e(s,t.props.popupAlign)&&_e(l,t.props.style)&&o===t.props.anchor&&u===t.props.popupClass&&c===t.props.className?d:Ee({},d,{current:Ie.reposition,previous:t.current}):t.current===Ie.hiding||t.current===Ie.hidden?Ee({},d,{current:Ie.hidden,previous:t.current}):Ee({},d,{current:Ie.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===Ie.showing&&this._popup?this.show(this._popup):this.state.current===Ie.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===Ie.reposition&&this.state.previous===Ie.shown?this.setState({current:Ie.shown,previous:this.state.current}):this.state.current===Ie.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===Ie.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.popupClass,s=t.show,c=t.id,u=t.positionMode,l=this.props.appendTo?this.props.appendTo:S.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===Ie.reposition&&this.state.previous===Ie.shown&&this._popup&&this.setPosition(this._popup);var p=Object.assign({},{position:u},this.props.style||{}),f=this.state.current===Ie.hiding;if((s||f)&&l){var d=this.getCurrentZIndex(),h=r.createElement(M.a.Provider,{value:d},r.createElement("div",{className:Object(a.a)("k-animation-container","k-animation-container-relative",o),id:c,ref:function(t){return e._popup=t},style:Ee({zIndex:d},p)},r.createElement("div",{className:Object(a.a)(i,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return P.createPortal(h,l)}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=ge.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:Ie.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([we,Oe]),vertical:i.oneOf([we,Oe])}),anchorAlign:i.shape({horizontal:i.oneOf([L,T,B]),vertical:i.oneOf([K,T,R])}),popupAlign:i.shape({horizontal:i.oneOf([L,T,B]),vertical:i.oneOf([K,T,R])}),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:we,vertical:Oe},anchorAlign:{horizontal:L,vertical:R},popupAlign:{horizontal:L,vertical:K},offset:De,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=M.a,t}(r.Component),je=function(){return(je=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ne=r.createContext((function(e){return e})),Se=r.forwardRef((function(e,t){var n=r.useContext(Ne).call(void 0,e);return r.createElement(Pe,je({ref:t},n))}));function Me(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Re(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var Te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=p,Le=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(w.a)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==O.a.down?n.opened&&e.keyCode===O.a.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===O.a.enter||e.keyCode===O.a.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===O.a.esc&&(o={focusedIndex:-1,opened:!1},n.dispatchPopupEvent(e,o.opened)),n.opened){var r=D(t,e.keyCode,e.altKey,n.buttonsData.length);r!==t&&((o=o||{}).focusedIndex=r);var i=e.keyCode===O.a.up||e.keyCode===O.a.down||e.keyCode===O.a.left||e.keyCode===O.a.right;!e.altKey&&i&&e.preventDefault()}o&&n.setState(o)}},n.onFocus=function(e){Object(C.a)(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(C.a)(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(C.a)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.a)(c),n}return Te(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!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===I})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,s=o.disabled,c=this.state.focusedIndex;return r.createElement("div",{className:Object(a.a)("k-widget","k-split-button","k-button-group",[Ae[""+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(v,{onClick:function(t){return e.onItemClick(t,-1)},disabled:s||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":s,"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(v,{icon:"arrow-s",disabled:s||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(C.a)(this.props.onButtonClick,e,this,void 0):Object(C.a)(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(Se,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.a)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Me(e),popupAlign:n.popupAlign||Re(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,a){return r.createElement(E,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,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),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)}}(),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(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),Fe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ze=function(){return(ze=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)},Ue=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(w.a)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==O.a.down?n.opened&&e.keyCode===O.a.up&&(n.dispatchPopupEvent(e,!1),n.setState({focusedIndex:-1,opened:!1})):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0,opened:!0}));else{var o=ze({},n.state);if(e.keyCode===O.a.enter||e.keyCode===O.a.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===O.a.esc&&(o.focusedIndex=-1,o.opened=!1,n.dispatchPopupEvent(e,o.opened)),n.opened){var r=D(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=r;var i=e.keyCode===O.a.up||e.keyCode===O.a.down||e.keyCode===O.a.left||e.keyCode===O.a.right;!e.altKey&&i&&e.preventDefault()}n.setState(o)}},n.onFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(C.a)(n.props.onFocus,e,n,void 0)},n.onBlur=function(e){n.setState({focused:!1,opened:!1,focusedIndex:-1}),Object(C.a)(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(C.a)(t?n.props.onOpen:n.props.onClose,e,n,void 0)},Object(s.a)(c),n}return Fe(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,s=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===Ke})).map((function(e){return e.props})),r.createElement("div",{className:Object(a.a)("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(v,{onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:s||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":s,"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(C.a)(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(Se,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:Object(a.a)("k-list-container k-reset k-group",n.popupClass),anchorAlign:n.anchorAlign||Me(e),popupAlign:n.popupAlign||Re(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,a){return r.createElement(E,{dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:e.guid+"-"+a})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:i.string,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),He=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)}}(),Ve=function(){return(Ve=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)},We=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===O.a.left||e.keyCode===O.a.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===O.a.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,Ve({target:o},i,{nativeEvent:e}))}}},Object(s.a)(c),o}return He(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(a.a)("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 a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,onResize:i.func,buttons:i.arrayOf(i.string)},t.defaultProps={tabIndex:0},t}(r.Component),qe=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)}}(),Xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return qe(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),Ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)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)}}(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ye(t,e),t.prototype.render=function(){return r.createElement(Xe,{className:"k-separator"})},t}(r.PureComponent),Ze=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(a.a)("k-spacer",e.className)}),[e.className]);return r.createElement("span",{ref:n,className:i})}));Ze.propTypes={className:i.string};var $e,Je,Qe=n(18),et=n(19),tt=n(12),nt=n(13);!function(e){e.single="single",e.multiple="multiple",e.none="none"}($e||($e={})),function(e){e.toggle="toggle",e.remove="remove"}(Je||(Je={}));var ot;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(ot||(ot={}));var rt;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(rt||(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)},at=r.createContext([null,function(e){}]),st=r.createContext([null,function(e){}]),ct=r.createContext([null,function(e){}]),ut=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.selection){case $e.single:switch(t.type){case Je.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 Je.remove:return t.payload===e?null:e;default:return e}case $e.multiple:switch(t.type){case Je.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 Je.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 $e.none:return null;default:return e}}(t.state||i,it({},e,t));n&&n(o,e.event),a(o)}]},lt=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 ot.next:return n===t.items.length-1?e:t.items[n+1];case ot.prev:return 0===n?e:t.items[n-1];case ot.current:return t.payload;case ot.reset:return null;default:return e}}(t.payload,it({},t,e));o(n)}]},pt=function(e,t,n){var o=r.useState(e),i=o[0],a=o[1];return[i,function(e){var o=function(e,t){switch(t.type){case rt.add:break;case rt.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case rt.reorder:break;default:return e}}(t.state||i,it({},e,t));n&&n(o,e.event),a(o)}]},ft=r.forwardRef((function(e,t){Object(s.a)(c);var n=r.useRef(null),o=r.useRef(null),i=Object(Qe.a)(o,e.dir),u=r.useMemo((function(){return e.chip||vt}),[e.chip,vt]),l=r.useMemo((function(){return e.selection||ht.selection}),[e.selection,ht.selection]);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var p=r.useCallback((function(t,o){e.onChange&&n.current&&e.onChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onChange]),f=ut(e.value||e.defaultValue,{selection:l,state:e.value},p),d=f[0],h=f[1],m=r.useCallback((function(t,o){e.onDataChange&&n.current&&e.onDataChange.call(void 0,{value:t,target:n.current,syntheticEvent:o})}),[e.onDataChange]),v=pt(e.data||e.defaultData||ht.defaultData,{state:e.data,valueField:e.valueField||ht.valueField},m),g=v[0],y=v[1],b=r.useCallback((function(t,n){return t.push(n[e.valueField||ht.valueField]),t}),[e.valueField,ht.valueField]),k=r.useMemo((function(){return e.data||g}),[e.data,g]),w=r.useMemo((function(){return e.value||d}),[e.value,d]),O=r.useMemo((function(){return k.reduce(b,[])}),[k,b]),C=lt({items:O}),x=C[0],E=C[1],_=Object(et.a)(e,n);return r.createElement(at.Provider,{value:[w,h]},r.createElement(st.Provider,{value:[x,E]},r.createElement(ct.Provider,{value:[k,y]},r.createElement("div",it({ref:o},_,{role:"listbox",id:e.id,dir:i,style:e.style,tabIndex:Object(tt.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("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}),k.map((function(t){return r.createElement(u,{role:"option",dataItem:t,key:Object(nt.a)(e.valueField||ht.valueField)(t),text:Object(nt.a)(e.textField||ht.textField)(t),value:Object(nt.a)(e.valueField||ht.valueField)(t)})}))))))})),dt={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},ht={chip:vt,disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ft.displayName="KendoReactChipList",ft.propTypes=dt,ft.defaultProps=ht;var mt=function(){return(mt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},vt=r.forwardRef((function(e,t){Object(s.a)(c);var n=r.useRef(null),o=r.useRef(null),i=Object(Qe.a)(o,e.dir);r.useImperativeHandle(n,(function(){return{element:o.current,props:e}})),r.useImperativeHandle(t,(function(){return n.current}));var u=r.useContext(at),l=u[0],p=u[1],f=r.useContext(st),d=f[0],h=f[1],m=r.useContext(ct)[1],v=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]),g=r.useMemo((function(){return d===e.value}),[e.value,d]),y=r.useMemo((function(){return e.look||yt.look}),[e.look]);r.useEffect((function(){g&&o.current&&o.current.focus()}),[g]);var b=r.useCallback((function(t){p({type:Je.toggle,payload:e.value,event:t})}),[e.onClick,p,e.value]),k=r.useCallback((function(t){e.removable&&(m({type:rt.remove,payload:e.value,event:t}),h({type:ot.reset,payload:e.value,event:t}),p({type:Je.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:n.current,syntheticEvent:t}))}),[e.onRemove,e.removable,m,h,p]),w=r.useCallback((function(t){switch(t.keyCode){case O.a.left:h({type:ot.prev,payload:e.value,event:t});break;case O.a.right:h({type:ot.next,payload:e.value,event:t});break;case O.a.enter:p({type:Je.toggle,payload:e.value,event:t});break;case O.a.delete:k(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown,h,p,k]),C=r.useCallback((function(t){h({payload:e.value,type:ot.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus,h]),x=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),E=Object(et.a)(e,n,{onClick:b});return r.createElement("div",mt({},E,{role:e.role,id:e.value,style:e.style,ref:o,dir:i,tabIndex:Object(tt.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("k-chip",{"k-rtl":"rtl"===i,"k-state-disabled":e.disabled,"k-state-selected":v,"k-state-focus":g,"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":v,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:C,onBlur:x,onKeyDown:w}),v&&r.createElement("span",{className:"k-selected-icon-wrapper"},r.createElement("span",{className:"k-selected-icon k-icon "+(e.selectedIcon||yt.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:k},r.createElement("span",{className:"k-icon "+e.removeIcon})))})),gt={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},yt={disabled:!1,removable:!1,selectedIcon:"k-i-check",look:"solid",removeIcon:"k-i-close-circle",dir:"ltr"};vt.displayName="KendoReactChip",vt.propTypes=gt,vt.defaultProps=yt;var bt=function(){return(bt=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)},kt=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},wt=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,c=e.style,u=e.id,l=e.focused,p=e.tabIndex,f=e.index,d=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=kt(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","onDown","onClick"]),y=r.useRef(null),b=r.useCallback((function(){y.current&&y.current.focus()}),[]),k=r.useCallback((function(){return{element:y.current,focus:b}}),[b]);r.useImperativeHandle(t,k);var w=r.useCallback((function(e){v&&void 0!==f&&!o&&v(e,f)}),[v,f]),O=r.useMemo((function(){return Object(a.a)("k-fab-item",{"k-state-focus":l,"k-state-disabled":o},n)}),[n,o,l]),C=h;return r.createElement("li",bt({ref:y,id:u,className:O,style:c,role:"menuitem",tabIndex:Object(tt.a)(p,o),"aria-disabled":o,"aria-label":(i||"")+" floatingactionbutton item",onClick:w,onMouseDown:m,onPointerDown:m},g),C?r.createElement(C,{itemIndex:f,item:d}):r.createElement(r.Fragment,null,i&&r.createElement("span",{className:"k-fab-item-text"},i),s&&r.createElement("span",{className:Object(a.a)("k-fab-item-icon k-icon k-i-"+s)})))}));wt.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},wt.displayName="KendoFloatingActionButtonItem";var Ot=function(e){return"number"==typeof e?e+"px":e},Ct=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},xt=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Et=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},_t=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},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)},Dt=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){Object(s.a)(c);var n=e.align,o=void 0===n?jt.align:n,i=e.alignOffset,u=e.className,l=e.disabled,p=e.icon,f=e.iconClass,d=e.id,h=e.items,m=e.item,v=e.text,g=e.positionMode,y=void 0===g?jt.positionMode:g,b=e.shape,k=void 0===b?jt.shape:b,x=e.size,E=void 0===x?jt.size:x,_=e.style,I=e.themeColor,D=void 0===I?jt.themeColor:I,P=e.tabIndex,j=e.accessKey,N=e.popupSettings,S=void 0===N?{}:N,M=e.onClick,R=e.onItemClick,T=e.onFocus,A=e.onBlur,L=e.onKeyDown,B=e.onOpen,K=e.onClose,F=Dt(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"]),z=r.useRef(null),U=r.useRef(null),H=r.useRef(null),V=r.useRef(null),W=r.useCallback((function(){U.current&&U.current.focus()}),[]),q=r.useCallback((function(){return{element:U.current,focus:W}}),[W]);r.useImperativeHandle(z,q),r.useImperativeHandle(t,(function(){return z.current}));var X=r.useState(!1),Y=X[0],G=X[1],Z=r.useState(!1),$=Z[0],J=Z[1],Q=r.useState(-1),ee=Q[0],te=Q[1],ne=r.useMemo((function(){return Object(w.a)()}),[]),oe=Object(Qe.a)(U,e.dir),re="rtl"===oe,ie=r.useMemo((function(){return Object(w.a)()}),[]);r.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?Ot(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+Ot(n.x)+")":"50%",c=n&&void 0!==n.y?Ot(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+Ot(n.y)+")":"50%";e.current.style.setProperty(Et(t,o),"center"===r?s:a),e.current.style.setProperty(_t(t),"middle"===i?u:c),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(U,o,i,re)}),[U,o,i,re]),r.useEffect((function(){$&&U&&U.current&&U.current.focus()}),[$,U]);var ae=r.useCallback((function(e,t){h&&Object(C.a)(t?B:K,e,q(),void 0)}),[B,K,h]),se=r.useCallback((function(e){e.target&&!l&&(!h&&M?Object(C.a)(M,e,q(),void 0):(G(!Y),J(!0),te(Y?-1:0),ae(e,!Y)))}),[G,J,te,M,ae,Y,h,l]),ce=r.useCallback((function(e){J(!0),te(Y?0:-1),T&&Object(C.a)(T,e,q(),void 0)}),[T,J,te]),ue=r.useCallback((function(e){J(!1),G(!1),te(-1),Object(C.a)(A,e,q(),void 0),Y&&ae(e,!1)}),[A,J,G,te,ae]),le=r.useCallback((function(e){e.preventDefault()}),[]),pe=r.useCallback((function(e,t){h&&(h[t].disabled||Object(C.a)(R,e,q(),{itemProps:h[t],itemIndex:t}))}),[R]),fe=r.useCallback((function(e,t){e.target&&h&&(te(t),G(!1),pe(e,t),ae(e,!1))}),[te,G,pe,ae]),de=r.useCallback((function(e){document.activeElement===U.current&&e.preventDefault()}),[U,document.activeElement]),he=r.useCallback((function(e){var t=ee,n=h?h.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case O.a.enter:case O.a.space:t>=0&&pe(e,t),e.preventDefault(),G(!Y),te(Y?-1:0);break;case O.a.esc:e.preventDefault(),G(!1),te(-1);break;case O.a.home:e.preventDefault(),te(0);break;case O.a.end:e.preventDefault(),te(n);break;case O.a.down:case O.a.right:e.preventDefault(),t<n&&!r&&te(t+1),t>0&&r&&te(t-1);break;case O.a.up:case O.a.left:e.preventDefault(),t>0&&!r&&te(t-1),t<n&&r&&te(t+1)}Object(C.a)(L,e,q(),void 0)}),[L,ee,te,re,G]),me=r.useMemo((function(){return Object(a.a)("k-fab","k-fab-"+D,"k-fab-"+k,{"k-fab-sm":"small"===E,"k-fab-md":"medium"===E,"k-fab-lg":"large"===E,"k-state-disabled":l,"k-pos-absolute":"absolute"===y,"k-pos-fixed":"fixed"===y,"k-state-focus":$},"k-"+o.vertical+"-"+o.horizontal,u)}),[D,E,k,l,y,o,$,u]),ve=h&&h.map((function(e,t){return r.createElement(wt,It({},e,{key:t,index:t,id:ie+"-"+t,disabled:l||e.disabled,focused:ee===t,dataItem:e,item:m,className:Object(a.a)(e.className,(n=oe||"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:fe,onDown:de}));var n,i})),ge=p&&!v,ye=(U.current?U.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",It({ref:U,id:d||ne,role:h?"menubutton":"button",type:"button","aria-disabled":l,"aria-expanded":h?Y:void 0,"aria-haspopup":!!h,"aria-label":(v||"")+" floatingactionbutton","aria-owns":h?ie:void 0,"aria-activedescendant":ee>=0&&h?ie+"-"+ee:void 0,tabIndex:Object(tt.a)(P,l),accessKey:j,dir:oe,disabled:l,className:me,style:_,onClick:se,onMouseDown:le,onFocus:ce,onBlur:ue,onKeyDown:he},F),p?r.createElement("span",{role:"presentation",className:Object(a.a)("k-fab-icon k-icon k-i-"+p)}):f?r.createElement("span",{role:"presentation",className:f}):null,v&&r.createElement("span",{className:"k-fab-text"},v)),r.createElement(Se,{ref:V,anchor:U.current,show:Y,animate:S.animate,popupClass:Object(a.a)("k-popup-transparent k-fab-popup",S.popupClass),anchorAlign:S.anchorAlign||Ct(o,re),popupAlign:S.popupAlign||xt(o,re),style:{boxShadow:"none"}},r.createElement("ul",{ref:H,role:"menu","aria-labelledby":d,id:ie,className:Object(a.a)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:ge?ye:void 0,paddingRight:ge?ye:void 0}},ve)))}));Pt.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 jt={align:{vertical:"bottom",horizontal:"end"},shape:"pill",size:"medium",themeColor:"primary",positionMode:"fixed"};Pt.displayName="KendoFloatingActionButton"}])}));
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-conversational-ui',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1642076106,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-conversational-ui',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1642076106,
|
|
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",["@progress/kendo-react-common","@progress/kendo-react-intl","react","@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=c},function(t,e){t.exports=i},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,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes: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:1642076102,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,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes: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:1642076106,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.
|
|
4
|
+
"version": "4.14.0-dev.202201131239",
|
|
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.
|
|
43
|
+
"@progress/kendo-react-common": "4.14.0-dev.202201131239"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@progress/kendo-licensing": "^1.0.1",
|
|
47
|
-
"@progress/kendo-react-buttons": "4.14.0-dev.
|
|
48
|
-
"@progress/kendo-react-dateinputs": "4.14.0-dev.
|
|
49
|
-
"@progress/kendo-react-intl": "4.14.0-dev.
|
|
47
|
+
"@progress/kendo-react-buttons": "4.14.0-dev.202201131239",
|
|
48
|
+
"@progress/kendo-react-dateinputs": "4.14.0-dev.202201131239",
|
|
49
|
+
"@progress/kendo-react-intl": "4.14.0-dev.202201131239",
|
|
50
50
|
"adaptivecards": "^1.0.0",
|
|
51
51
|
"botframework-directlinejs": "^0.9.15"
|
|
52
52
|
},
|