@progress/kendo-react-conversational-ui 5.1.0-dev.202202161434 → 5.1.0-dev.202202180916
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=27)}([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 l.a})),n.d(t,"cloneDate",(function(){return c})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return f})),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 _})),n.d(t,"mapTree",(function(){return j})),n.d(t,"mapTreeItem",(function(){return N})),n.d(t,"extendDataItem",(function(){return M})),n.d(t,"getItemPath",(function(){return S})),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 B})),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 K})),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 Be})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return ze})),n.d(t,"kendoThemeMaps",(function(){return Ke.a}));var o=n(12),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))},l=n(4),u=n(0),c=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=f(o,t[n])}}function f(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return c(e);if(u.isValidElement(e))return u.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function h(e){return e.map((function(e){return f(e,void 0)}))}var m=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},v=function(){},g=n(13),y=n(14),b=n(15),k=n(16),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}},I=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function _(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]]||I(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,l=t[t.length-1],u=o(s[l]);s.splice(l,1,u)},M=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},S=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(17),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(18);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]),l=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]),c=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:l,onBlur:c}}var 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)},B=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,z({},n))},K=function(e,t){return u.useContext(e)(t)},F=function(){return(F=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=K(e,n);return u.createElement(t,F({},r,{ref:o}))}))},V=n(19);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(20),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,c=Q(e,["className","name","themeColor","size","flip","style"]),p=u.useRef(null),d=u.useRef(null);u.useImperativeHandle(p,(function(){return{element:d.current}})),u.useImperativeHandle(t,(function(){return p.current}));var f=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(l.a)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},$[h],n)}),[o,f,h,m,n]),g=Object(X.a)(e,p);return u.createElement("span",J({ref:d},c,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,c=e.style,p=e.svgStyle,d=e.themeColor,f=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 d||ie.themeColor}),[d]),y=u.useMemo((function(){return s||ie.size}),[s]),b=u.useMemo((function(){return a||ie.flip}),[a]),k=u.useMemo((function(){return f||ie.viewBox}),[f]),w=u.useMemo((function(){return Object(l.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},c):e.width?ne({width:e.width,height:e.width},c):e.height?ne({width:e.height,height:e.height},c):ne({},c)}),[e.width,e.height,c]);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"},le={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"},ce={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"},de={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},fe={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,l=t.themeColor,c=t.margin,p=me(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=u.useRef(null),f=u.useRef(null);u.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),u.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==c){if("string"==typeof c)return[le[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var e=[];return Object.keys(c).forEach((function(t){var n,o;null!==c[t]&&void 0!==c[t]&&e.push((n=t,o=c[t],""+ce[n]+("string"==typeof o?ue[o]:o)))})),e.join(" ")}}};return u.createElement(h,he({ref:f,className:["k-"+("p"===e?"paragraph":e),ae[r],se[i],pe[a],de[s],fe[l],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([]),l=s[0],c=s[1],p=G([]),d=p[0],f=p[1];return u.createElement(ke.Provider,{value:[n,o]},u.createElement(we.Provider,{value:[i,a]},u.createElement(Oe.Provider,{value:[l,function(e){c({type:q.add,item:e})},function(e){c({type:q.remove,item:e})}]},u.createElement(Ce.Provider,{value:[d,function(e){f({type:q.add,item:e})},function(e){f({type:q.remove,item:e})}]},e.children))))};xe.displayName="KendoReactDragAndDrop";var Ee,Ie=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,u=s-r;if(i<a&&r<s){var c=o.width*o.height,p=n.width*n.height,d=l*u;return Number((d/(c+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},_e=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=_e(),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 Me=function(){},Se=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s=n.onIsPressedChange,l=void 0===s?Me:s,u=n.onIsScrollingChange,c=void 0===u?Me:u,p=n.onVelocityChange,d=void 0===p?Me:p,f=n.onOffsetChange,h=void 0===f?Me:f,m=n.onPageOffsetChange,v=void 0===m?Me:m,g=n.onClientOffsetChange,y=void 0===g?Me:g,b=n.onScrollOffsetChange,k=void 0===b?Me:b,w=n.onInitialScrollOffsetChange,O=void 0===w?Me:w,C=t.payload,x=C.element,E=C.hint,I=e.autoScrollDirection,_=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=_||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}),l(!0),C.onPress&&C.onPress(D);break;case Ee.SCROLL:if(D.type===Ee.SCROLL&&!e.pressed)break;var j=_||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 M=De(x),S=_||Ne(M.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}}(S,function(e){var t=De(e);return t&&t.defaultView||window}(x)));d({x:I&&!1===I.horizontal?0:R.x,y:I&&!1===I.vertical?0:R.y}),c(0!==R.y||0!==R.x)}!e.drag&&C.onDragStart&&C.onDragStart(D),C.onDrag&&C.onDrag(D);var T=Ie(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=_||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:l(!1),c(!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:l(!1),c(!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,l=void 0===s?w:s,c=t.onDrag,p=void 0===c?w:c,d=t.onDragEnd,f=void 0===d?w:d,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],I=u.useState(!1),_=I[0],D=I[1],P=Te(we)[0],j=Te(ke),N=j[0],M=j[1],S=u.useContext(Ce)[0],R=u.useContext(Oe),T=R[0],A=R[1],L=R[2],z=u.useRef({x:0,y:0}),B=u.useRef(),K=u.useRef(!1),F=u.useRef(),U=u.useRef(null),H=u.useRef(!1),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=u.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&Z,J=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=u.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),ee=u.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=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]),ne=u.useRef(null);u.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:ve,data:e.current}}));var oe=u.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=u.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=u.useCallback((function(){return{drag:N?N.current:null,drop:P?P.current:null,drags:T.map((function(e){return e.current})),drops:S.map((function(e){return e.current})),pressed:x,ignoreMouse:K.current,scrollOffset:Y.current,offset:V.current,pageOffset:W.current,initialScrollOffset:G.current,clientOffset:q.current,initialClientOffset:X.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:_}}),[N,P,T,S,x,b,te,_]),ae=u.useCallback((function(e){E(e)}),[]),se=u.useCallback((function(e){D(e)}),[]),le=u.useCallback((function(e){z.current=e}),[]),ue=u.useCallback((function(e){V.current=e}),[]),ce=u.useCallback((function(e){q.current=e}),[]),pe=u.useCallback((function(e){W.current=e}),[]),de=u.useCallback((function(e){X.current=e}),[]),fe=u.useCallback((function(e){Y.current=e}),[]),he=u.useCallback((function(e){G.current=e}),[]),me=u.useCallback((function(e){r(e)}),[r]),ve=u.useCallback((function(e){a(e)}),[a]),ge=u.useCallback((function(t){M(ne,{target:e.current,event:t}),l(t)}),[M,e,l]),ye=u.useCallback((function(e){p(e)}),[p]),be=u.useCallback((function(t){H.current||(M(null,{target:e.current,event:t}),f(t))}),[f,M,e]),xe=u.useCallback((function(e){Se(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ue,onClientOffsetChange:ce,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ue,pe,ce,de,he,ae,fe,se]),Ee=u.useCallback((function(e){xe(e)}),[xe]),Ie=u.useCallback((function(e){xe(e)}),[xe]),_e=u.useCallback((function(e){xe(e)}),[xe]),De=u.useCallback((function(e){xe(e)}),[xe]),Pe=u.useCallback((function(e){xe(e)}),[xe]),je=u.useCallback((function(e){xe(e)}),[xe]),Me=u.useCallback((function(e){xe(e)}),[xe]),Ae=u.useCallback((function(e){e.preventDefault(),xe(e)}),[xe]),Le=u.useCallback((function(e){e.preventDefault(),xe(e)}),[xe]),ze=u.useCallback((function(e){e.preventDefault(),xe(e)}),[xe]),Be=u.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();K.current=!0,F.current=t.setTimeout((function(){K.current=!1}),2e3)}xe(e)}),[xe,re]),Ke=u.useCallback((function(e){xe(e)}),[xe]),Fe=u.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ue=u.useCallback((function(){return A(ne),function(){L(ne)}}),[L,A]);u.useEffect((function(){var e=re();if(_){var t=ee()||Ne(document.elementFromPoint(q.current.x,q.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){Re(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[J,ee,re,_]),u.useEffect(Fe,[Fe]),u.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(U.current=Ne(t),U.current&&U.current.addEventListener("scroll",Ke,{passive:!0}),t.addEventListener("pointerdown",Ee,{passive:!0})),x&&(n.addEventListener("pointermove",Ie),n.addEventListener("pointerup",De,!0),n.addEventListener("contextmenu",Ae),n.addEventListener("pointercancel",_e,{passive:!0}))):(e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Pe,{passive:!0}),g||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",ze,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",je,{passive:!0}),n.addEventListener("mouseup",Me,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Ke),t&&(t.removeEventListener("pointerdown",Ee),t.removeEventListener("mousedown",Pe),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",ze),t.removeEventListener("touchend",Be)),n.removeEventListener("pointermove",Ie),n.removeEventListener("pointerup",De,!0),n.removeEventListener("contextmenu",Ae),n.removeEventListener("pointercancel",_e),n.removeEventListener("mousemove",je),n.removeEventListener("mouseup",Me),e.removeEventListener("touchmove",w),e.clearTimeout(F.current)}}),[x,re,J,oe,g,$,Ae,Pe,je,Me,_e,Ee,Ie,De,Be,ze,Le,Ke]),u.useEffect((function(){return function(){H.current=!0}}),[]),u.useLayoutEffect(Ue,[Ue])}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]),l=u.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),c=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:l,onDragEnd:c},{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 ze(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,l=t.onDrop,c=void 0===l?w:l,p=Te(we)[1],d=u.useContext(Ce),f=d[1],h=d[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}),c(t)}),[p,e,c]),O=u.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);u.useLayoutEffect(O,[O])}Le.displayName="KendoReactDraggable";var Be=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]),l=u.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return ze(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));Be.displayName="KendoReactDroppable";var Ke=n(21)},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];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},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,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return He})),n.d(t,"ToolbarItem",(function(){return We})),n.d(t,"ToolbarSeparator",(function(){return Xe})),n.d(t,"ToolbarSpacer",(function(){return Ye})),n.d(t,"Button",(function(){return f})),n.d(t,"ButtonGroup",(function(){return k})),n.d(t,"SplitButton",(function(){return Te})),n.d(t,"SplitButtonItem",(function(){return _})),n.d(t,"DropDownButton",(function(){return Ke})),n.d(t,"DropDownButtonItem",(function(){return Le})),n.d(t,"Chip",(function(){return ht})),n.d(t,"ChipList",(function(){return ct})),n.d(t,"FloatingActionButton",(function(){return It})),n.d(t,"FloatingActionButtonItem",(function(){return yt}));var o,r=n(0),i=n(1),a=n(4),s=n(21),l=n(17),u={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1645021e3,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},c=(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)}),p=function(){return(p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=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};var f=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(l.a)(u),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return c(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,n=this,o=this.props,i=o.children,l=o.togglable,u=o.icon,c=o.iconClass,f=o.imageUrl,h=o.imageAlt,m=(o.className,o.onClick,o.size),v=void 0===m?t.defaultProps.size:m,g=o.shape,y=void 0===g?t.defaultProps.shape:g,b=o.rounded,k=void 0===b?t.defaultProps.rounded:b,w=o.fillMode,O=void 0===w?t.defaultProps.fillMode:w,C=o.themeColor,x=void 0===C?t.defaultProps.themeColor:C,E=d(o,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),I=void 0!==u||void 0!==c||void 0!==f,_=void 0!==i,D=function(e){var t=e.imageUrl,n=e.icon,o=e.iconClass,i=e.imageAlt;if(t)return r.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var s=Object(a.a)("k-button-icon k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:Object(a.a)("k-button-icon",o)}):null}({icon:u,iconClass:c,imageUrl:f,imageAlt:h});return r.createElement("button",p({ref:function(e){return n._element=e},role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},E,{onClick:this.handleClick,className:Object(a.a)("k-button",(e={},e["k-button-"+(s.a.sizeMap[v]||v)]=v,e["k-button-"+y]=y,e["k-button-"+O]=O,e["k-button-"+O+"-"+x]=Boolean(O&&x),e["k-rounded-"+(s.a.roundedMap[k]||k)]=k,e["k-icon-button"]=!_&&I,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),D,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),h=':not(.k-disabled):not([disabled]):not([disabled="true"])',m=["button"+h,".k-button-group > button"+h,".k-dropdown > .k-dropdown-wrap"+h,".k-colorpicker > .k-picker-wrap"+h],v={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},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=v,k=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(l.a)(u),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={})["k-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)),l=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=y({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==u?{disabled:u}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,c,e.props.children):r.cloneElement(e,c)},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(15),O=n(16),C=n(18),x=function(e){var t,n=r.useCallback((function(t){e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),i=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=r.createElement("li",{id:e.id,className:Object(a.a)("k-item",e.className),onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},r.createElement("span",{tabIndex:-1,className:Object(a.a)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled,"k-focus":e.focused}),key:"icon"},o?r.createElement(o,{item:e.dataItem,itemIndex:e.index}):r.createElement(r.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&r.createElement("span",{className:Object(a.a)("k-icon",(t={},t["k-i-"+e.dataItem.icon]=e.dataItem.icon,t[""+e.dataItem.iconClass]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&r.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),i&&r.createElement("span",{className:"k-menu-link-text"},i))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};x.displayName="KendoReactButtonItem";var E=x,I=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I(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(26),j=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},N="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),M=n(3),S=n(12),R="bottom",T="center",A="middle",L="left",z="right",B="top";function K(e){return e.ownerDocument||e.document||e}var F=function(e){return K(e).defaultView},U=function(e){return K(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=F(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=F(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=F(e),o=n.getComputedStyle(e),r=X(e),i=t||q(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var u=n.getComputedStyle(i);(l=X(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.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="none",ne=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},oe=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===T||a===A)&&!(i===T||i===A)){var u=i===B||i===L;t<0&&u?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!u&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},re=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ie=function(e,t){for(var n,o,r=Y(e),i=t;i&&(n=re(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var ae,se,le,ue=(ae=function(e){if(!ce())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},le=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return le||(se=ae.apply(void 0,e),le=!0),se}),ce=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},pe={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:ue,canUseDOM:ce},de=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],fe=function(){return pe.canUseDOM()?window:null},he=/auto|scroll/,me=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)},ve=function(e){if(!e||!pe.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},ge=function(){return pe.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},ye={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,u=r.vertical,c=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return s===R&&(d+=t.height),s!==T&&s!==A||(d+=Math.round(t.height/2)),u===R&&(d-=o.height,p*=-1),u!==T&&u!==A||(d-=Math.round(o.height/2),p*=-1),a===z&&(f+=t.width),a!==T&&a!==A||(f+=Math.round(t.width/2)),l===z&&(f-=o.width,c*=-1),l!==T&&l!==A||(f-=Math.round(o.width/2),c*=-1),{top:d+p,left:f+c}},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 de.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,l=r.width,u=J(o,e),c=u.x,p=u.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:a+c*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,u=o.left,c=o.height,p=o.width,d=a.height,f=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+=ne(l,c,d)),b&&(v+=ne(u,p,f)),k&&(g+=oe({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=oe({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,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(!pe.canUseDOM())return t;for(var n=e.parentElement;n;)(he.test(me(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:ve,stackingElementOffset:function(e){var t=ve(e);return t?X(t):null},stackingElementScroll:function(e){var t=ve(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=ve(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(ve(e))},windowViewPort:W,zoomLevel:ge,isZoomed:function(){return ge()>1},zIndex:function(e,t){if(!e||!pe.canUseDOM())return null;var n=ie(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}},be=function(e,t){return e?{x:0,y:0}:ye.scrollPosition(t)},ke=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,u="fixed"===s||!ye.hasOffsetParent(n)?function(e,t,n,o){var r=be(e,t),i=pe.eitherRect(ye.offset(e),n),a=2*o,s=ye.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=ye.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),ye.removeScroll(ye.addScroll(pe.removeStackingOffset(pe.scaleRect(i,o),l),s),r)}(t,n,a,l):function(e,t,n,o){var r=pe.eitherRect(ye.position(e,t,o),n);return pe.scaleRect(r,o)}(t,n,a,l),c=pe.scaleRect(ye.offset(n),l);return ye.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:c,margin:i})},we=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,u=ye.offsetAtPoint(o,n),c=pe.scaleRect(u,l),p=pe.scaleRect(ye.offset(t),l),d=pe.eitherRect(p,n),f=e.viewPort||ye.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var h=ye.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),m=ye.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},Oe={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1645020979,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"},Ce=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(){return(xe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Ee(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,_e={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(Ie||(Ie={}));var De=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,l=t.margin,u=t.scale,c=t.positionMode,p=ke({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:c,scale:u}),d=we({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:p,margin:n.props.margin});if(e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},n.props.onPosition){var f={target:n,flipped:d.flipped,fitted:d.fitted};n.props.onPosition.call(void 0,f)}},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){if(n.props.popupAlign){var r,i=n.props.popupAlign,a=i.horizontal,s=i.vertical;r="left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up";n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),j(e),r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var u=l.defaultView;if(u){var c=function(){j(e),e.classList.add(i),u.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};N?u.requestAnimationFrame(c):c()}}}(e,r,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(l.a)(Oe),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,c)),a}}(n.reposition.bind(n),1e3/60),n}return Ce(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,l=e.className,u=e.popupClass,c=e.style,p=e.offset,d=e.contentKey,f=xe({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:u,style:c,offset:p,contentKey:d}});return e.show?t.current===Ie.hidden||t.current===Ie.hiding?xe({},f,{current:Ie.showing,previous:t.current}):t.current===Ie.showing?xe({},f,{current:Ie.shown,previous:t.current}):t.current!==Ie.shown||Ee(p,t.props.offset)&&Ee(r,t.props.anchorAlign)&&Ee(i,t.props.appendTo)&&Ee(a,t.props.collision)&&Ee(s,t.props.popupAlign)&&Ee(c,t.props.style)&&o===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?f:xe({},f,{current:Ie.reposition,previous:t.current}):t.current===Ie.hiding||t.current===Ie.hidden?xe({},f,{current:Ie.hidden,previous:t.current}):xe({},f,{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,l=t.id,u=t.positionMode,c=this.props.appendTo?this.props.appendTo:M.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,top:0,left:-1e4},this.props.style||{}),d=this.state.current===Ie.hiding;if((s||d)&&c){var f=this.getCurrentZIndex(),h=r.createElement(S.a.Provider,{value:f},r.createElement("div",{className:Object(a.a)("k-animation-container","k-animation-container-relative",o),id:l,ref:function(t){return e._popup=t},style:xe({zIndex:f},p)},r.createElement("div",{className:Object(a.a)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?P.createPortal(h,c):h}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=ye.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.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([Q,ee,te]),vertical:i.oneOf([Q,ee,te])}),anchorAlign:i.shape({horizontal:i.oneOf([L,T,z]),vertical:i.oneOf([B,T,R])}),popupAlign:i.shape({horizontal:i.oneOf([L,T,z]),vertical:i.oneOf([B,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,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:Q,vertical:ee},anchorAlign:{horizontal:L,vertical:R},popupAlign:{horizontal:L,vertical:B},offset:_e,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=S.a,t.displayName="PopupComponent",t}(r.Component),Pe=function(){return(Pe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},je=r.createContext((function(e){return e})),Ne=r.forwardRef((function(e,t){var n=r.useContext(je).call(void 0,e);return r.createElement(De,Pe({ref:t},n))}));function Me(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Se(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}Ne.displayName="Popup";var Re=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Te=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(l.a)(u),n}return Re(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===_})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,l=o.disabled,u=this.state.focusedIndex;return r.createElement("div",{className:Object(a.a)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-"+s.a.roundedMap[this.props.rounded||"medium"],this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(f,{size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:l||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":u>=0?this.guid+"-"+u:void 0},this.props.text),r.createElement(f,{size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"arrow-s",disabled:l||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!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,n=this.props.popupSettings,o=void 0===n?{}:n;return r.createElement(Ne,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:Object(a.a)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Me(e),popupAlign:o.popupAlign||Se(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{role:"menu",id:this.guid,className:Object(a.a)("k-group k-menu-group k-reset",(t={},t["k-menu-group-"+(s.a.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(E,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id: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,className:i.string,buttonClass:i.string,dir:i.string},t}(r.Component),Ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ae(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),ze=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Be=function(){return(Be=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ke=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.guid=Object(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=Be({},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.handleFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(C.a)(n.props.onFocus,e,n,void 0)},n.handleBlur=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(l.a)(u),n}return ze(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,l=this.state.focusedIndex;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===Le})).map((function(e){return e.props})),r.createElement("div",{className:Object(a.a)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(f,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled: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,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":l>=0?this.guid+"-"+l: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,n=this.props.popupSettings,o=void 0===n?{}:n;return r.createElement(Ne,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:Object(a.a)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Me(e),popupAlign:o.popupAlign||Se(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{role:"menu",id:this.guid,className:Object(a.a)("k-group k-menu-group k-reset",(t={},t["k-menu-group-"+(s.a.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(E,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id: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,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t}(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)}}(),Ue=function(){return(Ue=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)},He=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,Ue({target:o},i,{nativeEvent:e}))}}},Object(l.a)(u),o}return Fe(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||m},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),Ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),We=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return Ve(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),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(){return null!==e&&e.apply(this,arguments)||this}return qe(t,e),t.prototype.render=function(){return r.createElement(We,{className:"k-separator"})},t}(r.PureComponent),Ye=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})}));Ye.propTypes={className:i.string};var Ge,Ze,$e=n(19),Je=n(14),Qe=n(20),et=n(13);!function(e){e.single="single",e.multiple="multiple",e.none="none"}(Ge||(Ge={})),function(e){e.toggle="toggle",e.remove="remove"}(Ze||(Ze={}));var tt;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(tt||(tt={}));var nt;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(nt||(nt={}));var ot=function(){return(ot=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)},rt=r.createContext([null,function(e){}]),it=r.createContext([null,function(e){}]),at=r.createContext([null,function(e){}]),st=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 Ge.single:switch(t.type){case Ze.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 Ze.remove:return t.payload===e?null:e;default:return e}case Ge.multiple:switch(t.type){case Ze.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 Ze.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 Ge.none:return null;default:return e}}(t.state||i,ot({},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 tt.next:return n===t.items.length-1?e:t.items[n+1];case tt.prev:return 0===n?e:t.items[n-1];case tt.current:return t.payload;case tt.reset:return null;default:return e}}(t.payload,ot({},t,e));o(n)}]},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.type){case nt.add:break;case nt.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case nt.reorder:break;default:return e}}(t.state||i,ot({},e,t));n&&n(o,e.event),a(o)}]},ct=r.forwardRef((function(e,t){var n;Object(l.a)(u);var o=r.useRef(null),i=r.useRef(null),c=Object($e.a)(i,e.dir),p=e.chip,d=e.id,f=e.style,h=e.tabIndex,m=e.disabled,v=e.size,g=e.className,y=e.ariaDescribedBy,b=e.ariaLabelledBy,k=e.selection,w=void 0===k?dt.selection:k,O=e.value,C=void 0===O?dt.defaultValue:O,x=e.defaultData,E=void 0===x?dt.defaultData:x,I=e.valueField,_=void 0===I?dt.valueField:I,D=e.textField,P=void 0===D?dt.textField:D,j=e.onChange,N=e.onDataChange,M=r.useMemo((function(){return p||ht}),[p,ht]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var S=r.useCallback((function(e,t){j&&o.current&&j.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[j]),R=st(C,{selection:w,state:C},S),T=R[0],A=R[1],L=r.useCallback((function(e,t){N&&o.current&&N.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[N]),z=ut(e.data||E,{state:e.data,valueField:_},L),B=z[0],K=z[1],F=r.useCallback((function(e,t){return e.push(t[_]),e}),[_]),U=r.useMemo((function(){return e.data||B}),[e.data,B]),H=r.useMemo((function(){return C||T}),[C,T]),V=r.useMemo((function(){return U.reduce(F,[])}),[U,F]),W=r.useCallback((function(e){return Object(Je.a)(_)(e)}),[_]),q=r.useCallback((function(e){return Object(Je.a)(P)(e)}),[P]),X=lt({items:V}),Y=X[0],G=X[1],Z=Object(Qe.a)(e,o);return r.createElement(rt.Provider,{value:[H,A]},r.createElement(it.Provider,{value:[Y,G]},r.createElement(at.Provider,{value:[U,K]},r.createElement("div",ot({ref:i},Z,{role:"listbox",id:d,dir:c,style:f,tabIndex:Object(et.a)(h,m,void 0),className:Object(a.a)("k-chip-list",(n={"k-rtl":"rtl"===c,"k-disabled":m},n["k-chip-list-"+(s.a.sizeMap[v]||v)]=v,n),g),"aria-labelledby":b,"aria-describedby":y}),U.map((function(e,t){return r.createElement(M,{role:"option",dataItem:e,size:v,key:[W(e),t].join("-"),text:q(e),value:W(e)})}))))))})),pt={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"])},dt={chip:ht,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ct.displayName="KendoReactChipList",ct.propTypes=pt,ct.defaultProps=dt;var ft=function(){return(ft=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)},ht=r.forwardRef((function(e,t){var n;Object(l.a)(u);var o=r.useRef(null),i=r.useRef(null),c=Object($e.a)(i,e.dir);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var p=r.useContext(rt),d=p[0],f=p[1],h=r.useContext(it),m=h[0],v=h[1],g=r.useContext(at)[1],y=r.useMemo((function(){return e.selected||(Array.isArray(d)?d.some((function(t){return t===e.value})):d===e.value)}),[e.selected,e.value,d]),b=r.useMemo((function(){return m===e.value}),[e.value,m]);r.useEffect((function(){b&&i.current&&i.current.focus()}),[b]);var k=r.useCallback((function(t){f({type:Ze.toggle,payload:e.value,event:t})}),[f,e.value]),w=r.useCallback((function(t){e.removable&&(g({type:nt.remove,payload:e.value,event:t}),v({type:tt.reset,payload:e.value,event:t}),f({type:Ze.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,g,v,f]),C=r.useCallback((function(t){switch(t.keyCode){case O.a.left:v({type:tt.prev,payload:e.value,event:t});break;case O.a.right:v({type:tt.next,payload:e.value,event:t});break;case O.a.enter:f({type:Ze.toggle,payload:e.value,event:t});break;case O.a.delete:w(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,v,f,w]),x=r.useCallback((function(t){v({payload:e.value,type:tt.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,v]),E=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),I=Object(Qe.a)(e,o,{onClick:k});return r.createElement("div",ft({},I,{role:e.role,id:e.value,style:e.style,ref:i,dir:c,tabIndex:Object(et.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("k-chip",(n={"k-rtl":"rtl"===c,"k-disabled":e.disabled,"k-selected":y,"k-focus":b},n["k-chip-"+(s.a.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-"+(s.a.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-"+e.fillMode]=e.fillMode,n["k-chip-"+e.fillMode+"-"+e.themeColor]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":y,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:x,onBlur:E,onKeyDown:C}),y&&e.selectedIcon&&r.createElement("span",{className:Object(a.a)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:Object(a.a)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:Object(a.a)("k-chip-icon","k-icon",e.removeIcon),onClick:w}))})),mt={id:i.string,text:i.string,value:i.any,dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"outline","solid"]),themeColor:i.oneOf([null,"base","info","success","warning","error"])};ht.displayName="KendoReactChip",ht.propTypes=mt,ht.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-close-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var vt=function(){return(vt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},gt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},yt=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,l=e.style,u=e.id,c=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=gt(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!==d&&!o&&v(e,d)}),[v,d]),O=r.useMemo((function(){return Object(a.a)("k-fab-item",{"k-state-focus":c,"k-state-disabled":o},n)}),[n,o,c]),C=h;return r.createElement("li",vt({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(et.a)(p,o),"aria-disabled":o,"aria-label":(i||"")+" floatingactionbutton item",onClick:w,onMouseDown:m,onPointerDown:m},g),C?r.createElement(C,{itemIndex:d,item:f}):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)})))}));yt.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},yt.displayName="KendoFloatingActionButtonItem";var bt=function(e){return"number"==typeof e?e+"px":e},kt=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},wt=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Ot=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},Ct=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},xt=function(){return(xt=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)},Et=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},It=r.forwardRef((function(e,t){Object(l.a)(u);var n=e.align,o=void 0===n?_t.align:n,i=e.alignOffset,c=e.className,p=e.disabled,d=e.icon,f=e.iconClass,h=e.id,m=e.items,v=e.item,g=e.text,y=e.positionMode,b=void 0===y?_t.positionMode:y,k=e.shape,x=void 0===k?_t.shape:k,E=e.size,I=void 0===E?_t.size:E,_=e.style,D=e.rounded,P=void 0===D?_t.rounded:D,j=e.themeColor,N=void 0===j?_t.themeColor:j,M=e.tabIndex,S=e.accessKey,R=e.popupSettings,T=void 0===R?{}:R,A=e.onClick,L=e.onItemClick,z=e.onFocus,B=e.onBlur,K=e.onKeyDown,F=e.onOpen,U=e.onClose,H=Et(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),V=r.useRef(null),W=r.useRef(null),q=r.useRef(null),X=r.useRef(null),Y=r.useCallback((function(){W.current&&W.current.focus()}),[]),G=r.useCallback((function(){return{element:W.current,focus:Y}}),[Y]);r.useImperativeHandle(V,G),r.useImperativeHandle(t,(function(){return V.current}));var Z=r.useState(!1),$=Z[0],J=Z[1],Q=r.useState(!1),ee=Q[0],te=Q[1],ne=r.useState(-1),oe=ne[0],re=ne[1],ie=r.useMemo((function(){return Object(w.a)()}),[]),ae=Object($e.a)(W,e.dir),se="rtl"===ae,le=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?bt(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+bt(n.x)+")":"50%",l=n&&void 0!==n.y?bt(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+bt(n.y)+")":"50%";e.current.style.setProperty(Ot(t,o),"center"===r?s:a),e.current.style.setProperty(Ct(t),"middle"===i?u:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(W,o,i,se)}),[W,o,i,se]),r.useEffect((function(){ee&&W&&W.current&&W.current.focus()}),[ee,W]);var ue=r.useCallback((function(e,t){m&&Object(C.a)(t?F:U,e,G(),void 0)}),[F,U,m]),ce=r.useCallback((function(e){e.target&&!p&&(!m&&A?Object(C.a)(A,e,G(),void 0):(J(!$),te(!0),re($?-1:0),ue(e,!$)))}),[J,te,re,A,ue,$,m,p]),pe=r.useCallback((function(e){te(!0),re($?0:-1),z&&Object(C.a)(z,e,G(),void 0)}),[z,te,re]),de=r.useCallback((function(e){te(!1),J(!1),re(-1),Object(C.a)(B,e,G(),void 0),$&&ue(e,!1)}),[B,te,J,re,ue]),fe=r.useCallback((function(e){e.preventDefault()}),[]),he=r.useCallback((function(e,t){m&&(m[t].disabled||Object(C.a)(L,e,G(),{itemProps:m[t],itemIndex:t}))}),[L]),me=r.useCallback((function(e,t){e.target&&m&&(re(t),J(!1),he(e,t),ue(e,!1))}),[re,J,he,ue]),ve=r.useCallback((function(e){document.activeElement===W.current&&e.preventDefault()}),[W,document.activeElement]),ge=r.useCallback((function(e){var t=oe,n=m?m.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case O.a.enter:case O.a.space:t>=0&&he(e,t),e.preventDefault(),J(!$),re($?-1:0);break;case O.a.esc:e.preventDefault(),J(!1),re(-1);break;case O.a.home:e.preventDefault(),re(0);break;case O.a.end:e.preventDefault(),re(n);break;case O.a.down:case O.a.right:e.preventDefault(),t<n&&!r&&re(t+1),t>0&&r&&re(t-1);break;case O.a.up:case O.a.left:e.preventDefault(),t>0&&!r&&re(t-1),t<n&&r&&re(t+1)}Object(C.a)(K,e,G(),void 0)}),[K,oe,re,se,J]),ye=r.useMemo((function(){var e;return Object(a.a)("k-fab k-fab-solid",((e={})["k-fab-"+x]=x,e["k-fab-sm"]="small"===I,e["k-fab-md"]="medium"===I,e["k-fab-lg"]="large"===I,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===b,e["k-pos-fixed"]="fixed"===b,e["k-focus"]=ee,e["k-rounded-"+(s.a.roundedMap[P]||P)]=P,e["k-fab-solid-"+N]=N,e),"k-"+o.vertical+"-"+o.horizontal,c)}),[N,I,P,x,p,b,o,ee,c]),be=m&&m.map((function(e,t){return r.createElement(yt,xt({},e,{key:t,index:t,id:le+"-"+t,disabled:p||e.disabled,focused:oe===t,dataItem:e,item:v,className:Object(a.a)(e.className,(n=ae||"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:me,onDown:ve}));var n,i})),ke=d&&!g,we=(W.current?W.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",xt({ref:W,id:h||ie,role:m?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":m?$:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?le:void 0,"aria-activedescendant":oe>=0&&m?le+"-"+oe:void 0,tabIndex:Object(et.a)(M,p),accessKey:S,dir:ae,disabled:p,className:ye,style:_,onClick:ce,onMouseDown:fe,onFocus:pe,onBlur:de,onKeyDown:ge},H),d?r.createElement("span",{role:"presentation",className:Object(a.a)("k-fab-icon k-icon k-i-"+d)}):f?r.createElement("span",{role:"presentation",className:f}):null,g&&r.createElement("span",{className:"k-fab-text"},g)),r.createElement(Ne,{ref:X,anchor:W.current,show:$,animate:T.animate,popupClass:Object(a.a)("k-popup-transparent k-fab-popup",T.popupClass),anchorAlign:T.anchorAlign||kt(o,se),popupAlign:T.popupAlign||wt(o,se),style:{boxShadow:"none"}},r.createElement("ul",{ref:q,role:"menu","aria-labelledby":h,id:le,className:Object(a.a)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:ke?we:void 0,paddingRight:ke?we:void 0}},be)))}));It.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf([null,"rectangle","square"]),size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),themeColor:i.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var _t={align:{vertical:"bottom",horizontal:"end"},shape:"rectangle",size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};It.displayName="KendoFloatingActionButton"},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(22),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},t.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},t.prototype.getTimestampView=function(){var e=null;return this.props.item.timestamp&&(e=i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},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=l,s.registerForIntl(l)},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(8);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,n){"use strict";n.d(t,"a",(function(){return o}));var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},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(11);t.ChatMessage=r.ChatMessage,o(n(28)),o(n(38))},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),l=n(29),u=n(30),c=n(32),p=n(33),d=n(34),f=n(35),h=n(11),m=n(2),v=n(37),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(f.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},t.prototype.componentDidMount=function(){var e=this;this.setState({isFirstRender:!1},(function(){e.nextTickId=window.setTimeout((function(){return e.scrollViewItemsToBottom()}),250)}))},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidUpdate=function(e){e.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},t.prototype.getClassNames=function(){return i.classNames("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},t.prototype.checkIsDirectionRightToLeft=function(e){var t=void 0!==e.dir?"rtl"===e.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},t.prototype.renderViewItems=function(){var e=this,n=this.viewItems.length-1;return this.viewItems.map((function(o,r){return"date-marker"===o.type?s.createElement(p.default,{item:o,key:r}):"message-group"===o.type?s.createElement(d.default,{group:o,itemTemplate:e.props.messageTemplate,attachmentTemplate:e.props.attachmentTemplate,user:e.props.user,selectedItemIndex:e.state.selectedItemIndex,onRequestSelection:e.onSelectionRequested,isLastGroup:r===n,key:r,message:e.props.message||t.defaultProps.message}):"attachment-group"===o.type?s.createElement(c.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?l.convertMsgsToViewItems(e):[]},t.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(s.Component);t.Chat=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),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(31),l=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map((function(n,o){return i.createElement(s.default,{item:n,onActionExecute:e.props.onActionExecute,selected:o===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&o===e.state.selectedItemIndex,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,key:o})})))},t.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},t}(n(24).SelectableItemsContainer);t.default=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(2),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},t.prototype.getClassNames=function(){return 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=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(25),l=n(24),u=n(7),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(u.Button,{icon:"arrow-chevron-left",onClick:function(){return e.onNavigateBtnClick(!1)}})),t},t.prototype.getRightScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()&&(t=i.createElement(u.Button,{icon:"arrow-chevron-right",onClick:function(){return e.onNavigateBtnClick(!0)}})),t},t.prototype.onAttachmentClick=function(e){this.onRequestContainerSelection(),this.setState({selectedItemIndex:e})},t.prototype.onNavigateBtnClick=function(e){this.onRequestContainerSelection(),this.navigate(e,1)},t.prototype.isCardDeckLayout=function(e){return"list"!==e.group.attachmentLayout},t.prototype.getClassNames=function(){return a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(l.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(22),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(25),l=n(23),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":l.isAuthor(this.props.user,this.props.group.messages[0])})},t.prototype.getAvatarView=function(){var e=null;return this.props.group.author.avatarUrl&&(e=i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"})),e},t.prototype.getAuthorNameView=function(){var e=null;return this.props.group.author.name&&(e=i.createElement("p",{className:"k-author"},this.props.group.author.name)),e},t.prototype.getGroupMessagesView=function(){var e=this,t=this.props.group.messages.length-1;return this.props.group.messages.map((function(n,o){var r=[i.createElement(e.props.message,{item:n,template:e.props.itemTemplate,selected:n.selectionIndex===e.props.selectedItemIndex,onRequestSelection:e.props.onRequestSelection,tabIndex:o===t&&e.props.isLastGroup?0:-1,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,isOnlyItemInGroup:0===t,key:o})];return n.attachments&&1===n.attachments.length&&r.push(i.createElement(s.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-"+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(36),l=n(7),u=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(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:t.buttonIconPath})))),r=a.createElement(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:n,sendButton:o,toolbarButton: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 k-input k-input-md k-input-solid k-input-solid-base")},t.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",t}(a.Component);t.default=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(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:1645021086,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(7),s=n(2),l=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,{fillMode:"flat",onClick:function(n){return e.onBtnClick(t,n)}},t.title))}))},t.prototype.getTitleView=function(){var e=null;return this.props.title&&(e=i.createElement("h5",{className:"k-card-title"},this.props.title)),e},t.prototype.getSubtitleView=function(){var e=null;return this.props.subtitle&&(e=i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle)),e},t}(i.Component);t.HeroCard=l}])}));
|
|
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=27)}([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 l.a})),n.d(t,"cloneDate",(function(){return c})),n.d(t,"clone",(function(){return p})),n.d(t,"cloneObject",(function(){return d})),n.d(t,"cloneValue",(function(){return f})),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 _})),n.d(t,"mapTree",(function(){return j})),n.d(t,"mapTreeItem",(function(){return N})),n.d(t,"extendDataItem",(function(){return M})),n.d(t,"getItemPath",(function(){return S})),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 B})),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 K})),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 Be})),n.d(t,"useDraggable",(function(){return Ae})),n.d(t,"useDroppable",(function(){return ze})),n.d(t,"kendoThemeMaps",(function(){return Ke.a}));var o=n(12),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))},l=n(4),u=n(0),c=function(e){return e?new Date(e.getTime()):null};function p(e){var t={};return d(e,t),t}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=f(o,t[n])}}function f(e,t){if(Array.isArray(e))return h(e);if(e instanceof Date)return c(e);if(u.isValidElement(e))return u.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return d(e,n),n}return e}function h(e){return e.map((function(e){return f(e,void 0)}))}var m=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}},v=function(){},g=n(13),y=n(14),b=n(15),k=n(16),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}},I=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function _(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]]||I(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,l=t[t.length-1],u=o(s[l]);s.splice(l,1,u)},M=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},S=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(17),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(18);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]),l=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]),c=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:l,onBlur:c}}var 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)},B=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,z({},n))},K=function(e,t){return u.useContext(e)(t)},F=function(){return(F=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=K(e,n);return u.createElement(t,F({},r,{ref:o}))}))},V=n(19);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(20),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,c=Q(e,["className","name","themeColor","size","flip","style"]),p=u.useRef(null),d=u.useRef(null);u.useImperativeHandle(p,(function(){return{element:d.current}})),u.useImperativeHandle(t,(function(){return p.current}));var f=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(l.a)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},$[h],n)}),[o,f,h,m,n]),g=Object(X.a)(e,p);return u.createElement("span",J({ref:d},c,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,c=e.style,p=e.svgStyle,d=e.themeColor,f=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 d||ie.themeColor}),[d]),y=u.useMemo((function(){return s||ie.size}),[s]),b=u.useMemo((function(){return a||ie.flip}),[a]),k=u.useMemo((function(){return f||ie.viewBox}),[f]),w=u.useMemo((function(){return Object(l.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},c):e.width?ne({width:e.width,height:e.width},c):e.height?ne({width:e.height,height:e.height},c):ne({},c)}),[e.width,e.height,c]);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"},le={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"},ce={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"},de={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},fe={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,l=t.themeColor,c=t.margin,p=me(t,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=u.useRef(null),f=u.useRef(null);u.useImperativeHandle(d,(function(){return{element:f.current,props:t}})),u.useImperativeHandle(n,(function(){return d.current}));var h=e,m=function(){if(void 0!==c){if("string"==typeof c)return[le[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var e=[];return Object.keys(c).forEach((function(t){var n,o;null!==c[t]&&void 0!==c[t]&&e.push((n=t,o=c[t],""+ce[n]+("string"==typeof o?ue[o]:o)))})),e.join(" ")}}};return u.createElement(h,he({ref:f,className:["k-"+("p"===e?"paragraph":e),ae[r],se[i],pe[a],de[s],fe[l],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([]),l=s[0],c=s[1],p=G([]),d=p[0],f=p[1];return u.createElement(ke.Provider,{value:[n,o]},u.createElement(we.Provider,{value:[i,a]},u.createElement(Oe.Provider,{value:[l,function(e){c({type:q.add,item:e})},function(e){c({type:q.remove,item:e})}]},u.createElement(Ce.Provider,{value:[d,function(e){f({type:q.add,item:e})},function(e){f({type:q.remove,item:e})}]},e.children))))};xe.displayName="KendoReactDragAndDrop";var Ee,Ie=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,u=s-r;if(i<a&&r<s){var c=o.width*o.height,p=n.width*n.height,d=l*u;return Number((d/(c+p-d)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o},_e=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=_e(),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 Me=function(){},Se=function(e,t,n){void 0===n&&(n={});var o,r,i,a,s=n.onIsPressedChange,l=void 0===s?Me:s,u=n.onIsScrollingChange,c=void 0===u?Me:u,p=n.onVelocityChange,d=void 0===p?Me:p,f=n.onOffsetChange,h=void 0===f?Me:f,m=n.onPageOffsetChange,v=void 0===m?Me:m,g=n.onClientOffsetChange,y=void 0===g?Me:g,b=n.onScrollOffsetChange,k=void 0===b?Me:b,w=n.onInitialScrollOffsetChange,O=void 0===w?Me:w,C=t.payload,x=C.element,E=C.hint,I=e.autoScrollDirection,_=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=_||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}),l(!0),C.onPress&&C.onPress(D);break;case Ee.SCROLL:if(D.type===Ee.SCROLL&&!e.pressed)break;var j=_||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 M=De(x),S=_||Ne(M.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}}(S,function(e){var t=De(e);return t&&t.defaultView||window}(x)));d({x:I&&!1===I.horizontal?0:R.x,y:I&&!1===I.vertical?0:R.y}),c(0!==R.y||0!==R.x)}!e.drag&&C.onDragStart&&C.onDragStart(D),C.onDrag&&C.onDrag(D);var T=Ie(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=_||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:l(!1),c(!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:l(!1),c(!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,l=void 0===s?w:s,c=t.onDrag,p=void 0===c?w:c,d=t.onDragEnd,f=void 0===d?w:d,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],I=u.useState(!1),_=I[0],D=I[1],P=Te(we)[0],j=Te(ke),N=j[0],M=j[1],S=u.useContext(Ce)[0],R=u.useContext(Oe),T=R[0],A=R[1],L=R[2],z=u.useRef({x:0,y:0}),B=u.useRef(),K=u.useRef(!1),F=u.useRef(),U=u.useRef(null),H=u.useRef(!1),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=u.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),$=!g&&Z,J=u.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),Q=u.useCallback((function(){return m&&m.current&&m.current.element?m.current.element:m?m.current:null}),[m]),ee=u.useCallback((function(){return O&&O.current&&O.current.element?O.current.element:O?O.current:null}),[O]),te=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]),ne=u.useRef(null);u.useImperativeHandle(ne,(function(){return{element:J(),hint:Q(),onPress:me,onDragStart:ge,onDrag:ye,onDragEnd:be,onRelease:ve,data:e.current}}));var oe=u.useCallback((function(){var e=J();return e&&e.ownerDocument||document}),[J]),re=u.useCallback((function(){var e=oe();return e&&e.defaultView||window}),[oe]),ie=u.useCallback((function(){return{drag:N?N.current:null,drop:P?P.current:null,drags:T.map((function(e){return e.current})),drops:S.map((function(e){return e.current})),pressed:x,ignoreMouse:K.current,scrollOffset:Y.current,offset:V.current,pageOffset:W.current,initialScrollOffset:G.current,clientOffset:q.current,initialClientOffset:X.current,velocity:z.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:te(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:_}}),[N,P,T,S,x,b,te,_]),ae=u.useCallback((function(e){E(e)}),[]),se=u.useCallback((function(e){D(e)}),[]),le=u.useCallback((function(e){z.current=e}),[]),ue=u.useCallback((function(e){V.current=e}),[]),ce=u.useCallback((function(e){q.current=e}),[]),pe=u.useCallback((function(e){W.current=e}),[]),de=u.useCallback((function(e){X.current=e}),[]),fe=u.useCallback((function(e){Y.current=e}),[]),he=u.useCallback((function(e){G.current=e}),[]),me=u.useCallback((function(e){r(e)}),[r]),ve=u.useCallback((function(e){a(e)}),[a]),ge=u.useCallback((function(t){M(ne,{target:e.current,event:t}),l(t)}),[M,e,l]),ye=u.useCallback((function(e){p(e)}),[p]),be=u.useCallback((function(t){H.current||(M(null,{target:e.current,event:t}),f(t))}),[f,M,e]),xe=u.useCallback((function(e){Se(ie(),{event:e,payload:ne.current},{onVelocityChange:le,onOffsetChange:ue,onClientOffsetChange:ce,onPageOffsetChange:pe,onInitialClientOffsetChange:de,onScrollOffsetChange:fe,onInitialScrollOffsetChange:he,onIsPressedChange:ae,onIsScrollingChange:se})}),[ie,le,ue,pe,ce,de,he,ae,fe,se]),Ee=u.useCallback((function(e){xe(e)}),[xe]),Ie=u.useCallback((function(e){xe(e)}),[xe]),_e=u.useCallback((function(e){xe(e)}),[xe]),De=u.useCallback((function(e){xe(e)}),[xe]),Pe=u.useCallback((function(e){xe(e)}),[xe]),je=u.useCallback((function(e){xe(e)}),[xe]),Me=u.useCallback((function(e){xe(e)}),[xe]),Ae=u.useCallback((function(e){e.preventDefault(),xe(e)}),[xe]),Le=u.useCallback((function(e){e.preventDefault(),xe(e)}),[xe]),ze=u.useCallback((function(e){e.preventDefault(),xe(e)}),[xe]),Be=u.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=re();K.current=!0,F.current=t.setTimeout((function(){K.current=!1}),2e3)}xe(e)}),[xe,re]),Ke=u.useCallback((function(e){xe(e)}),[xe]),Fe=u.useCallback((function(){var e=J();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[J]),Ue=u.useCallback((function(){return A(ne),function(){L(ne)}}),[L,A]);u.useEffect((function(){var e=re();if(_){var t=ee()||Ne(document.elementFromPoint(q.current.x,q.current.y));e.clearInterval(B.current),B.current=e.setInterval((function(){Re(t,{x:z.current.x,y:z.current.y})}),50)}return function(){e.clearInterval(B.current)}}),[J,ee,re,_]),u.useEffect(Fe,[Fe]),u.useEffect((function(){var e=re(),t=J(),n=oe();return $?(t&&(U.current=Ne(t),U.current&&U.current.addEventListener("scroll",Ke,{passive:!0}),t.addEventListener("pointerdown",Ee,{passive:!0})),x&&(n.addEventListener("pointermove",Ie),n.addEventListener("pointerup",De,!0),n.addEventListener("contextmenu",Ae),n.addEventListener("pointercancel",_e,{passive:!0}))):(e.addEventListener("touchmove",w,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Pe,{passive:!0}),g||(t.addEventListener("touchstart",Le,{passive:!0}),x&&(t.addEventListener("touchmove",ze,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),x&&(n.addEventListener("mousemove",je,{passive:!0}),n.addEventListener("mouseup",Me,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Ke),t&&(t.removeEventListener("pointerdown",Ee),t.removeEventListener("mousedown",Pe),t.removeEventListener("touchstart",Le),t.removeEventListener("touchmove",ze),t.removeEventListener("touchend",Be)),n.removeEventListener("pointermove",Ie),n.removeEventListener("pointerup",De,!0),n.removeEventListener("contextmenu",Ae),n.removeEventListener("pointercancel",_e),n.removeEventListener("mousemove",je),n.removeEventListener("mouseup",Me),e.removeEventListener("touchmove",w),e.clearTimeout(F.current)}}),[x,re,J,oe,g,$,Ae,Pe,je,Me,_e,Ee,Ie,De,Be,ze,Le,Ke]),u.useEffect((function(){return function(){H.current=!0}}),[]),u.useLayoutEffect(Ue,[Ue])}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]),l=u.useCallback((function(t){e.onDrag&&e.onDrag({element:r(),target:o.current,event:t})}),[r,e.onDrag]),c=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:l,onDragEnd:c},{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 ze(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,l=t.onDrop,c=void 0===l?w:l,p=Te(we)[1],d=u.useContext(Ce),f=d[1],h=d[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}),c(t)}),[p,e,c]),O=u.useCallback((function(){return f(v),function(){h(v)}}),[h,f]);u.useLayoutEffect(O,[O])}Le.displayName="KendoReactDraggable";var Be=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]),l=u.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return ze(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?u.cloneElement(u.Children.only(e.children),{ref:n}):null}));Be.displayName="KendoReactDroppable";var Ke=n(21)},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];var n={},o=function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0},r=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r(e):o(e)}))};return r(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},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,n){"use strict";n.r(t),n.d(t,"Toolbar",(function(){return He})),n.d(t,"ToolbarItem",(function(){return We})),n.d(t,"ToolbarSeparator",(function(){return Xe})),n.d(t,"ToolbarSpacer",(function(){return Ye})),n.d(t,"Button",(function(){return f})),n.d(t,"ButtonGroup",(function(){return k})),n.d(t,"SplitButton",(function(){return Te})),n.d(t,"SplitButtonItem",(function(){return _})),n.d(t,"DropDownButton",(function(){return Ke})),n.d(t,"DropDownButtonItem",(function(){return Le})),n.d(t,"Chip",(function(){return ht})),n.d(t,"ChipList",(function(){return ct})),n.d(t,"FloatingActionButton",(function(){return It})),n.d(t,"FloatingActionButtonItem",(function(){return yt}));var o,r=n(0),i=n(1),a=n(4),s=n(21),l=n(17),u={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1645174657,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},c=(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)}),p=function(){return(p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=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};var f=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(l.a)(u),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return c(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,n=this,o=this.props,i=o.children,l=o.togglable,u=o.icon,c=o.iconClass,f=o.imageUrl,h=o.imageAlt,m=(o.className,o.onClick,o.size),v=void 0===m?t.defaultProps.size:m,g=o.shape,y=void 0===g?t.defaultProps.shape:g,b=o.rounded,k=void 0===b?t.defaultProps.rounded:b,w=o.fillMode,O=void 0===w?t.defaultProps.fillMode:w,C=o.themeColor,x=void 0===C?t.defaultProps.themeColor:C,E=d(o,["children","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick","size","shape","rounded","fillMode","themeColor"]),I=void 0!==u||void 0!==c||void 0!==f,_=void 0!==i,D=function(e){var t=e.imageUrl,n=e.icon,o=e.iconClass,i=e.imageAlt;if(t)return r.createElement("img",{role:"presentation",className:"k-button-icon",alt:i,src:t});if(n){var s=Object(a.a)("k-button-icon k-icon","k-i-"+n);return r.createElement("span",{role:"presentation",className:s})}return o?r.createElement("span",{role:"presentation",className:Object(a.a)("k-button-icon",o)}):null}({icon:u,iconClass:c,imageUrl:f,imageAlt:h});return r.createElement("button",p({ref:function(e){return n._element=e},role:l?"checkbox":void 0,"aria-disabled":this.props.disabled||void 0,"aria-checked":l?this.state.selected:void 0},E,{onClick:this.handleClick,className:Object(a.a)("k-button",(e={},e["k-button-"+(s.a.sizeMap[v]||v)]=v,e["k-button-"+y]=y,e["k-button-"+O]=O,e["k-button-"+O+"-"+x]=Boolean(O&&x),e["k-rounded-"+(s.a.roundedMap[k]||k)]=k,e["k-icon-button"]=!_&&I,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),D,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),shape:i.oneOf([null,"rectangle","square"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",shape:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component),h=':not(.k-disabled):not([disabled]):not([disabled="true"])',m=["button"+h,".k-button-group > button"+h,".k-dropdown > .k-dropdown-wrap"+h,".k-colorpicker > .k-picker-wrap"+h],v={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"},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=v,k=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,Object(l.a)(u),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={})["k-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)),l=y({},this.props.width?{width:this.props.width}:{},e.props.style||{}),u=this.props.disabled||e.props.disabled,c=y({},e.props,s?{className:s}:{},Object.keys(l).length?{style:l}:{},void 0!==u?{disabled:u}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,c,e.props.children):r.cloneElement(e,c)},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(15),O=n(16),C=n(18),x=function(e){var t,n=r.useCallback((function(t){e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),i=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=r.createElement("li",{id:e.id,className:Object(a.a)("k-item",e.className),onClick:n,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},r.createElement("span",{tabIndex:-1,className:Object(a.a)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled,"k-focus":e.focused}),key:"icon"},o?r.createElement(o,{item:e.dataItem,itemIndex:e.index}):r.createElement(r.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&r.createElement("span",{className:Object(a.a)("k-icon",(t={},t["k-i-"+e.dataItem.icon]=e.dataItem.icon,t[""+e.dataItem.iconClass]=e.dataItem.iconClass,t))}),e.dataItem.imageUrl&&r.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),i&&r.createElement("span",{className:"k-menu-link-text"},i))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};x.displayName="KendoReactButtonItem";var E=x,I=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I(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(26),j=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},N="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),M=n(3),S=n(12),R="bottom",T="center",A="middle",L="left",z="right",B="top";function K(e){return e.ownerDocument||e.document||e}var F=function(e){return K(e).defaultView},U=function(e){return K(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=F(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=F(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=F(e),o=n.getComputedStyle(e),r=X(e),i=t||q(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var u=n.getComputedStyle(i);(l=X(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.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="none",ne=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},oe=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&!(a===T||a===A)&&!(i===T||i===A)){var u=i===B||i===L;t<0&&u?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!u&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},re=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ie=function(e,t){for(var n,o,r=Y(e),i=t;i&&(n=re(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o};var ae,se,le,ue=(ae=function(e){if(!ce())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},le=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return le||(se=ae.apply(void 0,e),le=!0),se}),ce=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},pe={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:ue,canUseDOM:ce},de=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],fe=function(){return pe.canUseDOM()?window:null},he=/auto|scroll/,me=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)},ve=function(e){if(!e||!pe.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},ge=function(){return pe.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},ye={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,u=r.vertical,c=i.horizontal||0,p=i.vertical||0,d=t.top,f=t.left;return s===R&&(d+=t.height),s!==T&&s!==A||(d+=Math.round(t.height/2)),u===R&&(d-=o.height,p*=-1),u!==T&&u!==A||(d-=Math.round(o.height/2),p*=-1),a===z&&(f+=t.width),a!==T&&a!==A||(f+=Math.round(t.width/2)),l===z&&(f-=o.width,c*=-1),l!==T&&l!==A||(f-=Math.round(o.width/2),c*=-1),{top:d+p,left:f+c}},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 de.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,l=r.width,u=J(o,e),c=u.x,p=u.y,d=e.ownerDocument,f=o===d.body||o===d.documentElement?1:n;return{top:i+p*f,left:a+c*f,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,u=o.left,c=o.height,p=o.width,d=a.height,f=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+=ne(l,c,d)),b&&(v+=ne(u,p,f)),k&&(g+=oe({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=oe({margin:h,offset:u,size:p,anchorSize:t.width,viewPortSize:f,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(!pe.canUseDOM())return t;for(var n=e.parentElement;n;)(he.test(me(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:ve,stackingElementOffset:function(e){var t=ve(e);return t?X(t):null},stackingElementScroll:function(e){var t=ve(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=ve(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(ve(e))},windowViewPort:W,zoomLevel:ge,isZoomed:function(){return ge()>1},zIndex:function(e,t){if(!e||!pe.canUseDOM())return null;var n=ie(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}},be=function(e,t){return e?{x:0,y:0}:ye.scrollPosition(t)},ke=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,u="fixed"===s||!ye.hasOffsetParent(n)?function(e,t,n,o){var r=be(e,t),i=pe.eitherRect(ye.offset(e),n),a=2*o,s=ye.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=ye.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),ye.removeScroll(ye.addScroll(pe.removeStackingOffset(pe.scaleRect(i,o),l),s),r)}(t,n,a,l):function(e,t,n,o){var r=pe.eitherRect(ye.position(e,t,o),n);return pe.scaleRect(r,o)}(t,n,a,l),c=pe.scaleRect(ye.offset(n),l);return ye.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:c,margin:i})},we=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,u=ye.offsetAtPoint(o,n),c=pe.scaleRect(u,l),p=pe.scaleRect(ye.offset(t),l),d=pe.eitherRect(p,n),f=e.viewPort||ye.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var h=ye.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:i,elementRect:c,margin:s,viewPort:f}),m=ye.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}},Oe={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1645174635,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"},Ce=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(){return(xe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Ee(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,_e={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(Ie||(Ie={}));var De=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,l=t.margin,u=t.scale,c=t.positionMode,p=ke({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:c,scale:u}),d=we({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:p,margin:n.props.margin});if(e.style.top=d.offset.top+"px",e.style.left=d.offset.left+"px",n._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},n.props.onPosition){var f={target:n,flipped:d.flipped,fitted:d.fitted};n.props.onPosition.call(void 0,f)}},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){if(n.props.popupAlign){var r,i=n.props.popupAlign,a=i.horizontal,s=i.vertical;r="left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up";n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,a=i+"-active",s=function(t){t.target===e&&(e.removeEventListener("transitionend",s),j(e),r())};e.addEventListener("transitionend",s);var l=e.ownerDocument;if(l){var u=l.defaultView;if(u){var c=function(){j(e),e.classList.add(i),u.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(a)}))};N?u.requestAnimationFrame(c):c()}}}(e,r,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(l.a)(Oe),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=u,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,c)),a}}(n.reposition.bind(n),1e3/60),n}return Ce(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,l=e.className,u=e.popupClass,c=e.style,p=e.offset,d=e.contentKey,f=xe({},t,{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:u,style:c,offset:p,contentKey:d}});return e.show?t.current===Ie.hidden||t.current===Ie.hiding?xe({},f,{current:Ie.showing,previous:t.current}):t.current===Ie.showing?xe({},f,{current:Ie.shown,previous:t.current}):t.current!==Ie.shown||Ee(p,t.props.offset)&&Ee(r,t.props.anchorAlign)&&Ee(i,t.props.appendTo)&&Ee(a,t.props.collision)&&Ee(s,t.props.popupAlign)&&Ee(c,t.props.style)&&o===t.props.anchor&&u===t.props.popupClass&&l===t.props.className?f:xe({},f,{current:Ie.reposition,previous:t.current}):t.current===Ie.hiding||t.current===Ie.hidden?xe({},f,{current:Ie.hidden,previous:t.current}):xe({},f,{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,l=t.id,u=t.positionMode,c=this.props.appendTo?this.props.appendTo:M.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,top:0,left:-1e4},this.props.style||{}),d=this.state.current===Ie.hiding;if((s||d)&&c){var f=this.getCurrentZIndex(),h=r.createElement(S.a.Provider,{value:f},r.createElement("div",{className:Object(a.a)("k-animation-container","k-animation-container-relative",o),id:l,ref:function(t){return e._popup=t},style:xe({zIndex:f},p)},r.createElement("div",{className:Object(a.a)("k-popup",i,"k-child-animation-container"),style:{transitionDelay:"0ms"}},n)));return null!==this.props.appendTo?P.createPortal(h,c):h}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!0,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=ye.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.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([Q,ee,te]),vertical:i.oneOf([Q,ee,te])}),anchorAlign:i.shape({horizontal:i.oneOf([L,T,z]),vertical:i.oneOf([B,T,R])}),popupAlign:i.shape({horizontal:i.oneOf([L,T,z]),vertical:i.oneOf([B,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,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:Q,vertical:ee},anchorAlign:{horizontal:L,vertical:R},popupAlign:{horizontal:L,vertical:B},offset:_e,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=S.a,t.displayName="PopupComponent",t}(r.Component),Pe=function(){return(Pe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},je=r.createContext((function(e){return e})),Ne=r.forwardRef((function(e,t){var n=r.useContext(je).call(void 0,e);return r.createElement(De,Pe({ref:t},n))}));function Me(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function Se(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}Ne.displayName="Popup";var Re=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Te=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(l.a)(u),n}return Re(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===_})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,o=this.props,i=o.tabIndex,l=o.disabled,u=this.state.focusedIndex;return r.createElement("div",{className:Object(a.a)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-"+s.a.roundedMap[this.props.rounded||"medium"],this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(f,{size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:l||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":this.opened,"aria-label":this.props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":u>=0?this.guid+"-"+u:void 0},this.props.text),r.createElement(f,{size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"arrow-s",disabled:l||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!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,n=this.props.popupSettings,o=void 0===n?{}:n;return r.createElement(Ne,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:Object(a.a)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Me(e),popupAlign:o.popupAlign||Se(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{role:"menu",id:this.guid,className:Object(a.a)("k-group k-menu-group k-reset",(t={},t["k-menu-group-"+(s.a.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(E,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id: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,className:i.string,buttonClass:i.string,dir:i.string},t}(r.Component),Ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ae(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),ze=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Be=function(){return(Be=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ke=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.guid=Object(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=Be({},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.handleFocus=function(e){n.setState({focused:!0,focusedIndex:n.opened?0:-1}),Object(C.a)(n.props.onFocus,e,n,void 0)},n.handleBlur=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(l.a)(u),n}return ze(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,l=this.state.focusedIndex;return this.buttonsData=this.props.items||r.Children.toArray(this.props.children).filter((function(e){return e&&e.type===Le})).map((function(e){return e.props})),r.createElement("div",{className:Object(a.a)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},r.createElement(f,{size:this.props.size,shape:this.props.shape,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled: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,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":l>=0?this.guid+"-"+l: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,n=this.props.popupSettings,o=void 0===n?{}:n;return r.createElement(Ne,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:Object(a.a)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||Me(e),popupAlign:o.popupAlign||Se(e),style:e?{direction:"rtl"}:void 0},r.createElement("ul",{role:"menu",id:this.guid,className:Object(a.a)("k-group k-menu-group k-reset",(t={},t["k-menu-group-"+(s.a.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,i=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return r.createElement(E,{className:"k-menu-item",dataItem:t,textField:i,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id: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,onFocus:i.func,onBlur:i.func,onItemClick:i.func,onOpen:i.func,onClose:i.func,items:i.arrayOf(i.any),textField:i.string,tabIndex:i.number,disabled:i.bool,icon:i.string,iconClass:i.string,imageUrl:i.string,popupSettings:i.object,itemRender:i.func,item:i.func,className:i.string,buttonClass:i.string,dir:i.string},t}(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)}}(),Ue=function(){return(Ue=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)},He=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,Ue({target:o},i,{nativeEvent:e}))}}},Object(l.a)(u),o}return Fe(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||m},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),Ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),We=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return Ve(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),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(){return null!==e&&e.apply(this,arguments)||this}return qe(t,e),t.prototype.render=function(){return r.createElement(We,{className:"k-separator"})},t}(r.PureComponent),Ye=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})}));Ye.propTypes={className:i.string};var Ge,Ze,$e=n(19),Je=n(14),Qe=n(20),et=n(13);!function(e){e.single="single",e.multiple="multiple",e.none="none"}(Ge||(Ge={})),function(e){e.toggle="toggle",e.remove="remove"}(Ze||(Ze={}));var tt;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(tt||(tt={}));var nt;!function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(nt||(nt={}));var ot=function(){return(ot=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)},rt=r.createContext([null,function(e){}]),it=r.createContext([null,function(e){}]),at=r.createContext([null,function(e){}]),st=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 Ge.single:switch(t.type){case Ze.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 Ze.remove:return t.payload===e?null:e;default:return e}case Ge.multiple:switch(t.type){case Ze.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 Ze.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 Ge.none:return null;default:return e}}(t.state||i,ot({},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 tt.next:return n===t.items.length-1?e:t.items[n+1];case tt.prev:return 0===n?e:t.items[n-1];case tt.current:return t.payload;case tt.reset:return null;default:return e}}(t.payload,ot({},t,e));o(n)}]},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.type){case nt.add:break;case nt.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case nt.reorder:break;default:return e}}(t.state||i,ot({},e,t));n&&n(o,e.event),a(o)}]},ct=r.forwardRef((function(e,t){var n;Object(l.a)(u);var o=r.useRef(null),i=r.useRef(null),c=Object($e.a)(i,e.dir),p=e.chip,d=e.id,f=e.style,h=e.tabIndex,m=e.disabled,v=e.size,g=e.className,y=e.ariaDescribedBy,b=e.ariaLabelledBy,k=e.selection,w=void 0===k?dt.selection:k,O=e.value,C=void 0===O?dt.defaultValue:O,x=e.defaultData,E=void 0===x?dt.defaultData:x,I=e.valueField,_=void 0===I?dt.valueField:I,D=e.textField,P=void 0===D?dt.textField:D,j=e.onChange,N=e.onDataChange,M=r.useMemo((function(){return p||ht}),[p,ht]);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var S=r.useCallback((function(e,t){j&&o.current&&j.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[j]),R=st(C,{selection:w,state:C},S),T=R[0],A=R[1],L=r.useCallback((function(e,t){N&&o.current&&N.call(void 0,{value:e,target:o.current,syntheticEvent:t})}),[N]),z=ut(e.data||E,{state:e.data,valueField:_},L),B=z[0],K=z[1],F=r.useCallback((function(e,t){return e.push(t[_]),e}),[_]),U=r.useMemo((function(){return e.data||B}),[e.data,B]),H=r.useMemo((function(){return C||T}),[C,T]),V=r.useMemo((function(){return U.reduce(F,[])}),[U,F]),W=r.useCallback((function(e){return Object(Je.a)(_)(e)}),[_]),q=r.useCallback((function(e){return Object(Je.a)(P)(e)}),[P]),X=lt({items:V}),Y=X[0],G=X[1],Z=Object(Qe.a)(e,o);return r.createElement(rt.Provider,{value:[H,A]},r.createElement(it.Provider,{value:[Y,G]},r.createElement(at.Provider,{value:[U,K]},r.createElement("div",ot({ref:i},Z,{role:"listbox",id:d,dir:c,style:f,tabIndex:Object(et.a)(h,m,void 0),className:Object(a.a)("k-chip-list",(n={"k-rtl":"rtl"===c,"k-disabled":m},n["k-chip-list-"+(s.a.sizeMap[v]||v)]=v,n),g),"aria-labelledby":b,"aria-describedby":y}),U.map((function(e,t){return r.createElement(M,{role:"option",dataItem:e,size:v,key:[W(e),t].join("-"),text:q(e),value:W(e)})}))))))})),pt={id:i.string,className:i.string,tabIndex:i.number,data:i.any,defaultData:i.arrayOf(i.any),onDataChange:i.func,value:i.oneOfType([i.any,i.arrayOf(i.any)]),defaultValue:i.oneOfType([i.any,i.arrayOf(i.any)]),onChange:i.func,selection:i.oneOf(["single","none","multiple"]),textField:i.string,valueField:i.string,disabled:i.bool,dir:i.oneOf(["ltr","rtl"]),ariaLabelledBy:i.string,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"])},dt={chip:ht,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};ct.displayName="KendoReactChipList",ct.propTypes=pt,ct.defaultProps=dt;var ft=function(){return(ft=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)},ht=r.forwardRef((function(e,t){var n;Object(l.a)(u);var o=r.useRef(null),i=r.useRef(null),c=Object($e.a)(i,e.dir);r.useImperativeHandle(o,(function(){return{element:i.current,props:e}})),r.useImperativeHandle(t,(function(){return o.current}));var p=r.useContext(rt),d=p[0],f=p[1],h=r.useContext(it),m=h[0],v=h[1],g=r.useContext(at)[1],y=r.useMemo((function(){return e.selected||(Array.isArray(d)?d.some((function(t){return t===e.value})):d===e.value)}),[e.selected,e.value,d]),b=r.useMemo((function(){return m===e.value}),[e.value,m]);r.useEffect((function(){b&&i.current&&i.current.focus()}),[b]);var k=r.useCallback((function(t){f({type:Ze.toggle,payload:e.value,event:t})}),[f,e.value]),w=r.useCallback((function(t){e.removable&&(g({type:nt.remove,payload:e.value,event:t}),v({type:tt.reset,payload:e.value,event:t}),f({type:Ze.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:o.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,g,v,f]),C=r.useCallback((function(t){switch(t.keyCode){case O.a.left:v({type:tt.prev,payload:e.value,event:t});break;case O.a.right:v({type:tt.next,payload:e.value,event:t});break;case O.a.enter:f({type:Ze.toggle,payload:e.value,event:t});break;case O.a.delete:w(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onKeyDown,e.value,v,f,w]),x=r.useCallback((function(t){v({payload:e.value,type:tt.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onFocus,e.value,v]),E=r.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:o.current,syntheticEvent:t})}),[e.onBlur]),I=Object(Qe.a)(e,o,{onClick:k});return r.createElement("div",ft({},I,{role:e.role,id:e.value,style:e.style,ref:i,dir:c,tabIndex:Object(et.a)(e.tabIndex,e.disabled,void 0),className:Object(a.a)("k-chip",(n={"k-rtl":"rtl"===c,"k-disabled":e.disabled,"k-selected":y,"k-focus":b},n["k-chip-"+(s.a.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-"+(s.a.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-"+e.fillMode]=e.fillMode,n["k-chip-"+e.fillMode+"-"+e.themeColor]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":y,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:x,onBlur:E,onKeyDown:C}),y&&e.selectedIcon&&r.createElement("span",{className:Object(a.a)("k-chip-icon","k-icon",e.selectedIcon)}),e.icon&&r.createElement("span",{className:Object(a.a)("k-chip-icon","k-icon",e.icon)}),r.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&r.createElement("span",{"aria-label":e.text,className:"k-chip-label"},e.text)),e.removable&&r.createElement("span",{className:Object(a.a)("k-chip-icon","k-icon",e.removeIcon),onClick:w}))})),mt={id:i.string,text:i.string,value:i.any,dir:i.oneOf(["ltr","rtl"]),removable:i.bool,removeIcon:i.string,disabled:i.bool,icon:i.string,selectedIcon:i.string,onRemove:i.func,dataItem:i.any,selected:i.bool,ariaDescribedBy:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"outline","solid"]),themeColor:i.oneOf([null,"base","info","success","warning","error"])};ht.displayName="KendoReactChip",ht.propTypes=mt,ht.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-close-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};var vt=function(){return(vt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},gt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},yt=r.forwardRef((function(e,t){var n=e.className,o=e.disabled,i=e.text,s=e.icon,l=e.style,u=e.id,c=e.focused,p=e.tabIndex,d=e.index,f=e.dataItem,h=e.item,m=e.onDown,v=e.onClick,g=gt(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!==d&&!o&&v(e,d)}),[v,d]),O=r.useMemo((function(){return Object(a.a)("k-fab-item",{"k-state-focus":c,"k-state-disabled":o},n)}),[n,o,c]),C=h;return r.createElement("li",vt({ref:y,id:u,className:O,style:l,role:"menuitem",tabIndex:Object(et.a)(p,o),"aria-disabled":o,"aria-label":(i||"")+" floatingactionbutton item",onClick:w,onMouseDown:m,onPointerDown:m},g),C?r.createElement(C,{itemIndex:d,item:f}):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)})))}));yt.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},yt.displayName="KendoFloatingActionButtonItem";var bt=function(e){return"number"==typeof e?e+"px":e},kt=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},wt=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Ot=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},Ct=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},xt=function(){return(xt=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)},Et=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},It=r.forwardRef((function(e,t){Object(l.a)(u);var n=e.align,o=void 0===n?_t.align:n,i=e.alignOffset,c=e.className,p=e.disabled,d=e.icon,f=e.iconClass,h=e.id,m=e.items,v=e.item,g=e.text,y=e.positionMode,b=void 0===y?_t.positionMode:y,k=e.shape,x=void 0===k?_t.shape:k,E=e.size,I=void 0===E?_t.size:E,_=e.style,D=e.rounded,P=void 0===D?_t.rounded:D,j=e.themeColor,N=void 0===j?_t.themeColor:j,M=e.tabIndex,S=e.accessKey,R=e.popupSettings,T=void 0===R?{}:R,A=e.onClick,L=e.onItemClick,z=e.onFocus,B=e.onBlur,K=e.onKeyDown,F=e.onOpen,U=e.onClose,H=Et(e,["align","alignOffset","className","disabled","icon","iconClass","id","items","item","text","positionMode","shape","size","style","rounded","themeColor","tabIndex","accessKey","popupSettings","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),V=r.useRef(null),W=r.useRef(null),q=r.useRef(null),X=r.useRef(null),Y=r.useCallback((function(){W.current&&W.current.focus()}),[]),G=r.useCallback((function(){return{element:W.current,focus:Y}}),[Y]);r.useImperativeHandle(V,G),r.useImperativeHandle(t,(function(){return V.current}));var Z=r.useState(!1),$=Z[0],J=Z[1],Q=r.useState(!1),ee=Q[0],te=Q[1],ne=r.useState(-1),oe=ne[0],re=ne[1],ie=r.useMemo((function(){return Object(w.a)()}),[]),ae=Object($e.a)(W,e.dir),se="rtl"===ae,le=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?bt(n.x):"16px",s=n&&void 0!==n.x?"calc(50% + "+bt(n.x)+")":"50%",l=n&&void 0!==n.y?bt(n.y):"16px",u=n&&void 0!==n.y?"calc(50% + "+bt(n.y)+")":"50%";e.current.style.setProperty(Ot(t,o),"center"===r?s:a),e.current.style.setProperty(Ct(t),"middle"===i?u:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(W,o,i,se)}),[W,o,i,se]),r.useEffect((function(){ee&&W&&W.current&&W.current.focus()}),[ee,W]);var ue=r.useCallback((function(e,t){m&&Object(C.a)(t?F:U,e,G(),void 0)}),[F,U,m]),ce=r.useCallback((function(e){e.target&&!p&&(!m&&A?Object(C.a)(A,e,G(),void 0):(J(!$),te(!0),re($?-1:0),ue(e,!$)))}),[J,te,re,A,ue,$,m,p]),pe=r.useCallback((function(e){te(!0),re($?0:-1),z&&Object(C.a)(z,e,G(),void 0)}),[z,te,re]),de=r.useCallback((function(e){te(!1),J(!1),re(-1),Object(C.a)(B,e,G(),void 0),$&&ue(e,!1)}),[B,te,J,re,ue]),fe=r.useCallback((function(e){e.preventDefault()}),[]),he=r.useCallback((function(e,t){m&&(m[t].disabled||Object(C.a)(L,e,G(),{itemProps:m[t],itemIndex:t}))}),[L]),me=r.useCallback((function(e,t){e.target&&m&&(re(t),J(!1),he(e,t),ue(e,!1))}),[re,J,he,ue]),ve=r.useCallback((function(e){document.activeElement===W.current&&e.preventDefault()}),[W,document.activeElement]),ge=r.useCallback((function(e){var t=oe,n=m?m.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case O.a.enter:case O.a.space:t>=0&&he(e,t),e.preventDefault(),J(!$),re($?-1:0);break;case O.a.esc:e.preventDefault(),J(!1),re(-1);break;case O.a.home:e.preventDefault(),re(0);break;case O.a.end:e.preventDefault(),re(n);break;case O.a.down:case O.a.right:e.preventDefault(),t<n&&!r&&re(t+1),t>0&&r&&re(t-1);break;case O.a.up:case O.a.left:e.preventDefault(),t>0&&!r&&re(t-1),t<n&&r&&re(t+1)}Object(C.a)(K,e,G(),void 0)}),[K,oe,re,se,J]),ye=r.useMemo((function(){var e;return Object(a.a)("k-fab k-fab-solid",((e={})["k-fab-"+x]=x,e["k-fab-sm"]="small"===I,e["k-fab-md"]="medium"===I,e["k-fab-lg"]="large"===I,e["k-disabled"]=p,e["k-pos-absolute"]="absolute"===b,e["k-pos-fixed"]="fixed"===b,e["k-focus"]=ee,e["k-rounded-"+(s.a.roundedMap[P]||P)]=P,e["k-fab-solid-"+N]=N,e),"k-"+o.vertical+"-"+o.horizontal,c)}),[N,I,P,x,p,b,o,ee,c]),be=m&&m.map((function(e,t){return r.createElement(yt,xt({},e,{key:t,index:t,id:le+"-"+t,disabled:p||e.disabled,focused:oe===t,dataItem:e,item:v,className:Object(a.a)(e.className,(n=ae||"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:me,onDown:ve}));var n,i})),ke=d&&!g,we=(W.current?W.current.offsetWidth:0)/2-16;return r.createElement(r.Fragment,null,r.createElement("button",xt({ref:W,id:h||ie,role:m?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":m?$:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?le:void 0,"aria-activedescendant":oe>=0&&m?le+"-"+oe:void 0,tabIndex:Object(et.a)(M,p),accessKey:S,dir:ae,disabled:p,className:ye,style:_,onClick:ce,onMouseDown:fe,onFocus:pe,onBlur:de,onKeyDown:ge},H),d?r.createElement("span",{role:"presentation",className:Object(a.a)("k-fab-icon k-icon k-i-"+d)}):f?r.createElement("span",{role:"presentation",className:f}):null,g&&r.createElement("span",{className:"k-fab-text"},g)),r.createElement(Ne,{ref:X,anchor:W.current,show:$,animate:T.animate,popupClass:Object(a.a)("k-popup-transparent k-fab-popup",T.popupClass),anchorAlign:T.anchorAlign||kt(o,se),popupAlign:T.popupAlign||wt(o,se),style:{boxShadow:"none"}},r.createElement("ul",{ref:q,role:"menu","aria-labelledby":h,id:le,className:Object(a.a)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:ke?we:void 0,paddingRight:ke?we:void 0}},be)))}));It.propTypes={className:i.string,style:i.object,id:i.string,dir:i.string,tabIndex:i.number,accessKey:i.string,disabled:i.bool,icon:i.string,iconClass:i.string,text:i.string,alignOffset:i.shape({x:i.oneOfType([i.number,i.string]),y:i.oneOfType([i.number,i.string])}),align:i.shape({vertical:i.oneOf(["top","middle","bottom"]),horizontal:i.oneOf(["start","center","end"])}),positionMode:i.oneOf(["absolute","fixed"]),shape:i.oneOf([null,"rectangle","square"]),size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),themeColor:i.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};var _t={align:{vertical:"bottom",horizontal:"end"},shape:"rectangle",size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};It.displayName="KendoFloatingActionButton"},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(22),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},t.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},t.prototype.getTimestampView=function(){var e=null;return this.props.item.timestamp&&(e=i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},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=l,s.registerForIntl(l)},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(8);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,n){"use strict";n.d(t,"a",(function(){return o}));var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},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(11);t.ChatMessage=r.ChatMessage,o(n(28)),o(n(38))},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),l=n(29),u=n(30),c=n(32),p=n(33),d=n(34),f=n(35),h=n(11),m=n(2),v=n(37),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(f.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},t.prototype.componentDidMount=function(){var e=this;this.setState({isFirstRender:!1},(function(){e.nextTickId=window.setTimeout((function(){return e.scrollViewItemsToBottom()}),250)}))},t.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},t.prototype.componentDidUpdate=function(e){e.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},t.prototype.getClassNames=function(){return i.classNames("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},t.prototype.checkIsDirectionRightToLeft=function(e){var t=void 0!==e.dir?"rtl"===e.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},t.prototype.renderViewItems=function(){var e=this,n=this.viewItems.length-1;return this.viewItems.map((function(o,r){return"date-marker"===o.type?s.createElement(p.default,{item:o,key:r}):"message-group"===o.type?s.createElement(d.default,{group:o,itemTemplate:e.props.messageTemplate,attachmentTemplate:e.props.attachmentTemplate,user:e.props.user,selectedItemIndex:e.state.selectedItemIndex,onRequestSelection:e.onSelectionRequested,isLastGroup:r===n,key:r,message:e.props.message||t.defaultProps.message}):"attachment-group"===o.type?s.createElement(c.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?l.convertMsgsToViewItems(e):[]},t.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},t.defaultProps={messages:[],dateFormat:"g",message:h.ChatMessage},t}(s.Component);t.Chat=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),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(31),l=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map((function(n,o){return i.createElement(s.default,{item:n,onActionExecute:e.props.onActionExecute,selected:o===e.state.selectedItemIndex,tabbable:e.props.isLastGroup&&o===e.state.selectedItemIndex,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,key:o})})))},t.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},t}(n(24).SelectableItemsContainer);t.default=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(2),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyDown=function(e){e.keyCode===a.Keys.enter&&t.props.onActionExecute(t.props.item,e)},t}return r(t,e),t.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},t.prototype.getClassNames=function(){return 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=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(25),l=n(24),u=n(7),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(u.Button,{icon:"arrow-chevron-left",onClick:function(){return e.onNavigateBtnClick(!1)}})),t},t.prototype.getRightScrollBtn=function(){var e=this,t=null;return this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()&&(t=i.createElement(u.Button,{icon:"arrow-chevron-right",onClick:function(){return e.onNavigateBtnClick(!0)}})),t},t.prototype.onAttachmentClick=function(e){this.onRequestContainerSelection(),this.setState({selectedItemIndex:e})},t.prototype.onNavigateBtnClick=function(e){this.onRequestContainerSelection(),this.navigate(e,1)},t.prototype.isCardDeckLayout=function(e){return"list"!==e.group.attachmentLayout},t.prototype.getClassNames=function(){return a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},t}(l.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(22),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(25),l=n(23),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":l.isAuthor(this.props.user,this.props.group.messages[0])})},t.prototype.getAvatarView=function(){var e=null;return this.props.group.author.avatarUrl&&(e=i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"})),e},t.prototype.getAuthorNameView=function(){var e=null;return this.props.group.author.name&&(e=i.createElement("p",{className:"k-author"},this.props.group.author.name)),e},t.prototype.getGroupMessagesView=function(){var e=this,t=this.props.group.messages.length-1;return this.props.group.messages.map((function(n,o){var r=[i.createElement(e.props.message,{item:n,template:e.props.itemTemplate,selected:n.selectionIndex===e.props.selectedItemIndex,onRequestSelection:e.props.onRequestSelection,tabIndex:o===t&&e.props.isLastGroup?0:-1,isFirstItemInGroup:0===o,isLastItemInGroup:o===t,isOnlyItemInGroup:0===t,key:o})];return n.attachments&&1===n.attachments.length&&r.push(i.createElement(s.default,{item:n.attachments[0],template:e.props.attachmentTemplate,selected:!1,key:"att-"+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(36),l=n(7),u=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(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:t.buttonIconPath})))),r=a.createElement(l.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:n,sendButton:o,toolbarButton: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 k-input k-input-md k-input-solid k-input-solid-base")},t.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",t}(a.Component);t.default=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(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:1645174745,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(7),s=n(2),l=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,{fillMode:"flat",onClick:function(n){return e.onBtnClick(t,n)}},t.title))}))},t.prototype.getTitleView=function(){var e=null;return this.props.title&&(e=i.createElement("h5",{className:"k-card-title"},this.props.title)),e},t.prototype.getSubtitleView=function(){var e=null;return this.props.subtitle&&(e=i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle)),e},t}(i.Component);t.HeroCard=l}])}));
|
|
@@ -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: 1645174745,
|
|
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: 1645174745,
|
|
11
11
|
version: '',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-conversational-ui",["react","@progress/kendo-react-intl","@progress/kendo-react-common","@progress/kendo-react-buttons"],function(a){var s,i,c,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){i=e(t)},function(t){c=e(t)},function(t){p=e(t)}],execute:function(){function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o;n=[function(t,e){t.exports=s},function(t,e){t.exports=c},function(t,e,n){"use strict";var o,r,s=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)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),r=n(0).Component,s(i,r),i.prototype.componentDidUpdate=function(t){!t.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==r&&r.apply(this,arguments)||this}e.FocusableUponSelection=n},function(t,e){t.exports=p},function(p,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(5),e=(n=e(2).FocusableUponSelection,r(c,n),c.prototype.render=function(){var e=this;return s.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())},c.prototype.getMainView=function(){return this.props.item.typing?s.createElement("div",{className:"k-bubble"},s.createElement("div",{className:"k-typing-indicator"},s.createElement("span",null),s.createElement("span",null),s.createElement("span",null))):this.props.template?s.createElement(this.props.template,{item:this.props.item}):this.props.item.text?s.createElement("div",{className:"k-bubble"},this.props.item.text):null},c.prototype.getTimestampView=function(){var t=null;return t=this.props.item.timestamp?s.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},a.provideIntlService(this).formatDate(this.props.item.timestamp,this.props.dateFormat)):t},c.prototype.getStatusView=function(){var t=null;return t=this.props.item.status?s.createElement("span",{className:"k-message-status"},this.props.item.status):t},c.prototype.getClassNames=function(){return i.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")},c.defaultProps={dateFormat:"g",tabIndex:-1},c);function c(){return null!==n&&n.apply(this,arguments)||this}t.ChatMessage=e,a.registerForIntl(e)},function(t,e){t.exports=i},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,s,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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),a=n(1),n=(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=n},function(t,e,n){"use strict";var o,r,s=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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),a=n(1),n=(r=n(2).FocusableUponSelection,s(c,r),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!==r&&r.apply(this,arguments)||this}e.default=n},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,s=e(4),i=(n.ChatMessage=s.ChatMessage,o(e(10)),o(e(23)),n);for(r in i)a(r,i[r])},function(u,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(1)),i=e(11),a=e(0),c=e(14),l=e(15),m=e(17),h=e(18),d=e(19),f=e(20),y=e(4),g=e(1),_=e(22),e=(n=a.Component,r(p,n),p.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),a.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},a.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},a.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),a.createElement(f.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},p.prototype.componentDidMount=function(){var t=this;this.setState({isFirstRender:!1},function(){t.nextTickId=window.setTimeout(function(){return t.scrollViewItemsToBottom()},250)})},p.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},p.prototype.componentDidUpdate=function(t){t.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},p.prototype.getClassNames=function(){return s.classNames("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},p.prototype.checkIsDirectionRightToLeft=function(t){t=void 0!==t.dir?"rtl"===t.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},p.prototype.renderViewItems=function(){var n=this,o=this.viewItems.length-1;return this.viewItems.map(function(t,e){return"date-marker"===t.type?a.createElement(h.default,{item:t,key:e}):"message-group"===t.type?a.createElement(d.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||p.defaultProps.message}):"attachment-group"===t.type?a.createElement(m.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?a.createElement(l.default,{group:t,onActionExecute:n.onActionExecute,onRequestSelection:n.onSelectionRequested,selected:t.selectionIndex===n.state.selectedItemIndex,isLastGroup:e===o,key:e}):void 0})},p.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},p.prototype.getViewItemsFromMsgs=function(t){return 0<t.length?c.convertMsgsToViewItems(t):[]},p.propTypes={messages:i.arrayOf(i.object),user:i.object,messageTemplate:i.any,attachmentTemplate:i.any,width:i.oneOfType([i.string,i.number]),onMessageSend:i.func,onActionExecute:i.func,dir:i.string,messageBox:i.any},p.defaultProps={messages:[],dateFormat:"g",message:y.ChatMessage},p);function p(t){var o=n.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===s.Keys.up?null===n?e=0:0<n&&(e=n-1):t.keyCode===s.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){s.dispatchEvent(o.props.onMessageSend,e,o,{message:t})},o.onActionExecute=function(t,e){if(s.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()}},g.validatePackage(_.packageMetadata),o.state={selectedItemIndex:null,isFirstRender:!0},o}t.Chat=e},function(t,e,n){t.exports=n(12)()},function(t,e,n){"use strict";var i=n(13);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,r,s){if(s!==i)throw(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")).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=n===a-1;return o=t,s=e.timestamp,i=c(o),!s||i&&(i=i.timestamp,!(r=s)||!i||i.getDate()===r.getDate()&&i.getMonth()===r.getMonth()&&i.getFullYear()===r.getFullYear())||(i={type:"date-marker",timestamp:s,trackBy:s.getTime()},o.push(i)),r=e,o=c(s=t),i=void 0,r.typing&&!n||((i=o&&"message-group"===o.type?o.messages:i)&&p.isAuthor(r.author,c(i))?i.push(r):s.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&&n&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}}var p=n(6);e.convertMsgsToViewItems=function(t){var e,t=t.slice().reduce(o(t.length),[]),n=0;return(e=t).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++)}),e.lastSelectionIndex=n-1,t}},function(p,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(16),e=(n=e(7).SelectableItemsContainer,r(c,n),c.prototype.render=function(){var n=this,o=this.props.group.actions?this.props.group.actions.length-1:0;return s.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map(function(t,e){return s.createElement(a.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})}))},c.prototype.getClassNames=function(){return i.classNames("k-quick-replies")},c);function c(t){return n.call(this,t)||this}t.default=e},function(p,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(1),e=(n=e(2).FocusableUponSelection,r(c,n),c.prototype.render=function(){var e=this;return s.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)},c.prototype.getClassNames=function(){return a.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected})},c);function c(){var e=null!==n&&n.apply(this,arguments)||this;return e.onKeyDown=function(t){t.keyCode===i.Keys.enter&&e.props.onActionExecute(e.props.item,t)},e}t.default=e},function(u,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(8),l=e(7),c=e(3),e=(n=l.SelectableItemsContainer,r(p,n),p.prototype.render=function(){var n=this,t=this.isCardDeckLayout(this.props),e=s.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map(function(t,e){return s.createElement(a.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?s.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?s.createElement(c.Button,{icon:"arrow-chevron-left",onClick:function(){return t.onNavigateBtnClick(!1)}}):e},p.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?s.createElement(c.Button,{icon:"arrow-chevron-right",onClick:function(){return t.onNavigateBtnClick(!0)}}):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 i.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},p);function p(){return null!==n&&n.apply(this,arguments)||this}t.default=e},function(t,e,n){"use strict";var o,r,s=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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),a=n(5),n=(r=i.Component,s(c,r),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!==r&&r.apply(this,arguments)||this}e.default=n,a.registerForIntl(n)},function(u,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(8),c=e(6),e=(n=s.Component,r(p,n),p.prototype.render=function(){return s.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},p.prototype.getMsgGroupClassNames=function(){return i.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":c.isAuthor(this.props.user,this.props.group.messages[0])})},p.prototype.getAvatarView=function(){var t=null;return t=this.props.group.author.avatarUrl?s.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"}):t},p.prototype.getAuthorNameView=function(){var t=null;return t=this.props.group.author.name?s.createElement("p",{className:"k-author"},this.props.group.author.name):t},p.prototype.getGroupMessagesView=function(){var o=this,r=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var n=[s.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(s.createElement(a.default,{item:t.attachments[0],template:o.props.attachmentTemplate,selected:!1,key:"att-"+e})),n})},p);function p(){return null!==n&&n.apply(this,arguments)||this}t.default=e},function(u,t,e){"use strict";var o,r,n=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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(1)),i=e(0),a=e(21),c=e(3),e=(r=i.Component,n(p,r),p.prototype.render=function(){var e=this,t=i.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=i.createElement(c.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},i.createElement("span",{className:"k-button-icon k-icon"},i.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},i.createElement("path",{d:p.buttonIconPath})))),o=i.createElement(c.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},i.createElement("span",{className:"k-button-icon k-icon"},i.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},i.createElement("g",null,i.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"}),i.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"}),i.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 i.createElement(i.Fragment,null,i.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?i.createElement(this.props.MessageBox,{messageInput:t,sendButton:n,toolbarButton:o}):i.createElement(i.Fragment,null,t,this.props.toolbar&&o,n)),this.props.showToolbar&&i.createElement(a.default,null,this.props.toolbar))},p.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},p.prototype.getClassNames=function(){return s.classNames({"k-state-focused":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},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!==r&&r.apply(this,arguments)||this;return n.state={focused:!1},n.inputEl=null,n.onInputKeyDown=function(t){t.keyCode===s.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}t.default=e},function(t,e,n){"use strict";var o,r,s=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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),n=(r=i.Component,s(a,r),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!==r&&r.apply(this,arguments)||this}e.default=n},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:1645021086,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(p,t,e){"use strict";var o,r,n=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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(3),a=e(1),e=(r=s.Component,n(c,r),c.prototype.render=function(){return s.createElement("div",{className:"k-card"},s.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),s.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),s.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},c.prototype.getActionsView=function(){var n=this;return this.props.actions.map(function(e,t){return s.createElement("span",{className:"k-card-action",key:t},s.createElement(i.Button,{fillMode:"flat",onClick:function(t){return n.onBtnClick(e,t)}},e.title))})},c.prototype.getTitleView=function(){var t=null;return t=this.props.title?s.createElement("h5",{className:"k-card-title"},this.props.title):t},c.prototype.getSubtitleView=function(){var t=null;return t=this.props.subtitle?s.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):t},c);function c(){var n=null!==r&&r.apply(this,arguments)||this;return n.onBtnClick=function(t,e){a.dispatchEvent(n.props.onActionExecute,e,n,{action:t})},n}t.HeroCard=e}],o={},r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=9)}}});
|
|
1
|
+
System.register("@progress/kendo-react-conversational-ui",["@progress/kendo-react-common","@progress/kendo-react-intl","react","@progress/kendo-react-buttons"],function(a){var s,i,c,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){i=e(t)},function(t){c=e(t)},function(t){p=e(t)}],execute:function(){function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o;n=[function(t,e){t.exports=c},function(t,e){t.exports=s},function(t,e,n){"use strict";var o,r,s=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)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),r=n(0).Component,s(i,r),i.prototype.componentDidUpdate=function(t){!t.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==r&&r.apply(this,arguments)||this}e.FocusableUponSelection=n},function(t,e){t.exports=p},function(p,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(5),e=(n=e(2).FocusableUponSelection,r(c,n),c.prototype.render=function(){var e=this;return s.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())},c.prototype.getMainView=function(){return this.props.item.typing?s.createElement("div",{className:"k-bubble"},s.createElement("div",{className:"k-typing-indicator"},s.createElement("span",null),s.createElement("span",null),s.createElement("span",null))):this.props.template?s.createElement(this.props.template,{item:this.props.item}):this.props.item.text?s.createElement("div",{className:"k-bubble"},this.props.item.text):null},c.prototype.getTimestampView=function(){var t=null;return t=this.props.item.timestamp?s.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},a.provideIntlService(this).formatDate(this.props.item.timestamp,this.props.dateFormat)):t},c.prototype.getStatusView=function(){var t=null;return t=this.props.item.status?s.createElement("span",{className:"k-message-status"},this.props.item.status):t},c.prototype.getClassNames=function(){return i.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")},c.defaultProps={dateFormat:"g",tabIndex:-1},c);function c(){return null!==n&&n.apply(this,arguments)||this}t.ChatMessage=e,a.registerForIntl(e)},function(t,e){t.exports=i},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,s,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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),a=n(1),n=(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=n},function(t,e,n){"use strict";var o,r,s=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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),a=n(1),n=(r=n(2).FocusableUponSelection,s(c,r),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!==r&&r.apply(this,arguments)||this}e.default=n},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,s=e(4),i=(n.ChatMessage=s.ChatMessage,o(e(10)),o(e(23)),n);for(r in i)a(r,i[r])},function(u,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(1)),i=e(11),a=e(0),c=e(14),l=e(15),m=e(17),h=e(18),d=e(19),f=e(20),y=e(4),g=e(1),_=e(22),e=(n=a.Component,r(p,n),p.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),a.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},a.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},a.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),a.createElement(f.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},p.prototype.componentDidMount=function(){var t=this;this.setState({isFirstRender:!1},function(){t.nextTickId=window.setTimeout(function(){return t.scrollViewItemsToBottom()},250)})},p.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},p.prototype.componentDidUpdate=function(t){t.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},p.prototype.getClassNames=function(){return s.classNames("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},p.prototype.checkIsDirectionRightToLeft=function(t){t=void 0!==t.dir?"rtl"===t.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},p.prototype.renderViewItems=function(){var n=this,o=this.viewItems.length-1;return this.viewItems.map(function(t,e){return"date-marker"===t.type?a.createElement(h.default,{item:t,key:e}):"message-group"===t.type?a.createElement(d.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||p.defaultProps.message}):"attachment-group"===t.type?a.createElement(m.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?a.createElement(l.default,{group:t,onActionExecute:n.onActionExecute,onRequestSelection:n.onSelectionRequested,selected:t.selectionIndex===n.state.selectedItemIndex,isLastGroup:e===o,key:e}):void 0})},p.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},p.prototype.getViewItemsFromMsgs=function(t){return 0<t.length?c.convertMsgsToViewItems(t):[]},p.propTypes={messages:i.arrayOf(i.object),user:i.object,messageTemplate:i.any,attachmentTemplate:i.any,width:i.oneOfType([i.string,i.number]),onMessageSend:i.func,onActionExecute:i.func,dir:i.string,messageBox:i.any},p.defaultProps={messages:[],dateFormat:"g",message:y.ChatMessage},p);function p(t){var o=n.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===s.Keys.up?null===n?e=0:0<n&&(e=n-1):t.keyCode===s.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){s.dispatchEvent(o.props.onMessageSend,e,o,{message:t})},o.onActionExecute=function(t,e){if(s.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()}},g.validatePackage(_.packageMetadata),o.state={selectedItemIndex:null,isFirstRender:!0},o}t.Chat=e},function(t,e,n){t.exports=n(12)()},function(t,e,n){"use strict";var i=n(13);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,r,s){if(s!==i)throw(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")).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=n===a-1;return o=t,s=e.timestamp,i=c(o),!s||i&&(i=i.timestamp,!(r=s)||!i||i.getDate()===r.getDate()&&i.getMonth()===r.getMonth()&&i.getFullYear()===r.getFullYear())||(i={type:"date-marker",timestamp:s,trackBy:s.getTime()},o.push(i)),r=e,o=c(s=t),i=void 0,r.typing&&!n||((i=o&&"message-group"===o.type?o.messages:i)&&p.isAuthor(r.author,c(i))?i.push(r):s.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&&n&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}}var p=n(6);e.convertMsgsToViewItems=function(t){var e,t=t.slice().reduce(o(t.length),[]),n=0;return(e=t).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++)}),e.lastSelectionIndex=n-1,t}},function(p,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(16),e=(n=e(7).SelectableItemsContainer,r(c,n),c.prototype.render=function(){var n=this,o=this.props.group.actions?this.props.group.actions.length-1:0;return s.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map(function(t,e){return s.createElement(a.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})}))},c.prototype.getClassNames=function(){return i.classNames("k-quick-replies")},c);function c(t){return n.call(this,t)||this}t.default=e},function(p,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(1),e=(n=e(2).FocusableUponSelection,r(c,n),c.prototype.render=function(){var e=this;return s.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)},c.prototype.getClassNames=function(){return a.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-state-selected":this.props.selected},{"k-state-focused":this.props.selected})},c);function c(){var e=null!==n&&n.apply(this,arguments)||this;return e.onKeyDown=function(t){t.keyCode===i.Keys.enter&&e.props.onActionExecute(e.props.item,t)},e}t.default=e},function(u,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(8),l=e(7),c=e(3),e=(n=l.SelectableItemsContainer,r(p,n),p.prototype.render=function(){var n=this,t=this.isCardDeckLayout(this.props),e=s.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map(function(t,e){return s.createElement(a.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?s.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?s.createElement(c.Button,{icon:"arrow-chevron-left",onClick:function(){return t.onNavigateBtnClick(!1)}}):e},p.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?s.createElement(c.Button,{icon:"arrow-chevron-right",onClick:function(){return t.onNavigateBtnClick(!0)}}):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 i.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},p);function p(){return null!==n&&n.apply(this,arguments)||this}t.default=e},function(t,e,n){"use strict";var o,r,s=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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),a=n(5),n=(r=i.Component,s(c,r),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!==r&&r.apply(this,arguments)||this}e.default=n,a.registerForIntl(n)},function(u,t,e){"use strict";var o,n,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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(1),a=e(8),c=e(6),e=(n=s.Component,r(p,n),p.prototype.render=function(){return s.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},p.prototype.getMsgGroupClassNames=function(){return i.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":c.isAuthor(this.props.user,this.props.group.messages[0])})},p.prototype.getAvatarView=function(){var t=null;return t=this.props.group.author.avatarUrl?s.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"}):t},p.prototype.getAuthorNameView=function(){var t=null;return t=this.props.group.author.name?s.createElement("p",{className:"k-author"},this.props.group.author.name):t},p.prototype.getGroupMessagesView=function(){var o=this,r=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var n=[s.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(s.createElement(a.default,{item:t.attachments[0],template:o.props.attachmentTemplate,selected:!1,key:"att-"+e})),n})},p);function p(){return null!==n&&n.apply(this,arguments)||this}t.default=e},function(u,t,e){"use strict";var o,r,n=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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(1)),i=e(0),a=e(21),c=e(3),e=(r=i.Component,n(p,r),p.prototype.render=function(){var e=this,t=i.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=i.createElement(c.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},i.createElement("span",{className:"k-button-icon k-icon"},i.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},i.createElement("path",{d:p.buttonIconPath})))),o=i.createElement(c.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},i.createElement("span",{className:"k-button-icon k-icon"},i.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},i.createElement("g",null,i.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"}),i.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"}),i.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 i.createElement(i.Fragment,null,i.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?i.createElement(this.props.MessageBox,{messageInput:t,sendButton:n,toolbarButton:o}):i.createElement(i.Fragment,null,t,this.props.toolbar&&o,n)),this.props.showToolbar&&i.createElement(a.default,null,this.props.toolbar))},p.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},p.prototype.getClassNames=function(){return s.classNames({"k-state-focused":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},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!==r&&r.apply(this,arguments)||this;return n.state={focused:!1},n.inputEl=null,n.onInputKeyDown=function(t){t.keyCode===s.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}t.default=e},function(t,e,n){"use strict";var o,r,s=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)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),n(0)),n=(r=i.Component,s(a,r),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!==r&&r.apply(this,arguments)||this}e.default=n},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:1645174745,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(p,t,e){"use strict";var o,r,n=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)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),e(0)),i=e(3),a=e(1),e=(r=s.Component,n(c,r),c.prototype.render=function(){return s.createElement("div",{className:"k-card"},s.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),s.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),s.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},c.prototype.getActionsView=function(){var n=this;return this.props.actions.map(function(e,t){return s.createElement("span",{className:"k-card-action",key:t},s.createElement(i.Button,{fillMode:"flat",onClick:function(t){return n.onBtnClick(e,t)}},e.title))})},c.prototype.getTitleView=function(){var t=null;return t=this.props.title?s.createElement("h5",{className:"k-card-title"},this.props.title):t},c.prototype.getSubtitleView=function(){var t=null;return t=this.props.subtitle?s.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):t},c);function c(){var n=null!==r&&r.apply(this,arguments)||this;return n.onBtnClick=function(t,e){a.dispatchEvent(n.props.onActionExecute,e,n,{action:t})},n}t.HeroCard=e}],o={},r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=9)}}});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-conversational-ui",
|
|
3
3
|
"description": "KendoReact Conversational UI components",
|
|
4
|
-
"version": "5.1.0-dev.
|
|
4
|
+
"version": "5.1.0-dev.202202180916",
|
|
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": "5.1.0-dev.
|
|
43
|
+
"@progress/kendo-react-common": "5.1.0-dev.202202180916"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@progress/kendo-licensing": "^1.0.1",
|
|
47
|
-
"@progress/kendo-react-buttons": "5.1.0-dev.
|
|
48
|
-
"@progress/kendo-react-dateinputs": "5.1.0-dev.
|
|
49
|
-
"@progress/kendo-react-intl": "5.1.0-dev.
|
|
47
|
+
"@progress/kendo-react-buttons": "5.1.0-dev.202202180916",
|
|
48
|
+
"@progress/kendo-react-dateinputs": "5.1.0-dev.202202180916",
|
|
49
|
+
"@progress/kendo-react-intl": "5.1.0-dev.202202180916",
|
|
50
50
|
"adaptivecards": "^1.0.0",
|
|
51
51
|
"botframework-directlinejs": "^0.9.15"
|
|
52
52
|
},
|